diff --git a/google-cloud-beyond_corp/.OwlBot.yaml b/google-cloud-beyond_corp/.OwlBot.yaml deleted file mode 100644 index b7810758444a..000000000000 --- a/google-cloud-beyond_corp/.OwlBot.yaml +++ /dev/null @@ -1,9 +0,0 @@ -deep-copy-regex: - - source: /google/cloud/beyondcorp/appconnections/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-beyond_corp/google-cloud-beyond_corp-app_connections/$1 - - source: /google/cloud/beyondcorp/appconnectors/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-beyond_corp/google-cloud-beyond_corp-app_connectors/$1 - - source: /google/cloud/beyondcorp/appgateways/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-beyond_corp/google-cloud-beyond_corp-app_gateways/$1 - - source: /google/cloud/beyondcorp/clientgateways/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-beyond_corp/google-cloud-beyond_corp-client_gateways/$1 diff --git a/google-cloud-beyond_corp/.owlbot-manifest.json b/google-cloud-beyond_corp/.owlbot-manifest.json deleted file mode 100644 index 02a37a862be9..000000000000 --- a/google-cloud-beyond_corp/.owlbot-manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "generated": [ - ".gitignore", - ".repo-metadata.json", - ".rubocop.yml", - ".toys.rb", - ".yardopts", - "AUTHENTICATION.md", - "CHANGELOG.md", - "Gemfile", - "LICENSE.md", - "README.md", - "Rakefile", - "google-cloud-beyond_corp.gemspec", - "lib/google-cloud-beyond_corp.rb", - "lib/google/cloud/beyond_corp.rb", - "lib/google/cloud/beyond_corp/app_connections.rb", - "lib/google/cloud/beyond_corp/app_connections/version.rb", - "lib/google/cloud/beyond_corp/app_connectors.rb", - "lib/google/cloud/beyond_corp/app_connectors/version.rb", - "lib/google/cloud/beyond_corp/app_gateways.rb", - "lib/google/cloud/beyond_corp/app_gateways/version.rb", - "lib/google/cloud/beyond_corp/client_gateways.rb", - "lib/google/cloud/beyond_corp/client_gateways/version.rb", - "lib/google/cloud/beyond_corp/version.rb", - "test/google/cloud/beyond_corp/app_connections/client_test.rb", - "test/google/cloud/beyond_corp/app_connections/version_test.rb", - "test/google/cloud/beyond_corp/app_connectors/client_test.rb", - "test/google/cloud/beyond_corp/app_connectors/version_test.rb", - "test/google/cloud/beyond_corp/app_gateways/client_test.rb", - "test/google/cloud/beyond_corp/app_gateways/version_test.rb", - "test/google/cloud/beyond_corp/client_gateways/client_test.rb", - "test/google/cloud/beyond_corp/client_gateways/version_test.rb", - "test/helper.rb" - ], - "static": [ - ".OwlBot.yaml", - ".owlbot.rb", - "Gemfile.lock" - ] -} diff --git a/google-cloud-beyond_corp/.owlbot.rb b/google-cloud-beyond_corp/.owlbot.rb deleted file mode 100644 index 54f4f0990cb8..000000000000 --- a/google-cloud-beyond_corp/.owlbot.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -OwlBot.prepare_multi_wrapper( - [ - "google-cloud-beyond_corp-app_connections", - "google-cloud-beyond_corp-app_connectors", - "google-cloud-beyond_corp-app_gateways", - "google-cloud-beyond_corp-client_gateways" - ], - pretty_name: "BeyondCorp API" -) - -OwlBot.move_files diff --git a/google-cloud-beyond_corp/README.md b/google-cloud-beyond_corp/README.md index fff6425199ee..c0431a975152 100644 --- a/google-cloud-beyond_corp/README.md +++ b/google-cloud-beyond_corp/README.md @@ -1,9 +1,8 @@ # Ruby Client for the BeyondCorp API -API Client library for the BeyondCorp API - Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. + Actual client classes for the various versions of this API are defined in _versioned_ client gems, with names of the form `google-cloud-beyond_corp-app_connections-v*`. The gem `google-cloud-beyond_corp` is the main client library that brings the @@ -21,9 +20,6 @@ client gems: [google-cloud-beyond_corp-app_gateways-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-beyond_corp-app_gateways-v1/latest), [google-cloud-beyond_corp-client_gateways-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-beyond_corp-client_gateways-v1/latest). -See also the [Product Documentation](https://cloud.google.com/beyondcorp/) -for more usage information. - ## Quick Start ``` diff --git a/google-cloud-monitoring/.OwlBot.yaml b/google-cloud-monitoring/.OwlBot.yaml deleted file mode 100644 index 4a2186b1a1e1..000000000000 --- a/google-cloud-monitoring/.OwlBot.yaml +++ /dev/null @@ -1,7 +0,0 @@ -deep-copy-regex: - - source: /google/monitoring/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-monitoring/google-cloud-monitoring/$1 - - source: /google/monitoring/dashboard/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-monitoring/google-cloud-monitoring-dashboard/$1 - - source: /google/monitoring/metricsscope/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-monitoring/google-cloud-monitoring-metrics_scope/$1 diff --git a/google-cloud-monitoring/.owlbot-manifest.json b/google-cloud-monitoring/.owlbot-manifest.json deleted file mode 100644 index bd387918b2b7..000000000000 --- a/google-cloud-monitoring/.owlbot-manifest.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "generated": [ - ".gitignore", - ".repo-metadata.json", - ".rubocop.yml", - ".toys.rb", - ".yardopts", - "AUTHENTICATION.md", - "CHANGELOG.md", - "Gemfile", - "LICENSE.md", - "README.md", - "Rakefile", - "google-cloud-monitoring.gemspec", - "lib/google-cloud-monitoring.rb", - "lib/google/cloud/monitoring.rb", - "lib/google/cloud/monitoring/dashboard.rb", - "lib/google/cloud/monitoring/dashboard/version.rb", - "lib/google/cloud/monitoring/metrics_scope.rb", - "lib/google/cloud/monitoring/metrics_scope/version.rb", - "lib/google/cloud/monitoring/version.rb", - "test/google/cloud/monitoring/client_test.rb", - "test/google/cloud/monitoring/dashboard/client_test.rb", - "test/google/cloud/monitoring/dashboard/version_test.rb", - "test/google/cloud/monitoring/metrics_scope/client_test.rb", - "test/google/cloud/monitoring/metrics_scope/version_test.rb", - "test/google/cloud/monitoring/version_test.rb", - "test/helper.rb" - ], - "static": [ - ".OwlBot.yaml", - ".owlbot.rb", - "Gemfile.lock", - "MIGRATING.md", - "acceptance/google/cloud/monitoring/v3/metric_service_smoke_test.rb", - "samples/Gemfile", - "samples/README.md", - "samples/Rakefile", - "samples/acceptance/helper.rb", - "samples/acceptance/metrics_test.rb", - "samples/acceptance/quickstart_test.rb", - "samples/acceptance/uptime_check_test.rb", - "samples/metrics.rb", - "samples/quickstart.rb", - "samples/uptime_check.rb" - ] -} diff --git a/google-cloud-monitoring/.owlbot.rb b/google-cloud-monitoring/.owlbot.rb deleted file mode 100644 index c320f2c82a21..000000000000 --- a/google-cloud-monitoring/.owlbot.rb +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -OwlBot.prepare_multi_wrapper [ - "google-cloud-monitoring", - "google-cloud-monitoring-dashboard", - "google-cloud-monitoring-metrics_scope" -] - -OwlBot.move_files diff --git a/google-cloud-monitoring/README.md b/google-cloud-monitoring/README.md index 83c22f01f14a..a07a5ccb9187 100644 --- a/google-cloud-monitoring/README.md +++ b/google-cloud-monitoring/README.md @@ -1,8 +1,7 @@ # Ruby Client for the Cloud Monitoring API -API Client library for the Cloud Monitoring API +Manages your Cloud Monitoring data and configurations. -Cloud Monitoring collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation. Actual client classes for the various versions of this API are defined in _versioned_ client gems, with names of the form `google-cloud-monitoring-v*`. @@ -20,9 +19,6 @@ client gems: [google-cloud-monitoring-dashboard-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest), [google-cloud-monitoring-metrics_scope-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-metrics_scope-v1/latest). -See also the [Product Documentation](https://cloud.google.com/monitoring) -for more usage information. - ## Quick Start ``` diff --git a/google-cloud-monitoring/google-cloud-monitoring.gemspec b/google-cloud-monitoring/google-cloud-monitoring.gemspec index 5d6c17098369..52054b30b336 100644 --- a/google-cloud-monitoring/google-cloud-monitoring.gemspec +++ b/google-cloud-monitoring/google-cloud-monitoring.gemspec @@ -9,8 +9,8 @@ Gem::Specification.new do |gem| gem.authors = ["Google LLC"] gem.email = "googleapis-packages@google.com" - gem.description = "Cloud Monitoring collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation." - gem.summary = "API Client library for the Cloud Monitoring API" + gem.description = "Manages your Cloud Monitoring data and configurations." + gem.summary = "Manages your Cloud Monitoring data and configurations." gem.homepage = "https://github.com/googleapis/google-cloud-ruby" gem.license = "Apache-2.0" diff --git a/google-cloud-policy_troubleshooter/.OwlBot.yaml b/google-cloud-policy_troubleshooter/.OwlBot.yaml deleted file mode 100644 index be08e6652875..000000000000 --- a/google-cloud-policy_troubleshooter/.OwlBot.yaml +++ /dev/null @@ -1,5 +0,0 @@ -deep-copy-regex: - - source: /google/cloud/policytroubleshooter/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-policy_troubleshooter/google-cloud-policy_troubleshooter/$1 - - source: /google/cloud/policytroubleshooter/iam/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-policy_troubleshooter/google-cloud-policy_troubleshooter-iam/$1 diff --git a/google-cloud-policy_troubleshooter/.owlbot-manifest.json b/google-cloud-policy_troubleshooter/.owlbot-manifest.json deleted file mode 100644 index 1de6162f7e51..000000000000 --- a/google-cloud-policy_troubleshooter/.owlbot-manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "generated": [ - ".gitignore", - ".repo-metadata.json", - ".rubocop.yml", - ".toys.rb", - ".yardopts", - "AUTHENTICATION.md", - "CHANGELOG.md", - "Gemfile", - "LICENSE.md", - "README.md", - "Rakefile", - "google-cloud-policy_troubleshooter.gemspec", - "lib/google-cloud-policy_troubleshooter.rb", - "lib/google/cloud/policy_troubleshooter.rb", - "lib/google/cloud/policy_troubleshooter/iam.rb", - "lib/google/cloud/policy_troubleshooter/iam/version.rb", - "lib/google/cloud/policy_troubleshooter/version.rb", - "test/google/cloud/policy_troubleshooter/client_test.rb", - "test/google/cloud/policy_troubleshooter/iam/client_test.rb", - "test/google/cloud/policy_troubleshooter/iam/version_test.rb", - "test/google/cloud/policy_troubleshooter/version_test.rb", - "test/helper.rb" - ], - "static": [ - ".OwlBot.yaml", - ".owlbot.rb", - "Gemfile.lock" - ] -} diff --git a/google-cloud-policy_troubleshooter/.owlbot.rb b/google-cloud-policy_troubleshooter/.owlbot.rb deleted file mode 100644 index 04a86c08800b..000000000000 --- a/google-cloud-policy_troubleshooter/.owlbot.rb +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -OwlBot.prepare_multi_wrapper [ - "google-cloud-policy_troubleshooter", - "google-cloud-policy_troubleshooter-iam" -] - -OwlBot.move_files diff --git a/google-cloud-policy_troubleshooter/.yardopts b/google-cloud-policy_troubleshooter/.yardopts index 7f48b4ccc854..f28b50b2ea64 100644 --- a/google-cloud-policy_troubleshooter/.yardopts +++ b/google-cloud-policy_troubleshooter/.yardopts @@ -1,5 +1,5 @@ --no-private ---title="IAM Policy Troubleshooter API" +--title="Policy Troubleshooter API" --exclude _pb\.rb$ --markup markdown --markup-provider redcarpet diff --git a/google-cloud-policy_troubleshooter/README.md b/google-cloud-policy_troubleshooter/README.md index 0676e625f576..df41950d7513 100644 --- a/google-cloud-policy_troubleshooter/README.md +++ b/google-cloud-policy_troubleshooter/README.md @@ -1,8 +1,7 @@ -# Ruby Client for the IAM Policy Troubleshooter API +# Ruby Client for the Policy Troubleshooter API -API Client library for the IAM Policy Troubleshooter API +Policy Troubleshooter helps you understand whether a principal can access a resource. Given a principal, a resource, and a permission, Policy Troubleshooter examines the allow policies, deny policies, and principal access boundary (PAB) policies that impact the principal's access. -Policy Troubleshooter makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter will examine all IAM policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles. Actual client classes for the various versions of this API are defined in _versioned_ client gems, with names of the form `google-cloud-policy_troubleshooter-v*`. @@ -19,7 +18,7 @@ client gems: [google-cloud-policy_troubleshooter-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-policy_troubleshooter-v1/latest), [google-cloud-policy_troubleshooter-iam-v3](https://cloud.google.com/ruby/docs/reference/google-cloud-policy_troubleshooter-iam-v3/latest). -See also the [Product Documentation](https://cloud.google.com/iam/docs/troubleshooting-access) +See also the [Product Documentation](https://cloud.google.com/policy-intelligence/docs/troubleshoot-access) for more usage information. ## Quick Start diff --git a/google-cloud-policy_troubleshooter/google-cloud-policy_troubleshooter.gemspec b/google-cloud-policy_troubleshooter/google-cloud-policy_troubleshooter.gemspec index 28ee4445b83b..754c19653d89 100644 --- a/google-cloud-policy_troubleshooter/google-cloud-policy_troubleshooter.gemspec +++ b/google-cloud-policy_troubleshooter/google-cloud-policy_troubleshooter.gemspec @@ -9,8 +9,8 @@ Gem::Specification.new do |gem| gem.authors = ["Google LLC"] gem.email = "googleapis-packages@google.com" - gem.description = "Policy Troubleshooter makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter will examine all IAM policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles." - gem.summary = "API Client library for the IAM Policy Troubleshooter API" + gem.description = "Policy Troubleshooter helps you understand whether a principal can access a resource. Given a principal, a resource, and a permission, Policy Troubleshooter examines the allow policies, deny policies, and principal access boundary (PAB) policies that impact the principal's access." + gem.summary = "Policy Troubleshooter helps you understand whether a principal can access a resource. Given a principal, a resource, and a permission, Policy Troubleshooter examines the allow policies, deny policies, and principal access boundary (PAB) policies that impact the principal's access." gem.homepage = "https://github.com/googleapis/google-cloud-ruby" gem.license = "Apache-2.0" diff --git a/google-cloud-workflows/.OwlBot.yaml b/google-cloud-workflows/.OwlBot.yaml deleted file mode 100644 index 9b70a6e5da8b..000000000000 --- a/google-cloud-workflows/.OwlBot.yaml +++ /dev/null @@ -1,5 +0,0 @@ -deep-copy-regex: - - source: /google/cloud/workflows/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-workflows/google-cloud-workflows/$1 - - source: /google/cloud/workflows/executions/[^/]+-ruby/(.*) - dest: /owl-bot-staging/google-cloud-workflows/google-cloud-workflows-executions/$1 diff --git a/google-cloud-workflows/.owlbot-manifest.json b/google-cloud-workflows/.owlbot-manifest.json deleted file mode 100644 index 5f658f7e0832..000000000000 --- a/google-cloud-workflows/.owlbot-manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "generated": [ - ".gitignore", - ".repo-metadata.json", - ".rubocop.yml", - ".toys.rb", - ".yardopts", - "AUTHENTICATION.md", - "CHANGELOG.md", - "Gemfile", - "LICENSE.md", - "README.md", - "Rakefile", - "google-cloud-workflows.gemspec", - "lib/google-cloud-workflows.rb", - "lib/google/cloud/workflows.rb", - "lib/google/cloud/workflows/executions.rb", - "lib/google/cloud/workflows/executions/version.rb", - "lib/google/cloud/workflows/version.rb", - "test/google/cloud/workflows/client_test.rb", - "test/google/cloud/workflows/executions/client_test.rb", - "test/google/cloud/workflows/executions/version_test.rb", - "test/google/cloud/workflows/version_test.rb", - "test/helper.rb" - ], - "static": [ - ".OwlBot.yaml", - ".owlbot.rb", - "Gemfile.lock" - ] -} diff --git a/google-cloud-workflows/.owlbot.rb b/google-cloud-workflows/.owlbot.rb deleted file mode 100644 index c2cc9845b669..000000000000 --- a/google-cloud-workflows/.owlbot.rb +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -OwlBot.prepare_multi_wrapper [ - "google-cloud-workflows", - "google-cloud-workflows-executions" -] - -OwlBot.move_files diff --git a/google-cloud-workflows/README.md b/google-cloud-workflows/README.md index 8992347faf27..990ba7af2033 100644 --- a/google-cloud-workflows/README.md +++ b/google-cloud-workflows/README.md @@ -1,8 +1,7 @@ # Ruby Client for the Workflows API -API Client library for the Workflows API +Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API. -Workflows link series of serverless tasks together in an order you define. Combine the power of Google Cloud's APIs, serverless products like Cloud Functions and Cloud Run, and calls to external APIs to create flexible serverless applications. Workflows requires no infrastructure management and scales seamlessly with demand, including scaling down to zero. Actual client classes for the various versions of this API are defined in _versioned_ client gems, with names of the form `google-cloud-workflows-v*`. @@ -19,9 +18,6 @@ client gems: [google-cloud-workflows-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest), [google-cloud-workflows-executions-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-executions-v1/latest). -See also the [Product Documentation](https://cloud.google.com/workflows/) -for more usage information. - ## Quick Start ``` diff --git a/google-cloud-workflows/google-cloud-workflows.gemspec b/google-cloud-workflows/google-cloud-workflows.gemspec index 1c22cc2035be..5cd5d2a7fccc 100644 --- a/google-cloud-workflows/google-cloud-workflows.gemspec +++ b/google-cloud-workflows/google-cloud-workflows.gemspec @@ -9,8 +9,8 @@ Gem::Specification.new do |gem| gem.authors = ["Google LLC"] gem.email = "googleapis-packages@google.com" - gem.description = "Workflows link series of serverless tasks together in an order you define. Combine the power of Google Cloud's APIs, serverless products like Cloud Functions and Cloud Run, and calls to external APIs to create flexible serverless applications. Workflows requires no infrastructure management and scales seamlessly with demand, including scaling down to zero." - gem.summary = "API Client library for the Workflows API" + gem.description = "Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API." + gem.summary = "Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API." gem.homepage = "https://github.com/googleapis/google-cloud-ruby" gem.license = "Apache-2.0" diff --git a/google-cloud-workflows/lib/google/cloud/workflows/executions.rb b/google-cloud-workflows/lib/google/cloud/workflows/executions.rb index 9818554b1e4a..7212bcb9b27b 100644 --- a/google-cloud-workflows/lib/google/cloud/workflows/executions.rb +++ b/google-cloud-workflows/lib/google/cloud/workflows/executions.rb @@ -56,9 +56,11 @@ module Executions # `version` parameter. If the Executions 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 Executions service. + # given API version does not support the given transport of the Executions service. # You can determine whether the method will succeed by calling # {Google::Cloud::Workflows::Executions.executions_available?}. # @@ -69,9 +71,10 @@ module Executions # # @param version [::String, ::Symbol] The API version to connect to. Optional. # Defaults to `:v1`. + # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`. # @return [::Object] A client object for the specified version. # - def self.executions version: :v1, &block + def self.executions version: :v1, transport: :grpc, &block require "google/cloud/workflows/executions/#{version.to_s.downcase}" package_name = Google::Cloud::Workflows::Executions @@ -79,6 +82,7 @@ def self.executions version: :v1, &block .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::Workflows::Executions.const_get(package_name).const_get(:Executions) + service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end @@ -91,9 +95,10 @@ def self.executions version: :v1, &block # # @param version [::String, ::Symbol] The API version to connect to. Optional. # Defaults to `:v1`. + # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`. # @return [boolean] Whether the service is available. # - def self.executions_available? version: :v1 + def self.executions_available? version: :v1, transport: :grpc require "google/cloud/workflows/executions/#{version.to_s.downcase}" package_name = Google::Cloud::Workflows::Executions .constants @@ -103,6 +108,10 @@ def self.executions_available? version: :v1 service_module = Google::Cloud::Workflows::Executions.const_get package_name return false unless service_module.const_defined? :Executions service_module = service_module.const_get :Executions + 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 diff --git a/google-cloud-workflows/test/google/cloud/workflows/executions/client_test.rb b/google-cloud-workflows/test/google/cloud/workflows/executions/client_test.rb index 0a97f964751a..781b26d48989 100644 --- a/google-cloud-workflows/test/google/cloud/workflows/executions/client_test.rb +++ b/google-cloud-workflows/test/google/cloud/workflows/executions/client_test.rb @@ -20,6 +20,7 @@ require "google/cloud/workflows/executions" require "gapic/common" require "gapic/grpc" +require "gapic/rest" class Google::Cloud::Workflows::Executions::ClientConstructionMinitest < Minitest::Test class DummyStub @@ -41,13 +42,23 @@ def logger end def test_executions_grpc - skip unless Google::Cloud::Workflows::Executions.executions_available? + skip unless Google::Cloud::Workflows::Executions.executions_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::Cloud::Workflows::Executions.executions do |config| + client = Google::Cloud::Workflows::Executions.executions transport: :grpc do |config| config.credentials = grpc_channel end assert_kind_of Google::Cloud::Workflows::Executions::V1::Executions::Client, client end end + + def test_executions_rest + skip unless Google::Cloud::Workflows::Executions.executions_available? transport: :rest + Gapic::Rest::ClientStub.stub :new, DummyStub.new do + client = Google::Cloud::Workflows::Executions.executions transport: :rest do |config| + config.credentials = :dummy_credentials + end + assert_kind_of Google::Cloud::Workflows::Executions::V1::Executions::Rest::Client, client + end + end end diff --git a/librarian.yaml b/librarian.yaml index 8ba8554f732d..c20998bc4c0a 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -544,9 +544,28 @@ libraries: - path: google/cloud/batch/v1 - name: google-cloud-beyond_corp version: 1.6.1 + title_override: BeyondCorp API apis: - path: google/cloud/beyondcorp/appconnections/v1 - skip_generate: true + ruby: + ruby_cloud_opts: + ruby-cloud-gem-name: google-cloud-beyond_corp-app_connections + ruby-cloud-wrapper-of: v1:0.4 + - path: google/cloud/beyondcorp/appconnectors/v1 + ruby: + ruby_cloud_opts: + ruby-cloud-gem-name: google-cloud-beyond_corp-app_connectors + ruby-cloud-wrapper-of: v1:0.4 + - path: google/cloud/beyondcorp/appgateways/v1 + ruby: + ruby_cloud_opts: + ruby-cloud-gem-name: google-cloud-beyond_corp-app_gateways + ruby-cloud-wrapper-of: v1:0.4 + - path: google/cloud/beyondcorp/clientgateways/v1 + ruby: + ruby_cloud_opts: + ruby-cloud-gem-name: google-cloud-beyond_corp-client_gateways + ruby-cloud-wrapper-of: v1:0.4 ruby: wrapper_of: - v1:0.4 @@ -2253,6 +2272,18 @@ libraries: ruby_cloud_opts: ruby-cloud-env-prefix: MONITORING ruby-cloud-migration-version: "1.0" + - path: google/monitoring/dashboard/v1 + ruby: + ruby_cloud_opts: + ruby-cloud-env-prefix: MONITORING_DASHBOARD + ruby-cloud-gem-name: google-cloud-monitoring-dashboard + ruby-cloud-wrapper-of: v1:0.14 + - path: google/monitoring/metricsscope/v1 + ruby: + ruby_cloud_opts: + ruby-cloud-env-prefix: MONITORING_METRICS_SCOPE + ruby-cloud-gem-name: google-cloud-monitoring-metrics_scope + ruby-cloud-wrapper-of: v1:0.5 keep: - MIGRATING.md - acceptance/google/cloud/monitoring/v3/metric_service_smoke_test.rb @@ -2266,7 +2297,6 @@ libraries: - samples/metrics.rb - samples/quickstart.rb - samples/uptime_check.rb - skip_generate: true ruby: wrapper_of: - v3:0.15 @@ -2657,7 +2687,11 @@ libraries: ruby: ruby_cloud_opts: ruby-cloud-env-prefix: POLICY_TROUBLESHOOTER - skip_generate: true + - path: google/cloud/policytroubleshooter/iam/v3 + ruby: + ruby_cloud_opts: + ruby-cloud-gem-name: google-cloud-policy_troubleshooter-iam + ruby-cloud-wrapper-of: v3:0.3 ruby: wrapper_of: - v1:0.10 @@ -4154,7 +4188,12 @@ libraries: ruby: ruby_cloud_opts: ruby-cloud-env-prefix: WORKFLOWS - skip_generate: true + - path: google/cloud/workflows/executions/v1 + ruby: + ruby_cloud_opts: + ruby-cloud-env-prefix: WORKFLOWS + ruby-cloud-gem-name: google-cloud-workflows-executions + ruby-cloud-wrapper-of: v1:1.2 ruby: wrapper_of: - v1:2.0