From 6797a8aace0a6f25c0555be2d245c93199073941 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 23 Oct 2026 18:15:26 +0000 Subject: [PATCH] feat(area120_tables)!: replace area120 tables gems with tombstones Replaces google-area120-tables and google-area120-tables-v1alpha1 with minimal tombstone packages and removes them from librarian.yaml as the Area 120 Tables API (google/area120/tables/v1alpha1) has been turned down (b/577139636). --- google-area120-tables-v1alpha1/.gitignore | 20 - .../.repo-metadata.json | 18 - google-area120-tables-v1alpha1/.rubocop.yml | 33 - google-area120-tables-v1alpha1/.toys.rb | 28 - google-area120-tables-v1alpha1/.yardopts | 5 +- .../AUTHENTICATION.md | 122 -- google-area120-tables-v1alpha1/CHANGELOG.md | 164 -- google-area120-tables-v1alpha1/Gemfile | 15 - google-area120-tables-v1alpha1/Gemfile.lock | 300 --- google-area120-tables-v1alpha1/LICENSE.md | 4 +- google-area120-tables-v1alpha1/README.md | 152 +- google-area120-tables-v1alpha1/Rakefile | 151 -- .../gapic_metadata.json | 78 - .../google-area120-tables-v1alpha1.gemspec | 41 +- .../lib/google-area120-tables-v1alpha1.rb | 21 - .../lib/google/area120/tables/v1alpha1.rb | 45 - .../google/area120/tables/v1alpha1/rest.rb | 37 - .../area120/tables/v1alpha1/tables_pb.rb | 53 - .../area120/tables/v1alpha1/tables_service.rb | 66 - .../tables/v1alpha1/tables_service/client.rb | 1604 ----------------- .../v1alpha1/tables_service/credentials.rb | 56 - .../tables/v1alpha1/tables_service/paths.rb | 78 - .../tables/v1alpha1/tables_service/rest.rb | 63 - .../v1alpha1/tables_service/rest/client.rb | 1493 --------------- .../tables_service/rest/service_stub.rb | 814 --------- .../tables/v1alpha1/tables_services_pb.rb | 78 - .../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 --- .../google/area120/tables/v1alpha1/tables.rb | 417 ----- .../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/struct.rb | 108 -- .../snippets/Gemfile | 32 - ...tadata_google.area120.tables.v1alpha1.json | 495 ----- .../tables_service/batch_create_rows.rb | 47 - .../tables_service/batch_delete_rows.rb | 47 - .../tables_service/batch_update_rows.rb | 47 - .../snippets/tables_service/create_row.rb | 47 - .../snippets/tables_service/delete_row.rb | 47 - .../snippets/tables_service/get_row.rb | 47 - .../snippets/tables_service/get_table.rb | 47 - .../snippets/tables_service/get_workspace.rb | 47 - .../snippets/tables_service/list_rows.rb | 51 - .../snippets/tables_service/list_tables.rb | 51 - .../tables_service/list_workspaces.rb | 51 - .../snippets/tables_service/update_row.rb | 47 - .../v1alpha1/tables_service_paths_test.rb | 79 - .../v1alpha1/tables_service_rest_test.rb | 761 -------- .../tables/v1alpha1/tables_service_test.rb | 843 --------- google-area120-tables-v1alpha1/test/helper.rb | 35 - google-area120-tables/.gitignore | 20 - google-area120-tables/.repo-metadata.json | 18 - google-area120-tables/.rubocop.yml | 39 - google-area120-tables/.toys.rb | 28 - google-area120-tables/.yardopts | 4 +- google-area120-tables/AUTHENTICATION.md | 122 -- google-area120-tables/CHANGELOG.md | 106 -- google-area120-tables/Gemfile | 32 - google-area120-tables/Gemfile.lock | 313 ---- google-area120-tables/LICENSE.md | 4 +- google-area120-tables/README.md | 140 +- google-area120-tables/Rakefile | 151 -- .../google-area120-tables.gemspec | 40 +- .../lib/google-area120-tables.rb | 19 - .../lib/google/area120/tables.rb | 115 -- .../test/google/area120/tables/client_test.rb | 64 - .../google/area120/tables/version_test.rb | 26 - google-area120-tables/test/helper.rb | 35 - librarian.yaml | 17 - 73 files changed, 52 insertions(+), 11467 deletions(-) delete mode 100644 google-area120-tables-v1alpha1/.gitignore delete mode 100644 google-area120-tables-v1alpha1/.repo-metadata.json delete mode 100644 google-area120-tables-v1alpha1/.rubocop.yml delete mode 100644 google-area120-tables-v1alpha1/.toys.rb delete mode 100644 google-area120-tables-v1alpha1/AUTHENTICATION.md delete mode 100644 google-area120-tables-v1alpha1/CHANGELOG.md delete mode 100644 google-area120-tables-v1alpha1/Gemfile delete mode 100644 google-area120-tables-v1alpha1/Gemfile.lock delete mode 100644 google-area120-tables-v1alpha1/gapic_metadata.json delete mode 100644 google-area120-tables-v1alpha1/lib/google-area120-tables-v1alpha1.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/rest.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_pb.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/client.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/credentials.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/paths.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest/client.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest/service_stub.rb delete mode 100644 google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_services_pb.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/README.md delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/api/client.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/api/field_behavior.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/api/launch_stage.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/api/resource.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/area120/tables/v1alpha1/tables.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/protobuf/duration.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/protobuf/empty.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/protobuf/field_mask.rb delete mode 100644 google-area120-tables-v1alpha1/proto_docs/google/protobuf/struct.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/Gemfile delete mode 100644 google-area120-tables-v1alpha1/snippets/snippet_metadata_google.area120.tables.v1alpha1.json delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/batch_create_rows.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/batch_delete_rows.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/batch_update_rows.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/create_row.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/delete_row.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/get_row.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/get_table.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/get_workspace.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/list_rows.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/list_tables.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/list_workspaces.rb delete mode 100644 google-area120-tables-v1alpha1/snippets/tables_service/update_row.rb delete mode 100644 google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_paths_test.rb delete mode 100644 google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_rest_test.rb delete mode 100644 google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_test.rb delete mode 100644 google-area120-tables-v1alpha1/test/helper.rb delete mode 100644 google-area120-tables/.gitignore delete mode 100644 google-area120-tables/.repo-metadata.json delete mode 100644 google-area120-tables/.rubocop.yml delete mode 100644 google-area120-tables/.toys.rb delete mode 100644 google-area120-tables/AUTHENTICATION.md delete mode 100644 google-area120-tables/CHANGELOG.md delete mode 100644 google-area120-tables/Gemfile delete mode 100644 google-area120-tables/Gemfile.lock delete mode 100644 google-area120-tables/lib/google-area120-tables.rb delete mode 100644 google-area120-tables/lib/google/area120/tables.rb delete mode 100644 google-area120-tables/test/google/area120/tables/client_test.rb delete mode 100644 google-area120-tables/test/google/area120/tables/version_test.rb delete mode 100644 google-area120-tables/test/helper.rb diff --git a/google-area120-tables-v1alpha1/.gitignore b/google-area120-tables-v1alpha1/.gitignore deleted file mode 100644 index a2e97ac84259..000000000000 --- a/google-area120-tables-v1alpha1/.gitignore +++ /dev/null @@ -1,20 +0,0 @@ -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/google-area120-tables-v1alpha1/.repo-metadata.json b/google-area120-tables-v1alpha1/.repo-metadata.json deleted file mode 100644 index 6eba0432f4ea..000000000000 --- a/google-area120-tables-v1alpha1/.repo-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "api_id": "area120tables.googleapis.com", - "api_shortname": "area120tables", - "client_documentation": "https://rubydoc.info/gems/google-area120-tables-v1alpha1", - "distribution_name": "google-area120-tables-v1alpha1", - "is_cloud": false, - "language": "ruby", - "name": "area120tables", - "name_pretty": "Area 120 Tables V1alpha1 API", - "product_documentation": "https://tables.area120.google.com/u/0/about#/", - "release_level": "preview", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Using the Area 120 Tables API, you can query for tables, and update/create/delete rows within tables programmatically. Note that google-area120-tables-v1alpha1 is a version-specific client library. For most uses, we recommend installing the main client library google-area120-tables instead. See the readme for more details.", - "ruby-cloud-env-prefix": "AREA120_TABLES", - "ruby-cloud-product-url": "https://tables.area120.google.com/u/0/about#/", - "library_type": "GAPIC_AUTO" -} diff --git a/google-area120-tables-v1alpha1/.rubocop.yml b/google-area120-tables-v1alpha1/.rubocop.yml deleted file mode 100644 index e19a526cbf8c..000000000000 --- a/google-area120-tables-v1alpha1/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-area120-tables-v1alpha1.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-area120-tables-v1alpha1.rb" diff --git a/google-area120-tables-v1alpha1/.toys.rb b/google-area120-tables-v1alpha1/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/google-area120-tables-v1alpha1/.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/google-area120-tables-v1alpha1/.yardopts b/google-area120-tables-v1alpha1/.yardopts index 9dc1b9d9644b..bdb4dfe69ff3 100644 --- a/google-area120-tables-v1alpha1/.yardopts +++ b/google-area120-tables-v1alpha1/.yardopts @@ -1,12 +1,9 @@ --no-private ---title="Area120 Tables V1ALPHA1 API" ---exclude _pb\.rb$ +--title="Obsolete Gem google-area120-tables-v1alpha1" --markup markdown --markup-provider redcarpet ./lib/**/*.rb -./proto_docs/**/*.rb - README.md LICENSE.md -AUTHENTICATION.md diff --git a/google-area120-tables-v1alpha1/AUTHENTICATION.md b/google-area120-tables-v1alpha1/AUTHENTICATION.md deleted file mode 100644 index df2c2f8b1245..000000000000 --- a/google-area120-tables-v1alpha1/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-area120-tables-v1alpha1 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-area120-tables-v1alpha1 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/area120/tables/v1alpha1" - -client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/area120/tables/v1alpha1" - -::Google::Area120::Tables::V1alpha1::TablesService::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Area120::Tables::V1alpha1::TablesService::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-area120-tables-v1alpha1 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/area120/tables/v1alpha1" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Area120::Tables::V1alpha1::TablesService::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/google-area120-tables-v1alpha1/CHANGELOG.md b/google-area120-tables-v1alpha1/CHANGELOG.md deleted file mode 100644 index 8e04f773a915..000000000000 --- a/google-area120-tables-v1alpha1/CHANGELOG.md +++ /dev/null @@ -1,164 +0,0 @@ -# Release History - -### 0.15.1 (2026-08-05) - -#### Bug Fixes - -* generate double-wildcard path patterns with capture groups ([#35043](https://github.com/googleapis/google-cloud-ruby/issues/35043)) - -### 0.15.0 (2026-06-11) - -#### Features - -* update gapic-common dependency to 1.3 and document retry jitter ([#34037](https://github.com/googleapis/google-cloud-ruby/issues/34037)) - -### 0.14.0 (2026-04-02) - -#### Features - -* publish client batch config schema ([#33429](https://github.com/googleapis/google-cloud-ruby/issues/33429)) - -### 0.13.0 (2026-03-19) - -#### Features - -* Upgrade dependencies for Ruby v4.0 and drop Ruby v3.1 support - -### 0.12.1 (2025-10-27) - -#### Documentation - -* add warning about loading unvalidated credentials - -### 0.12.0 (2025-09-11) - -#### Features - -* update gapic-common dependency for generated libraries to 1.2 which requires google-protobuf v4.26+ - -### 0.11.0 (2025-05-12) - -#### Features - -* Updated core dependencies including gapic-common -* Updated required Ruby version to 3.1 - -### 0.10.1 (2025-04-29) - -#### Bug Fixes - -* Fixed several issues with validating credential configs - -### 0.10.0 (2025-01-28) - -#### Features - -* Update Ruby version requirement to 3.0 -#### Documentation - -* Clarify behavior of protobuf message fields that are part of mutually-exclusive sets -* Include note about validating externally-provided credentials - -### 0.9.0 (2024-12-10) - -#### Features - -* Provide opt-in debug logging - -### 0.8.1 (2024-08-30) - -#### Documentation - -* Add field `experimental_features` to message `PythonSettings` ([#27002](https://github.com/googleapis/google-cloud-ruby/issues/27002)) - -### 0.8.0 (2024-02-26) - -#### Features - -* Updated minimum Ruby version to 2.7 ([#24862](https://github.com/googleapis/google-cloud-ruby/issues/24862)) - -### 0.7.2 (2024-02-01) - -#### Bug Fixes - -* Eliminated a harmless but annoying warning in the protobuf class files - -### 0.7.1 (2024-01-12) - -#### Bug Fixes - -* Ensure endpoints are correct for mixin clients ([#24032](https://github.com/googleapis/google-cloud-ruby/issues/24032)) - -### 0.7.0 (2024-01-11) - -#### Features - -* Support for universe_domain ([#23772](https://github.com/googleapis/google-cloud-ruby/issues/23772)) - -### 0.6.0 (2023-09-12) - -#### Features - -* Support for channel pool configuration ([#22916](https://github.com/googleapis/google-cloud-ruby/issues/22916)) - -### 0.5.0 (2023-06-06) - -#### Features - -* Uses binary protobuf definitions for better forward compatibility ([#21671](https://github.com/googleapis/google-cloud-ruby/issues/21671)) -#### Bug Fixes - -* Don't use self-signed JWT credentials if the global configuration endpoint has been modified - -### 0.4.0 (2023-03-08) - -#### Features - -* Support REST transport ([#20624](https://github.com/googleapis/google-cloud-ruby/issues/20624)) - -### 0.3.0 (2022-07-01) - -#### Features - -* Updated minimum Ruby version to 2.6 ([#18443](https://github.com/googleapis/google-cloud-ruby/issues/18443)) - -### 0.2.5 / 2022-01-11 - -#### Documentation - -* Fix titles of documentation pages -* Remove some broken images and fix outdated content in authentication documentation - -### 0.2.4 / 2021-11-08 - -#### Documentation - -* Added simple code snippets to RPC method documentation - -### 0.2.3 / 2021-08-11 - -#### Bug Fixes - -* Honor client-level timeout configuration - -### 0.2.2 / 2021-07-12 - -#### Documentation - -* Clarified some language around authentication configuration - -### 0.2.1 / 2021-06-17 - -#### Bug Fixes - -* Support future 1.x versions of gapic-common - -### 0.2.0 / 2021-03-08 - -#### Features - -* Drop support for Ruby 2.4 and add support for Ruby 3.0 - -### 0.1.0 / 2021-02-23 - -* Initial release diff --git a/google-area120-tables-v1alpha1/Gemfile b/google-area120-tables-v1alpha1/Gemfile deleted file mode 100644 index 823c136ec3c0..000000000000 --- a/google-area120-tables-v1alpha1/Gemfile +++ /dev/null @@ -1,15 +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-reporters", "~> 1.8.0", require: false -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/google-area120-tables-v1alpha1/Gemfile.lock b/google-area120-tables-v1alpha1/Gemfile.lock deleted file mode 100644 index fad5a3a4dc1a..000000000000 --- a/google-area120-tables-v1alpha1/Gemfile.lock +++ /dev/null @@ -1,300 +0,0 @@ -PATH - remote: . - specs: - google-area120-tables-v1alpha1 (0.15.0) - gapic-common (~> 1.3) - google-cloud-errors (~> 1.0) - -GEM - remote: https://rubygems.org/ - specs: - addressable (2.9.0) - public_suffix (>= 2.0.2, < 8.0) - ansi (1.6.0) - ast (2.4.3) - base64 (0.3.0) - bigdecimal (4.1.2) - builder (3.3.0) - drb (2.2.3) - erb (6.0.6) - faraday (2.14.3) - faraday-net_http (>= 2.0, < 3.5) - json - logger - faraday-net_http (3.4.4) - net-http (~> 0.5) - faraday-retry (2.4.0) - faraday (~> 2.0) - gapic-common (1.3.0) - faraday (>= 1.9, < 3.a) - faraday-retry (>= 1.0, < 3.a) - google-cloud-env (~> 2.2) - google-logging-utils (~> 0.1) - google-protobuf (~> 4.26) - googleapis-common-protos (~> 1.6) - googleapis-common-protos-types (~> 1.15) - googleauth (~> 1.12) - grpc (~> 1.66) - google-cloud-env (2.4.0) - base64 (~> 0.2) - faraday (>= 1.0, < 3.a) - google-cloud-errors (1.7.0) - google-logging-utils (0.2.0) - google-protobuf (4.35.1) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-aarch64-linux-gnu) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-aarch64-linux-musl) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-arm64-darwin) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86-linux-gnu) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86-linux-musl) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86_64-darwin) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86_64-linux-gnu) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86_64-linux-musl) - bigdecimal - rake (~> 13.3) - google-style (1.32.0) - rubocop (~> 1.76) - googleapis-common-protos (1.10.0) - google-protobuf (~> 4.26) - googleapis-common-protos-types (~> 1.21) - grpc (~> 1.41) - googleapis-common-protos-types (1.23.0) - google-protobuf (~> 4.26) - googleauth (1.17.3) - faraday (>= 1.0, < 3.a) - google-cloud-env (~> 2.2) - google-logging-utils (~> 0.1) - jwt (>= 1.4, < 4.0) - os (>= 0.9, < 2.0) - pstore (~> 0.1) - signet (>= 0.16, < 2.a) - grpc (1.83.0) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-aarch64-linux-gnu) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-aarch64-linux-musl) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-arm64-darwin) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86-linux-gnu) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86-linux-musl) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86_64-darwin) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86_64-linux-gnu) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86_64-linux-musl) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - io-console (0.8.2) - irb (1.18.0) - pp (>= 0.6.0) - prism (>= 1.3.0) - rdoc (>= 4.0.0) - reline (>= 0.4.2) - json (2.21.2) - jwt (3.2.0) - base64 - language_server-protocol (3.17.0.6) - lint_roller (1.1.0) - logger (1.7.0) - minitest (6.0.6) - drb (~> 2.0) - prism (~> 1.5) - minitest-focus (1.4.1) - minitest (> 5.0) - minitest-mock (5.27.0) - minitest-reporters (1.8.0) - ansi - builder - minitest (>= 5.0, < 7) - ruby-progressbar - minitest-rg (5.4.0) - minitest (>= 5.0, < 7) - net-http (0.9.1) - uri (>= 0.11.1) - os (1.1.4) - ostruct (0.5.5) - parallel (2.1.0) - parser (3.3.12.0) - ast (~> 2.4.1) - racc - pp (0.6.4) - prettyprint - prettyprint (0.2.0) - prism (1.9.0) - pstore (0.2.1) - public_suffix (7.0.5) - racc (1.8.1) - rainbow (3.1.1) - rake (13.4.2) - rbs (4.1.1) - logger - prism (>= 1.6.0) - tsort - rdoc (8.0.0) - erb - prism (>= 1.6.0) - rbs (>= 4.0.0) - tsort - redcarpet (3.6.1) - regexp_parser (2.12.0) - reline (0.6.3) - io-console (~> 0.5) - rubocop (1.88.2) - json (~> 2.3) - language_server-protocol (~> 3.17.0.2) - lint_roller (~> 1.1.0) - parallel (>= 1.10) - parser (>= 3.3.0.2) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.49.0, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.50.0) - parser (>= 3.3.7.2) - prism (~> 1.7) - ruby-progressbar (1.13.0) - signet (0.22.0) - addressable (~> 2.8) - faraday (>= 0.17.5, < 3.a) - jwt (>= 1.5, < 4.0) - tsort (0.2.0) - unicode-display_width (3.2.0) - unicode-emoji (~> 4.1) - unicode-emoji (4.2.0) - uri (1.1.1) - yard (0.9.45) - -PLATFORMS - aarch64-linux-gnu - aarch64-linux-musl - arm64-darwin - ruby - x86-linux-gnu - x86-linux-musl - x86_64-darwin - x86_64-linux-gnu - x86_64-linux-musl - -DEPENDENCIES - google-area120-tables-v1alpha1! - google-style (~> 1.32.0) - irb (~> 1.17) - minitest (~> 6.0.2) - minitest-focus (~> 1.4) - minitest-mock (~> 5.27) - minitest-reporters (~> 1.8.0) - minitest-rg (~> 5.3) - ostruct (~> 0.5.5) - rake (>= 13.0) - redcarpet (~> 3.6) - yard (~> 0.9) - -CHECKSUMS - addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af - ansi (1.6.0) sha256=ac9ea0c0ea8d32fb4e271348e609963ac78882f34b73836c2a02b3622e666658 - ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383 - base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b - bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd - builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f - bundler (4.0.14) sha256=d09a0a965cf772266a7e49e83610be7c2f4e49e61134c42a56804bb383cc24b8 - drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373 - erb (6.0.6) sha256=a9b24986700f5bf127c4f297c5403c3ca41b83b0a316c0cd09a096b56e644ae5 - faraday (2.14.3) sha256=1882247e6766615c8220b4392bf1d27f6ebb63d8e28267587cef1fb0bf37f278 - faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588 - faraday-retry (2.4.0) sha256=7b79c48fb7e56526faf247b12d94a680071ff40c9fda7cf1ec1549439ad11ebe - gapic-common (1.3.0) sha256=4e5d9be1effb7366e2cda13c0f44922285d5613ac8de8b9b18c2c835fe4faa91 - google-area120-tables-v1alpha1 (0.15.0) - google-cloud-env (2.4.0) sha256=01cb35ecee5d1c4d1cd4deaed8bb5bddc838e296bcc2a35c5d1ddd07ce40d28d - google-cloud-errors (1.7.0) sha256=6e682f42d89aae08689f36f28495de629d756da076bafff0003bac7f8042ebb3 - google-logging-utils (0.2.0) sha256=675462b4ea5affa825a3442694ca2d75d0069455a1d0956127207498fca3df7b - google-protobuf (4.35.1) sha256=a3a6471331d918f58dfa4d014a8f6286f0af2cf4840216bde52fcf2ea3fe3726 - google-protobuf (4.35.1-aarch64-linux-gnu) sha256=50ca44d0eeff3f8475e630a1accdd974256f3510694d574e2c9d6119ea8bc9e1 - google-protobuf (4.35.1-aarch64-linux-musl) sha256=d5c65cef6bd6498a9e5ed5f88cf6cf7e341c10b0a005e32137d5d1a2b6e8c18a - google-protobuf (4.35.1-arm64-darwin) sha256=d9c957df04fa89c749fa9a72a7b383eb4296efc9b2303dc6fd6fbe39c698ad6b - google-protobuf (4.35.1-x86-linux-gnu) sha256=cc7492566b27ad8b5dfa3a7b6f9b11e905050cc53c2fa8ff22de375a9e7a70fb - google-protobuf (4.35.1-x86-linux-musl) sha256=ab403790b59e4dc588ffbed1eaacf05d4ca2f0d12ac9c13d6c64e69380d8c99e - google-protobuf (4.35.1-x86_64-darwin) sha256=66b62b4df00931018a692806df66393efa960d6d2b7da69735187249f950d3ee - google-protobuf (4.35.1-x86_64-linux-gnu) sha256=c786439087512a3fbd199e9897d265b855f951d4027e218ea55e858d45969edd - google-protobuf (4.35.1-x86_64-linux-musl) sha256=91890eb0002934a339fdb7d77a147c46b7474b6799db27872b747b905837f744 - google-style (1.32.0) sha256=3b13068979e5b8caa067ecce9bf818b6cf0e5eb706ead41c5b905f237d9bfb01 - googleapis-common-protos (1.10.0) sha256=13e47ad0ce85d3d30065c03863efd302a82b0e08ba576f2a9b9dbbfeecb57ee0 - googleapis-common-protos-types (1.23.0) sha256=992e740a523794d9fc5f29a504465d8fc737aaa16c930fe7228e3346860faf0a - googleauth (1.17.3) sha256=9a655455885c0c17a8b70537acd2a992a7c7842c43c06c6612dfb0d93e755d58 - grpc (1.83.0) sha256=38119e7f9f7cbc98e79145201da4be470a7542b0befad454651d35015ea55c59 - grpc (1.83.0-aarch64-linux-gnu) sha256=11562efdded494b2277fd9c3c530dfdf90177faa111526ae9e748d0be29f1a9d - grpc (1.83.0-aarch64-linux-musl) sha256=ee745eab4f3922ed27d379cbc4bc0a99e58db367fa96312e9fe258aafd3afeb2 - grpc (1.83.0-arm64-darwin) sha256=25dd772aa80529f014d70da069787cd39b469c9edacbe493da4ff19952a147e2 - grpc (1.83.0-x86-linux-gnu) sha256=e9b20f54b8e8915f3921f12b266742e79da2c31d60e88295e15d0d16ea3cfd55 - grpc (1.83.0-x86-linux-musl) sha256=868e66d9c2a77eca1a93292fd879565219821fb5888673aedd08154303c9520c - grpc (1.83.0-x86_64-darwin) sha256=cfad91d559d1907159a5247fb12dc112a8ea0ebe2027ca7f5ab648d01a645716 - grpc (1.83.0-x86_64-linux-gnu) sha256=25d66bfa3cb1b05258b3f9632478c7e7ceb52cb16ccc0b4b26d7df36be7158b1 - grpc (1.83.0-x86_64-linux-musl) sha256=a5023264dbb8038c23b147bbf80adb06932ef11b5ab493412e9e37a43114fa8c - io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc - irb (1.18.0) sha256=de9454a0703a54704b9811a5ef31a60c86949fbf4013fcf244fabc7c775248e3 - json (2.21.2) sha256=1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a - jwt (3.2.0) sha256=5419b1fe37b1da0982bd07051f573a8b8789ab724c2aa7e785e4784a3ed217d7 - language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0 - lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87 - logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203 - minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1 - minitest-focus (1.4.1) sha256=394517cbe2dcb2d992d8ffc41a3b2b6315777a4daa69239de4fefe7110dd810e - minitest-mock (5.27.0) sha256=7040ed7185417a966920987eaa6eaf1be4ea1fc5b25bb03ff4703f98564a55b0 - minitest-reporters (1.8.0) sha256=8ce5280fb73ad3178ae525454df169b6f28c1b38b1d088ea91815d3a370ba384 - minitest-rg (5.4.0) sha256=54d42bb8ce876381245be5866f3c1dd704ef79c06ba5c9ff280c0aa28c56effb - net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996 - os (1.1.4) sha256=57816d6a334e7bd6aed048f4b0308226c5fb027433b67d90a9ab435f35108d3f - ostruct (0.5.5) sha256=bc73d0e10f85ca2afdddc7eb79b3132bee622e2281db4e6e033a4cbf7d845efb - parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356 - parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828 - pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570 - prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193 - prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85 - pstore (0.2.1) sha256=03904d0f2c66579e96d1e6704cdabc0c88df7ea8ed8782d9f3569f6f6c702c1a - public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623 - racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f - rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a - rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701 - rbs (4.1.1) sha256=1bf118f2f95d1cd3956357645d495152b661e0257e57781d18ceecd461622b9e - rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469 - redcarpet (3.6.1) sha256=d444910e6aa55480c6bcdc0cdb057626e8a32c054c29e793fa642ba2f155f445 - regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb - reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835 - rubocop (1.88.2) sha256=8def251c90cd955feb4daa3edc0ab56893250c4ce90ef81e6c80c03f9a939bbf - rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db - ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33 - signet (0.22.0) sha256=b76d495ccb07ad35dbc89f3e920665a9d8ed717141955034005d7843dcfe4780 - tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f - unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42 - unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f - uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6 - yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51 - -BUNDLED WITH - 4.0.14 diff --git a/google-area120-tables-v1alpha1/LICENSE.md b/google-area120-tables-v1alpha1/LICENSE.md index c261857ba6ad..60673914fcc1 100644 --- a/google-area120-tables-v1alpha1/LICENSE.md +++ b/google-area120-tables-v1alpha1/LICENSE.md @@ -1,6 +1,6 @@ Apache License Version 2.0, January 2004 - http://www.apache.org/licenses/ + https://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -192,7 +192,7 @@ 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 + https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/google-area120-tables-v1alpha1/README.md b/google-area120-tables-v1alpha1/README.md index 4ff33425cef1..17eb3a790ef7 100644 --- a/google-area120-tables-v1alpha1/README.md +++ b/google-area120-tables-v1alpha1/README.md @@ -1,150 +1,4 @@ -# Ruby Client for the Area120 Tables V1ALPHA1 API +# Tombstone for Ruby gem google-area120-tables-v1alpha1 -Area 120 Tables is a collaborative database program developed out of Google's Area 120 incubator. - - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Area120 Tables V1ALPHA1 API. Most users should consider using -the main client gem, -[google-area120-tables](https://rubygems.org/gems/google-area120-tables). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-area120-tables-v1alpha1 -``` - -## 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/area120tables.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/area120/tables/v1alpha1" - -client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new -request = ::Google::Area120::Tables::V1alpha1::GetTableRequest.new # (request fields as keyword arguments...) -response = client.get_table request -``` - -View the [Client Library Documentation](https://rubydoc.info/gems/google-area120-tables-v1alpha1) -for class and method documentation. - -## 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/area120/tables/v1alpha1" -require "logger" - -client = ::Google::Area120::Tables::V1alpha1::TablesService::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.2+. - -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-area120-tables`, -and lower-level _versioned_ client libraries with names such as -`google-area120-tables-v1alpha1`. -_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-area120-tables`. -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-area120-tables-v1alpha1`. - -### 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. +This gem is obsolete because the related Google backend is turned down. +For more information, see https://cloud.google.com/terms/deprecation. diff --git a/google-area120-tables-v1alpha1/Rakefile b/google-area120-tables-v1alpha1/Rakefile index 692413d86782..bbfd2ee3d1fb 100644 --- a/google-area120-tables-v1alpha1/Rakefile +++ b/google-area120-tables-v1alpha1/Rakefile @@ -14,156 +14,5 @@ # 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-area120-tables-v1alpha1 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["AREA120_TABLES_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["AREA120_TABLES_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["AREA120_TABLES_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 AREA120_TABLES_TEST_PROJECT=test123 AREA120_TABLES_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/area120/tables/v1alpha1/tables_service/credentials" - ::Google::Area120::Tables::V1alpha1::TablesService::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["AREA120_TABLES_PROJECT"] = project - ENV["AREA120_TABLES_TEST_PROJECT"] = project - ENV["AREA120_TABLES_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-area120-tables-v1alpha1 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-area120-tables-v1alpha1 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-area120-tables-v1alpha1 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-area120-tables-v1alpha1 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-area120-tables-v1alpha1" - header "google-area120-tables-v1alpha1 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-area120-tables-v1alpha1 yard", "*" - Rake::Task[:yard].invoke - header "google-area120-tables-v1alpha1 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-area120-tables-v1alpha1 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-area120-tables-v1alpha1 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/google-area120-tables-v1alpha1/gapic_metadata.json b/google-area120-tables-v1alpha1/gapic_metadata.json deleted file mode 100644 index 0de5fb063089..000000000000 --- a/google-area120-tables-v1alpha1/gapic_metadata.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.area120.tables.v1alpha1", - "libraryPackage": "::Google::Area120::Tables::V1alpha1", - "services": { - "TablesService": { - "clients": { - "grpc": { - "libraryClient": "::Google::Area120::Tables::V1alpha1::TablesService::Client", - "rpcs": { - "GetTable": { - "methods": [ - "get_table" - ] - }, - "ListTables": { - "methods": [ - "list_tables" - ] - }, - "GetWorkspace": { - "methods": [ - "get_workspace" - ] - }, - "ListWorkspaces": { - "methods": [ - "list_workspaces" - ] - }, - "GetRow": { - "methods": [ - "get_row" - ] - }, - "ListRows": { - "methods": [ - "list_rows" - ] - }, - "CreateRow": { - "methods": [ - "create_row" - ] - }, - "BatchCreateRows": { - "methods": [ - "batch_create_rows" - ] - }, - "UpdateRow": { - "methods": [ - "update_row" - ] - }, - "BatchUpdateRows": { - "methods": [ - "batch_update_rows" - ] - }, - "DeleteRow": { - "methods": [ - "delete_row" - ] - }, - "BatchDeleteRows": { - "methods": [ - "batch_delete_rows" - ] - } - } - } - } - } - } -} diff --git a/google-area120-tables-v1alpha1/google-area120-tables-v1alpha1.gemspec b/google-area120-tables-v1alpha1/google-area120-tables-v1alpha1.gemspec index 03d51475d9c1..ce6518c7ce8a 100644 --- a/google-area120-tables-v1alpha1/google-area120-tables-v1alpha1.gemspec +++ b/google-area120-tables-v1alpha1/google-area120-tables-v1alpha1.gemspec @@ -1,28 +1,27 @@ -# -*- ruby -*- -# encoding: utf-8 - require File.expand_path("lib/google/area120/tables/v1alpha1/version", __dir__) Gem::Specification.new do |gem| - gem.name = "google-area120-tables-v1alpha1" - gem.version = Google::Area120::Tables::V1alpha1::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Area 120 Tables is a collaborative database program developed out of Google's Area 120 incubator. Note that google-area120-tables-v1alpha1 is a version-specific client library. For most uses, we recommend installing the main client library google-area120-tables instead. See the readme for more details." - gem.summary = "Area 120 Tables is a collaborative database program developed out of Google's Area 120 incubator." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" + gem.name = "google-area120-tables-v1alpha1" + gem.version = Google::Area120::Tables::V1alpha1::VERSION + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = + "This gem is obsolete because the related Google backend is turned down. " \ + "For more information, see https://cloud.google.com/terms/deprecation." + gem.summary = "This gem is obsolete because the related backend is turned down." + gem.post_install_message = <<~MESSAGE - gem.platform = Gem::Platform::RUBY + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + The google-area120-tables-v1alpha1 gem is OBSOLETE. + For more information, see: + https://cloud.google.com/terms/deprecation + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + MESSAGE + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + gem.platform = Gem::Platform::RUBY + gem.files = ["README.md", "LICENSE.md", ".yardopts", "lib/google/area120/tables/v1alpha1/version.rb"] gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.6" - gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.required_ruby_version = ">= 3.0" end diff --git a/google-area120-tables-v1alpha1/lib/google-area120-tables-v1alpha1.rb b/google-area120-tables-v1alpha1/lib/google-area120-tables-v1alpha1.rb deleted file mode 100644 index fddf5c4ba9ba..000000000000 --- a/google-area120-tables-v1alpha1/lib/google-area120-tables-v1alpha1.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/area120/tables/v1alpha1" diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1.rb deleted file mode 100644 index 972f5e3b010e..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/area120/tables/v1alpha1/tables_service" -require "google/area120/tables/v1alpha1/version" - -module Google - module Area120 - module Tables - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/area120/tables/v1alpha1" - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/area120/tables/v1alpha1" - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - module V1alpha1 - end - end - end -end - -helper_path = ::File.join __dir__, "v1alpha1", "_helpers.rb" -require "google/area120/tables/v1alpha1/_helpers" if ::File.file? helper_path diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/rest.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/rest.rb deleted file mode 100644 index ac2f9d759601..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/rest.rb +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/area120/tables/v1alpha1/tables_service/rest" -require "google/area120/tables/v1alpha1/version" - -module Google - module Area120 - module Tables - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/area120/tables/v1alpha1/rest" - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - module V1alpha1 - end - end - end -end diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_pb.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_pb.rb deleted file mode 100644 index 505a1e23a909..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/area120/tables/v1alpha1/tables.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/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/struct_pb' - - -descriptor_data = "\n+google/area120/tables/v1alpha1/tables.proto\x12\x1egoogle.area120.tables.v1alpha1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"L\n\x0fGetTableRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"area120tables.googleapis.com/Table\":\n\x11ListTablesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"d\n\x12ListTablesResponse\x12\x35\n\x06tables\x18\x01 \x03(\x0b\x32%.google.area120.tables.v1alpha1.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x13GetWorkspaceRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe2\x41\x01\x02\xfa\x41(\n&area120tables.googleapis.com/Workspace\">\n\x15ListWorkspacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"p\n\x16ListWorkspacesResponse\x12=\n\nworkspaces\x18\x01 \x03(\x0b\x32).google.area120.tables.v1alpha1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n\rGetRowRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n area120tables.googleapis.com/Row\x12\x38\n\x04view\x18\x02 \x01(\x0e\x32$.google.area120.tables.v1alpha1.ViewB\x04\xe2\x41\x01\x01\"\x9e\x01\n\x0fListRowsRequest\x12\x14\n\x06parent\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x38\n\x04view\x18\x04 \x01(\x0e\x32$.google.area120.tables.v1alpha1.ViewB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\"^\n\x10ListRowsResponse\x12\x31\n\x04rows\x18\x01 \x03(\x0b\x32#.google.area120.tables.v1alpha1.Row\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9a\x01\n\x10\x43reateRowRequest\x12\x14\n\x06parent\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x36\n\x03row\x18\x02 \x01(\x0b\x32#.google.area120.tables.v1alpha1.RowB\x04\xe2\x41\x01\x02\x12\x38\n\x04view\x18\x03 \x01(\x0e\x32$.google.area120.tables.v1alpha1.ViewB\x04\xe2\x41\x01\x01\"x\n\x16\x42\x61tchCreateRowsRequest\x12\x14\n\x06parent\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12H\n\x08requests\x18\x02 \x03(\x0b\x32\x30.google.area120.tables.v1alpha1.CreateRowRequestB\x04\xe2\x41\x01\x02\"L\n\x17\x42\x61tchCreateRowsResponse\x12\x31\n\x04rows\x18\x01 \x03(\x0b\x32#.google.area120.tables.v1alpha1.Row\"\xb5\x01\n\x10UpdateRowRequest\x12\x36\n\x03row\x18\x01 \x01(\x0b\x32#.google.area120.tables.v1alpha1.RowB\x04\xe2\x41\x01\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x38\n\x04view\x18\x03 \x01(\x0e\x32$.google.area120.tables.v1alpha1.ViewB\x04\xe2\x41\x01\x01\"x\n\x16\x42\x61tchUpdateRowsRequest\x12\x14\n\x06parent\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12H\n\x08requests\x18\x02 \x03(\x0b\x32\x30.google.area120.tables.v1alpha1.UpdateRowRequestB\x04\xe2\x41\x01\x02\"L\n\x17\x42\x61tchUpdateRowsResponse\x12\x31\n\x04rows\x18\x01 \x03(\x0b\x32#.google.area120.tables.v1alpha1.Row\"K\n\x10\x44\x65leteRowRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n area120tables.googleapis.com/Row\"\x8f\x01\n\x16\x42\x61tchDeleteRowsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"area120tables.googleapis.com/Table\x12\x38\n\x05names\x18\x02 \x03(\tB)\xe2\x41\x01\x02\xfa\x41\"\n area120tables.googleapis.com/Row\"\xa8\x01\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x42\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x31.google.area120.tables.v1alpha1.ColumnDescription:7\xea\x41\x34\n\"area120tables.googleapis.com/Table\x12\x0etables/{table}\"\xa9\x02\n\x11\x43olumnDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\x41\n\x06labels\x18\x04 \x03(\x0b\x32+.google.area120.tables.v1alpha1.LabeledItemB\x04\xe2\x41\x01\x01\x12W\n\x14relationship_details\x18\x05 \x01(\x0b\x32\x33.google.area120.tables.v1alpha1.RelationshipDetailsB\x04\xe2\x41\x01\x01\x12K\n\x0elookup_details\x18\x06 \x01(\x0b\x32-.google.area120.tables.v1alpha1.LookupDetailsB\x04\xe2\x41\x01\x01\"\'\n\x0bLabeledItem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"+\n\x13RelationshipDetails\x12\x14\n\x0clinked_table\x18\x01 \x01(\t\"L\n\rLookupDetails\x12\x1b\n\x13relationship_column\x18\x01 \x01(\t\x12\x1e\n\x16relationship_column_id\x18\x02 \x01(\t\"\xdd\x01\n\x03Row\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x06values\x18\x02 \x03(\x0b\x32/.google.area120.tables.v1alpha1.Row.ValuesEntry\x1a\x45\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01:@\xea\x41=\n area120tables.googleapis.com/Row\x12\x19tables/{table}/rows/{row}\"\xab\x01\n\tWorkspace\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x35\n\x06tables\x18\x03 \x03(\x0b\x32%.google.area120.tables.v1alpha1.Table:C\xea\x41@\n&area120tables.googleapis.com/Workspace\x12\x16workspaces/{workspace}*0\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43OLUMN_ID_VIEW\x10\x01\x32\xbc\x11\n\rTablesService\x12\x8c\x01\n\x08GetTable\x12/.google.area120.tables.v1alpha1.GetTableRequest\x1a%.google.area120.tables.v1alpha1.Table\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1alpha1/{name=tables/*}\x12\x8d\x01\n\nListTables\x12\x31.google.area120.tables.v1alpha1.ListTablesRequest\x1a\x32.google.area120.tables.v1alpha1.ListTablesResponse\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/v1alpha1/tables\x12\x9c\x01\n\x0cGetWorkspace\x12\x33.google.area120.tables.v1alpha1.GetWorkspaceRequest\x1a).google.area120.tables.v1alpha1.Workspace\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1alpha1/{name=workspaces/*}\x12\x9d\x01\n\x0eListWorkspaces\x12\x35.google.area120.tables.v1alpha1.ListWorkspacesRequest\x1a\x36.google.area120.tables.v1alpha1.ListWorkspacesResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/v1alpha1/workspaces\x12\x8d\x01\n\x06GetRow\x12-.google.area120.tables.v1alpha1.GetRowRequest\x1a#.google.area120.tables.v1alpha1.Row\"/\xda\x41\x04name\x82\xd3\xe4\x93\x02\"\x12 /v1alpha1/{name=tables/*/rows/*}\x12\xa0\x01\n\x08ListRows\x12/.google.area120.tables.v1alpha1.ListRowsRequest\x1a\x30.google.area120.tables.v1alpha1.ListRowsResponse\"1\xda\x41\x06parent\x82\xd3\xe4\x93\x02\"\x12 /v1alpha1/{parent=tables/*}/rows\x12\x9e\x01\n\tCreateRow\x12\x30.google.area120.tables.v1alpha1.CreateRowRequest\x1a#.google.area120.tables.v1alpha1.Row\":\xda\x41\nparent,row\x82\xd3\xe4\x93\x02\'\" /v1alpha1/{parent=tables/*}/rows:\x03row\x12\xbb\x01\n\x0f\x42\x61tchCreateRows\x12\x36.google.area120.tables.v1alpha1.BatchCreateRowsRequest\x1a\x37.google.area120.tables.v1alpha1.BatchCreateRowsResponse\"7\x82\xd3\xe4\x93\x02\x31\",/v1alpha1/{parent=tables/*}/rows:batchCreate:\x01*\x12\xa7\x01\n\tUpdateRow\x12\x30.google.area120.tables.v1alpha1.UpdateRowRequest\x1a#.google.area120.tables.v1alpha1.Row\"C\xda\x41\x0frow,update_mask\x82\xd3\xe4\x93\x02+2$/v1alpha1/{row.name=tables/*/rows/*}:\x03row\x12\xbb\x01\n\x0f\x42\x61tchUpdateRows\x12\x36.google.area120.tables.v1alpha1.BatchUpdateRowsRequest\x1a\x37.google.area120.tables.v1alpha1.BatchUpdateRowsResponse\"7\x82\xd3\xe4\x93\x02\x31\",/v1alpha1/{parent=tables/*}/rows:batchUpdate:\x01*\x12\x86\x01\n\tDeleteRow\x12\x30.google.area120.tables.v1alpha1.DeleteRowRequest\x1a\x16.google.protobuf.Empty\"/\xda\x41\x04name\x82\xd3\xe4\x93\x02\"* /v1alpha1/{name=tables/*/rows/*}\x12\x9a\x01\n\x0f\x42\x61tchDeleteRows\x12\x36.google.area120.tables.v1alpha1.BatchDeleteRowsRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\x93\x02\x31\",/v1alpha1/{parent=tables/*}/rows:batchDelete:\x01*\x1a\xac\x02\xca\x41\x1c\x61rea120tables.googleapis.com\xd2\x41\x89\x02https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/drive.file,https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/spreadsheets.readonly,https://www.googleapis.com/auth/tablesBu\n\"com.google.area120.tables.v1alpha1B\x0bTablesProtoP\x01Z@cloud.google.com/go/area120/tables/apiv1alpha1/tablespb;tablespbb\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Area120 - module Tables - module V1alpha1 - GetTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.GetTableRequest").msgclass - ListTablesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.ListTablesRequest").msgclass - ListTablesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.ListTablesResponse").msgclass - GetWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.GetWorkspaceRequest").msgclass - ListWorkspacesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.ListWorkspacesRequest").msgclass - ListWorkspacesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.ListWorkspacesResponse").msgclass - GetRowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.GetRowRequest").msgclass - ListRowsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.ListRowsRequest").msgclass - ListRowsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.ListRowsResponse").msgclass - CreateRowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.CreateRowRequest").msgclass - BatchCreateRowsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.BatchCreateRowsRequest").msgclass - BatchCreateRowsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.BatchCreateRowsResponse").msgclass - UpdateRowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.UpdateRowRequest").msgclass - BatchUpdateRowsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.BatchUpdateRowsRequest").msgclass - BatchUpdateRowsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.BatchUpdateRowsResponse").msgclass - DeleteRowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.DeleteRowRequest").msgclass - BatchDeleteRowsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.BatchDeleteRowsRequest").msgclass - Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.Table").msgclass - ColumnDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.ColumnDescription").msgclass - LabeledItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.LabeledItem").msgclass - RelationshipDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.RelationshipDetails").msgclass - LookupDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.LookupDetails").msgclass - Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.Row").msgclass - Workspace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.Workspace").msgclass - View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.area120.tables.v1alpha1.View").enummodule - end - end - end -end diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service.rb deleted file mode 100644 index 2cf5f76ce119..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/area120/tables/v1alpha1/version" - -require "google/area120/tables/v1alpha1/tables_service/credentials" -require "google/area120/tables/v1alpha1/tables_service/paths" -require "google/area120/tables/v1alpha1/tables_service/client" -require "google/area120/tables/v1alpha1/tables_service/rest" - -module Google - module Area120 - module Tables - module V1alpha1 - ## - # The Tables Service provides an API for reading and updating tables. - # It defines the following resource model: - # - # - The API has a collection of {::Google::Area120::Tables::V1alpha1::Table Table} - # resources, named `tables/*` - # - # - Each Table has a collection of {::Google::Area120::Tables::V1alpha1::Row Row} - # resources, named `tables/*/rows/*` - # - # - The API has a collection of - # {::Google::Area120::Tables::V1alpha1::Workspace Workspace} - # resources, named `workspaces/*`. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/area120/tables/v1alpha1/tables_service" - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/area120/tables/v1alpha1/tables_service/rest" - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - module TablesService - end - end - end - end -end - -helper_path = ::File.join __dir__, "tables_service", "helpers.rb" -require "google/area120/tables/v1alpha1/tables_service/helpers" if ::File.file? helper_path diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/client.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/client.rb deleted file mode 100644 index 9f16ba9ae4d1..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/client.rb +++ /dev/null @@ -1,1604 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/area120/tables/v1alpha1/tables_pb" - -module Google - module Area120 - module Tables - module V1alpha1 - module TablesService - ## - # Client for the TablesService service. - # - # The Tables Service provides an API for reading and updating tables. - # It defines the following resource model: - # - # - The API has a collection of {::Google::Area120::Tables::V1alpha1::Table Table} - # resources, named `tables/*` - # - # - Each Table has a collection of {::Google::Area120::Tables::V1alpha1::Row Row} - # resources, named `tables/*/rows/*` - # - # - The API has a collection of - # {::Google::Area120::Tables::V1alpha1::Workspace Workspace} - # resources, named `workspaces/*`. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "area120tables.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :tables_service_stub - - ## - # Configure the TablesService Client class. - # - # See {::Google::Area120::Tables::V1alpha1::TablesService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all TablesService clients - # ::Google::Area120::Tables::V1alpha1::TablesService::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", "Area120", "Tables", "V1alpha1"] - 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.timeout = 60.0 - default_config.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_table.timeout = 60.0 - - default_config.rpcs.list_tables.timeout = 60.0 - - default_config.rpcs.get_workspace.timeout = 60.0 - - default_config.rpcs.list_workspaces.timeout = 60.0 - - default_config.rpcs.get_row.timeout = 60.0 - - default_config.rpcs.list_rows.timeout = 60.0 - - default_config.rpcs.create_row.timeout = 60.0 - - default_config.rpcs.batch_create_rows.timeout = 60.0 - - default_config.rpcs.update_row.timeout = 60.0 - - default_config.rpcs.batch_update_rows.timeout = 60.0 - - default_config.rpcs.delete_row.timeout = 60.0 - - default_config.rpcs.batch_delete_rows.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the TablesService 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::Area120::Tables::V1alpha1::TablesService::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 - @tables_service_stub.universe_domain - end - - ## - # Create a new TablesService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the TablesService 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/area120/tables/v1alpha1/tables_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 - - @tables_service_stub = ::Gapic::ServiceStub.new( - ::Google::Area120::Tables::V1alpha1::TablesService::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 - ) - - @tables_service_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 - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @tables_service_stub.logger - end - - # Service calls - - ## - # Gets a table. Returns NOT_FOUND if the table does not exist. - # - # @overload get_table(request, options = nil) - # Pass arguments to `get_table` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::GetTableRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::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) - # 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 name of the table to retrieve. - # Format: tables/\\{table} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Area120::Tables::V1alpha1::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Area120::Tables::V1alpha1::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::GetTableRequest.new - # - # # Call the get_table method. - # result = client.get_table request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_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 - - @tables_service_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 - - ## - # Lists tables for the user. - # - # @overload list_tables(request, options = nil) - # Pass arguments to `list_tables` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::ListTablesRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::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(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 page_size [::Integer] - # The maximum number of tables to return. The service may return fewer than - # this value. - # - # If unspecified, at most 20 tables are returned. The maximum value is 100; - # values above 100 are coerced to 100. - # @param page_token [::String] - # A page token, received from a previous `ListTables` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListTables` 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::Area120::Tables::V1alpha1::Table>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Table>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::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.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 - - @tables_service_stub.call_rpc :list_tables, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @tables_service_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 a workspace. Returns NOT_FOUND if the workspace does not exist. - # - # @overload get_workspace(request, options = nil) - # Pass arguments to `get_workspace` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_workspace(name: nil) - # Pass arguments to `get_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To 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 name of the workspace to retrieve. - # Format: workspaces/\\{workspace} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Area120::Tables::V1alpha1::Workspace] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Area120::Tables::V1alpha1::Workspace] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::GetWorkspaceRequest.new - # - # # Call the get_workspace method. - # result = client.get_workspace request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::Workspace. - # p result - # - def get_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest - - # Converts hash and nil to 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_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_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_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :get_workspace, request, 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 workspaces for the user. - # - # @overload list_workspaces(request, options = nil) - # Pass arguments to `list_workspaces` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_workspaces(page_size: nil, page_token: nil) - # Pass arguments to `list_workspaces` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param page_size [::Integer] - # The maximum number of workspaces to return. The service may return fewer - # than this value. - # - # If unspecified, at most 10 workspaces are returned. The maximum value is - # 25; values above 25 are coerced to 25. - # @param page_token [::String] - # A page token, received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces` 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::Area120::Tables::V1alpha1::Workspace>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Workspace>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::ListWorkspacesRequest.new - # - # # Call the list_workspaces method. - # result = client.list_workspaces 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::Area120::Tables::V1alpha1::Workspace. - # p item - # end - # - def list_workspaces request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest - - # Converts hash and nil to 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_workspaces.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::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.list_workspaces.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workspaces.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :list_workspaces, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @tables_service_stub, :list_workspaces, 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 a row. Returns NOT_FOUND if the row does not exist in the table. - # - # @overload get_row(request, options = nil) - # Pass arguments to `get_row` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::GetRowRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::GetRowRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_row(name: nil, view: nil) - # Pass arguments to `get_row` via keyword arguments. Note that at - # least one keyword argument is required. To 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 name of the row to retrieve. - # Format: tables/\\{table}/rows/\\{row} - # @param view [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::GetRowRequest.new - # - # # Call the get_row method. - # result = client.get_row request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - # p result - # - def get_row request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::GetRowRequest - - # Converts hash and nil to 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_row.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_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_row.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_row.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :get_row, request, 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 rows in a table. Returns NOT_FOUND if the table does not exist. - # - # @overload list_rows(request, options = nil) - # Pass arguments to `list_rows` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::ListRowsRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::ListRowsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_rows(parent: nil, page_size: nil, page_token: nil, view: nil, filter: nil) - # Pass arguments to `list_rows` via keyword arguments. Note that at - # least one keyword argument is 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 table. - # Format: tables/\\{table} - # @param page_size [::Integer] - # The maximum number of rows to return. The service may return fewer than - # this value. - # - # If unspecified, at most 50 rows are returned. The maximum value is 1,000; - # values above 1,000 are coerced to 1,000. - # @param page_token [::String] - # A page token, received from a previous `ListRows` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRows` must match - # the call that provided the page token. - # @param view [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # @param filter [::String] - # Optional. Raw text query to search for in rows of the table. - # Special characters must be escaped. Logical operators and field specific - # filtering not supported. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Row>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Row>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::ListRowsRequest.new - # - # # Call the list_rows method. - # result = client.list_rows 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::Area120::Tables::V1alpha1::Row. - # p item - # end - # - def list_rows request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::ListRowsRequest - - # Converts hash and nil to 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_rows.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-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_rows.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_rows.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :list_rows, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @tables_service_stub, :list_rows, 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 row. - # - # @overload create_row(request, options = nil) - # Pass arguments to `create_row` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::CreateRowRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::CreateRowRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_row(parent: nil, row: nil, view: nil) - # Pass arguments to `create_row` via keyword arguments. Note that at - # least one keyword argument is 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 table where this row will be created. - # Format: tables/\\{table} - # @param row [::Google::Area120::Tables::V1alpha1::Row, ::Hash] - # Required. The row to create. - # @param view [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::CreateRowRequest.new - # - # # Call the create_row method. - # result = client.create_row request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - # p result - # - def create_row request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::CreateRowRequest - - # Converts hash and nil to 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_row.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-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_row.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_row.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :create_row, request, 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 multiple rows. - # - # @overload batch_create_rows(request, options = nil) - # Pass arguments to `batch_create_rows` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload batch_create_rows(parent: nil, requests: nil) - # Pass arguments to `batch_create_rows` via keyword arguments. Note that at - # least one keyword argument is 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 table where the rows will be created. - # Format: tables/\\{table} - # @param requests [::Array<::Google::Area120::Tables::V1alpha1::CreateRowRequest, ::Hash>] - # Required. The request message specifying the rows to create. - # - # A maximum of 500 rows can be created in a single batch. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest.new - # - # # Call the batch_create_rows method. - # result = client.batch_create_rows request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse. - # p result - # - def batch_create_rows request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.batch_create_rows.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-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.batch_create_rows.timeout, - metadata: metadata, - retry_policy: @config.rpcs.batch_create_rows.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :batch_create_rows, request, 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 row. - # - # @overload update_row(request, options = nil) - # Pass arguments to `update_row` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::UpdateRowRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::UpdateRowRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_row(row: nil, update_mask: nil, view: nil) - # Pass arguments to `update_row` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param row [::Google::Area120::Tables::V1alpha1::Row, ::Hash] - # Required. The row to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # The list of fields to update. - # @param view [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::UpdateRowRequest.new - # - # # Call the update_row method. - # result = client.update_row request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - # p result - # - def update_row request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::UpdateRowRequest - - # Converts hash and nil to 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_row.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.row&.name - header_params["row.name"] = request.row.name - end - - request_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_row.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_row.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :update_row, request, 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 multiple rows. - # - # @overload batch_update_rows(request, options = nil) - # Pass arguments to `batch_update_rows` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload batch_update_rows(parent: nil, requests: nil) - # Pass arguments to `batch_update_rows` via keyword arguments. Note that at - # least one keyword argument is 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 table shared by all rows being updated. - # Format: tables/\\{table} - # @param requests [::Array<::Google::Area120::Tables::V1alpha1::UpdateRowRequest, ::Hash>] - # Required. The request messages specifying the rows to update. - # - # A maximum of 500 rows can be modified in a single batch. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest.new - # - # # Call the batch_update_rows method. - # result = client.batch_update_rows request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse. - # p result - # - def batch_update_rows request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.batch_update_rows.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-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.batch_update_rows.timeout, - metadata: metadata, - retry_policy: @config.rpcs.batch_update_rows.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :batch_update_rows, request, 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 row. - # - # @overload delete_row(request, options = nil) - # Pass arguments to `delete_row` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::DeleteRowRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::DeleteRowRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_row(name: nil) - # Pass arguments to `delete_row` via keyword arguments. Note that at - # least one keyword argument is required. To 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 name of the row to delete. - # Format: tables/\\{table}/rows/\\{row} - # - # @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/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::DeleteRowRequest.new - # - # # Call the delete_row method. - # result = client.delete_row request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_row request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::DeleteRowRequest - - # Converts hash and nil to 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_row.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_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_row.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_row.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :delete_row, request, 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 multiple rows. - # - # @overload batch_delete_rows(request, options = nil) - # Pass arguments to `batch_delete_rows` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload batch_delete_rows(parent: nil, names: nil) - # Pass arguments to `batch_delete_rows` via keyword arguments. Note that at - # least one keyword argument is 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 table shared by all rows being deleted. - # Format: tables/\\{table} - # @param names [::Array<::String>] - # Required. The names of the rows to delete. All rows must belong to the parent table - # or else the entire batch will fail. A maximum of 500 rows can be deleted - # in a batch. - # Format: tables/\\{table}/rows/\\{row} - # - # @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/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest.new - # - # # Call the batch_delete_rows method. - # result = client.batch_delete_rows request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def batch_delete_rows request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.batch_delete_rows.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION - metadata[:"x-goog-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.batch_delete_rows.timeout, - metadata: metadata, - retry_policy: @config.rpcs.batch_delete_rows.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.call_rpc :batch_delete_rows, request, 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 TablesService API. - # - # This class represents the configuration for TablesService, - # 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::Area120::Tables::V1alpha1::TablesService::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 - # # get_table to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Area120::Tables::V1alpha1::TablesService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_table.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_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::Area120::Tables::V1alpha1::TablesService::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. - # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. - # * `: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 = "area120tables.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 TablesService 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. - # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_table` - # @return [::Gapic::Config::Method] - # - attr_reader :get_table - ## - # RPC-specific configuration for `list_tables` - # @return [::Gapic::Config::Method] - # - attr_reader :list_tables - ## - # RPC-specific configuration for `get_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workspace - ## - # RPC-specific configuration for `list_workspaces` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workspaces - ## - # RPC-specific configuration for `get_row` - # @return [::Gapic::Config::Method] - # - attr_reader :get_row - ## - # RPC-specific configuration for `list_rows` - # @return [::Gapic::Config::Method] - # - attr_reader :list_rows - ## - # RPC-specific configuration for `create_row` - # @return [::Gapic::Config::Method] - # - attr_reader :create_row - ## - # RPC-specific configuration for `batch_create_rows` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_create_rows - ## - # RPC-specific configuration for `update_row` - # @return [::Gapic::Config::Method] - # - attr_reader :update_row - ## - # RPC-specific configuration for `batch_update_rows` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_update_rows - ## - # RPC-specific configuration for `delete_row` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_row - ## - # RPC-specific configuration for `batch_delete_rows` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_delete_rows - - # @private - def initialize parent_rpcs = nil - get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table - @get_table = ::Gapic::Config::Method.new get_table_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_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace - @get_workspace = ::Gapic::Config::Method.new get_workspace_config - list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces - @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config - get_row_config = parent_rpcs.get_row if parent_rpcs.respond_to? :get_row - @get_row = ::Gapic::Config::Method.new get_row_config - list_rows_config = parent_rpcs.list_rows if parent_rpcs.respond_to? :list_rows - @list_rows = ::Gapic::Config::Method.new list_rows_config - create_row_config = parent_rpcs.create_row if parent_rpcs.respond_to? :create_row - @create_row = ::Gapic::Config::Method.new create_row_config - batch_create_rows_config = parent_rpcs.batch_create_rows if parent_rpcs.respond_to? :batch_create_rows - @batch_create_rows = ::Gapic::Config::Method.new batch_create_rows_config - update_row_config = parent_rpcs.update_row if parent_rpcs.respond_to? :update_row - @update_row = ::Gapic::Config::Method.new update_row_config - batch_update_rows_config = parent_rpcs.batch_update_rows if parent_rpcs.respond_to? :batch_update_rows - @batch_update_rows = ::Gapic::Config::Method.new batch_update_rows_config - delete_row_config = parent_rpcs.delete_row if parent_rpcs.respond_to? :delete_row - @delete_row = ::Gapic::Config::Method.new delete_row_config - batch_delete_rows_config = parent_rpcs.batch_delete_rows if parent_rpcs.respond_to? :batch_delete_rows - @batch_delete_rows = ::Gapic::Config::Method.new batch_delete_rows_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/credentials.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/credentials.rb deleted file mode 100644 index ecdc74852d10..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/credentials.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 "googleauth" - -module Google - module Area120 - module Tables - module V1alpha1 - module TablesService - # Credentials for the TablesService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/drive", - "https://www.googleapis.com/auth/drive.file", - "https://www.googleapis.com/auth/drive.readonly", - "https://www.googleapis.com/auth/spreadsheets", - "https://www.googleapis.com/auth/spreadsheets.readonly", - "https://www.googleapis.com/auth/tables" - ] - self.env_vars = [ - "AREA120_TABLES_CREDENTIALS", - "AREA120_TABLES_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "AREA120_TABLES_CREDENTIALS_JSON", - "AREA120_TABLES_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 diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/paths.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/paths.rb deleted file mode 100644 index 68d1e6ad3d7f..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/paths.rb +++ /dev/null @@ -1,78 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 Area120 - module Tables - module V1alpha1 - module TablesService - # Path helper methods for the TablesService API. - module Paths - ## - # Create a fully-qualified Row resource string. - # - # The resource will be in the following format: - # - # `tables/{table}/rows/{row}` - # - # @param table [String] - # @param row [String] - # - # @return [::String] - def row_path table:, row: - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "tables/#{table}/rows/#{row}" - end - - ## - # Create a fully-qualified Table resource string. - # - # The resource will be in the following format: - # - # `tables/{table}` - # - # @param table [String] - # - # @return [::String] - def table_path table: - "tables/#{table}" - end - - ## - # Create a fully-qualified Workspace resource string. - # - # The resource will be in the following format: - # - # `workspaces/{workspace}` - # - # @param workspace [String] - # - # @return [::String] - def workspace_path workspace: - "workspaces/#{workspace}" - end - - extend self - end - end - end - end - end -end diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest.rb deleted file mode 100644 index d848178b5864..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest.rb +++ /dev/null @@ -1,63 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/area120/tables/v1alpha1/version" - -require "google/area120/tables/v1alpha1/tables_service/credentials" -require "google/area120/tables/v1alpha1/tables_service/paths" -require "google/area120/tables/v1alpha1/tables_service/rest/client" - -module Google - module Area120 - module Tables - module V1alpha1 - ## - # The Tables Service provides an API for reading and updating tables. - # It defines the following resource model: - # - # - The API has a collection of {::Google::Area120::Tables::V1alpha1::Table Table} - # resources, named `tables/*` - # - # - Each Table has a collection of {::Google::Area120::Tables::V1alpha1::Row Row} - # resources, named `tables/*/rows/*` - # - # - The API has a collection of - # {::Google::Area120::Tables::V1alpha1::Workspace Workspace} - # resources, named `workspaces/*`. - # - # To load this service and instantiate a REST client: - # - # require "google/area120/tables/v1alpha1/tables_service/rest" - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - module TablesService - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/area120/tables/v1alpha1/tables_service/rest/helpers" if ::File.file? helper_path diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest/client.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest/client.rb deleted file mode 100644 index a7726f27daa1..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest/client.rb +++ /dev/null @@ -1,1493 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/area120/tables/v1alpha1/tables_pb" -require "google/area120/tables/v1alpha1/tables_service/rest/service_stub" - -module Google - module Area120 - module Tables - module V1alpha1 - module TablesService - module Rest - ## - # REST client for the TablesService service. - # - # The Tables Service provides an API for reading and updating tables. - # It defines the following resource model: - # - # - The API has a collection of {::Google::Area120::Tables::V1alpha1::Table Table} - # resources, named `tables/*` - # - # - Each Table has a collection of {::Google::Area120::Tables::V1alpha1::Row Row} - # resources, named `tables/*/rows/*` - # - # - The API has a collection of - # {::Google::Area120::Tables::V1alpha1::Workspace Workspace} - # resources, named `workspaces/*`. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "area120tables.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :tables_service_stub - - ## - # Configure the TablesService Client class. - # - # See {::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all TablesService clients - # ::Google::Area120::Tables::V1alpha1::TablesService::Rest::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", "Area120", "Tables", "V1alpha1"] - 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.timeout = 60.0 - default_config.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_table.timeout = 60.0 - - default_config.rpcs.list_tables.timeout = 60.0 - - default_config.rpcs.get_workspace.timeout = 60.0 - - default_config.rpcs.list_workspaces.timeout = 60.0 - - default_config.rpcs.get_row.timeout = 60.0 - - default_config.rpcs.list_rows.timeout = 60.0 - - default_config.rpcs.create_row.timeout = 60.0 - - default_config.rpcs.batch_create_rows.timeout = 60.0 - - default_config.rpcs.update_row.timeout = 60.0 - - default_config.rpcs.batch_update_rows.timeout = 60.0 - - default_config.rpcs.delete_row.timeout = 60.0 - - default_config.rpcs.batch_delete_rows.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the TablesService 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::Area120::Tables::V1alpha1::TablesService::Rest::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 - @tables_service_stub.universe_domain - end - - ## - # Create a new TablesService REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the TablesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # 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 - - @tables_service_stub = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @tables_service_stub.logger(stub: true)&.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 - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @tables_service_stub.logger - end - - # Service calls - - ## - # Gets a table. Returns NOT_FOUND if the table does not exist. - # - # @overload get_table(request, options = nil) - # Pass arguments to `get_table` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::GetTableRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::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) - # 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 name of the table to retrieve. - # Format: tables/\\{table} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Table] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Table] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::GetTableRequest.new - # - # # Call the get_table method. - # result = client.get_table request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::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 - call_metadata = @config.rpcs.get_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_table.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.get_table request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists tables for the user. - # - # @overload list_tables(request, options = nil) - # Pass arguments to `list_tables` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::ListTablesRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::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(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 page_size [::Integer] - # The maximum number of tables to return. The service may return fewer than - # this value. - # - # If unspecified, at most 20 tables are returned. The maximum value is 100; - # values above 100 are coerced to 100. - # @param page_token [::String] - # A page token, received from a previous `ListTables` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListTables` must match - # the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Table>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Table>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::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 - call_metadata = @config.rpcs.list_tables.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_tables.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_tables.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.list_tables request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @tables_service_stub, :list_tables, "tables", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets a workspace. Returns NOT_FOUND if the workspace does not exist. - # - # @overload get_workspace(request, options = nil) - # Pass arguments to `get_workspace` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_workspace(name: nil) - # Pass arguments to `get_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To 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 name of the workspace to retrieve. - # Format: workspaces/\\{workspace} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Workspace] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::GetWorkspaceRequest.new - # - # # Call the get_workspace method. - # result = client.get_workspace request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::Workspace. - # p result - # - def get_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.get_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists workspaces for the user. - # - # @overload list_workspaces(request, options = nil) - # Pass arguments to `list_workspaces` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_workspaces(page_size: nil, page_token: nil) - # Pass arguments to `list_workspaces` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param page_size [::Integer] - # The maximum number of workspaces to return. The service may return fewer - # than this value. - # - # If unspecified, at most 10 workspaces are returned. The maximum value is - # 25; values above 25 are coerced to 25. - # @param page_token [::String] - # A page token, received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Workspace>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Workspace>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::ListWorkspacesRequest.new - # - # # Call the list_workspaces method. - # result = client.list_workspaces 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::Area120::Tables::V1alpha1::Workspace. - # p item - # end - # - def list_workspaces request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workspaces.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workspaces.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.list_workspaces request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @tables_service_stub, :list_workspaces, "workspaces", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets a row. Returns NOT_FOUND if the row does not exist in the table. - # - # @overload get_row(request, options = nil) - # Pass arguments to `get_row` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::GetRowRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::GetRowRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_row(name: nil, view: nil) - # Pass arguments to `get_row` via keyword arguments. Note that at - # least one keyword argument is required. To 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 name of the row to retrieve. - # Format: tables/\\{table}/rows/\\{row} - # @param view [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::GetRowRequest.new - # - # # Call the get_row method. - # result = client.get_row request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - # p result - # - def get_row request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::GetRowRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_row.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_row.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_row.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.get_row request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists rows in a table. Returns NOT_FOUND if the table does not exist. - # - # @overload list_rows(request, options = nil) - # Pass arguments to `list_rows` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::ListRowsRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::ListRowsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_rows(parent: nil, page_size: nil, page_token: nil, view: nil, filter: nil) - # Pass arguments to `list_rows` via keyword arguments. Note that at - # least one keyword argument is 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 table. - # Format: tables/\\{table} - # @param page_size [::Integer] - # The maximum number of rows to return. The service may return fewer than - # this value. - # - # If unspecified, at most 50 rows are returned. The maximum value is 1,000; - # values above 1,000 are coerced to 1,000. - # @param page_token [::String] - # A page token, received from a previous `ListRows` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRows` must match - # the call that provided the page token. - # @param view [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # @param filter [::String] - # Optional. Raw text query to search for in rows of the table. - # Special characters must be escaped. Logical operators and field specific - # filtering not supported. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Row>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Area120::Tables::V1alpha1::Row>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::ListRowsRequest.new - # - # # Call the list_rows method. - # result = client.list_rows 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::Area120::Tables::V1alpha1::Row. - # p item - # end - # - def list_rows request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::ListRowsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_rows.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_rows.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_rows.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.list_rows request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @tables_service_stub, :list_rows, "rows", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a row. - # - # @overload create_row(request, options = nil) - # Pass arguments to `create_row` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::CreateRowRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::CreateRowRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_row(parent: nil, row: nil, view: nil) - # Pass arguments to `create_row` via keyword arguments. Note that at - # least one keyword argument is 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 table where this row will be created. - # Format: tables/\\{table} - # @param row [::Google::Area120::Tables::V1alpha1::Row, ::Hash] - # Required. The row to create. - # @param view [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::CreateRowRequest.new - # - # # Call the create_row method. - # result = client.create_row request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - # p result - # - def create_row request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::CreateRowRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_row.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_row.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_row.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.create_row request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates multiple rows. - # - # @overload batch_create_rows(request, options = nil) - # Pass arguments to `batch_create_rows` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload batch_create_rows(parent: nil, requests: nil) - # Pass arguments to `batch_create_rows` via keyword arguments. Note that at - # least one keyword argument is 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 table where the rows will be created. - # Format: tables/\\{table} - # @param requests [::Array<::Google::Area120::Tables::V1alpha1::CreateRowRequest, ::Hash>] - # Required. The request message specifying the rows to create. - # - # A maximum of 500 rows can be created in a single batch. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest.new - # - # # Call the batch_create_rows method. - # result = client.batch_create_rows request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse. - # p result - # - def batch_create_rows request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.batch_create_rows.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.batch_create_rows.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.batch_create_rows.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.batch_create_rows request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a row. - # - # @overload update_row(request, options = nil) - # Pass arguments to `update_row` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::UpdateRowRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::UpdateRowRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_row(row: nil, update_mask: nil, view: nil) - # Pass arguments to `update_row` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param row [::Google::Area120::Tables::V1alpha1::Row, ::Hash] - # Required. The row to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # The list of fields to update. - # @param view [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::UpdateRowRequest.new - # - # # Call the update_row method. - # result = client.update_row request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - # p result - # - def update_row request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::UpdateRowRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_row.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_row.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_row.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.update_row request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates multiple rows. - # - # @overload batch_update_rows(request, options = nil) - # Pass arguments to `batch_update_rows` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload batch_update_rows(parent: nil, requests: nil) - # Pass arguments to `batch_update_rows` via keyword arguments. Note that at - # least one keyword argument is 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 table shared by all rows being updated. - # Format: tables/\\{table} - # @param requests [::Array<::Google::Area120::Tables::V1alpha1::UpdateRowRequest, ::Hash>] - # Required. The request messages specifying the rows to update. - # - # A maximum of 500 rows can be modified in a single batch. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest.new - # - # # Call the batch_update_rows method. - # result = client.batch_update_rows request - # - # # The returned object is of type Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse. - # p result - # - def batch_update_rows request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.batch_update_rows.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.batch_update_rows.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.batch_update_rows.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.batch_update_rows request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a row. - # - # @overload delete_row(request, options = nil) - # Pass arguments to `delete_row` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::DeleteRowRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::DeleteRowRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter 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_row(name: nil) - # Pass arguments to `delete_row` via keyword arguments. Note that at - # least one keyword argument is required. To 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 name of the row to delete. - # Format: tables/\\{table}/rows/\\{row} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::DeleteRowRequest.new - # - # # Call the delete_row method. - # result = client.delete_row request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_row request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::DeleteRowRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_row.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_row.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_row.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.delete_row request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes multiple rows. - # - # @overload batch_delete_rows(request, options = nil) - # Pass arguments to `batch_delete_rows` via a request object, either of type - # {::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest} or an equivalent Hash. - # - # @param request [::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload batch_delete_rows(parent: nil, names: nil) - # Pass arguments to `batch_delete_rows` via keyword arguments. Note that at - # least one keyword argument is 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 table shared by all rows being deleted. - # Format: tables/\\{table} - # @param names [::Array<::String>] - # Required. The names of the rows to delete. All rows must belong to the parent table - # or else the entire batch will fail. A maximum of 500 rows can be deleted - # in a batch. - # Format: tables/\\{table}/rows/\\{row} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/area120/tables/v1alpha1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest.new - # - # # Call the batch_delete_rows method. - # result = client.batch_delete_rows request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def batch_delete_rows request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.batch_delete_rows.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.batch_delete_rows.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.batch_delete_rows.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @tables_service_stub.batch_delete_rows request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the TablesService REST API. - # - # This class represents the configuration for TablesService REST, - # 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::Area120::Tables::V1alpha1::TablesService::Rest::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 - # # get_table to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_table.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_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: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`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)) - # * (`nil`) indicating no credentials - # - # 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] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional 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. - # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. - # * `: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 = "area120tables.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.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 :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 RPC class for the TablesService 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 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. - # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_table` - # @return [::Gapic::Config::Method] - # - attr_reader :get_table - ## - # RPC-specific configuration for `list_tables` - # @return [::Gapic::Config::Method] - # - attr_reader :list_tables - ## - # RPC-specific configuration for `get_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workspace - ## - # RPC-specific configuration for `list_workspaces` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workspaces - ## - # RPC-specific configuration for `get_row` - # @return [::Gapic::Config::Method] - # - attr_reader :get_row - ## - # RPC-specific configuration for `list_rows` - # @return [::Gapic::Config::Method] - # - attr_reader :list_rows - ## - # RPC-specific configuration for `create_row` - # @return [::Gapic::Config::Method] - # - attr_reader :create_row - ## - # RPC-specific configuration for `batch_create_rows` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_create_rows - ## - # RPC-specific configuration for `update_row` - # @return [::Gapic::Config::Method] - # - attr_reader :update_row - ## - # RPC-specific configuration for `batch_update_rows` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_update_rows - ## - # RPC-specific configuration for `delete_row` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_row - ## - # RPC-specific configuration for `batch_delete_rows` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_delete_rows - - # @private - def initialize parent_rpcs = nil - get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table - @get_table = ::Gapic::Config::Method.new get_table_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_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace - @get_workspace = ::Gapic::Config::Method.new get_workspace_config - list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces - @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config - get_row_config = parent_rpcs.get_row if parent_rpcs.respond_to? :get_row - @get_row = ::Gapic::Config::Method.new get_row_config - list_rows_config = parent_rpcs.list_rows if parent_rpcs.respond_to? :list_rows - @list_rows = ::Gapic::Config::Method.new list_rows_config - create_row_config = parent_rpcs.create_row if parent_rpcs.respond_to? :create_row - @create_row = ::Gapic::Config::Method.new create_row_config - batch_create_rows_config = parent_rpcs.batch_create_rows if parent_rpcs.respond_to? :batch_create_rows - @batch_create_rows = ::Gapic::Config::Method.new batch_create_rows_config - update_row_config = parent_rpcs.update_row if parent_rpcs.respond_to? :update_row - @update_row = ::Gapic::Config::Method.new update_row_config - batch_update_rows_config = parent_rpcs.batch_update_rows if parent_rpcs.respond_to? :batch_update_rows - @batch_update_rows = ::Gapic::Config::Method.new batch_update_rows_config - delete_row_config = parent_rpcs.delete_row if parent_rpcs.respond_to? :delete_row - @delete_row = ::Gapic::Config::Method.new delete_row_config - batch_delete_rows_config = parent_rpcs.batch_delete_rows if parent_rpcs.respond_to? :batch_delete_rows - @batch_delete_rows = ::Gapic::Config::Method.new batch_delete_rows_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest/service_stub.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest/service_stub.rb deleted file mode 100644 index fead279d8878..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_service/rest/service_stub.rb +++ /dev/null @@ -1,814 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/area120/tables/v1alpha1/tables_pb" - -module Google - module Area120 - module Tables - module V1alpha1 - module TablesService - module Rest - ## - # REST service stub for the TablesService service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_table REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::GetTableRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Table] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Table] - # A result object deserialized from the server's reply - def get_table request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_table_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_table", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::Table.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_tables REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::ListTablesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::ListTablesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::ListTablesResponse] - # A result object deserialized from the server's reply - def list_tables request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_tables_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_tables", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::ListTablesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workspace REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Workspace] - # A result object deserialized from the server's reply - def get_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::Workspace.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workspaces REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::ListWorkspacesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::ListWorkspacesResponse] - # A result object deserialized from the server's reply - def list_workspaces request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workspaces", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_row REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::GetRowRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # A result object deserialized from the server's reply - def get_row request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_row_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_row", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::Row.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_rows REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::ListRowsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::ListRowsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::ListRowsResponse] - # A result object deserialized from the server's reply - def list_rows request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_rows_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_rows", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::ListRowsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_row REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::CreateRowRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # A result object deserialized from the server's reply - def create_row request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_row_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_row", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::Row.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the batch_create_rows REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse] - # A result object deserialized from the server's reply - def batch_create_rows request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_rows_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "batch_create_rows", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_row REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::UpdateRowRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::Row] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::Row] - # A result object deserialized from the server's reply - def update_row request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_row_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_row", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::Row.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the batch_update_rows REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse] - # A result object deserialized from the server's reply - def batch_update_rows request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_rows_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "batch_update_rows", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_row REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::DeleteRowRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_row request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_row_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_row", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the batch_delete_rows REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def batch_delete_rows request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_rows_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "batch_delete_rows", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_table REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::GetTableRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_table_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha1/{name}", - matches: [ - ["name", %r{^tables/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_tables REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::ListTablesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_tables_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha1/tables", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workspace REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha1/{name}", - matches: [ - ["name", %r{^workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workspaces REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workspaces_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha1/workspaces", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_row REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::GetRowRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_row_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha1/{name}", - matches: [ - ["name", %r{^tables/[^/]+/rows/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_rows REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::ListRowsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_rows_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha1/{parent}/rows", - matches: [ - ["parent", %r{^tables/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_row REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::CreateRowRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_row_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha1/{parent}/rows", - body: "row", - matches: [ - ["parent", %r{^tables/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the batch_create_rows REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_batch_create_rows_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha1/{parent}/rows:batchCreate", - body: "*", - matches: [ - ["parent", %r{^tables/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_row REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::UpdateRowRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_row_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha1/{row.name}", - body: "row", - matches: [ - ["row.name", %r{^tables/[^/]+/rows/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the batch_update_rows REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_batch_update_rows_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha1/{parent}/rows:batchUpdate", - body: "*", - matches: [ - ["parent", %r{^tables/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_row REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::DeleteRowRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_row_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha1/{name}", - matches: [ - ["name", %r{^tables/[^/]+/rows/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the batch_delete_rows REST call - # - # @param request_pb [::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_batch_delete_rows_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha1/{parent}/rows:batchDelete", - body: "*", - matches: [ - ["parent", %r{^tables/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_services_pb.rb b/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_services_pb.rb deleted file mode 100644 index dc8e11bbcedc..000000000000 --- a/google-area120-tables-v1alpha1/lib/google/area120/tables/v1alpha1/tables_services_pb.rb +++ /dev/null @@ -1,78 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/area120/tables/v1alpha1/tables.proto for package 'google.area120.tables.v1alpha1' -# 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/area120/tables/v1alpha1/tables_pb' - -module Google - module Area120 - module Tables - module V1alpha1 - module TablesService - # The Tables Service provides an API for reading and updating tables. - # It defines the following resource model: - # - # - The API has a collection of [Table][google.area120.tables.v1alpha1.Table] - # resources, named `tables/*` - # - # - Each Table has a collection of [Row][google.area120.tables.v1alpha1.Row] - # resources, named `tables/*/rows/*` - # - # - The API has a collection of - # [Workspace][google.area120.tables.v1alpha1.Workspace] - # resources, named `workspaces/*`. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.area120.tables.v1alpha1.TablesService' - - # Gets a table. Returns NOT_FOUND if the table does not exist. - rpc :GetTable, ::Google::Area120::Tables::V1alpha1::GetTableRequest, ::Google::Area120::Tables::V1alpha1::Table - # Lists tables for the user. - rpc :ListTables, ::Google::Area120::Tables::V1alpha1::ListTablesRequest, ::Google::Area120::Tables::V1alpha1::ListTablesResponse - # Gets a workspace. Returns NOT_FOUND if the workspace does not exist. - rpc :GetWorkspace, ::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest, ::Google::Area120::Tables::V1alpha1::Workspace - # Lists workspaces for the user. - rpc :ListWorkspaces, ::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest, ::Google::Area120::Tables::V1alpha1::ListWorkspacesResponse - # Gets a row. Returns NOT_FOUND if the row does not exist in the table. - rpc :GetRow, ::Google::Area120::Tables::V1alpha1::GetRowRequest, ::Google::Area120::Tables::V1alpha1::Row - # Lists rows in a table. Returns NOT_FOUND if the table does not exist. - rpc :ListRows, ::Google::Area120::Tables::V1alpha1::ListRowsRequest, ::Google::Area120::Tables::V1alpha1::ListRowsResponse - # Creates a row. - rpc :CreateRow, ::Google::Area120::Tables::V1alpha1::CreateRowRequest, ::Google::Area120::Tables::V1alpha1::Row - # Creates multiple rows. - rpc :BatchCreateRows, ::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest, ::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse - # Updates a row. - rpc :UpdateRow, ::Google::Area120::Tables::V1alpha1::UpdateRowRequest, ::Google::Area120::Tables::V1alpha1::Row - # Updates multiple rows. - rpc :BatchUpdateRows, ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest, ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse - # Deletes a row. - rpc :DeleteRow, ::Google::Area120::Tables::V1alpha1::DeleteRowRequest, ::Google::Protobuf::Empty - # Deletes multiple rows. - rpc :BatchDeleteRows, ::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest, ::Google::Protobuf::Empty - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/google-area120-tables-v1alpha1/proto_docs/README.md b/google-area120-tables-v1alpha1/proto_docs/README.md deleted file mode 100644 index 1f2cc97e5883..000000000000 --- a/google-area120-tables-v1alpha1/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Area120 Tables V1ALPHA1 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/google-area120-tables-v1alpha1/proto_docs/google/api/client.rb b/google-area120-tables-v1alpha1/proto_docs/google/api/client.rb deleted file mode 100644 index 3ab0b096d445..000000000000 --- a/google-area120-tables-v1alpha1/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/google-area120-tables-v1alpha1/proto_docs/google/api/field_behavior.rb b/google-area120-tables-v1alpha1/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/google-area120-tables-v1alpha1/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/google-area120-tables-v1alpha1/proto_docs/google/api/launch_stage.rb b/google-area120-tables-v1alpha1/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/google-area120-tables-v1alpha1/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/google-area120-tables-v1alpha1/proto_docs/google/api/resource.rb b/google-area120-tables-v1alpha1/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/google-area120-tables-v1alpha1/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/google-area120-tables-v1alpha1/proto_docs/google/area120/tables/v1alpha1/tables.rb b/google-area120-tables-v1alpha1/proto_docs/google/area120/tables/v1alpha1/tables.rb deleted file mode 100644 index 682a87e6c8f4..000000000000 --- a/google-area120-tables-v1alpha1/proto_docs/google/area120/tables/v1alpha1/tables.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 Area120 - module Tables - module V1alpha1 - # Request message for TablesService.GetTable. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the table to retrieve. - # Format: tables/\\{table} - class GetTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.ListTables. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of tables to return. The service may return fewer than - # this value. - # - # If unspecified, at most 20 tables are returned. The maximum value is 100; - # values above 100 are coerced to 100. - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListTables` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListTables` must match - # the call that provided the page token. - class ListTablesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for TablesService.ListTables. - # @!attribute [rw] tables - # @return [::Array<::Google::Area120::Tables::V1alpha1::Table>] - # The list of tables. - # @!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 empty, there are no subsequent pages. - class ListTablesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.GetWorkspace. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the workspace to retrieve. - # Format: workspaces/\\{workspace} - class GetWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.ListWorkspaces. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of workspaces to return. The service may return fewer - # than this value. - # - # If unspecified, at most 10 workspaces are returned. The maximum value is - # 25; values above 25 are coerced to 25. - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces` must - # match the call that provided the page token. - class ListWorkspacesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for TablesService.ListWorkspaces. - # @!attribute [rw] workspaces - # @return [::Array<::Google::Area120::Tables::V1alpha1::Workspace>] - # The list of workspaces. - # @!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 empty, there are no subsequent pages. - class ListWorkspacesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.GetRow. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the row to retrieve. - # Format: tables/\\{table}/rows/\\{row} - # @!attribute [rw] view - # @return [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - class GetRowRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.ListRows. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent table. - # Format: tables/\\{table} - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of rows to return. The service may return fewer than - # this value. - # - # If unspecified, at most 50 rows are returned. The maximum value is 1,000; - # values above 1,000 are coerced to 1,000. - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListRows` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRows` must match - # the call that provided the page token. - # @!attribute [rw] view - # @return [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - # @!attribute [rw] filter - # @return [::String] - # Optional. Raw text query to search for in rows of the table. - # Special characters must be escaped. Logical operators and field specific - # filtering not supported. - class ListRowsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for TablesService.ListRows. - # @!attribute [rw] rows - # @return [::Array<::Google::Area120::Tables::V1alpha1::Row>] - # The rows 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 empty, there are no subsequent pages. - class ListRowsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.CreateRow. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent table where this row will be created. - # Format: tables/\\{table} - # @!attribute [rw] row - # @return [::Google::Area120::Tables::V1alpha1::Row] - # Required. The row to create. - # @!attribute [rw] view - # @return [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - class CreateRowRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.BatchCreateRows. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent table where the rows will be created. - # Format: tables/\\{table} - # @!attribute [rw] requests - # @return [::Array<::Google::Area120::Tables::V1alpha1::CreateRowRequest>] - # Required. The request message specifying the rows to create. - # - # A maximum of 500 rows can be created in a single batch. - class BatchCreateRowsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for TablesService.BatchCreateRows. - # @!attribute [rw] rows - # @return [::Array<::Google::Area120::Tables::V1alpha1::Row>] - # The created rows. - class BatchCreateRowsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.UpdateRow. - # @!attribute [rw] row - # @return [::Google::Area120::Tables::V1alpha1::Row] - # Required. The row to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # The list of fields to update. - # @!attribute [rw] view - # @return [::Google::Area120::Tables::V1alpha1::View] - # Optional. Column key to use for values in the row. - # Defaults to user entered name. - class UpdateRowRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.BatchUpdateRows. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent table shared by all rows being updated. - # Format: tables/\\{table} - # @!attribute [rw] requests - # @return [::Array<::Google::Area120::Tables::V1alpha1::UpdateRowRequest>] - # Required. The request messages specifying the rows to update. - # - # A maximum of 500 rows can be modified in a single batch. - class BatchUpdateRowsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for TablesService.BatchUpdateRows. - # @!attribute [rw] rows - # @return [::Array<::Google::Area120::Tables::V1alpha1::Row>] - # The updated rows. - class BatchUpdateRowsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.DeleteRow - # @!attribute [rw] name - # @return [::String] - # Required. The name of the row to delete. - # Format: tables/\\{table}/rows/\\{row} - class DeleteRowRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for TablesService.BatchDeleteRows - # @!attribute [rw] parent - # @return [::String] - # Required. The parent table shared by all rows being deleted. - # Format: tables/\\{table} - # @!attribute [rw] names - # @return [::Array<::String>] - # Required. The names of the rows to delete. All rows must belong to the parent table - # or else the entire batch will fail. A maximum of 500 rows can be deleted - # in a batch. - # Format: tables/\\{table}/rows/\\{row} - class BatchDeleteRowsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A single table. - # @!attribute [rw] name - # @return [::String] - # The resource name of the table. - # Table names have the form `tables/{table}`. - # @!attribute [rw] display_name - # @return [::String] - # The human readable title of the table. - # @!attribute [rw] columns - # @return [::Array<::Google::Area120::Tables::V1alpha1::ColumnDescription>] - # List of columns in this table. - # Order of columns matches the display order. - class Table - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details on a column in the table. - # @!attribute [rw] name - # @return [::String] - # column name - # @!attribute [rw] data_type - # @return [::String] - # Data type of the column - # Supported types are auto_id, boolean, boolean_list, creator, - # create_timestamp, date, dropdown, location, integer, - # integer_list, number, number_list, person, person_list, tags, check_list, - # text, text_list, update_timestamp, updater, relationship, - # file_attachment_list. - # These types directly map to the column types supported on Tables website. - # @!attribute [rw] id - # @return [::String] - # Internal id for a column. - # @!attribute [rw] labels - # @return [::Array<::Google::Area120::Tables::V1alpha1::LabeledItem>] - # Optional. Range of labeled values for the column. - # Some columns like tags and drop-downs limit the values to a set of - # possible values. We return the range of values in such cases to help - # clients implement better user data validation. - # @!attribute [rw] relationship_details - # @return [::Google::Area120::Tables::V1alpha1::RelationshipDetails] - # Optional. Additional details about a relationship column. Specified when data_type - # is relationship. - # @!attribute [rw] lookup_details - # @return [::Google::Area120::Tables::V1alpha1::LookupDetails] - # Optional. Indicates that this is a lookup column whose value is derived from the - # relationship column specified in the details. Lookup columns can not be - # updated directly. To change the value you must update the associated - # relationship column. - class ColumnDescription - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A single item in a labeled column. - # @!attribute [rw] name - # @return [::String] - # Display string as entered by user. - # @!attribute [rw] id - # @return [::String] - # Internal id associated with the item. - class LabeledItem - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about a relationship column. - # @!attribute [rw] linked_table - # @return [::String] - # The name of the table this relationship is linked to. - class RelationshipDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about a lookup column whose value comes from the associated - # relationship. - # @!attribute [rw] relationship_column - # @return [::String] - # The name of the relationship column associated with the lookup. - # @!attribute [rw] relationship_column_id - # @return [::String] - # The id of the relationship column. - class LookupDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A single row in a table. - # @!attribute [rw] name - # @return [::String] - # The resource name of the row. - # Row names have the form `tables/{table}/rows/{row}`. - # The name is ignored when creating a row. - # @!attribute [rw] values - # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}] - # The values of the row. This is a map of column key to value. - # Key is user entered name(default) or the internal column id based on - # the view in the request. - class Row - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Protobuf::Value] - class ValuesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A single workspace. - # @!attribute [rw] name - # @return [::String] - # The resource name of the workspace. - # Workspace names have the form `workspaces/{workspace}`. - # @!attribute [rw] display_name - # @return [::String] - # The human readable title of the workspace. - # @!attribute [rw] tables - # @return [::Array<::Google::Area120::Tables::V1alpha1::Table>] - # The list of tables in the workspace. - class Workspace - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Column identifier used for the values in the row. - module View - # Defaults to user entered text. - VIEW_UNSPECIFIED = 0 - - # Uses internally generated column id to identify values. - COLUMN_ID_VIEW = 1 - end - end - end - end -end diff --git a/google-area120-tables-v1alpha1/proto_docs/google/protobuf/duration.rb b/google-area120-tables-v1alpha1/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/google-area120-tables-v1alpha1/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/google-area120-tables-v1alpha1/proto_docs/google/protobuf/empty.rb b/google-area120-tables-v1alpha1/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/google-area120-tables-v1alpha1/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/google-area120-tables-v1alpha1/proto_docs/google/protobuf/field_mask.rb b/google-area120-tables-v1alpha1/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/google-area120-tables-v1alpha1/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/google-area120-tables-v1alpha1/proto_docs/google/protobuf/struct.rb b/google-area120-tables-v1alpha1/proto_docs/google/protobuf/struct.rb deleted file mode 100644 index 39e1aca868d2..000000000000 --- a/google-area120-tables-v1alpha1/proto_docs/google/protobuf/struct.rb +++ /dev/null @@ -1,108 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 - # `Struct` represents a structured data value, consisting of fields - # which map to dynamically typed values. In some languages, `Struct` - # might be supported by a native representation. For example, in - # scripting languages like JS a struct is represented as an - # object. The details of that representation are described together - # with the proto support for the language. - # - # The JSON representation for `Struct` is JSON object. - # @!attribute [rw] fields - # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}] - # Unordered map of dynamically typed values. - class Struct - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Protobuf::Value] - class FieldsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `Value` represents a dynamically typed value which can be either - # null, a number, a string, a boolean, a recursive struct value, or a - # list of values. A producer of value is expected to set one of these - # variants. Absence of any variant indicates an error. - # - # The JSON representation for `Value` is JSON value. - # @!attribute [rw] null_value - # @return [::Google::Protobuf::NullValue] - # Represents a null value. - # - # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] number_value - # @return [::Float] - # Represents a double value. - # - # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] string_value - # @return [::String] - # Represents a string value. - # - # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_value - # @return [::Boolean] - # Represents a boolean value. - # - # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] struct_value - # @return [::Google::Protobuf::Struct] - # Represents a structured value. - # - # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] list_value - # @return [::Google::Protobuf::ListValue] - # Represents a repeated `Value`. - # - # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListValue` is a wrapper around a repeated field of values. - # - # The JSON representation for `ListValue` is JSON array. - # @!attribute [rw] values - # @return [::Array<::Google::Protobuf::Value>] - # Repeated field of dynamically typed values. - class ListValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `NullValue` is a singleton enumeration to represent the null value for the - # `Value` type union. - # - # The JSON representation for `NullValue` is JSON `null`. - module NullValue - # Null value. - NULL_VALUE = 0 - end - end -end diff --git a/google-area120-tables-v1alpha1/snippets/Gemfile b/google-area120-tables-v1alpha1/snippets/Gemfile deleted file mode 100644 index 2950cdafaa7c..000000000000 --- a/google-area120-tables-v1alpha1/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-area120-tables-v1alpha1", path: "../" -else - gem "google-area120-tables-v1alpha1" -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/google-area120-tables-v1alpha1/snippets/snippet_metadata_google.area120.tables.v1alpha1.json b/google-area120-tables-v1alpha1/snippets/snippet_metadata_google.area120.tables.v1alpha1.json deleted file mode 100644 index 7f244ac7d98b..000000000000 --- a/google-area120-tables-v1alpha1/snippets/snippet_metadata_google.area120.tables.v1alpha1.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "client_library": { - "name": "google-area120-tables-v1alpha1", - "version": "0.15.1", - "language": "RUBY", - "apis": [ - { - "id": "google.area120.tables.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_GetTable_sync", - "title": "Snippet for the get_table call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#get_table.", - "file": "tables_service/get_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_table", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#get_table", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::GetTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::Table", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "GetTable", - "full_name": "google.area120.tables.v1alpha1.TablesService.GetTable", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_ListTables_sync", - "title": "Snippet for the list_tables call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#list_tables.", - "file": "tables_service/list_tables.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_tables", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#list_tables", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::ListTablesRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::ListTablesResponse", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "ListTables", - "full_name": "google.area120.tables.v1alpha1.TablesService.ListTables", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_GetWorkspace_sync", - "title": "Snippet for the get_workspace call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#get_workspace.", - "file": "tables_service/get_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workspace", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#get_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::Workspace", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "GetWorkspace", - "full_name": "google.area120.tables.v1alpha1.TablesService.GetWorkspace", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_ListWorkspaces_sync", - "title": "Snippet for the list_workspaces call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#list_workspaces.", - "file": "tables_service/list_workspaces.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workspaces", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#list_workspaces", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::ListWorkspacesResponse", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "ListWorkspaces", - "full_name": "google.area120.tables.v1alpha1.TablesService.ListWorkspaces", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_GetRow_sync", - "title": "Snippet for the get_row call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#get_row.", - "file": "tables_service/get_row.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_row", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#get_row", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::GetRowRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::Row", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "GetRow", - "full_name": "google.area120.tables.v1alpha1.TablesService.GetRow", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_ListRows_sync", - "title": "Snippet for the list_rows call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#list_rows.", - "file": "tables_service/list_rows.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_rows", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#list_rows", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::ListRowsRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::ListRowsResponse", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "ListRows", - "full_name": "google.area120.tables.v1alpha1.TablesService.ListRows", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_CreateRow_sync", - "title": "Snippet for the create_row call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#create_row.", - "file": "tables_service/create_row.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_row", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#create_row", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::CreateRowRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::Row", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "CreateRow", - "full_name": "google.area120.tables.v1alpha1.TablesService.CreateRow", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_BatchCreateRows_sync", - "title": "Snippet for the batch_create_rows call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#batch_create_rows.", - "file": "tables_service/batch_create_rows.rb", - "language": "RUBY", - "client_method": { - "short_name": "batch_create_rows", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#batch_create_rows", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "BatchCreateRows", - "full_name": "google.area120.tables.v1alpha1.TablesService.BatchCreateRows", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_UpdateRow_sync", - "title": "Snippet for the update_row call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#update_row.", - "file": "tables_service/update_row.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_row", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#update_row", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::UpdateRowRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::Row", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "UpdateRow", - "full_name": "google.area120.tables.v1alpha1.TablesService.UpdateRow", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_BatchUpdateRows_sync", - "title": "Snippet for the batch_update_rows call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#batch_update_rows.", - "file": "tables_service/batch_update_rows.rb", - "language": "RUBY", - "client_method": { - "short_name": "batch_update_rows", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#batch_update_rows", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest", - "name": "request" - } - ], - "result_type": "::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "BatchUpdateRows", - "full_name": "google.area120.tables.v1alpha1.TablesService.BatchUpdateRows", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_DeleteRow_sync", - "title": "Snippet for the delete_row call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#delete_row.", - "file": "tables_service/delete_row.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_row", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#delete_row", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::DeleteRowRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "DeleteRow", - "full_name": "google.area120.tables.v1alpha1.TablesService.DeleteRow", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "area120tables_v1alpha1_generated_TablesService_BatchDeleteRows_sync", - "title": "Snippet for the batch_delete_rows call in the TablesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Area120::Tables::V1alpha1::TablesService::Client#batch_delete_rows.", - "file": "tables_service/batch_delete_rows.rb", - "language": "RUBY", - "client_method": { - "short_name": "batch_delete_rows", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client#batch_delete_rows", - "async": false, - "parameters": [ - { - "type": "::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "TablesService::Client", - "full_name": "::Google::Area120::Tables::V1alpha1::TablesService::Client" - }, - "method": { - "short_name": "BatchDeleteRows", - "full_name": "google.area120.tables.v1alpha1.TablesService.BatchDeleteRows", - "service": { - "short_name": "TablesService", - "full_name": "google.area120.tables.v1alpha1.TablesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/batch_create_rows.rb b/google-area120-tables-v1alpha1/snippets/tables_service/batch_create_rows.rb deleted file mode 100644 index 21e7be04ecbb..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/batch_create_rows.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 area120tables_v1alpha1_generated_TablesService_BatchCreateRows_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the batch_create_rows call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#batch_create_rows. -# -def batch_create_rows - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest.new - - # Call the batch_create_rows method. - result = client.batch_create_rows request - - # The returned object is of type Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_BatchCreateRows_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/batch_delete_rows.rb b/google-area120-tables-v1alpha1/snippets/tables_service/batch_delete_rows.rb deleted file mode 100644 index 01e4ae9f2099..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/batch_delete_rows.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 area120tables_v1alpha1_generated_TablesService_BatchDeleteRows_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the batch_delete_rows call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#batch_delete_rows. -# -def batch_delete_rows - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest.new - - # Call the batch_delete_rows method. - result = client.batch_delete_rows request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_BatchDeleteRows_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/batch_update_rows.rb b/google-area120-tables-v1alpha1/snippets/tables_service/batch_update_rows.rb deleted file mode 100644 index 9387dc6e740c..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/batch_update_rows.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 area120tables_v1alpha1_generated_TablesService_BatchUpdateRows_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the batch_update_rows call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#batch_update_rows. -# -def batch_update_rows - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest.new - - # Call the batch_update_rows method. - result = client.batch_update_rows request - - # The returned object is of type Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_BatchUpdateRows_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/create_row.rb b/google-area120-tables-v1alpha1/snippets/tables_service/create_row.rb deleted file mode 100644 index 394c408e6c02..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/create_row.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 area120tables_v1alpha1_generated_TablesService_CreateRow_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the create_row call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#create_row. -# -def create_row - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::CreateRowRequest.new - - # Call the create_row method. - result = client.create_row request - - # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_CreateRow_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/delete_row.rb b/google-area120-tables-v1alpha1/snippets/tables_service/delete_row.rb deleted file mode 100644 index 93d0a96a59f2..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/delete_row.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 area120tables_v1alpha1_generated_TablesService_DeleteRow_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the delete_row call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#delete_row. -# -def delete_row - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::DeleteRowRequest.new - - # Call the delete_row method. - result = client.delete_row request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_DeleteRow_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/get_row.rb b/google-area120-tables-v1alpha1/snippets/tables_service/get_row.rb deleted file mode 100644 index 4adc18873741..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/get_row.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 area120tables_v1alpha1_generated_TablesService_GetRow_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the get_row call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#get_row. -# -def get_row - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::GetRowRequest.new - - # Call the get_row method. - result = client.get_row request - - # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_GetRow_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/get_table.rb b/google-area120-tables-v1alpha1/snippets/tables_service/get_table.rb deleted file mode 100644 index f95ad3908281..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/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 area120tables_v1alpha1_generated_TablesService_GetTable_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the get_table call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#get_table. -# -def get_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::GetTableRequest.new - - # Call the get_table method. - result = client.get_table request - - # The returned object is of type Google::Area120::Tables::V1alpha1::Table. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_GetTable_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/get_workspace.rb b/google-area120-tables-v1alpha1/snippets/tables_service/get_workspace.rb deleted file mode 100644 index 0bcd7b1d8380..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/get_workspace.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 area120tables_v1alpha1_generated_TablesService_GetWorkspace_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the get_workspace call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#get_workspace. -# -def get_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::GetWorkspaceRequest.new - - # Call the get_workspace method. - result = client.get_workspace request - - # The returned object is of type Google::Area120::Tables::V1alpha1::Workspace. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_GetWorkspace_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/list_rows.rb b/google-area120-tables-v1alpha1/snippets/tables_service/list_rows.rb deleted file mode 100644 index aa3395dc9224..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/list_rows.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 area120tables_v1alpha1_generated_TablesService_ListRows_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the list_rows call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#list_rows. -# -def list_rows - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::ListRowsRequest.new - - # Call the list_rows method. - result = client.list_rows 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::Area120::Tables::V1alpha1::Row. - p item - end -end -# [END area120tables_v1alpha1_generated_TablesService_ListRows_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/list_tables.rb b/google-area120-tables-v1alpha1/snippets/tables_service/list_tables.rb deleted file mode 100644 index 89772c8a1ce6..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/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 area120tables_v1alpha1_generated_TablesService_ListTables_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the list_tables call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#list_tables. -# -def list_tables - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::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::Area120::Tables::V1alpha1::Table. - p item - end -end -# [END area120tables_v1alpha1_generated_TablesService_ListTables_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/list_workspaces.rb b/google-area120-tables-v1alpha1/snippets/tables_service/list_workspaces.rb deleted file mode 100644 index 066baf2289e9..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/list_workspaces.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 area120tables_v1alpha1_generated_TablesService_ListWorkspaces_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the list_workspaces call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#list_workspaces. -# -def list_workspaces - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::ListWorkspacesRequest.new - - # Call the list_workspaces method. - result = client.list_workspaces 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::Area120::Tables::V1alpha1::Workspace. - p item - end -end -# [END area120tables_v1alpha1_generated_TablesService_ListWorkspaces_sync] diff --git a/google-area120-tables-v1alpha1/snippets/tables_service/update_row.rb b/google-area120-tables-v1alpha1/snippets/tables_service/update_row.rb deleted file mode 100644 index 65d4f784256d..000000000000 --- a/google-area120-tables-v1alpha1/snippets/tables_service/update_row.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 area120tables_v1alpha1_generated_TablesService_UpdateRow_sync] -require "google/area120/tables/v1alpha1" - -## -# Snippet for the update_row call in the TablesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Area120::Tables::V1alpha1::TablesService::Client#update_row. -# -def update_row - # Create a client object. The client can be reused for multiple calls. - client = Google::Area120::Tables::V1alpha1::TablesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Area120::Tables::V1alpha1::UpdateRowRequest.new - - # Call the update_row method. - result = client.update_row request - - # The returned object is of type Google::Area120::Tables::V1alpha1::Row. - p result -end -# [END area120tables_v1alpha1_generated_TablesService_UpdateRow_sync] diff --git a/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_paths_test.rb b/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_paths_test.rb deleted file mode 100644 index 589d58865674..000000000000 --- a/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_paths_test.rb +++ /dev/null @@ -1,79 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/area120/tables/v1alpha1/tables_service" - -class ::Google::Area120::Tables::V1alpha1::TablesService::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_row_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.row_path table: "value0", row: "value1" - assert_equal "tables/value0/rows/value1", 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::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.table_path table: "value0" - assert_equal "tables/value0", path - end - end - - def test_workspace_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workspace_path workspace: "value0" - assert_equal "workspaces/value0", path - end - end -end diff --git a/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_rest_test.rb b/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_rest_test.rb deleted file mode 100644 index 0cbcc4d68c65..000000000000 --- a/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_rest_test.rb +++ /dev/null @@ -1,761 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/rest" -require "google/area120/tables/v1alpha1/tables_pb" -require "google/area120/tables/v1alpha1/tables_service/rest" - - -class ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - 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_get_table - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::Table.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_table_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_get_table_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_table_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_table({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_table name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_table ::Google::Area120::Tables::V1alpha1::GetTableRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_table({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_table(::Google::Area120::Tables::V1alpha1::GetTableRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_table_client_stub.call_count - end - end - end - - def test_list_tables - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::ListTablesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - page_size = 42 - page_token = "hello world" - - list_tables_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_list_tables_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_tables_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_tables({ page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_tables page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_tables ::Google::Area120::Tables::V1alpha1::ListTablesRequest.new(page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_tables({ page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_tables(::Google::Area120::Tables::V1alpha1::ListTablesRequest.new(page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_tables_client_stub.call_count - end - end - end - - def test_get_workspace - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::Workspace.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_get_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workspace_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_workspace({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_workspace name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_workspace ::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_workspace({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_workspace(::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workspace_client_stub.call_count - end - end - end - - def test_list_workspaces - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::ListWorkspacesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - page_size = 42 - page_token = "hello world" - - list_workspaces_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_list_workspaces_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workspaces_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_workspaces({ page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_workspaces page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_workspaces ::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest.new(page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_workspaces({ page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_workspaces(::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest.new(page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workspaces_client_stub.call_count - end - end - end - - def test_get_row - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::Row.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :VIEW_UNSPECIFIED - - get_row_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_get_row_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_row_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_row({ name: name, view: view }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_row name: name, view: view do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_row ::Google::Area120::Tables::V1alpha1::GetRowRequest.new(name: name, view: view) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_row({ name: name, view: view }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_row(::Google::Area120::Tables::V1alpha1::GetRowRequest.new(name: name, view: view), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_row_client_stub.call_count - end - end - end - - def test_list_rows - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::ListRowsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - view = :VIEW_UNSPECIFIED - filter = "hello world" - - list_rows_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_list_rows_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_rows_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_rows({ parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_rows parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_rows ::Google::Area120::Tables::V1alpha1::ListRowsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_rows({ parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_rows(::Google::Area120::Tables::V1alpha1::ListRowsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_rows_client_stub.call_count - end - end - end - - def test_create_row - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::Row.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - row = {} - view = :VIEW_UNSPECIFIED - - create_row_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_create_row_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_row_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_row({ parent: parent, row: row, view: view }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_row parent: parent, row: row, view: view do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_row ::Google::Area120::Tables::V1alpha1::CreateRowRequest.new(parent: parent, row: row, view: view) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_row({ parent: parent, row: row, view: view }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_row(::Google::Area120::Tables::V1alpha1::CreateRowRequest.new(parent: parent, row: row, view: view), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_row_client_stub.call_count - end - end - end - - def test_batch_create_rows - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - requests = [{}] - - batch_create_rows_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_batch_create_rows_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, batch_create_rows_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.batch_create_rows({ parent: parent, requests: requests }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.batch_create_rows parent: parent, requests: requests do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.batch_create_rows ::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest.new(parent: parent, requests: requests) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.batch_create_rows({ parent: parent, requests: requests }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.batch_create_rows(::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest.new(parent: parent, requests: requests), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, batch_create_rows_client_stub.call_count - end - end - end - - def test_update_row - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::Row.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - row = {} - update_mask = {} - view = :VIEW_UNSPECIFIED - - update_row_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_update_row_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_row_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_row({ row: row, update_mask: update_mask, view: view }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_row row: row, update_mask: update_mask, view: view do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_row ::Google::Area120::Tables::V1alpha1::UpdateRowRequest.new(row: row, update_mask: update_mask, view: view) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_row({ row: row, update_mask: update_mask, view: view }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_row(::Google::Area120::Tables::V1alpha1::UpdateRowRequest.new(row: row, update_mask: update_mask, view: view), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_row_client_stub.call_count - end - end - end - - def test_batch_update_rows - # Create test objects. - client_result = ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - requests = [{}] - - batch_update_rows_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_batch_update_rows_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, batch_update_rows_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.batch_update_rows({ parent: parent, requests: requests }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.batch_update_rows parent: parent, requests: requests do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.batch_update_rows ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest.new(parent: parent, requests: requests) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.batch_update_rows({ parent: parent, requests: requests }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.batch_update_rows(::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest.new(parent: parent, requests: requests), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, batch_update_rows_client_stub.call_count - end - end - end - - def test_delete_row - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_row_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_delete_row_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_row_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_row({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_row name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_row ::Google::Area120::Tables::V1alpha1::DeleteRowRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_row({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_row(::Google::Area120::Tables::V1alpha1::DeleteRowRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_row_client_stub.call_count - end - end - end - - def test_batch_delete_rows - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - names = ["hello world"] - - batch_delete_rows_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Area120::Tables::V1alpha1::TablesService::Rest::ServiceStub.stub :transcode_batch_delete_rows_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, batch_delete_rows_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.batch_delete_rows({ parent: parent, names: names }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.batch_delete_rows parent: parent, names: names do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.batch_delete_rows ::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest.new(parent: parent, names: names) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.batch_delete_rows({ parent: parent, names: names }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.batch_delete_rows(::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest.new(parent: parent, names: names), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, batch_delete_rows_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Area120::Tables::V1alpha1::TablesService::Rest::Client::Configuration, config - end -end diff --git a/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_test.rb b/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_test.rb deleted file mode 100644 index f71dd477a84b..000000000000 --- a/google-area120-tables-v1alpha1/test/google/area120/tables/v1alpha1/tables_service_test.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 "helper" - -require "gapic/grpc/service_stub" - -require "google/area120/tables/v1alpha1/tables_pb" -require "google/area120/tables/v1alpha1/tables_service" - -class ::Google::Area120::Tables::V1alpha1::TablesService::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_get_table - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::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" - - get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_table, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::GetTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_table_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_table({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_table name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_table ::Google::Area120::Tables::V1alpha1::GetTableRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_table({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_table(::Google::Area120::Tables::V1alpha1::GetTableRequest.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_table_client_stub.call_rpc_count - end - end - - def test_list_tables - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::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. - 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::Area120::Tables::V1alpha1::ListTablesRequest, request - 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 - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_tables({ 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 - c.list_tables 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 - c.list_tables ::Google::Area120::Tables::V1alpha1::ListTablesRequest.new(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 - c.list_tables({ 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 - c.list_tables(::Google::Area120::Tables::V1alpha1::ListTablesRequest.new(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_workspace - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::Workspace.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_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_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workspace, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workspace_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_workspace({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_workspace name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_workspace ::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_workspace({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_workspace(::Google::Area120::Tables::V1alpha1::GetWorkspaceRequest.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_workspace_client_stub.call_rpc_count - end - end - - def test_list_workspaces - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::ListWorkspacesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - page_size = 42 - page_token = "hello world" - - list_workspaces_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workspaces, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest, request - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workspaces_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_workspaces({ 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 - c.list_workspaces 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 - c.list_workspaces ::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest.new(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 - c.list_workspaces({ 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 - c.list_workspaces(::Google::Area120::Tables::V1alpha1::ListWorkspacesRequest.new(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_workspaces_client_stub.call_rpc_count - end - end - - def test_get_row - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::Row.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_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_row_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_row, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::GetRowRequest, request - assert_equal "hello world", request["name"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_row_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_row({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_row name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_row ::Google::Area120::Tables::V1alpha1::GetRowRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_row({ 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 - c.get_row(::Google::Area120::Tables::V1alpha1::GetRowRequest.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_row_client_stub.call_rpc_count - end - end - - def test_list_rows - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::ListRowsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.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 = :VIEW_UNSPECIFIED - filter = "hello world" - - list_rows_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_rows, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::ListRowsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_rows_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_rows({ parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_rows parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_rows ::Google::Area120::Tables::V1alpha1::ListRowsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter) 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 - c.list_rows({ parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter }, 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 - c.list_rows(::Google::Area120::Tables::V1alpha1::ListRowsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view, filter: filter), 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_rows_client_stub.call_rpc_count - end - end - - def test_create_row - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::Row.new - grpc_operation = GRPC::ActiveCall::Operation.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" - row = {} - view = :VIEW_UNSPECIFIED - - create_row_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_row, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::CreateRowRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Area120::Tables::V1alpha1::Row), request["row"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_row_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_row({ parent: parent, row: row, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_row parent: parent, row: row, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_row ::Google::Area120::Tables::V1alpha1::CreateRowRequest.new(parent: parent, row: row, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_row({ parent: parent, row: row, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_row(::Google::Area120::Tables::V1alpha1::CreateRowRequest.new(parent: parent, row: row, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_row_client_stub.call_rpc_count - end - end - - def test_batch_create_rows - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.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" - requests = [{}] - - batch_create_rows_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :batch_create_rows, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest, request - assert_equal "hello world", request["parent"] - assert_kind_of ::Google::Area120::Tables::V1alpha1::CreateRowRequest, request["requests"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, batch_create_rows_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.batch_create_rows({ parent: parent, requests: requests }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.batch_create_rows parent: parent, requests: requests do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.batch_create_rows ::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest.new(parent: parent, requests: requests) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.batch_create_rows({ parent: parent, requests: requests }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.batch_create_rows(::Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest.new(parent: parent, requests: requests), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, batch_create_rows_client_stub.call_rpc_count - end - end - - def test_update_row - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::Row.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - row = {} - update_mask = {} - view = :VIEW_UNSPECIFIED - - update_row_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_row, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::UpdateRowRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Area120::Tables::V1alpha1::Row), request["row"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_row_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_row({ row: row, update_mask: update_mask, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_row row: row, update_mask: update_mask, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_row ::Google::Area120::Tables::V1alpha1::UpdateRowRequest.new(row: row, update_mask: update_mask, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_row({ row: row, update_mask: update_mask, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_row(::Google::Area120::Tables::V1alpha1::UpdateRowRequest.new(row: row, update_mask: update_mask, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_row_client_stub.call_rpc_count - end - end - - def test_batch_update_rows - # Create GRPC objects. - grpc_response = ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.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" - requests = [{}] - - batch_update_rows_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :batch_update_rows, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest, request - assert_equal "hello world", request["parent"] - assert_kind_of ::Google::Area120::Tables::V1alpha1::UpdateRowRequest, request["requests"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, batch_update_rows_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.batch_update_rows({ parent: parent, requests: requests }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.batch_update_rows parent: parent, requests: requests do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.batch_update_rows ::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest.new(parent: parent, requests: requests) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.batch_update_rows({ parent: parent, requests: requests }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.batch_update_rows(::Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest.new(parent: parent, requests: requests), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, batch_update_rows_client_stub.call_rpc_count - end - end - - def test_delete_row - # 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_row_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_row, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::DeleteRowRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_row_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_row({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_row name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_row ::Google::Area120::Tables::V1alpha1::DeleteRowRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_row({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_row(::Google::Area120::Tables::V1alpha1::DeleteRowRequest.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_row_client_stub.call_rpc_count - end - end - - def test_batch_delete_rows - # 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. - parent = "hello world" - names = ["hello world"] - - batch_delete_rows_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :batch_delete_rows, name - assert_kind_of ::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest, request - assert_equal "hello world", request["parent"] - assert_equal ["hello world"], request["names"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, batch_delete_rows_client_stub do - # Create client - c = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.batch_delete_rows({ parent: parent, names: names }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.batch_delete_rows parent: parent, names: names do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.batch_delete_rows ::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest.new(parent: parent, names: names) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.batch_delete_rows({ parent: parent, names: names }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.batch_delete_rows(::Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest.new(parent: parent, names: names), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, batch_delete_rows_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::Area120::Tables::V1alpha1::TablesService::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::Area120::Tables::V1alpha1::TablesService::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::Area120::Tables::V1alpha1::TablesService::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Area120::Tables::V1alpha1::TablesService::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/google-area120-tables-v1alpha1/test/helper.rb b/google-area120-tables-v1alpha1/test/helper.rb deleted file mode 100644 index 4fb6756ac7e2..000000000000 --- a/google-area120-tables-v1alpha1/test/helper.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# Load JUnit XML formatter from googleapis/ruby-common-tools to write -# tmp/reports/sponge_log.xml for Kokoro/TestGrid build health tracking. -if ENV["CI"] || ENV["KOKORO_JOB_NAME"] - begin - require "gapic/minitest_junit_preloader" - rescue LoadError - end -end - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct" diff --git a/google-area120-tables/.gitignore b/google-area120-tables/.gitignore deleted file mode 100644 index a2e97ac84259..000000000000 --- a/google-area120-tables/.gitignore +++ /dev/null @@ -1,20 +0,0 @@ -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/google-area120-tables/.repo-metadata.json b/google-area120-tables/.repo-metadata.json deleted file mode 100644 index 7e65d4d417cf..000000000000 --- a/google-area120-tables/.repo-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "api_id": "area120tables.googleapis.com", - "api_shortname": "area120tables", - "client_documentation": "https://rubydoc.info/gems/google-area120-tables", - "distribution_name": "google-area120-tables", - "is_cloud": false, - "language": "ruby", - "name": "area120tables", - "name_pretty": "Area 120 Tables API", - "product_documentation": "https://tables.area120.google.com/u/0/about#/", - "release_level": "preview", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Using the Area 120 Tables API, you can query for tables, and update/create/delete rows within tables programmatically.", - "ruby-cloud-env-prefix": "AREA120_TABLES", - "ruby-cloud-product-url": "https://tables.area120.google.com/u/0/about#/", - "library_type": "GAPIC_MANUAL" -} diff --git a/google-area120-tables/.rubocop.yml b/google-area120-tables/.rubocop.yml deleted file mode 100644 index 0f73d4d482fe..000000000000 --- a/google-area120-tables/.rubocop.yml +++ /dev/null @@ -1,39 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-area120-tables.gemspec" - - "Rakefile" - - "acceptance/**/*" - - "test/**/*" - -Bundler/OrderedGems: - Enabled: false -Documentation: - Enabled: false -Layout/LineLength: - Enabled: false -Metrics/BlockLength: - Exclude: - - "samples/**/acceptance/*.rb" -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/FileName: - Exclude: - - "lib/google-area120-tables.rb" - -Style/BlockDelimiters: - Exclude: - - "samples/**/acceptance/*.rb" diff --git a/google-area120-tables/.toys.rb b/google-area120-tables/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/google-area120-tables/.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/google-area120-tables/.yardopts b/google-area120-tables/.yardopts index cf98d57f7c7a..b6ca2abeb556 100644 --- a/google-area120-tables/.yardopts +++ b/google-area120-tables/.yardopts @@ -1,11 +1,9 @@ --no-private ---title="Area120 Tables API" ---exclude _pb\.rb$ +--title="Obsolete Gem google-area120-tables" --markup markdown --markup-provider redcarpet ./lib/**/*.rb - README.md -AUTHENTICATION.md LICENSE.md diff --git a/google-area120-tables/AUTHENTICATION.md b/google-area120-tables/AUTHENTICATION.md deleted file mode 100644 index b27dfb7c49d2..000000000000 --- a/google-area120-tables/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-area120-tables 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-area120-tables 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/area120/tables" - -client = Google::Area120::Tables.tables_service do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/area120/tables" - -Google::Area120::Tables.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = Google::Area120::Tables.tables_service -``` - -### 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-area120-tables -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/area120/tables" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = Google::Area120::Tables.tables_service -``` - -### 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/google-area120-tables/CHANGELOG.md b/google-area120-tables/CHANGELOG.md deleted file mode 100644 index bf1eb42b16f4..000000000000 --- a/google-area120-tables/CHANGELOG.md +++ /dev/null @@ -1,106 +0,0 @@ -# Release History - -### 0.9.1 (2026-08-05) - -#### Bug Fixes - -* generate double-wildcard path patterns with capture groups ([#35043](https://github.com/googleapis/google-cloud-ruby/issues/35043)) -#### Documentation - -* Update copyright year ([#35088](https://github.com/googleapis/google-cloud-ruby/issues/35088)) - -### 0.9.0 (2026-06-11) - -#### Features - -* update gapic-common dependency to 1.3 and document retry jitter ([#34037](https://github.com/googleapis/google-cloud-ruby/issues/34037)) - -### 0.9.0 (2026-06-11) - -#### Features - -* update gapic-common dependency to 1.3 and document retry jitter ([#34037](https://github.com/googleapis/google-cloud-ruby/issues/34037)) - -### 0.8.0 (2026-03-19) - -#### Features - -* Upgrade dependencies for Ruby v4.0 and drop Ruby v3.1 support - -### 0.7.2 (2025-09-12) - -#### Documentation - -* Add examples to wrapper libraries README.md ([#31320](https://github.com/googleapis/google-cloud-ruby/issues/31320)) - -### 0.7.1 (2025-04-29) - -#### Bug Fixes - -* Fixed several issues with validating credential configs - -### 0.7.0 (2025-01-29) - -#### Features - -* Provide methods to determine whether services are available with the currently installed versioned client ([#28526](https://github.com/googleapis/google-cloud-ruby/issues/28526)) -* Update Ruby version requirement to 3.0 - -### 0.6.1 (2024-08-08) - -#### Documentation - -* Formatting updates ([#26623](https://github.com/googleapis/google-cloud-ruby/issues/26623)) - -### 0.6.0 (2024-02-26) - -#### Features - -* Updated minimum Ruby version to 2.7 ([#24862](https://github.com/googleapis/google-cloud-ruby/issues/24862)) - -### 0.5.0 (2024-01-15) - -#### Features - -* Support for universe_domain ([#24253](https://github.com/googleapis/google-cloud-ruby/issues/24253)) - -### 0.4.0 (2023-03-09) - -#### Features - -* Support REST transport ([#20765](https://github.com/googleapis/google-cloud-ruby/issues/20765)) - -### 0.3.0 (2022-07-01) - -#### Features - -* Updated minimum Ruby version to 2.6 ([#18443](https://github.com/googleapis/google-cloud-ruby/issues/18443)) - -### 0.2.3 / 2022-01-11 - -#### Documentation - -* Fix titles of documentation pages -* Remove some broken images and fix outdated content in authentication documentation - -### 0.2.2 / 2021-07-12 - -#### Documentation - -* Clarified some language around authentication configuration - -### 0.2.1 / 2021-06-30 - -#### Bug Fixes - -* Expand dependencies to include future 1.x releases of versioned clients - -### 0.2.0 / 2021-03-08 - -#### Features - -* Drop support for Ruby 2.4 and add support for Ruby 3.0 - -### 0.1.0 / 2021-02-23 - -* Initial release diff --git a/google-area120-tables/Gemfile b/google-area120-tables/Gemfile deleted file mode 100644 index 034116e45d44..000000000000 --- a/google-area120-tables/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -source "https://rubygems.org" - -gemspec - -local_dependencies = ["google-area120-tables-v1alpha1"] - -main_spec = gemspecs.last || Bundler.load_gemspec(File.join(__dir__, "google-area120-tables.gemspec")) -local_dependencies.each do |name| - spec_path = File.expand_path "../#{name}/#{name}.gemspec", __dir__ - unless File.file? spec_path - warn "WARNING: Disabled local dependency for #{name} because gemspec not found." - next - end - version = Bundler.load_gemspec(spec_path).version - if main_spec.dependencies.any? { |dep| dep.name == name && !dep.requirement.satisfied_by?(version) } - warn "WARNING: Disabled local dependency for #{name} because the gemspec disallows version #{version}." - next - end - gem name, path: "../#{name}" -end - -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-reporters", "~> 1.8.0", require: false -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/google-area120-tables/Gemfile.lock b/google-area120-tables/Gemfile.lock deleted file mode 100644 index ac58a9631067..000000000000 --- a/google-area120-tables/Gemfile.lock +++ /dev/null @@ -1,313 +0,0 @@ -PATH - remote: ../google-area120-tables-v1alpha1 - specs: - google-area120-tables-v1alpha1 (0.15.0) - gapic-common (~> 1.3) - google-cloud-errors (~> 1.0) - -PATH - remote: . - specs: - google-area120-tables (0.9.0) - google-area120-tables-v1alpha1 (>= 0.7, < 2.a) - google-cloud-core (~> 1.6) - -GEM - remote: https://rubygems.org/ - specs: - addressable (2.9.0) - public_suffix (>= 2.0.2, < 8.0) - ansi (1.6.0) - ast (2.4.3) - base64 (0.3.0) - bigdecimal (4.1.2) - builder (3.3.0) - drb (2.2.3) - erb (6.0.6) - faraday (2.14.3) - faraday-net_http (>= 2.0, < 3.5) - json - logger - faraday-net_http (3.4.4) - net-http (~> 0.5) - faraday-retry (2.4.0) - faraday (~> 2.0) - gapic-common (1.3.0) - faraday (>= 1.9, < 3.a) - faraday-retry (>= 1.0, < 3.a) - google-cloud-env (~> 2.2) - google-logging-utils (~> 0.1) - google-protobuf (~> 4.26) - googleapis-common-protos (~> 1.6) - googleapis-common-protos-types (~> 1.15) - googleauth (~> 1.12) - grpc (~> 1.66) - google-cloud-core (1.9.0) - google-cloud-env (>= 1.0, < 3.a) - google-cloud-errors (~> 1.0) - google-cloud-env (2.4.0) - base64 (~> 0.2) - faraday (>= 1.0, < 3.a) - google-cloud-errors (1.7.0) - google-logging-utils (0.2.0) - google-protobuf (4.35.1) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-aarch64-linux-gnu) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-aarch64-linux-musl) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-arm64-darwin) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86-linux-gnu) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86-linux-musl) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86_64-darwin) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86_64-linux-gnu) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.1-x86_64-linux-musl) - bigdecimal - rake (~> 13.3) - google-style (1.32.0) - rubocop (~> 1.76) - googleapis-common-protos (1.10.0) - google-protobuf (~> 4.26) - googleapis-common-protos-types (~> 1.21) - grpc (~> 1.41) - googleapis-common-protos-types (1.23.0) - google-protobuf (~> 4.26) - googleauth (1.17.3) - faraday (>= 1.0, < 3.a) - google-cloud-env (~> 2.2) - google-logging-utils (~> 0.1) - jwt (>= 1.4, < 4.0) - os (>= 0.9, < 2.0) - pstore (~> 0.1) - signet (>= 0.16, < 2.a) - grpc (1.83.0) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-aarch64-linux-gnu) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-aarch64-linux-musl) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-arm64-darwin) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86-linux-gnu) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86-linux-musl) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86_64-darwin) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86_64-linux-gnu) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - grpc (1.83.0-x86_64-linux-musl) - google-protobuf (>= 3.25, < 5.0) - googleapis-common-protos-types (~> 1.0) - io-console (0.8.2) - irb (1.18.0) - pp (>= 0.6.0) - prism (>= 1.3.0) - rdoc (>= 4.0.0) - reline (>= 0.4.2) - json (2.21.2) - jwt (3.2.0) - base64 - language_server-protocol (3.17.0.6) - lint_roller (1.1.0) - logger (1.7.0) - minitest (6.0.6) - drb (~> 2.0) - prism (~> 1.5) - minitest-focus (1.4.1) - minitest (> 5.0) - minitest-mock (5.27.0) - minitest-reporters (1.5.0) - ansi - builder - minitest (>= 5.0) - ruby-progressbar - minitest-rg (5.4.0) - minitest (>= 5.0, < 7) - net-http (0.9.1) - uri (>= 0.11.1) - os (1.1.4) - ostruct (0.5.5) - parallel (2.1.0) - parser (3.3.12.0) - ast (~> 2.4.1) - racc - pp (0.6.4) - prettyprint - prettyprint (0.2.0) - prism (1.9.0) - pstore (0.2.1) - public_suffix (7.0.5) - racc (1.8.1) - rainbow (3.1.1) - rake (13.4.2) - rbs (4.1.1) - logger - prism (>= 1.6.0) - tsort - rdoc (8.0.0) - erb - prism (>= 1.6.0) - rbs (>= 4.0.0) - tsort - redcarpet (3.6.1) - regexp_parser (2.12.0) - reline (0.6.3) - io-console (~> 0.5) - rubocop (1.88.2) - json (~> 2.3) - language_server-protocol (~> 3.17.0.2) - lint_roller (~> 1.1.0) - parallel (>= 1.10) - parser (>= 3.3.0.2) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.49.0, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.50.0) - parser (>= 3.3.7.2) - prism (~> 1.7) - ruby-progressbar (1.13.0) - signet (0.22.0) - addressable (~> 2.8) - faraday (>= 0.17.5, < 3.a) - jwt (>= 1.5, < 4.0) - tsort (0.2.0) - unicode-display_width (3.2.0) - unicode-emoji (~> 4.1) - unicode-emoji (4.2.0) - uri (1.1.1) - yard (0.9.45) - -PLATFORMS - aarch64-linux-gnu - aarch64-linux-musl - arm64-darwin - ruby - x86-linux-gnu - x86-linux-musl - x86_64-darwin - x86_64-linux-gnu - x86_64-linux-musl - -DEPENDENCIES - google-area120-tables! - google-area120-tables-v1alpha1! - google-style (~> 1.32.0) - irb (~> 1.17) - minitest (~> 6.0.2) - minitest-focus (~> 1.4) - minitest-mock (~> 5.27) - minitest-reporters (~> 1.5.0) - minitest-rg (~> 5.3) - ostruct (~> 0.5.5) - rake (>= 13.0) - redcarpet (~> 3.6) - yard (~> 0.9) - -CHECKSUMS - addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af - ansi (1.6.0) sha256=ac9ea0c0ea8d32fb4e271348e609963ac78882f34b73836c2a02b3622e666658 - ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383 - base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b - bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd - builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f - bundler (4.0.14) sha256=d09a0a965cf772266a7e49e83610be7c2f4e49e61134c42a56804bb383cc24b8 - drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373 - erb (6.0.6) sha256=a9b24986700f5bf127c4f297c5403c3ca41b83b0a316c0cd09a096b56e644ae5 - faraday (2.14.3) sha256=1882247e6766615c8220b4392bf1d27f6ebb63d8e28267587cef1fb0bf37f278 - faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588 - faraday-retry (2.4.0) sha256=7b79c48fb7e56526faf247b12d94a680071ff40c9fda7cf1ec1549439ad11ebe - gapic-common (1.3.0) sha256=4e5d9be1effb7366e2cda13c0f44922285d5613ac8de8b9b18c2c835fe4faa91 - google-area120-tables (0.9.0) - google-area120-tables-v1alpha1 (0.15.0) - google-cloud-core (1.9.0) sha256=ab55409f51488e8deefb6edcc1ce4771dfb5da2fe7b3bc075709a030c2b682a4 - google-cloud-env (2.4.0) sha256=01cb35ecee5d1c4d1cd4deaed8bb5bddc838e296bcc2a35c5d1ddd07ce40d28d - google-cloud-errors (1.7.0) sha256=6e682f42d89aae08689f36f28495de629d756da076bafff0003bac7f8042ebb3 - google-logging-utils (0.2.0) sha256=675462b4ea5affa825a3442694ca2d75d0069455a1d0956127207498fca3df7b - google-protobuf (4.35.1) sha256=a3a6471331d918f58dfa4d014a8f6286f0af2cf4840216bde52fcf2ea3fe3726 - google-protobuf (4.35.1-aarch64-linux-gnu) sha256=50ca44d0eeff3f8475e630a1accdd974256f3510694d574e2c9d6119ea8bc9e1 - google-protobuf (4.35.1-aarch64-linux-musl) sha256=d5c65cef6bd6498a9e5ed5f88cf6cf7e341c10b0a005e32137d5d1a2b6e8c18a - google-protobuf (4.35.1-arm64-darwin) sha256=d9c957df04fa89c749fa9a72a7b383eb4296efc9b2303dc6fd6fbe39c698ad6b - google-protobuf (4.35.1-x86-linux-gnu) sha256=cc7492566b27ad8b5dfa3a7b6f9b11e905050cc53c2fa8ff22de375a9e7a70fb - google-protobuf (4.35.1-x86-linux-musl) sha256=ab403790b59e4dc588ffbed1eaacf05d4ca2f0d12ac9c13d6c64e69380d8c99e - google-protobuf (4.35.1-x86_64-darwin) sha256=66b62b4df00931018a692806df66393efa960d6d2b7da69735187249f950d3ee - google-protobuf (4.35.1-x86_64-linux-gnu) sha256=c786439087512a3fbd199e9897d265b855f951d4027e218ea55e858d45969edd - google-protobuf (4.35.1-x86_64-linux-musl) sha256=91890eb0002934a339fdb7d77a147c46b7474b6799db27872b747b905837f744 - google-style (1.32.0) sha256=3b13068979e5b8caa067ecce9bf818b6cf0e5eb706ead41c5b905f237d9bfb01 - googleapis-common-protos (1.10.0) sha256=13e47ad0ce85d3d30065c03863efd302a82b0e08ba576f2a9b9dbbfeecb57ee0 - googleapis-common-protos-types (1.23.0) sha256=992e740a523794d9fc5f29a504465d8fc737aaa16c930fe7228e3346860faf0a - googleauth (1.17.3) sha256=9a655455885c0c17a8b70537acd2a992a7c7842c43c06c6612dfb0d93e755d58 - grpc (1.83.0) sha256=38119e7f9f7cbc98e79145201da4be470a7542b0befad454651d35015ea55c59 - grpc (1.83.0-aarch64-linux-gnu) sha256=11562efdded494b2277fd9c3c530dfdf90177faa111526ae9e748d0be29f1a9d - grpc (1.83.0-aarch64-linux-musl) sha256=ee745eab4f3922ed27d379cbc4bc0a99e58db367fa96312e9fe258aafd3afeb2 - grpc (1.83.0-arm64-darwin) sha256=25dd772aa80529f014d70da069787cd39b469c9edacbe493da4ff19952a147e2 - grpc (1.83.0-x86-linux-gnu) sha256=e9b20f54b8e8915f3921f12b266742e79da2c31d60e88295e15d0d16ea3cfd55 - grpc (1.83.0-x86-linux-musl) sha256=868e66d9c2a77eca1a93292fd879565219821fb5888673aedd08154303c9520c - grpc (1.83.0-x86_64-darwin) sha256=cfad91d559d1907159a5247fb12dc112a8ea0ebe2027ca7f5ab648d01a645716 - grpc (1.83.0-x86_64-linux-gnu) sha256=25d66bfa3cb1b05258b3f9632478c7e7ceb52cb16ccc0b4b26d7df36be7158b1 - grpc (1.83.0-x86_64-linux-musl) sha256=a5023264dbb8038c23b147bbf80adb06932ef11b5ab493412e9e37a43114fa8c - io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc - irb (1.18.0) sha256=de9454a0703a54704b9811a5ef31a60c86949fbf4013fcf244fabc7c775248e3 - json (2.21.2) sha256=1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a - jwt (3.2.0) sha256=5419b1fe37b1da0982bd07051f573a8b8789ab724c2aa7e785e4784a3ed217d7 - language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0 - lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87 - logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203 - minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1 - minitest-focus (1.4.1) sha256=394517cbe2dcb2d992d8ffc41a3b2b6315777a4daa69239de4fefe7110dd810e - minitest-mock (5.27.0) sha256=7040ed7185417a966920987eaa6eaf1be4ea1fc5b25bb03ff4703f98564a55b0 - minitest-reporters (1.5.0) sha256=a693acddc67987cde96d33ad6766b8d3e8522bb4c8a20628352950c30d42f0a3 - minitest-rg (5.4.0) sha256=54d42bb8ce876381245be5866f3c1dd704ef79c06ba5c9ff280c0aa28c56effb - net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996 - os (1.1.4) sha256=57816d6a334e7bd6aed048f4b0308226c5fb027433b67d90a9ab435f35108d3f - ostruct (0.5.5) sha256=bc73d0e10f85ca2afdddc7eb79b3132bee622e2281db4e6e033a4cbf7d845efb - parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356 - parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828 - pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570 - prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193 - prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85 - pstore (0.2.1) sha256=03904d0f2c66579e96d1e6704cdabc0c88df7ea8ed8782d9f3569f6f6c702c1a - public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623 - racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f - rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a - rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701 - rbs (4.1.1) sha256=1bf118f2f95d1cd3956357645d495152b661e0257e57781d18ceecd461622b9e - rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469 - redcarpet (3.6.1) sha256=d444910e6aa55480c6bcdc0cdb057626e8a32c054c29e793fa642ba2f155f445 - regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb - reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835 - rubocop (1.88.2) sha256=8def251c90cd955feb4daa3edc0ab56893250c4ce90ef81e6c80c03f9a939bbf - rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db - ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33 - signet (0.22.0) sha256=b76d495ccb07ad35dbc89f3e920665a9d8ed717141955034005d7843dcfe4780 - tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f - unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42 - unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f - uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6 - yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51 - -BUNDLED WITH - 4.0.14 diff --git a/google-area120-tables/LICENSE.md b/google-area120-tables/LICENSE.md index c261857ba6ad..60673914fcc1 100644 --- a/google-area120-tables/LICENSE.md +++ b/google-area120-tables/LICENSE.md @@ -1,6 +1,6 @@ Apache License Version 2.0, January 2004 - http://www.apache.org/licenses/ + https://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -192,7 +192,7 @@ 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 + https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/google-area120-tables/README.md b/google-area120-tables/README.md index 17a6d6be26fc..0da3033e29d6 100644 --- a/google-area120-tables/README.md +++ b/google-area120-tables/README.md @@ -1,138 +1,4 @@ -# Ruby Client for the Area120 Tables API +# Tombstone for Ruby gem google-area120-tables -Area 120 Tables is a collaborative database program developed out of Google's Area 120 incubator. - - -Actual client classes for the various versions of this API are defined in -_versioned_ client gems, with names of the form `google-area120-tables-v*`. -The gem `google-area120-tables` is the main client library that brings the -versioned gems in as dependencies, and provides high-level methods for -constructing clients. More information on versioned clients can be found below -in the section titled *Which client should I use?*. - -View the [Client Library Documentation](https://rubydoc.info/gems/google-area120-tables) -for this library, google-area120-tables, to see the convenience methods for -constructing client objects. Reference documentation for the client objects -themselves can be found in the client library documentation for the versioned -client gems: -[google-area120-tables-v1alpha1](https://rubydoc.info/gems/google-area120-tables-v1alpha1). - -## Quick Start - -``` -$ gem install google-area120-tables -``` - -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/area120tables.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -```ruby -require "google/area120/tables" - -client = Google::Area120::Tables.tables_service -request = ::Google::Area120::Tables::V1alpha1::GetTableRequest.new # (request fields as keyword arguments...) -response = client.get_table request -``` - -## 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. - -Debug logging also requires that the versioned clients for this service be -sufficiently recent, released after about Dec 10, 2024. If logging is not -working, try updating the versioned clients in your bundle or installed gems: -[google-area120-tables-v1alpha1](https://rubydoc.info/gems/google-area120-tables-v1alpha1). - -## Supported Ruby Versions - -This library is supported on Ruby 3.2+. - -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-area120-tables`, -and lower-level _versioned_ client libraries with names such as -`google-area120-tables-v1alpha1`. -_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-area120-tables`. -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-area120-tables-v1alpha1`. - -### 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. +This gem is obsolete because the related Google backend is turned down. +For more information, see https://cloud.google.com/terms/deprecation. diff --git a/google-area120-tables/Rakefile b/google-area120-tables/Rakefile index 0a11e57bb3d7..bbfd2ee3d1fb 100644 --- a/google-area120-tables/Rakefile +++ b/google-area120-tables/Rakefile @@ -14,156 +14,5 @@ # 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 = true -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-area120-tables acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["AREA120_TABLES_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["AREA120_TABLES_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["AREA120_TABLES_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 AREA120_TABLES_TEST_PROJECT=test123 AREA120_TABLES_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/area120/tables/v1alpha1/tables_service/credentials" - ::Google::Area120::Tables::V1alpha1::TablesService::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["AREA120_TABLES_PROJECT"] = project - ENV["AREA120_TABLES_TEST_PROJECT"] = project - ENV["AREA120_TABLES_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-area120-tables 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-area120-tables 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-area120-tables 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-area120-tables gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-area120-tables" - header "google-area120-tables rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-area120-tables yard", "*" - Rake::Task[:yard].invoke - header "google-area120-tables 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-area120-tables 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-area120-tables 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/google-area120-tables/google-area120-tables.gemspec b/google-area120-tables/google-area120-tables.gemspec index 4a58e9bc8796..f8bf1790ea8a 100644 --- a/google-area120-tables/google-area120-tables.gemspec +++ b/google-area120-tables/google-area120-tables.gemspec @@ -1,27 +1,27 @@ -# -*- ruby -*- -# encoding: utf-8 - require File.expand_path("lib/google/area120/tables/version", __dir__) Gem::Specification.new do |gem| - gem.name = "google-area120-tables" - gem.version = Google::Area120::Tables::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Area 120 Tables is a collaborative database program developed out of Google's Area 120 incubator." - gem.summary = "Area 120 Tables is a collaborative database program developed out of Google's Area 120 incubator." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" + gem.name = "google-area120-tables" + gem.version = Google::Area120::Tables::VERSION + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = + "This gem is obsolete because the related Google backend is turned down. " \ + "For more information, see https://cloud.google.com/terms/deprecation." + gem.summary = "This gem is obsolete because the related backend is turned down." + gem.post_install_message = <<~MESSAGE - gem.platform = Gem::Platform::RUBY + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + The google-area120-tables gem is OBSOLETE. + For more information, see: + https://cloud.google.com/terms/deprecation + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - gem.files = `git ls-files -- lib/*`.split("\n") + - ["README.md", "AUTHENTICATION.md", "LICENSE.md", ".yardopts"] + MESSAGE + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + gem.platform = Gem::Platform::RUBY + gem.files = ["README.md", "LICENSE.md", ".yardopts", "lib/google/area120/tables/version.rb"] gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "google-area120-tables-v1alpha1", ">= 0.7", "< 2.a" - gem.add_dependency "google-cloud-core", "~> 1.6" + gem.required_ruby_version = ">= 3.0" end diff --git a/google-area120-tables/lib/google-area120-tables.rb b/google-area120-tables/lib/google-area120-tables.rb deleted file mode 100644 index e642fceb2965..000000000000 --- a/google-area120-tables/lib/google-area120-tables.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/area120/tables" unless defined? Google::Area120::Tables::VERSION diff --git a/google-area120-tables/lib/google/area120/tables.rb b/google-area120-tables/lib/google/area120/tables.rb deleted file mode 100644 index 9a69a451fc29..000000000000 --- a/google-area120-tables/lib/google/area120/tables.rb +++ /dev/null @@ -1,115 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 this file early so that the version constant gets defined before -# requiring "google/cloud". This is because google-cloud-core will load the -# entrypoint (gem name) file, which in turn re-requires this file (hence -# causing a require cycle) unless the version constant is already defined. -require "google/area120/tables/version" - -require "googleauth" - -module Google - module Area120 - module Tables - ## - # Create a new client object for TablesService. - # - # By default, this returns an instance of - # [Google::Area120::Tables::V1alpha1::TablesService::Client](https://rubydoc.info/gems/google-area120-tables-v1alpha1/Google/Area120/Tables/V1alpha1/TablesService/Client) - # for a gRPC client for version V1alpha1 of the API. - # However, you can specify a different API version by passing it in the - # `version` parameter. If the TablesService service is - # supported by that API version, and the corresponding gem is available, the - # appropriate versioned client will be returned. - # You can also specify a different transport by passing `:rest` or `:grpc` in - # the `transport` parameter. - # - # Raises an exception if the currently installed versioned client gem for the - # given API version does not support the given transport of the TablesService service. - # You can determine whether the method will succeed by calling - # {Google::Area120::Tables.tables_service_available?}. - # - # ## About TablesService - # - # The Tables Service provides an API for reading and updating tables. - # It defines the following resource model: - # - # - The API has a collection of Table - # resources, named `tables/*` - # - # - Each Table has a collection of Row - # resources, named `tables/*/rows/*` - # - # - The API has a collection of - # Workspace - # resources, named `workspaces/*`. - # - # @param version [::String, ::Symbol] The API version to connect to. Optional. - # Defaults to `:v1alpha1`. - # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`. - # @return [::Object] A client object for the specified version. - # - def self.tables_service version: :v1alpha1, transport: :grpc, &block - require "google/area120/tables/#{version.to_s.downcase}" - - package_name = Google::Area120::Tables - .constants - .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } - .first - service_module = Google::Area120::Tables.const_get(package_name).const_get(:TablesService) - service_module = service_module.const_get(:Rest) if transport == :rest - service_module.const_get(:Client).new(&block) - end - - ## - # Determines whether the TablesService service is supported by the current client. - # If true, you can retrieve a client object by calling {Google::Area120::Tables.tables_service}. - # If false, that method will raise an exception. This could happen if the given - # API version does not exist or does not support the TablesService service, - # or if the versioned client gem needs an update to support the TablesService service. - # - # @param version [::String, ::Symbol] The API version to connect to. Optional. - # Defaults to `:v1alpha1`. - # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`. - # @return [boolean] Whether the service is available. - # - def self.tables_service_available? version: :v1alpha1, transport: :grpc - require "google/area120/tables/#{version.to_s.downcase}" - package_name = Google::Area120::Tables - .constants - .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } - .first - return false unless package_name - service_module = Google::Area120::Tables.const_get package_name - return false unless service_module.const_defined? :TablesService - service_module = service_module.const_get :TablesService - if transport == :rest - return false unless service_module.const_defined? :Rest - service_module = service_module.const_get :Rest - end - service_module.const_defined? :Client - rescue ::LoadError - false - end - end - end -end - -helper_path = ::File.join __dir__, "tables", "helpers.rb" -require "google/area120/tables/helpers" if ::File.file? helper_path diff --git a/google-area120-tables/test/google/area120/tables/client_test.rb b/google-area120-tables/test/google/area120/tables/client_test.rb deleted file mode 100644 index 17e28a9c725d..000000000000 --- a/google-area120-tables/test/google/area120/tables/client_test.rb +++ /dev/null @@ -1,64 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 "google/area120/tables" -require "gapic/common" -require "gapic/grpc" -require "gapic/rest" - -class Google::Area120::Tables::ClientConstructionMinitest < 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_tables_service_grpc - skip unless Google::Area120::Tables.tables_service_available? transport: :grpc - Gapic::ServiceStub.stub :new, DummyStub.new do - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - client = Google::Area120::Tables.tables_service transport: :grpc do |config| - config.credentials = grpc_channel - end - assert_kind_of Google::Area120::Tables::V1alpha1::TablesService::Client, client - end - end - - def test_tables_service_rest - skip unless Google::Area120::Tables.tables_service_available? transport: :rest - Gapic::Rest::ClientStub.stub :new, DummyStub.new do - client = Google::Area120::Tables.tables_service transport: :rest do |config| - config.credentials = :dummy_credentials - end - assert_kind_of Google::Area120::Tables::V1alpha1::TablesService::Rest::Client, client - end - end -end diff --git a/google-area120-tables/test/google/area120/tables/version_test.rb b/google-area120-tables/test/google/area120/tables/version_test.rb deleted file mode 100644 index 93c7bdcdeb14..000000000000 --- a/google-area120-tables/test/google/area120/tables/version_test.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 "helper" -require "google/area120/tables/version" - -class Google::Area120::Tables::VersionMinitest < Minitest::Test - def test_has_a_version - refute_nil Google::Area120::Tables::VERSION - end -end diff --git a/google-area120-tables/test/helper.rb b/google-area120-tables/test/helper.rb deleted file mode 100644 index 4fb6756ac7e2..000000000000 --- a/google-area120-tables/test/helper.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# Load JUnit XML formatter from googleapis/ruby-common-tools to write -# tmp/reports/sponge_log.xml for Kokoro/TestGrid build health tracking. -if ENV["CI"] || ENV["KOKORO_JOB_NAME"] - begin - require "gapic/minitest_junit_preloader" - rescue LoadError - end -end - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct" diff --git a/librarian.yaml b/librarian.yaml index 33c6d9cacf44..97883d151eaf 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -142,23 +142,6 @@ libraries: version: 0.12.0 apis: - path: google/apps/meet/v2beta - - name: google-area120-tables - version: 0.9.1 - apis: - - path: google/area120/tables/v1alpha1 - ruby: - ruby_cloud_opts: - ruby-cloud-env-prefix: AREA120_TABLES - ruby: - wrapper_of: - - v1alpha1:0.7 - - name: google-area120-tables-v1alpha1 - version: 0.15.1 - apis: - - path: google/area120/tables/v1alpha1 - ruby: - ruby_cloud_opts: - ruby-cloud-env-prefix: AREA120_TABLES - name: google-cloud-access_approval version: 1.8.1 apis: