From e383bbcc042c9afa79a6f49cf43bb7f99f13d86d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 11 Feb 2026 05:07:41 +0000 Subject: [PATCH 1/2] feat: Adding Method QueryIssues of Database Center API v1beta docs: A comment for field `maintenance_version` in message `.google.cloud.databasecenter.v1beta.MaintenanceInfo` is changed docs: A comment for field `filter` in message `.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest` is changed docs: A comment for field `order_by` in message `.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest` is changed docs: A comment for field `filter` in message `.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest` is changed docs: A comment for field `filter` in message `.google.cloud.databasecenter.v1beta.AggregateFleetRequest` is changed docs: A comment for field `order_by` in message `.google.cloud.databasecenter.v1beta.AggregateFleetRequest` is changed docs: A comment for message `AggregateFleetResponse` is changed PiperOrigin-RevId: 868397264 Source-Link: https://github.com/googleapis/googleapis/commit/9eea40c74d97622bb0aa406dd313409a376cc73b Source-Link: https://github.com/googleapis/googleapis-gen/commit/8aba43169374010c0072bab48dcfd79781f53386 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFiYXNlX2NlbnRlci12MWJldGEvLk93bEJvdC55YW1sIiwiaCI6IjhhYmE0MzE2OTM3NDAxMGMwMDcyYmFiNDhkY2ZkNzk3ODFmNTMzODYifQ== --- .../.gitignore | 22 + .../.repo-metadata.json | 17 + .../.rubocop.yml | 33 + .../.toys.rb | 28 + .../.yardopts | 12 + .../AUTHENTICATION.md | 122 ++ .../CHANGELOG.md | 2 + .../Gemfile | 11 + .../LICENSE.md | 201 +++ .../README.md | 154 +++ .../Rakefile | 169 +++ .../gapic_metadata.json | 43 + ...oogle-cloud-database_center-v1beta.gemspec | 28 + .../google-cloud-database_center-v1beta.rb | 21 + .../google/cloud/database_center/v1beta.rb | 45 + .../database_center/v1beta/database_center.rb | 54 + .../v1beta/database_center/client.rb | 1087 +++++++++++++++++ .../v1beta/database_center/credentials.rb | 47 + .../v1beta/database_center/rest.rb | 51 + .../v1beta/database_center/rest/client.rb | 1049 ++++++++++++++++ .../database_center/rest/service_stub.rb | 379 ++++++ .../cloud/database_center/v1beta/rest.rb | 37 + .../cloud/database_center/v1beta/version.rb | 28 + .../v1beta/machine_config_pb.rb | 44 + .../databasecenter/v1beta/maintenance_pb.rb | 52 + .../databasecenter/v1beta/metric_data_pb.rb | 47 + .../v1beta/operation_error_type_pb.rb | 42 + .../cloud/databasecenter/v1beta/product_pb.rb | 46 + .../cloud/databasecenter/v1beta/service_pb.rb | 84 ++ .../v1beta/service_services_pb.rb | 56 + .../cloud/databasecenter/v1beta/signals_pb.rb | 78 ++ .../v1beta/suspension_reason_pb.rb | 42 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 473 +++++++ .../proto_docs/google/api/field_behavior.rb | 85 ++ .../proto_docs/google/api/launch_stage.rb | 71 ++ .../proto_docs/google/api/resource.rb | 227 ++++ .../databasecenter/v1beta/machine_config.rb | 42 + .../databasecenter/v1beta/maintenance.rb | 105 ++ .../databasecenter/v1beta/metric_data.rb | 92 ++ .../v1beta/operation_error_type.rb | 53 + .../cloud/databasecenter/v1beta/product.rb | 132 ++ .../cloud/databasecenter/v1beta/service.rb | 920 ++++++++++++++ .../cloud/databasecenter/v1beta/signals.rb | 848 +++++++++++++ .../v1beta/suspension_reason.rb | 50 + .../proto_docs/google/protobuf/duration.rb | 98 ++ .../proto_docs/google/protobuf/timestamp.rb | 127 ++ .../proto_docs/google/protobuf/wrappers.rb | 121 ++ .../proto_docs/google/type/date.rb | 53 + .../proto_docs/google/type/dayofweek.rb | 49 + .../proto_docs/google/type/timeofday.rb | 45 + .../snippets/Gemfile | 32 + .../database_center/aggregate_fleet.rb | 51 + .../database_center/aggregate_issue_stats.rb | 47 + .../query_database_resource_groups.rb | 51 + .../snippets/database_center/query_issues.rb | 51 + .../database_center/query_products.rb | 51 + ...ta_google.cloud.databasecenter.v1beta.json | 215 ++++ .../v1beta/database_center_rest_test.rb | 391 ++++++ .../v1beta/database_center_test.rb | 460 +++++++ .../test/helper.rb | 25 + 61 files changed, 9100 insertions(+) create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.gitignore create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.toys.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.yardopts create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/Gemfile create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/README.md create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/Rakefile create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/google-cloud-database_center-v1beta.gemspec create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google-cloud-database_center-v1beta.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/credentials.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/rest.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/version.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/product_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/signals_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/product.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/signals.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/wrappers.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/date.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/dayofweek.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/timeofday.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_fleet.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_issue_stats.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_database_resource_groups.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_issues.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_products.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb create mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/test/helper.rb diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.gitignore b/owl-bot-staging/google-cloud-database_center-v1beta/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.repo-metadata.json b/owl-bot-staging/google-cloud-database_center-v1beta/.repo-metadata.json new file mode 100644 index 000000000000..36bd746450dc --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_id": "databasecenter.googleapis.com", + "api_shortname": "databasecenter", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest", + "distribution_name": "google-cloud-database_center-v1beta", + "is_cloud": true, + "language": "ruby", + "name": "databasecenter", + "name_pretty": "Database Center V1BETA API", + "product_documentation": "https://cloud.google.com/database-center/docs/overview", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "The Database Center API provides access to an organization-wide, cross-product database fleet health platform. It aggregates health, security, and compliance signals from various Google Cloud databases, offering a single pane of glass to identify and manage issues. Note that google-cloud-database_center-v1beta is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-database_center instead. See the readme for more details.", + "ruby-cloud-product-url": "https://cloud.google.com/database-center/docs/overview", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.rubocop.yml b/owl-bot-staging/google-cloud-database_center-v1beta/.rubocop.yml new file mode 100644 index 000000000000..85308864c7ea --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-database_center-v1beta.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-database_center-v1beta.rb" diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.toys.rb b/owl-bot-staging/google-cloud-database_center-v1beta/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.yardopts b/owl-bot-staging/google-cloud-database_center-v1beta/.yardopts new file mode 100644 index 000000000000..21c5dcc37cba --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Database Center V1BETA API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/AUTHENTICATION.md b/owl-bot-staging/google-cloud-database_center-v1beta/AUTHENTICATION.md new file mode 100644 index 000000000000..d9c49920bc4f --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-database_center-v1beta library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-database_center-v1beta library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/database_center/v1beta" + +client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/database_center/v1beta" + +::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-database_center-v1beta +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/database_center/v1beta" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/CHANGELOG.md b/owl-bot-staging/google-cloud-database_center-v1beta/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/Gemfile b/owl-bot-staging/google-cloud-database_center-v1beta/Gemfile new file mode 100644 index 000000000000..6442df18fa2f --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/Gemfile @@ -0,0 +1,11 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.31.1" +gem "minitest", "~> 5.22" +gem "minitest-focus", "~> 1.4" +gem "minitest-rg", "~> 5.3" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/LICENSE.md b/owl-bot-staging/google-cloud-database_center-v1beta/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/README.md b/owl-bot-staging/google-cloud-database_center-v1beta/README.md new file mode 100644 index 000000000000..7908ada925a9 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Database Center V1BETA API + +Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center’s fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team. + +The Database Center API provides access to an organization-wide, cross-product database fleet health platform. It aggregates health, security, and compliance signals from various Google Cloud databases, offering a single pane of glass to identify and manage issues. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Database Center V1BETA API. Most users should consider using +the main client gem, +[google-cloud-database_center](https://rubygems.org/gems/google-cloud-database_center). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-database_center-v1beta +``` + +## 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/databasecenter.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/database_center/v1beta" + +client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new +request = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new # (request fields as keyword arguments...) +response = client.query_products request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/database-center/docs/overview) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/database_center/v1beta" +require "logger" + +client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-database_center`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-database_center-v1beta`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-database_center`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-database_center-v1beta`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/Rakefile b/owl-bot-staging/google-cloud-database_center-v1beta/Rakefile new file mode 100644 index 000000000000..2945939f962e --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-database_center-v1beta acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["GOOGLE_CLOUD_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["GOOGLE_CLOUD_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 GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/database_center/v1beta/database_center/credentials" + ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["GOOGLE_CLOUD_PROJECT"] = project + ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project + ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-database_center-v1beta gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-database_center-v1beta gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-database_center-v1beta gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-database_center-v1beta gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-database_center-v1beta" + header "google-cloud-database_center-v1beta rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-database_center-v1beta yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-database_center-v1beta test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-database_center-v1beta smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-database_center-v1beta acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/gapic_metadata.json b/owl-bot-staging/google-cloud-database_center-v1beta/gapic_metadata.json new file mode 100644 index 000000000000..48cacf49f126 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/gapic_metadata.json @@ -0,0 +1,43 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.cloud.databasecenter.v1beta", + "libraryPackage": "::Google::Cloud::DatabaseCenter::V1beta", + "services": { + "DatabaseCenter": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client", + "rpcs": { + "QueryProducts": { + "methods": [ + "query_products" + ] + }, + "AggregateFleet": { + "methods": [ + "aggregate_fleet" + ] + }, + "QueryDatabaseResourceGroups": { + "methods": [ + "query_database_resource_groups" + ] + }, + "AggregateIssueStats": { + "methods": [ + "aggregate_issue_stats" + ] + }, + "QueryIssues": { + "methods": [ + "query_issues" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/google-cloud-database_center-v1beta.gemspec b/owl-bot-staging/google-cloud-database_center-v1beta/google-cloud-database_center-v1beta.gemspec new file mode 100644 index 000000000000..d8b8fb2c3ab3 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/google-cloud-database_center-v1beta.gemspec @@ -0,0 +1,28 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/database_center/v1beta/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-database_center-v1beta" + gem.version = Google::Cloud::DatabaseCenter::V1beta::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "The Database Center API provides access to an organization-wide, cross-product database fleet health platform. It aggregates health, security, and compliance signals from various Google Cloud databases, offering a single pane of glass to identify and manage issues. Note that google-cloud-database_center-v1beta is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-database_center instead. See the readme for more details." + gem.summary = "Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center’s fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.1" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google-cloud-database_center-v1beta.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google-cloud-database_center-v1beta.rb new file mode 100644 index 000000000000..9fa1c0288a32 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google-cloud-database_center-v1beta.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/database_center/v1beta" diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta.rb new file mode 100644 index 000000000000..976188fa88b9 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/database_center/v1beta/database_center" +require "google/cloud/database_center/v1beta/version" + +module Google + module Cloud + module DatabaseCenter + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/database_center/v1beta" + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/cloud/database_center/v1beta" + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + module V1beta + end + end + end +end + +helper_path = ::File.join __dir__, "v1beta", "_helpers.rb" +require "google/cloud/database_center/v1beta/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center.rb new file mode 100644 index 000000000000..efaaee25043d --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/database_center/v1beta/version" + +require "google/cloud/database_center/v1beta/database_center/credentials" +require "google/cloud/database_center/v1beta/database_center/client" +require "google/cloud/database_center/v1beta/database_center/rest" + +module Google + module Cloud + module DatabaseCenter + module V1beta + ## + # DatabaseCenter contains methods to query fleet view for database resources. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/database_center/v1beta/database_center" + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/database_center/v1beta/database_center/rest" + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + module DatabaseCenter + end + end + end + end +end + +helper_path = ::File.join __dir__, "database_center", "helpers.rb" +require "google/cloud/database_center/v1beta/database_center/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb new file mode 100644 index 000000000000..ead427033f89 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb @@ -0,0 +1,1087 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/cloud/databasecenter/v1beta/service_pb" + +module Google + module Cloud + module DatabaseCenter + module V1beta + module DatabaseCenter + ## + # Client for the DatabaseCenter service. + # + # DatabaseCenter contains methods to query fleet view for database resources. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "databasecenter.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :database_center_stub + + ## + # Configure the DatabaseCenter Client class. + # + # See {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all DatabaseCenter clients + # ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "DatabaseCenter", "V1beta"] + 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 + end + yield @configure if block_given? + @configure + end + + ## + # Configure the DatabaseCenter Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 + @database_center_stub.universe_domain + end + + ## + # Create a new DatabaseCenter client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the DatabaseCenter 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/cloud/databasecenter/v1beta/service_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 + + @database_center_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 + ) + + @database_center_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 + @database_center_stub.logger + end + + # Service calls + + ## + # QueryProducts provides a list of all possible products which can be used to + # filter database resources. + # + # @overload query_products(request, options = nil) + # Pass arguments to `query_products` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_products(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_products` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID}/locations/\\{LOCATION} + # (e.g.,"projects/foo-bar/locations/us-central1") + # * projects/\\{PROJECT_NUMBER}/locations/\\{LOCATION} + # (e.g.,"projects/12345678/locations/us-central1") + # * folders/\\{FOLDER_NUMBER}/locations/\\{LOCATION} + # (e.g.,"folders/1234567/locations/us-central1") + # * organizations/\\{ORGANIZATION_NUMBER}/locations/\\{LOCATION} + # (e.g.,"organizations/123456/locations/us-central1") + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 products will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `ListLocations` call. + # Provide this to retrieve the subsequent page. + # All other parameters except page size should match the call that provided + # the page page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::Product>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::Product>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new + # + # # Call the query_products method. + # result = client.query_products request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::Product. + # p item + # end + # + def query_products request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_products.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.query_products.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_products.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.call_rpc :query_products, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @database_center_stub, :query_products, 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 + + ## + # AggregateFleet provides statistics about the fleet grouped by various + # fields. + # + # @overload aggregate_fleet(request, options = nil) + # Pass arguments to `aggregate_fleet` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload aggregate_fleet(parent: nil, filter: nil, group_by: nil, order_by: nil, page_size: nil, page_token: nil, baseline_date: nil) + # Pass arguments to `aggregate_fleet` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., + # "organizations/123456") + # @param filter [::String] + # Optional. The expression to filter resources. + # + # Supported fields are: `full_resource_name`, `resource_type`, `container`, + # `product.type`, `product.engine`, `product.version`, `location`, + # `labels`, `issues`, fields of availability_info, data_protection_info, + # 'resource_name', etc. + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # @param group_by [::String] + # Optional. A field that statistics are grouped by. + # Valid values are any combination of the following: + # * container + # * product.type + # * product.engine + # * product.version + # * location + # * sub_resource_type + # * management_type + # * tag.key + # * tag.value + # * tag.source + # * tag.inherited + # * label.key + # * label.value + # * label.source + # * has_maintenance_schedule + # * has_deny_maintenance_schedules + # Comma separated list. + # @param order_by [::String] + # Optional. Valid values to order by are: + # * resource_groups_count + # * resources_count + # * and all fields supported by `group_by` + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It supports ordering using multiple fields. + # For example: + # `order_by = "resource_groups_count"` sorts response in ascending order + # `order_by = "resource_groups_count DESC"` sorts response in descending + # order + # `order_by = "product.type, product.version DESC, location"` orders by type + # in ascending order, version in descending order and location in ascending + # order + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 items will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `AggregateFleet` call. + # Provide this to retrieve the subsequent page. + # All other parameters should match the parameters in the call that provided + # the page token except for page_size which can be different. + # @param baseline_date [::Google::Type::Date, ::Hash] + # Optional. The baseline date w.r.t. which the delta counts are calculated. + # If not set, delta counts are not included in the response and the response + # indicates the current state of the fleet. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new + # + # # Call the aggregate_fleet method. + # result = client.aggregate_fleet request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow. + # p item + # end + # + def aggregate_fleet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.aggregate_fleet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.aggregate_fleet.timeout, + metadata: metadata, + retry_policy: @config.rpcs.aggregate_fleet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.call_rpc :aggregate_fleet, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @database_center_stub, :aggregate_fleet, 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 + + ## + # QueryDatabaseResourceGroups returns paginated results of database groups. + # + # @overload query_database_resource_groups(request, options = nil) + # Pass arguments to `query_database_resource_groups` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_database_resource_groups(parent: nil, filter: nil, signal_type_groups: nil, signal_filters: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_database_resource_groups` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param filter [::String] + # Optional. The expression to filter resources. + # + # The following fields are filterable: + # * full_resource_name + # * resource_type + # * container + # * product.type + # * product.engine + # * product.version + # * location + # * labels + # * resource_category + # * machine_config.cpu_count + # * machine_config.memory_size_bytes + # * machine_config.shard_count + # * resource_name + # * tags + # * backupdr_config.backupdr_managed + # * edition + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # Example: `full_resource_name=~"test"` + # Example: `full_resource_name=~"test.*master"` + # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] + # Optional. Groups of signal types that are requested. + # @param signal_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalFilter, ::Hash>] + # Optional. Filters based on signals. The list will be ORed together and then + # ANDed with the `filters` field above. + # @param order_by [::String] + # Optional. A field that specifies the sort order of the results. + # + # The following fields are sortable: + # * full_resource_name + # * product.type + # * product.engine + # * product.version + # * container + # * issue_count + # * machine_config.vcpu_count + # * machine_config.memory_size_bytes + # * machine_config.shard_count + # * resource_name + # * issue_severity + # * signal_type + # * location + # * resource_type + # * instance_type + # * edition + # * metrics.p99_cpu_utilization + # * metrics.p95_cpu_utilization + # * metrics.current_storage_used_bytes + # * metrics.node_count + # * metrics.processing_unit_count + # * metrics.current_memory_used_bytes + # * metrics.peak_storage_utilization + # * metrics.peak_number_connections + # * metrics.peak_memory_utilization + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # + # For example: + # `order_by = "full_resource_name"` sorts response in ascending order + # `order_by = "full_resource_name DESC"` sorts response in descending order + # `order_by = "issue_count DESC"` sorts response in descending order of + # count of all issues associated with a resource. + # + # More explicitly, `order_by = "full_resource_name, product"` is not + # supported. + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 resource groups will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the + # subsequent page. All parameters except page_token should match the + # parameters in the call that provided the page page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new + # + # # Call the query_database_resource_groups method. + # result = client.query_database_resource_groups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup. + # p item + # end + # + def query_database_resource_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_database_resource_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.query_database_resource_groups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_database_resource_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.call_rpc :query_database_resource_groups, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @database_center_stub, :query_database_resource_groups, 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 + + ## + # AggregateIssueStats provides database resource issues statistics. + # + # @overload aggregate_issue_stats(request, options = nil) + # Pass arguments to `aggregate_issue_stats` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload aggregate_issue_stats(parent: nil, filter: nil, signal_type_groups: nil, baseline_date: nil) + # Pass arguments to `aggregate_issue_stats` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param filter [::String] + # Optional. The expression to filter resources. + # + # Supported fields are: `full_resource_name`, `resource_type`, `container`, + # `product.type`, `product.engine`, `product.version`, `location`, + # `labels`, `issues`, fields of availability_info, + # data_protection_info,'resource_name', etc. + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] + # Optional. Lists of signal types that are issues. + # @param baseline_date [::Google::Type::Date, ::Hash] + # Optional. The baseline date w.r.t. which the delta counts are calculated. + # If not set, delta counts are not included in the response and the response + # indicates the current state of the fleet. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new + # + # # Call the aggregate_issue_stats method. + # result = client.aggregate_issue_stats request + # + # # The returned object is of type Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse. + # p result + # + def aggregate_issue_stats request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.aggregate_issue_stats.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.aggregate_issue_stats.timeout, + metadata: metadata, + retry_policy: @config.rpcs.aggregate_issue_stats.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.call_rpc :aggregate_issue_stats, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # QueryIssues provides a list of issues and recommendations + # that a user has access to and that are within the requested scope. + # + # @overload query_issues(request, options = nil) + # Pass arguments to `query_issues` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_issues(parent: nil, filter: nil, signal_products_filters: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_issues` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The list + # is limited to the one attached to resources within the `scope` that a user + # has access to. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param filter [::String] + # Optional. + # Supported fields are: + # 'product', + # `location`, + # `issue_severity`, + # 'tags', + # 'labels', + # @param signal_products_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, ::Hash>] + # Optional. Filters based on signal and product. The filter list will be ORed + # across pairs and ANDed within a signal and products pair. + # @param order_by [::String] + # Optional. Following fields are sortable: + # SignalType + # Product + # Location + # IssueSeverity + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 issues will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `QueryIssues` call. + # Provide this to retrieve the subsequent page. + # All parameters except page size should match the parameters used in the + # call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new + # + # # Call the query_issues method. + # result = client.query_issues request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue. + # p item + # end + # + def query_issues request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_issues.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.query_issues.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_issues.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.call_rpc :query_issues, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @database_center_stub, :query_issues, 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 + + ## + # Configuration class for the DatabaseCenter API. + # + # This class represents the configuration for DatabaseCenter, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 + # # query_products to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.query_products.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.query_products.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "databasecenter.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 DatabaseCenter API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `query_products` + # @return [::Gapic::Config::Method] + # + attr_reader :query_products + ## + # RPC-specific configuration for `aggregate_fleet` + # @return [::Gapic::Config::Method] + # + attr_reader :aggregate_fleet + ## + # RPC-specific configuration for `query_database_resource_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :query_database_resource_groups + ## + # RPC-specific configuration for `aggregate_issue_stats` + # @return [::Gapic::Config::Method] + # + attr_reader :aggregate_issue_stats + ## + # RPC-specific configuration for `query_issues` + # @return [::Gapic::Config::Method] + # + attr_reader :query_issues + + # @private + def initialize parent_rpcs = nil + query_products_config = parent_rpcs.query_products if parent_rpcs.respond_to? :query_products + @query_products = ::Gapic::Config::Method.new query_products_config + aggregate_fleet_config = parent_rpcs.aggregate_fleet if parent_rpcs.respond_to? :aggregate_fleet + @aggregate_fleet = ::Gapic::Config::Method.new aggregate_fleet_config + query_database_resource_groups_config = parent_rpcs.query_database_resource_groups if parent_rpcs.respond_to? :query_database_resource_groups + @query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config + aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats + @aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config + query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues + @query_issues = ::Gapic::Config::Method.new query_issues_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/credentials.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/credentials.rb new file mode 100644 index 000000000000..c61d885263b3 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/credentials.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module DatabaseCenter + module V1beta + module DatabaseCenter + # Credentials for the DatabaseCenter API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "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/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest.rb new file mode 100644 index 000000000000..6190d206fc6b --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/database_center/v1beta/version" + +require "google/cloud/database_center/v1beta/database_center/credentials" +require "google/cloud/database_center/v1beta/database_center/rest/client" + +module Google + module Cloud + module DatabaseCenter + module V1beta + ## + # DatabaseCenter contains methods to query fleet view for database resources. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/database_center/v1beta/database_center/rest" + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + module DatabaseCenter + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/database_center/v1beta/database_center/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb new file mode 100644 index 000000000000..a09dfb6324a8 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb @@ -0,0 +1,1049 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/cloud/databasecenter/v1beta/service_pb" +require "google/cloud/database_center/v1beta/database_center/rest/service_stub" + +module Google + module Cloud + module DatabaseCenter + module V1beta + module DatabaseCenter + module Rest + ## + # REST client for the DatabaseCenter service. + # + # DatabaseCenter contains methods to query fleet view for database resources. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "databasecenter.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :database_center_stub + + ## + # Configure the DatabaseCenter Client class. + # + # See {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all DatabaseCenter clients + # ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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", "Cloud", "DatabaseCenter", "V1beta"] + 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 + end + yield @configure if block_given? + @configure + end + + ## + # Configure the DatabaseCenter Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 + @database_center_stub.universe_domain + end + + ## + # Create a new DatabaseCenter REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the DatabaseCenter 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 + + @database_center_stub = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @database_center_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 + @database_center_stub.logger + end + + # Service calls + + ## + # QueryProducts provides a list of all possible products which can be used to + # filter database resources. + # + # @overload query_products(request, options = nil) + # Pass arguments to `query_products` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_products(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_products` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID}/locations/\\{LOCATION} + # (e.g.,"projects/foo-bar/locations/us-central1") + # * projects/\\{PROJECT_NUMBER}/locations/\\{LOCATION} + # (e.g.,"projects/12345678/locations/us-central1") + # * folders/\\{FOLDER_NUMBER}/locations/\\{LOCATION} + # (e.g.,"folders/1234567/locations/us-central1") + # * organizations/\\{ORGANIZATION_NUMBER}/locations/\\{LOCATION} + # (e.g.,"organizations/123456/locations/us-central1") + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 products will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `ListLocations` call. + # Provide this to retrieve the subsequent page. + # All other parameters except page size should match the call that provided + # the page page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::Product>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::Product>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new + # + # # Call the query_products method. + # result = client.query_products request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::Product. + # p item + # end + # + def query_products request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest + + # Converts hash 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.query_products.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::Cloud::DatabaseCenter::V1beta::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.query_products.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_products.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.query_products request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :query_products, "products", 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 + + ## + # AggregateFleet provides statistics about the fleet grouped by various + # fields. + # + # @overload aggregate_fleet(request, options = nil) + # Pass arguments to `aggregate_fleet` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload aggregate_fleet(parent: nil, filter: nil, group_by: nil, order_by: nil, page_size: nil, page_token: nil, baseline_date: nil) + # Pass arguments to `aggregate_fleet` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., + # "organizations/123456") + # @param filter [::String] + # Optional. The expression to filter resources. + # + # Supported fields are: `full_resource_name`, `resource_type`, `container`, + # `product.type`, `product.engine`, `product.version`, `location`, + # `labels`, `issues`, fields of availability_info, data_protection_info, + # 'resource_name', etc. + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # @param group_by [::String] + # Optional. A field that statistics are grouped by. + # Valid values are any combination of the following: + # * container + # * product.type + # * product.engine + # * product.version + # * location + # * sub_resource_type + # * management_type + # * tag.key + # * tag.value + # * tag.source + # * tag.inherited + # * label.key + # * label.value + # * label.source + # * has_maintenance_schedule + # * has_deny_maintenance_schedules + # Comma separated list. + # @param order_by [::String] + # Optional. Valid values to order by are: + # * resource_groups_count + # * resources_count + # * and all fields supported by `group_by` + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It supports ordering using multiple fields. + # For example: + # `order_by = "resource_groups_count"` sorts response in ascending order + # `order_by = "resource_groups_count DESC"` sorts response in descending + # order + # `order_by = "product.type, product.version DESC, location"` orders by type + # in ascending order, version in descending order and location in ascending + # order + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 items will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `AggregateFleet` call. + # Provide this to retrieve the subsequent page. + # All other parameters should match the parameters in the call that provided + # the page token except for page_size which can be different. + # @param baseline_date [::Google::Type::Date, ::Hash] + # Optional. The baseline date w.r.t. which the delta counts are calculated. + # If not set, delta counts are not included in the response and the response + # indicates the current state of the fleet. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new + # + # # Call the aggregate_fleet method. + # result = client.aggregate_fleet request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow. + # p item + # end + # + def aggregate_fleet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest + + # Converts hash 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.aggregate_fleet.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::Cloud::DatabaseCenter::V1beta::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.aggregate_fleet.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.aggregate_fleet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.aggregate_fleet request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :aggregate_fleet, "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 + + ## + # QueryDatabaseResourceGroups returns paginated results of database groups. + # + # @overload query_database_resource_groups(request, options = nil) + # Pass arguments to `query_database_resource_groups` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_database_resource_groups(parent: nil, filter: nil, signal_type_groups: nil, signal_filters: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_database_resource_groups` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param filter [::String] + # Optional. The expression to filter resources. + # + # The following fields are filterable: + # * full_resource_name + # * resource_type + # * container + # * product.type + # * product.engine + # * product.version + # * location + # * labels + # * resource_category + # * machine_config.cpu_count + # * machine_config.memory_size_bytes + # * machine_config.shard_count + # * resource_name + # * tags + # * backupdr_config.backupdr_managed + # * edition + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # Example: `full_resource_name=~"test"` + # Example: `full_resource_name=~"test.*master"` + # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] + # Optional. Groups of signal types that are requested. + # @param signal_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalFilter, ::Hash>] + # Optional. Filters based on signals. The list will be ORed together and then + # ANDed with the `filters` field above. + # @param order_by [::String] + # Optional. A field that specifies the sort order of the results. + # + # The following fields are sortable: + # * full_resource_name + # * product.type + # * product.engine + # * product.version + # * container + # * issue_count + # * machine_config.vcpu_count + # * machine_config.memory_size_bytes + # * machine_config.shard_count + # * resource_name + # * issue_severity + # * signal_type + # * location + # * resource_type + # * instance_type + # * edition + # * metrics.p99_cpu_utilization + # * metrics.p95_cpu_utilization + # * metrics.current_storage_used_bytes + # * metrics.node_count + # * metrics.processing_unit_count + # * metrics.current_memory_used_bytes + # * metrics.peak_storage_utilization + # * metrics.peak_number_connections + # * metrics.peak_memory_utilization + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # + # For example: + # `order_by = "full_resource_name"` sorts response in ascending order + # `order_by = "full_resource_name DESC"` sorts response in descending order + # `order_by = "issue_count DESC"` sorts response in descending order of + # count of all issues associated with a resource. + # + # More explicitly, `order_by = "full_resource_name, product"` is not + # supported. + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 resource groups will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the + # subsequent page. All parameters except page_token should match the + # parameters in the call that provided the page page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new + # + # # Call the query_database_resource_groups method. + # result = client.query_database_resource_groups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup. + # p item + # end + # + def query_database_resource_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest + + # Converts hash 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.query_database_resource_groups.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::Cloud::DatabaseCenter::V1beta::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.query_database_resource_groups.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_database_resource_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.query_database_resource_groups request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :query_database_resource_groups, "resource_groups", 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 + + ## + # AggregateIssueStats provides database resource issues statistics. + # + # @overload aggregate_issue_stats(request, options = nil) + # Pass arguments to `aggregate_issue_stats` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload aggregate_issue_stats(parent: nil, filter: nil, signal_type_groups: nil, baseline_date: nil) + # Pass arguments to `aggregate_issue_stats` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param filter [::String] + # Optional. The expression to filter resources. + # + # Supported fields are: `full_resource_name`, `resource_type`, `container`, + # `product.type`, `product.engine`, `product.version`, `location`, + # `labels`, `issues`, fields of availability_info, + # data_protection_info,'resource_name', etc. + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] + # Optional. Lists of signal types that are issues. + # @param baseline_date [::Google::Type::Date, ::Hash] + # Optional. The baseline date w.r.t. which the delta counts are calculated. + # If not set, delta counts are not included in the response and the response + # indicates the current state of the fleet. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new + # + # # Call the aggregate_issue_stats method. + # result = client.aggregate_issue_stats request + # + # # The returned object is of type Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse. + # p result + # + def aggregate_issue_stats request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest + + # Converts hash 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.aggregate_issue_stats.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::Cloud::DatabaseCenter::V1beta::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.aggregate_issue_stats.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.aggregate_issue_stats.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.aggregate_issue_stats 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 + + ## + # QueryIssues provides a list of issues and recommendations + # that a user has access to and that are within the requested scope. + # + # @overload query_issues(request, options = nil) + # Pass arguments to `query_issues` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_issues(parent: nil, filter: nil, signal_products_filters: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_issues` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The list + # is limited to the one attached to resources within the `scope` that a user + # has access to. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param filter [::String] + # Optional. + # Supported fields are: + # 'product', + # `location`, + # `issue_severity`, + # 'tags', + # 'labels', + # @param signal_products_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, ::Hash>] + # Optional. Filters based on signal and product. The filter list will be ORed + # across pairs and ANDed within a signal and products pair. + # @param order_by [::String] + # Optional. Following fields are sortable: + # SignalType + # Product + # Location + # IssueSeverity + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 issues will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `QueryIssues` call. + # Provide this to retrieve the subsequent page. + # All parameters except page size should match the parameters used in the + # call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new + # + # # Call the query_issues method. + # result = client.query_issues request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue. + # p item + # end + # + def query_issues request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest + + # Converts hash 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.query_issues.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::Cloud::DatabaseCenter::V1beta::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.query_issues.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_issues.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.query_issues request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :query_issues, "resource_issues", 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 + + ## + # Configuration class for the DatabaseCenter REST API. + # + # This class represents the configuration for DatabaseCenter 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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 + # # query_products to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.query_products.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.query_products.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. + # * `: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 = "databasecenter.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 DatabaseCenter 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. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `query_products` + # @return [::Gapic::Config::Method] + # + attr_reader :query_products + ## + # RPC-specific configuration for `aggregate_fleet` + # @return [::Gapic::Config::Method] + # + attr_reader :aggregate_fleet + ## + # RPC-specific configuration for `query_database_resource_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :query_database_resource_groups + ## + # RPC-specific configuration for `aggregate_issue_stats` + # @return [::Gapic::Config::Method] + # + attr_reader :aggregate_issue_stats + ## + # RPC-specific configuration for `query_issues` + # @return [::Gapic::Config::Method] + # + attr_reader :query_issues + + # @private + def initialize parent_rpcs = nil + query_products_config = parent_rpcs.query_products if parent_rpcs.respond_to? :query_products + @query_products = ::Gapic::Config::Method.new query_products_config + aggregate_fleet_config = parent_rpcs.aggregate_fleet if parent_rpcs.respond_to? :aggregate_fleet + @aggregate_fleet = ::Gapic::Config::Method.new aggregate_fleet_config + query_database_resource_groups_config = parent_rpcs.query_database_resource_groups if parent_rpcs.respond_to? :query_database_resource_groups + @query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config + aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats + @aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config + query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues + @query_issues = ::Gapic::Config::Method.new query_issues_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb new file mode 100644 index 000000000000..6a06184bfd64 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb @@ -0,0 +1,379 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/databasecenter/v1beta/service_pb" + +module Google + module Cloud + module DatabaseCenter + module V1beta + module DatabaseCenter + module Rest + ## + # REST service stub for the DatabaseCenter 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 query_products REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest] + # 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::Cloud::DatabaseCenter::V1beta::QueryProductsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse] + # A result object deserialized from the server's reply + def query_products request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_products_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: "query_products", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the aggregate_fleet REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest] + # 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::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse] + # A result object deserialized from the server's reply + def aggregate_fleet request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_aggregate_fleet_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: "aggregate_fleet", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_database_resource_groups REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest] + # 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::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse] + # A result object deserialized from the server's reply + def query_database_resource_groups request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_database_resource_groups_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: "query_database_resource_groups", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the aggregate_issue_stats REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest] + # 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::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] + # A result object deserialized from the server's reply + def aggregate_issue_stats request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_aggregate_issue_stats_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: "aggregate_issue_stats", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_issues REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest] + # 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::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse] + # A result object deserialized from the server's reply + def query_issues request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_issues_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: "query_issues", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.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 query_products REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_products_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta:queryProducts", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the aggregate_fleet REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_aggregate_fleet_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta:aggregateFleet", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_database_resource_groups REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_database_resource_groups_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta:queryDatabaseResourceGroups", + body: "*", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the aggregate_issue_stats REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_aggregate_issue_stats_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta:aggregateIssueStats", + body: "*", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_issues REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_issues_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta:queryIssues", + body: "*", + matches: [] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/rest.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/rest.rb new file mode 100644 index 000000000000..141254082322 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/rest.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/database_center/v1beta/database_center/rest" +require "google/cloud/database_center/v1beta/version" + +module Google + module Cloud + module DatabaseCenter + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/cloud/database_center/v1beta/rest" + # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + module V1beta + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/version.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/version.rb new file mode 100644 index 000000000000..ab12c4b661ee --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/version.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + VERSION = "0.0.1" + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb new file mode 100644 index 000000000000..52acdf8b121e --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/databasecenter/v1beta/machine_config.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n7google/cloud/databasecenter/v1beta/machine_config.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\x86\x01\n\rMachineConfig\x12\x19\n\x11memory_size_bytes\x18\x02 \x01(\x03\x12\x1d\n\x0bshard_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1c\n\nvcpu_count\x18\x04 \x01(\x01\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x42\x0e\n\x0c_shard_countB\r\n\x0b_vcpu_countB\x80\x02\n&com.google.cloud.databasecenter.v1betaB\x12MachineConfigProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module DatabaseCenter + module V1beta + MachineConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MachineConfig").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb new file mode 100644 index 000000000000..254224cd486f --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/databasecenter/v1beta/maintenance.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/type/date_pb' +require 'google/type/dayofweek_pb' +require 'google/type/timeofday_pb' + + +descriptor_data = "\n4google/cloud/databasecenter/v1beta/maintenance.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xb7\x01\n\x1bResourceMaintenanceSchedule\x12/\n\nstart_time\x18\x01 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x01\x12(\n\x03\x64\x61y\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x12=\n\x05phase\x18\x03 \x01(\x0e\x32).google.cloud.databasecenter.v1beta.PhaseB\x03\xe0\x41\x01\"\xa2\x01\n\x1fResourceMaintenanceDenySchedule\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12)\n\x04time\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x01\"\x85\x02\n\x0fMaintenanceInfo\x12\x62\n\x14maintenance_schedule\x18\x01 \x01(\x0b\x32?.google.cloud.databasecenter.v1beta.ResourceMaintenanceScheduleB\x03\xe0\x41\x01\x12l\n\x1a\x64\x65ny_maintenance_schedules\x18\x02 \x03(\x0b\x32\x43.google.cloud.databasecenter.v1beta.ResourceMaintenanceDenyScheduleB\x03\xe0\x41\x01\x12 \n\x13maintenance_version\x18\x03 \x01(\tB\x03\xe0\x41\x03*`\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPHASE_WEEK1\x10\x01\x12\x0f\n\x0bPHASE_WEEK2\x10\x02\x12\x0f\n\x0bPHASE_WEEK5\x10\x03\x12\r\n\tPHASE_ANY\x10\x04\x42\xfe\x01\n&com.google.cloud.databasecenter.v1betaB\x10MaintenanceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.type.TimeOfDay", "google/type/timeofday.proto"], + ["google.type.Date", "google/type/date.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module DatabaseCenter + module V1beta + ResourceMaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule").msgclass + ResourceMaintenanceDenySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule").msgclass + MaintenanceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MaintenanceInfo").msgclass + Phase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Phase").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb new file mode 100644 index 000000000000..d219d12739b0 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/databasecenter/v1beta/metric_data.proto + +require 'google/protobuf' + +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n4google/cloud/databasecenter/v1beta/metric_data.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x07\n\x07Metrics\x12P\n\x13p99_cpu_utilization\x18\x01 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x00\x88\x01\x01\x12P\n\x13p95_cpu_utilization\x18\x02 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x01\x88\x01\x01\x12W\n\x1a\x63urrent_storage_used_bytes\x18\x03 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x02\x88\x01\x01\x12U\n\x18peak_storage_utilization\x18\x04 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x03\x88\x01\x01\x12T\n\x17peak_memory_utilization\x18\x05 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x04\x88\x01\x01\x12T\n\x17peak_number_connections\x18\x06 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x05\x88\x01\x01\x12G\n\nnode_count\x18\x07 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x06\x88\x01\x01\x12R\n\x15processing_unit_count\x18\x08 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x07\x88\x01\x01\x12V\n\x19\x63urrent_memory_used_bytes\x18\t \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x08\x88\x01\x01\x42\x16\n\x14_p99_cpu_utilizationB\x16\n\x14_p95_cpu_utilizationB\x1d\n\x1b_current_storage_used_bytesB\x1b\n\x19_peak_storage_utilizationB\x1a\n\x18_peak_memory_utilizationB\x1a\n\x18_peak_number_connectionsB\r\n\x0b_node_countB\x18\n\x16_processing_unit_countB\x1c\n\x1a_current_memory_used_bytes\"\x81\x01\n\nMetricData\x12=\n\x05value\x18\x01 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.TypedValue\x12\x34\n\x10observation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"D\n\nTypedValue\x12\x16\n\x0c\x64ouble_value\x18\x01 \x01(\x01H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x42\x07\n\x05valueB\xfd\x01\n&com.google.cloud.databasecenter.v1betaB\x0fMetricDataProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module DatabaseCenter + module V1beta + Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Metrics").msgclass + MetricData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MetricData").msgclass + TypedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.TypedValue").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb new file mode 100644 index 000000000000..c06d58adf53f --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/databasecenter/v1beta/operation_error_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/cloud/databasecenter/v1beta/operation_error_type.proto\x12\"google.cloud.databasecenter.v1beta*\xb6\x01\n\x12OperationErrorType\x12$\n OPERATION_ERROR_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rKMS_KEY_ERROR\x10\x01\x12\x12\n\x0e\x44\x41TABASE_ERROR\x10\x02\x12\x12\n\x0eSTOCKOUT_ERROR\x10\x03\x12\x16\n\x12\x43\x41NCELLATION_ERROR\x10\x04\x12\x13\n\x0fSQLSERVER_ERROR\x10\x05\x12\x12\n\x0eINTERNAL_ERROR\x10\x06\x42\x85\x02\n&com.google.cloud.databasecenter.v1betaB\x17OperationErrorTypeProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module DatabaseCenter + module V1beta + OperationErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.OperationErrorType").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/product_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/product_pb.rb new file mode 100644 index 000000000000..53f6a06d9d29 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/product_pb.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/databasecenter/v1beta/product.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n0google/cloud/databasecenter/v1beta/product.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xc0\x01\n\x07Product\x12\x42\n\x04type\x18\x01 \x01(\x0e\x32/.google.cloud.databasecenter.v1beta.ProductTypeB\x03\xe0\x41\x01\x12?\n\x06\x65ngine\x18\x02 \x01(\x0e\x32*.google.cloud.databasecenter.v1beta.EngineB\x03\xe0\x41\x01\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rminor_version\x18\x04 \x01(\tB\x03\xe0\x41\x01*\x93\x03\n\x06\x45ngine\x12\x16\n\x12\x45NGINE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x45NGINE_MYSQL\x10\x01\x12\x13\n\x0f\x45NGINE_POSTGRES\x10\x02\x12\x15\n\x11\x45NGINE_SQL_SERVER\x10\x03\x12\x11\n\rENGINE_NATIVE\x10\x04\x12 \n\x1c\x45NGINE_MEMORYSTORE_FOR_REDIS\x10\x08\x12(\n$ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER\x10\t\x12%\n!ENGINE_FIRESTORE_WITH_NATIVE_MODE\x10\n\x12(\n$ENGINE_FIRESTORE_WITH_DATASTORE_MODE\x10\x0b\x12\x19\n\x15\x45NGINE_EXADATA_ORACLE\x10\x0c\x12 \n\x1c\x45NGINE_ADB_SERVERLESS_ORACLE\x10\r\x12\x34\n0ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE\x10\x0e\x12\x10\n\x0c\x45NGINE_OTHER\x10\x06*\xc4\x02\n\x0bProductType\x12\x1c\n\x18PRODUCT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16PRODUCT_TYPE_CLOUD_SQL\x10\x01\x12\x18\n\x14PRODUCT_TYPE_ALLOYDB\x10\x02\x12\x18\n\x14PRODUCT_TYPE_SPANNER\x10\x03\x12\x19\n\x15PRODUCT_TYPE_BIGTABLE\x10\x06\x12\x1c\n\x18PRODUCT_TYPE_MEMORYSTORE\x10\x07\x12\x1a\n\x16PRODUCT_TYPE_FIRESTORE\x10\x08\x12\x1f\n\x1bPRODUCT_TYPE_COMPUTE_ENGINE\x10\t\x12\x1e\n\x1aPRODUCT_TYPE_ORACLE_ON_GCP\x10\n\x12\x19\n\x15PRODUCT_TYPE_BIGQUERY\x10\x0b\x12\x16\n\x12PRODUCT_TYPE_OTHER\x10\x05\x42\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cProductProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module DatabaseCenter + module V1beta + Product = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Product").msgclass + Engine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Engine").enummodule + ProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ProductType").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb new file mode 100644 index 000000000000..775a9c4cfc4d --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb @@ -0,0 +1,84 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/databasecenter/v1beta/service.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/cloud/databasecenter/v1beta/machine_config_pb' +require 'google/cloud/databasecenter/v1beta/maintenance_pb' +require 'google/cloud/databasecenter/v1beta/metric_data_pb' +require 'google/cloud/databasecenter/v1beta/product_pb' +require 'google/cloud/databasecenter/v1beta/signals_pb' +require 'google/type/date_pb' + + +descriptor_data = "\n0google/cloud/databasecenter/v1beta/service.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x37google/cloud/databasecenter/v1beta/machine_config.proto\x1a\x34google/cloud/databasecenter/v1beta/maintenance.proto\x1a\x34google/cloud/databasecenter/v1beta/metric_data.proto\x1a\x30google/cloud/databasecenter/v1beta/product.proto\x1a\x30google/cloud/databasecenter/v1beta/signals.proto\x1a\x16google/type/date.proto\"\\\n\x14QueryProductsRequest\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x15QueryProductsResponse\x12=\n\x08products\x18\x01 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xbb\x02\n\"QueryDatabaseResourceGroupsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12M\n\x0esignal_filters\x18\x04 \x03(\x0b\x32\x30.google.cloud.databasecenter.v1beta.SignalFilterB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n#QueryDatabaseResourceGroupsResponse\x12R\n\x0fresource_groups\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xac\x01\n\x15\x44\x61tabaseResourceGroup\x12L\n\x0eroot_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x45\n\rsignal_groups\x18\x02 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueCount\"\xd6\x07\n\x10\x44\x61tabaseResource\x12M\n\x0f\x63hild_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x1a\n\x12\x66ull_resource_name\x18\x03 \x01(\t\x12\x11\n\tcontainer\x18\x04 \x01(\t\x12<\n\x07product\x18\x05 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x06 \x01(\t\x12\x39\n\x06labels\x18\x07 \x03(\x0b\x32).google.cloud.databasecenter.v1beta.Label\x12\x35\n\x04tags\x18\x10 \x03(\x0b\x32\'.google.cloud.databasecenter.v1beta.Tag\x12\x15\n\rresource_type\x18\x08 \x01(\t\x12N\n\x11sub_resource_type\x18\t \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceType\x12I\n\x0emachine_config\x18\x0c \x01(\x0b\x32\x31.google.cloud.databasecenter.v1beta.MachineConfig\x12\x46\n\rsignal_groups\x18\n \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.SignalGroup\x12<\n\x07metrics\x18\r \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Metrics\x12O\n\x11resource_category\x18\x0e \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategory\x12\x15\n\rresource_name\x18\x0f \x01(\t\x12P\n\x0f\x62\x61\x63kupdr_config\x18\x11 \x01(\x0b\x32\x32.google.cloud.databasecenter.v1beta.BackupDRConfigB\x03\xe0\x41\x01\x12<\n\x07\x65\x64ition\x18\x12 \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.Edition\x12R\n\x10maintenance_info\x18\x13 \x01(\x0b\x32\x33.google.cloud.databasecenter.v1beta.MaintenanceInfoB\x03\xe0\x41\x01\"\xe2\x01\n\x1a\x41ggregateIssueStatsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xcb\x01\n\x1b\x41ggregateIssueStatsResponse\x12N\n\x11issue_group_stats\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.IssueGroupStats\x12\x1d\n\x15total_resources_count\x18\x02 \x01(\x05\x12#\n\x1btotal_resource_groups_count\x18\x03 \x01(\x05\x12\x18\n\x0bunreachable\x18\x04 \x03(\tB\x03\xe0\x41\x06\"\xec\x01\n\x0fIssueGroupStats\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12%\n\x1dhealthy_resource_groups_count\x18\x04 \x01(\x05\x12\x1f\n\x17healthy_resources_count\x18\x05 \x01(\x05\x12\x43\n\x0bissue_stats\x18\x06 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueStats\"\xb1\x02\n\nIssueStats\x12\x43\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12\x16\n\x0eresource_count\x18\x02 \x01(\x05\x12Q\n\rdelta_details\x18\x03 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12N\n\x0eissue_severity\x18\x04 \x01(\x0e\x32\x31.google.cloud.databasecenter.v1beta.IssueSeverityH\x01\x88\x01\x01\x42\x10\n\x0e_delta_detailsB\x11\n\x0f_issue_severity\"3\n\x05Label\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\"\xe6\x01\n\x15\x41ggregateFleetRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08group_by\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x07 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xd3\x01\n\x16\x41ggregateFleetResponse\x12\x43\n\x04rows\x18\x01 \x03(\x0b\x32\x35.google.cloud.databasecenter.v1beta.AggregateFleetRow\x12#\n\x1bresource_groups_total_count\x18\x02 \x01(\x05\x12\x1c\n\x14resource_total_count\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\x12\x18\n\x0bunreachable\x18\x05 \x03(\tB\x03\xe0\x41\x06\"\xf2\x01\n\x11\x41ggregateFleetRow\x12@\n\tdimension\x18\x01 \x03(\x0b\x32-.google.cloud.databasecenter.v1beta.Dimension\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12Q\n\rdelta_details\x18\x04 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_delta_details\"\xa1\x06\n\tDimension\x12\x13\n\tcontainer\x18\x02 \x01(\tH\x00\x12G\n\x0cproduct_type\x18\x03 \x01(\x0e\x32/.google.cloud.databasecenter.v1beta.ProductTypeH\x00\x12\x44\n\x0eproduct_engine\x18\x04 \x01(\x0e\x32*.google.cloud.databasecenter.v1beta.EngineH\x00\x12\x19\n\x0fproduct_version\x18\x05 \x01(\tH\x00\x12\x12\n\x08location\x18\x06 \x01(\tH\x00\x12\x17\n\rresource_type\x18\x07 \x01(\tH\x00\x12P\n\x11sub_resource_type\x18\x08 \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceTypeH\x00\x12Q\n\x11resource_category\x18\t \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategoryH\x00\x12M\n\x0fmanagement_type\x18\n \x01(\x0e\x32\x32.google.cloud.databasecenter.v1beta.ManagementTypeH\x00\x12>\n\x07\x65\x64ition\x18\x0b \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.EditionH\x00\x12\x11\n\x07tag_key\x18\x0c \x01(\tH\x00\x12\x13\n\ttag_value\x18\r \x01(\tH\x00\x12\x14\n\ntag_source\x18\x0e \x01(\tH\x00\x12\x17\n\rtag_inherited\x18\x0f \x01(\x08H\x00\x12\x13\n\tlabel_key\x18\x10 \x01(\tH\x00\x12\x15\n\x0blabel_value\x18\x11 \x01(\tH\x00\x12\x16\n\x0clabel_source\x18\x12 \x01(\tH\x00\x12\"\n\x18has_maintenance_schedule\x18\x13 \x01(\x08H\x00\x12(\n\x1ehas_deny_maintenance_schedules\x18\x14 \x01(\x08H\x00\x42\x0b\n\tdimension\"D\n\x0e\x42\x61\x63kupDRConfig\x12\x1d\n\x10\x62\x61\x63kupdr_managed\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x13\n\x11_backupdr_managed\"\xe7\x01\n\x12QueryIssuesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12_\n\x17signal_products_filters\x18\x03 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.SignalProductsFiltersB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\xa5\x01\n\x15SignalProductsFilters\x12H\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\x12\x42\n\x08products\x18\x02 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.ProductB\x03\xe0\x41\x01\"\x9c\x01\n\x13QueryIssuesResponse\x12R\n\x0fresource_issues\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceIssue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\x9b\x01\n\x15\x44\x61tabaseResourceIssue\x12:\n\x06signal\x18\x01 \x01(\x0b\x32*.google.cloud.databasecenter.v1beta.Signal\x12\x46\n\x08resource\x18\x02 \x01(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\"D\n\x03Tag\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x11\n\tinherited\x18\x04 \x01(\x08\"\x90\x01\n\x0fResourceDetails\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x02 \x01(\t\x12<\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb2\x01\n\x0c\x44\x65ltaDetails\x12P\n\x13increased_resources\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails\x12P\n\x13\x64\x65\x63reased_resources\x18\x02 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails*^\n\x10ResourceCategory\x12!\n\x1dRESOURCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x0b\n\x07\x43LUSTER\x10\x02\x12\x0c\n\x08\x44\x41TABASE\x10\x03*m\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45\x44ITION_ENTERPRISE\x10\x01\x12\x1b\n\x17\x45\x44ITION_ENTERPRISE_PLUS\x10\x02\x12\x14\n\x10\x45\x44ITION_STANDARD\x10\x03*\xdd\x01\n\x0fSubResourceType\x12!\n\x1dSUB_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19SUB_RESOURCE_TYPE_PRIMARY\x10\x01\x12\x1f\n\x1bSUB_RESOURCE_TYPE_SECONDARY\x10\x02\x12\"\n\x1eSUB_RESOURCE_TYPE_READ_REPLICA\x10\x03\x12&\n\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\x10\x05\x12\x1b\n\x17SUB_RESOURCE_TYPE_OTHER\x10\x04*t\n\x0eManagementType\x12\x1f\n\x1bMANAGEMENT_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bMANAGEMENT_TYPE_GCP_MANAGED\x10\x01\x12 \n\x1cMANAGEMENT_TYPE_SELF_MANAGED\x10\x02\x32\xff\x07\n\x0e\x44\x61tabaseCenter\x12\xa3\x01\n\rQueryProducts\x12\x38.google.cloud.databasecenter.v1beta.QueryProductsRequest\x1a\x39.google.cloud.databasecenter.v1beta.QueryProductsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1beta:queryProducts\x12\xa7\x01\n\x0e\x41ggregateFleet\x12\x39.google.cloud.databasecenter.v1beta.AggregateFleetRequest\x1a:.google.cloud.databasecenter.v1beta.AggregateFleetResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1beta:aggregateFleet\x12\xde\x01\n\x1bQueryDatabaseResourceGroups\x12\x46.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest\x1aG.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse\".\x82\xd3\xe4\x93\x02(\"#/v1beta:queryDatabaseResourceGroups:\x01*\x12\xbe\x01\n\x13\x41ggregateIssueStats\x12>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest\x1a?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1beta:aggregateIssueStats:\x01*\x12\xa7\x01\n\x0bQueryIssues\x12\x36.google.cloud.databasecenter.v1beta.QueryIssuesRequest\x1a\x37.google.cloud.databasecenter.v1beta.QueryIssuesResponse\"\'\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x18\"\x13/v1beta:queryIssues:\x01*\x1aQ\xca\x41\x1d\x64\x61tabasecenter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cServiceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.cloud.databasecenter.v1beta.Product", "google/cloud/databasecenter/v1beta/product.proto"], + ["google.cloud.databasecenter.v1beta.SignalTypeGroup", "google/cloud/databasecenter/v1beta/signals.proto"], + ["google.cloud.databasecenter.v1beta.MachineConfig", "google/cloud/databasecenter/v1beta/machine_config.proto"], + ["google.cloud.databasecenter.v1beta.Metrics", "google/cloud/databasecenter/v1beta/metric_data.proto"], + ["google.cloud.databasecenter.v1beta.MaintenanceInfo", "google/cloud/databasecenter/v1beta/maintenance.proto"], + ["google.type.Date", "google/type/date.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module DatabaseCenter + module V1beta + QueryProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryProductsRequest").msgclass + QueryProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryProductsResponse").msgclass + QueryDatabaseResourceGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest").msgclass + QueryDatabaseResourceGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse").msgclass + DatabaseResourceGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResourceGroup").msgclass + DatabaseResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResource").msgclass + AggregateIssueStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest").msgclass + AggregateIssueStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse").msgclass + IssueGroupStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueGroupStats").msgclass + IssueStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueStats").msgclass + Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Label").msgclass + AggregateFleetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRequest").msgclass + AggregateFleetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetResponse").msgclass + AggregateFleetRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRow").msgclass + Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Dimension").msgclass + BackupDRConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.BackupDRConfig").msgclass + QueryIssuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryIssuesRequest").msgclass + SignalProductsFilters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalProductsFilters").msgclass + QueryIssuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryIssuesResponse").msgclass + DatabaseResourceIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResourceIssue").msgclass + Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Tag").msgclass + ResourceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceDetails").msgclass + DeltaDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DeltaDetails").msgclass + ResourceCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceCategory").enummodule + Edition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Edition").enummodule + SubResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SubResourceType").enummodule + ManagementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ManagementType").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb new file mode 100644 index 000000000000..a81b30a40b54 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb @@ -0,0 +1,56 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/cloud/databasecenter/v1beta/service.proto for package 'Google.Cloud.DatabaseCenter.V1beta' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.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/cloud/databasecenter/v1beta/service_pb' + +module Google + module Cloud + module DatabaseCenter + module V1beta + module DatabaseCenter + # DatabaseCenter contains methods to query fleet view for database resources. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.cloud.databasecenter.v1beta.DatabaseCenter' + + # QueryProducts provides a list of all possible products which can be used to + # filter database resources. + rpc :QueryProducts, ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse + # AggregateFleet provides statistics about the fleet grouped by various + # fields. + rpc :AggregateFleet, ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse + # QueryDatabaseResourceGroups returns paginated results of database groups. + rpc :QueryDatabaseResourceGroups, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse + # AggregateIssueStats provides database resource issues statistics. + rpc :AggregateIssueStats, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse + # QueryIssues provides a list of issues and recommendations + # that a user has access to and that are within the requested scope. + rpc :QueryIssues, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/signals_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/signals_pb.rb new file mode 100644 index 000000000000..384ee1e1e3d1 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/signals_pb.rb @@ -0,0 +1,78 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/databasecenter/v1beta/signals.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/cloud/databasecenter/v1beta/maintenance_pb' +require 'google/cloud/databasecenter/v1beta/operation_error_type_pb' +require 'google/cloud/databasecenter/v1beta/product_pb' +require 'google/cloud/databasecenter/v1beta/suspension_reason_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/timestamp_pb' +require 'google/protobuf/wrappers_pb' + + +descriptor_data = "\n0google/cloud/databasecenter/v1beta/signals.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x34google/cloud/databasecenter/v1beta/maintenance.proto\x1a=google/cloud/databasecenter/v1beta/operation_error_type.proto\x1a\x30google/cloud/databasecenter/v1beta/product.proto\x1a:google/cloud/databasecenter/v1beta/suspension_reason.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"w\n\x0fSignalTypeGroup\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\x0csignal_types\x18\x02 \x03(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\"\xa6\x01\n\x0cSignalFilter\x12H\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\x12L\n\rsignal_status\x18\x02 \x01(\x0e\x32\x30.google.cloud.databasecenter.v1beta.SignalStatusB\x03\xe0\x41\x01\"u\n\x0bSignalGroup\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0bissue_count\x18\x02 \x01(\x05\x12;\n\x07signals\x18\x03 \x03(\x0b\x32*.google.cloud.databasecenter.v1beta.Signal\"7\n\nIssueCount\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0bissue_count\x18\x02 \x01(\x05\"\xff\x08\n\x10\x41\x64\x64itionalDetail\x12`\n\x1bshort_backup_retention_info\x18\x02 \x01(\x0b\x32\x39.google.cloud.databasecenter.v1beta.RetentionSettingsInfoH\x00\x12L\n\x0f\x62\x61\x63kup_run_info\x18\x03 \x01(\x0b\x32\x31.google.cloud.databasecenter.v1beta.BackupRunInfoH\x00\x12?\n\x08scc_info\x18\x04 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.SCCInfoH\x00\x12U\n\x13recommendation_info\x18\x06 \x01(\x0b\x32\x36.google.cloud.databasecenter.v1beta.RecommendationInfoH\x00\x12\x65\n\x1c\x61utomated_backup_policy_info\x18\x08 \x01(\x0b\x32=.google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfoH\x00\x12^\n\x18\x64\x65letion_protection_info\x18\t \x01(\x0b\x32:.google.cloud.databasecenter.v1beta.DeletionProtectionInfoH\x00\x12^\n\x18resource_suspension_info\x18\n \x01(\x0b\x32:.google.cloud.databasecenter.v1beta.ResourceSuspensionInfoH\x00\x12Z\n\x16inefficient_query_info\x18\x0b \x01(\x0b\x32\x38.google.cloud.databasecenter.v1beta.InefficientQueryInfoH\x00\x12\x63\n\x1boutdated_minor_version_info\x18\x0c \x01(\x0b\x32<.google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfoH\x00\x12l\n\x1fmaintenance_recommendation_info\x18\r \x01(\x0b\x32\x41.google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfoH\x00\x12G\n\rsignal_source\x18\x01 \x01(\x0e\x32\x30.google.cloud.databasecenter.v1beta.SignalSource\x12\x43\n\x0bsignal_type\x18\x05 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12\x35\n\x11signal_event_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\n\x06\x64\x65tail\"\xa0\x01\n\x0bSubResource\x12\x1a\n\rresource_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x66ull_resource_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x41\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.ProductB\x03\xe0\x41\x01\x12\x11\n\tcontainer\x18\x04 \x01(\t\"\xb6\x02\n\x15RetentionSettingsInfo\x12?\n\x18quantity_based_retention\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueH\x00\x12=\n\x18\x64uration_based_retention\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x44\n\x1etimestamp_based_retention_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12J\n\x0csub_resource\x18\x04 \x01(\x0b\x32/.google.cloud.databasecenter.v1beta.SubResourceB\x03\xe0\x41\x01\x42\x0b\n\tretention\"{\n\x19\x41utomatedBackupPolicyInfo\x12J\n\x0csub_resource\x18\x01 \x01(\x0b\x32/.google.cloud.databasecenter.v1beta.SubResourceB\x03\xe0\x41\x01\x12\x12\n\nis_enabled\x18\x02 \x01(\x08\"\x89\x01\n\x16\x44\x65letionProtectionInfo\x12J\n\x0csub_resource\x18\x01 \x01(\x0b\x32/.google.cloud.databasecenter.v1beta.SubResourceB\x03\xe0\x41\x01\x12#\n\x1b\x64\x65letion_protection_enabled\x18\x02 \x01(\x08\"\x85\x01\n\x16ResourceSuspensionInfo\x12\x1a\n\x12resource_suspended\x18\x01 \x01(\x08\x12O\n\x11suspension_reason\x18\x02 \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.SuspensionReason\"\xb3\x03\n\rBackupRunInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x05state\x18\x02 \x01(\x0e\x32\x37.google.cloud.databasecenter.v1beta.BackupRunInfo.StateB\x03\xe0\x41\x03\x12\x15\n\rerror_message\x18\x03 \x01(\t\x12Y\n\x14operation_error_type\x18\x04 \x01(\x0e\x32\x36.google.cloud.databasecenter.v1beta.OperationErrorTypeB\x03\xe0\x41\x01\x12J\n\x0csub_resource\x18\x05 \x01(\x0b\x32/.google.cloud.databasecenter.v1beta.SubResourceB\x03\xe0\x41\x01\"9\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x90\x01\n\x14InefficientQueryInfo\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\x1b\n\x13sql_index_statement\x18\x03 \x01(\t\x12\x1a\n\x12storage_cost_bytes\x18\x04 \x01(\x03\x12\x1e\n\x16impacted_queries_count\x18\x05 \x01(\x03\"\x97\x01\n\x07SCCInfo\x12\x0e\n\x06signal\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12T\n\x14regulatory_standards\x18\x03 \x03(\x0b\x32\x36.google.cloud.databasecenter.v1beta.RegulatoryStandard\x12\x14\n\x0c\x65xternal_uri\x18\x04 \x01(\t\"^\n\x12RecommendationInfo\x12\x13\n\x0brecommender\x18\x01 \x01(\t\x12\x16\n\x0erecommender_id\x18\x02 \x01(\t\x12\x1b\n\x13recommender_subtype\x18\x03 \x01(\t\"7\n\x12RegulatoryStandard\x12\x10\n\x08standard\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"=\n\x18OutdatedMinorVersionInfo\x12!\n\x19recommended_minor_version\x18\x01 \x01(\t\"\x8d\x01\n\x1dMaintenanceRecommendationInfo\x12l\n\x1eresource_maintenance_schedules\x18\x01 \x03(\x0b\x32?.google.cloud.databasecenter.v1beta.ResourceMaintenanceScheduleB\x03\xe0\x41\x01\"\xea\x02\n\x06Signal\x12\x43\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12G\n\rsignal_status\x18\x02 \x01(\x0e\x32\x30.google.cloud.databasecenter.v1beta.SignalStatus\x12P\n\x12\x61\x64\x64itional_details\x18\x03 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.AdditionalDetail\x12I\n\x0eissue_severity\x18\x04 \x01(\x0e\x32\x31.google.cloud.databasecenter.v1beta.IssueSeverity\x12\x35\n\x11issue_create_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp*\x9d\x01\n\x0cSignalStatus\x12\x1d\n\x19SIGNAL_STATUS_UNSPECIFIED\x10\x00\x12 \n\x1cSIGNAL_STATUS_NOT_APPLICABLE\x10\x01\x12\x14\n\x10SIGNAL_STATUS_OK\x10\x02\x12\x17\n\x13SIGNAL_STATUS_ISSUE\x10\x03\x12\x1d\n\x19SIGNAL_STATUS_NOT_ENABLED\x10\x04*\xbe\x01\n\x0cSignalSource\x12\x1d\n\x19SIGNAL_SOURCE_UNSPECIFIED\x10\x00\x12#\n\x1fSIGNAL_SOURCE_RESOURCE_METADATA\x10\x01\x12#\n\x1fSIGNAL_SOURCE_SECURITY_FINDINGS\x10\x02\x12\x1d\n\x19SIGNAL_SOURCE_RECOMMENDER\x10\x03\x12&\n\"SIGNAL_SOURCE_MODERN_OBSERVABILITY\x10\x04*\xb7\x01\n\rIssueSeverity\x12\x1e\n\x1aISSUE_SEVERITY_UNSPECIFIED\x10\x00\x12\x16\n\x12ISSUE_SEVERITY_LOW\x10\x01\x12\x19\n\x15ISSUE_SEVERITY_MEDIUM\x10\x02\x12\x17\n\x13ISSUE_SEVERITY_HIGH\x10\x03\x12\x1b\n\x17ISSUE_SEVERITY_CRITICAL\x10\x04\x12\x1d\n\x19ISSUE_SEVERITY_IRRELEVANT\x10\x05*\xdf \n\nSignalType\x12\x1b\n\x17SIGNAL_TYPE_UNSPECIFIED\x10\x00\x12+\n\'SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED\x10\x01\x12#\n\x1fSIGNAL_TYPE_GROUP_MULTIREGIONAL\x10\x02\x12*\n&SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY\x10\x04\x12&\n\"SIGNAL_TYPE_SHORT_BACKUP_RETENTION\x10\x05\x12\"\n\x1eSIGNAL_TYPE_LAST_BACKUP_FAILED\x10\x06\x12\x1f\n\x1bSIGNAL_TYPE_LAST_BACKUP_OLD\x10\x07\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0\x10\x08\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3\x10\t\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2\x10\n\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1\x10\x0b\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0\x10\x0c\x12*\n&SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0\x10L\x12$\n SIGNAL_TYPE_VIOLATES_NIST_800_53\x10\r\x12\'\n#SIGNAL_TYPE_VIOLATES_NIST_800_53_R5\x10\x45\x12:\n6SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0\x10H\x12\"\n\x1eSIGNAL_TYPE_VIOLATES_ISO_27001\x10\x0e\x12(\n$SIGNAL_TYPE_VIOLATES_ISO_27001_V2022\x10\x46\x12\'\n#SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1\x10\x0f\x12%\n!SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0\x10G\x12\x31\n-SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4\x10I\x12\x1e\n\x1aSIGNAL_TYPE_VIOLATES_HIPAA\x10J\x12#\n\x1fSIGNAL_TYPE_VIOLATES_SOC2_V2017\x10K\x12\x36\n2SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING\x10\x10\x12*\n&SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED\x10\x11\x12%\n!SIGNAL_TYPE_VERBOSE_ERROR_LOGGING\x10\x12\x12+\n\'SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED\x10\x13\x12#\n\x1fSIGNAL_TYPE_LOGGING_MOST_ERRORS\x10\x14\x12,\n(SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS\x10\x15\x12%\n!SIGNAL_TYPE_MINIMAL_ERROR_LOGGING\x10\x16\x12\"\n\x1eSIGNAL_TYPE_QUERY_STATS_LOGGED\x10\x17\x12\x34\n0SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME\x10\x18\x12\x31\n-SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS\x10\x19\x12\x32\n.SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS\x10\x1a\x12/\n+SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS\x10\x1b\x12#\n\x1fSIGNAL_TYPE_LOGGING_QUERY_STATS\x10\x1c\x12+\n\'SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES\x10\x1d\x12-\n)SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED\x10\x1e\x12\'\n#SIGNAL_TYPE_USER_OPTIONS_CONFIGURED\x10\x1f\x12(\n$SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS\x10 \x12\'\n#SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS\x10!\x12 \n\x1cSIGNAL_TYPE_NO_ROOT_PASSWORD\x10\"\x12\"\n\x1eSIGNAL_TYPE_WEAK_ROOT_PASSWORD\x10#\x12\x33\n/SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED\x10$\x12\x32\n.SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED\x10%\x12+\n\'SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS\x10\'\x12+\n\'SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS\x10(\x12.\n*SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED\x10)\x12)\n%SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED\x10*\x12\x30\n,SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO\x10+\x12(\n$SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS\x10,\x12&\n\"SIGNAL_TYPE_DATABASE_NAMES_EXPOSED\x10-\x12/\n+SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED\x10.\x12!\n\x1dSIGNAL_TYPE_PUBLIC_IP_ENABLED\x10/\x12\x14\n\x10SIGNAL_TYPE_IDLE\x10\x30\x12\x1f\n\x1bSIGNAL_TYPE_OVERPROVISIONED\x10\x31\x12*\n&SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES\x10\x32\x12%\n!SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES\x10\x33\x12/\n+SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION\x10\x34\x12 \n\x1cSIGNAL_TYPE_UNDERPROVISIONED\x10\x35\x12\x1b\n\x17SIGNAL_TYPE_OUT_OF_DISK\x10\x36\x12.\n*SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY\x10\x37\x12*\n&SIGNAL_TYPE_DATABASE_AUDITING_DISABLED\x10\x38\x12,\n(SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS\x10\x39\x12\x31\n-SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP\x10:\x12\x1b\n\x17SIGNAL_TYPE_QUOTA_LIMIT\x10;\x12\"\n\x1eSIGNAL_TYPE_NO_PASSWORD_POLICY\x10<\x12.\n*SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT\x10=\x12-\n)SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT\x10>\x12-\n)SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT\x10?\x12*\n&SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES\x10@\x12\x30\n,SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES\x10\x41\x12,\n(SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS\x10\x42\x12<\n8SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET\x10\x43\x12:\n6SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET\x10\x44\x12,\n(SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM\x10M\x12\'\n#SIGNAL_TYPE_NO_USER_PASSWORD_POLICY\x10N\x12\x18\n\x14SIGNAL_TYPE_HOT_NODE\x10O\x12&\n\"SIGNAL_TYPE_NO_DELETION_PROTECTION\x10P\x12)\n%SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY\x10Q\x12\"\n\x1eSIGNAL_TYPE_RESOURCE_SUSPENDED\x10R\x12\"\n\x1eSIGNAL_TYPE_EXPENSIVE_COMMANDS\x10S\x12\x30\n,SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED\x10T\x12!\n\x1dSIGNAL_TYPE_INEFFICIENT_QUERY\x10U\x12\'\n#SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD\x10V\x12\x1c\n\x18SIGNAL_TYPE_MEMORY_LIMIT\x10W\x12!\n\x1dSIGNAL_TYPE_MAX_SERVER_MEMORY\x10X\x12\x1a\n\x16SIGNAL_TYPE_LARGE_ROWS\x10Y\x12#\n\x1fSIGNAL_TYPE_HIGH_WRITE_PRESSURE\x10Z\x12\"\n\x1eSIGNAL_TYPE_HIGH_READ_PRESSURE\x10[\x12\x33\n/SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED\x10\\\x12\x31\n-SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED\x10]\x12&\n\"SIGNAL_TYPE_OUTDATED_MINOR_VERSION\x10^\x12$\n SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED\x10_\x12\x1f\n\x1bSIGNAL_TYPE_REPLICATION_LAG\x10\x61\x12\x1f\n\x1bSIGNAL_TYPE_OUTDATED_CLIENT\x10\x63\x12\"\n\x1eSIGNAL_TYPE_DATABOOST_DISABLED\x10\x64\x12\x30\n,SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES\x10\x65\x12 \n\x1cSIGNAL_TYPE_EXTENDED_SUPPORT\x10\x66\x42\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cSignalsProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.databasecenter.v1beta.Product", "google/cloud/databasecenter/v1beta/product.proto"], + ["google.protobuf.Int32Value", "google/protobuf/wrappers.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule", "google/cloud/databasecenter/v1beta/maintenance.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module DatabaseCenter + module V1beta + SignalTypeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalTypeGroup").msgclass + SignalFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalFilter").msgclass + SignalGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalGroup").msgclass + IssueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueCount").msgclass + AdditionalDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AdditionalDetail").msgclass + SubResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SubResource").msgclass + RetentionSettingsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.RetentionSettingsInfo").msgclass + AutomatedBackupPolicyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo").msgclass + DeletionProtectionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DeletionProtectionInfo").msgclass + ResourceSuspensionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceSuspensionInfo").msgclass + BackupRunInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.BackupRunInfo").msgclass + BackupRunInfo::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.BackupRunInfo.State").enummodule + InefficientQueryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.InefficientQueryInfo").msgclass + SCCInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SCCInfo").msgclass + RecommendationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.RecommendationInfo").msgclass + RegulatoryStandard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.RegulatoryStandard").msgclass + OutdatedMinorVersionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo").msgclass + MaintenanceRecommendationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo").msgclass + Signal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Signal").msgclass + SignalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalStatus").enummodule + SignalSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalSource").enummodule + IssueSeverity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueSeverity").enummodule + SignalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalType").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb new file mode 100644 index 000000000000..292bff775ad7 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/databasecenter/v1beta/suspension_reason.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/cloud/databasecenter/v1beta/suspension_reason.proto\x12\"google.cloud.databasecenter.v1beta*\xe6\x01\n\x10SuspensionReason\x12!\n\x1dSUSPENSION_REASON_UNSPECIFIED\x10\x00\x12\x16\n\x12WIPEOUT_HIDE_EVENT\x10\x01\x12\x17\n\x13WIPEOUT_PURGE_EVENT\x10\x02\x12\x14\n\x10\x42ILLING_DISABLED\x10\x03\x12\x13\n\x0f\x41\x42USER_DETECTED\x10\x04\x12\x1f\n\x1b\x45NCRYPTION_KEY_INACCESSIBLE\x10\x05\x12\x32\n.REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE\x10\x06\x42\x83\x02\n&com.google.cloud.databasecenter.v1betaB\x15SuspensionReasonProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module DatabaseCenter + module V1beta + SuspensionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SuspensionReason").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/README.md b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/README.md new file mode 100644 index 000000000000..2e48b73b5298 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/README.md @@ -0,0 +1,4 @@ +# Database Center V1BETA Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..d59ba51a5612 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/client.rb @@ -0,0 +1,473 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb new file mode 100644 index 000000000000..0c9e45906981 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + # MachineConfig describes the configuration of a machine specific to a Database + # Resource. + # @!attribute [rw] memory_size_bytes + # @return [::Integer] + # Memory size in bytes. + # @!attribute [rw] shard_count + # @return [::Integer] + # Optional. The number of Shards (if applicable). + # @!attribute [rw] vcpu_count + # @return [::Float] + # Optional. The number of vCPUs (if applicable). + class MachineConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb new file mode 100644 index 000000000000..d8598a7a6ed1 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb @@ -0,0 +1,105 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + # Maintenance window for the database resource. It specifies preferred time + # and day of the week and phase in some cases, when the maintenance can start. + # @!attribute [rw] start_time + # @return [::Google::Type::TimeOfDay] + # Optional. Preferred time to start the maintenance operation on the + # specified day. + # @!attribute [rw] day + # @return [::Google::Type::DayOfWeek] + # Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, + # etc. + # @!attribute [rw] phase + # @return [::Google::Cloud::DatabaseCenter::V1beta::Phase] + # Optional. Phase of the maintenance window. This is to capture order of + # maintenance. For example, for Cloud SQL resources, this can be used to + # capture if the maintenance window is in Week1, Week2, Week5, etc. Non + # production resources are usually part of early phase. + # For more details, refer to Cloud SQL resources - + # https://cloud.google.com/sql/docs/mysql/maintenance + class ResourceMaintenanceSchedule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Deny maintenance period for the database resource. It specifies the time + # range during which the maintenance cannot start. This is configured by the + # customer. + # @!attribute [rw] start_date + # @return [::Google::Type::Date] + # Optional. The start date of the deny maintenance period. + # @!attribute [rw] end_date + # @return [::Google::Type::Date] + # Optional. Deny period end date. + # @!attribute [rw] time + # @return [::Google::Type::TimeOfDay] + # Optional. Time in UTC when the deny period starts on start_date and ends on + # end_date. + class ResourceMaintenanceDenySchedule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # MaintenanceInfo to capture the maintenance details of database resource. + # @!attribute [rw] maintenance_schedule + # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceMaintenanceSchedule] + # Optional. Maintenance window for the database resource. + # @!attribute [rw] deny_maintenance_schedules + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceMaintenanceDenySchedule>] + # Optional. List of Deny maintenance period for the database resource. + # @!attribute [r] maintenance_version + # @return [::String] + # Output only. Current Maintenance version of the database resource. Example: + # "MYSQL_8_0_41.R20250531.01_15" + class MaintenanceInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Phase/Week of the maintenance window. This is to capture order of + # maintenance. For example, for Cloud SQL resources - + # https://cloud.google.com/sql/docs/mysql/maintenance. + # This enum can be extended to support DB Center specific phases for + # recommendation plan generation. + module Phase + # Phase is unspecified. + PHASE_UNSPECIFIED = 0 + + # Week 1. + PHASE_WEEK1 = 1 + + # Week 2. + PHASE_WEEK2 = 2 + + # Week 5. + PHASE_WEEK5 = 3 + + # Any phase. + PHASE_ANY = 4 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb new file mode 100644 index 000000000000..638a50d8f586 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb @@ -0,0 +1,92 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + # Metrics represents the metrics for a database resource. + # @!attribute [rw] p99_cpu_utilization + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # P99 CPU utilization observed for the resource. The value is a + # fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + # @!attribute [rw] p95_cpu_utilization + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # P95 CPU utilization observed for the resource. The value is a + # fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + # @!attribute [rw] current_storage_used_bytes + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # Current storage used by the resource in bytes. + # @!attribute [rw] peak_storage_utilization + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # Peak storage utilization observed for the resource. The value is a + # fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + # @!attribute [rw] peak_memory_utilization + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # Peak memory utilization observed for the resource. The value is a + # fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + # @!attribute [rw] peak_number_connections + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # Peak number of connections observed for the resource. The value is a + # positive integer. + # @!attribute [rw] node_count + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # Number of nodes in instance for spanner or bigtable. + # @!attribute [rw] processing_unit_count + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # Number of processing units in spanner. + # @!attribute [rw] current_memory_used_bytes + # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] + # Current memory used by the resource in bytes. + class Metrics + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # MetricData represents the metric data for a database resource. + # @!attribute [rw] value + # @return [::Google::Cloud::DatabaseCenter::V1beta::TypedValue] + # The value associated with the metric. + # @!attribute [rw] observation_time + # @return [::Google::Protobuf::Timestamp] + # The time the metric was observed in the metric source service. + class MetricData + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # TypedValue represents the value of the metric based on data type. + # @!attribute [rw] double_value + # @return [::Float] + # The value of the metric as double. + # + # Note: The following fields are mutually exclusive: `double_value`, `int64_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] int64_value + # @return [::Integer] + # The value of the metric as int. + # + # Note: The following fields are mutually exclusive: `int64_value`, `double_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class TypedValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb new file mode 100644 index 000000000000..e23685625cd9 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + # OperationErrorType is used to expose specific error type which can happen in + # database resource while performing an operation. For example, an error can + # happen while database resource being backed up. + module OperationErrorType + # UNSPECIFIED means operation error type is not known or available. + OPERATION_ERROR_TYPE_UNSPECIFIED = 0 + + # Key destroyed, expired, not found, unreachable or permission denied. + KMS_KEY_ERROR = 1 + + # Database is not accessible. + DATABASE_ERROR = 2 + + # The zone or region does not have sufficient resources to handle the request + # at the moment. + STOCKOUT_ERROR = 3 + + # User initiated cancellation. + CANCELLATION_ERROR = 4 + + # SQL server specific error. + SQLSERVER_ERROR = 5 + + # Any other internal error. + INTERNAL_ERROR = 6 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/product.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/product.rb new file mode 100644 index 000000000000..a597bc2316eb --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/product.rb @@ -0,0 +1,132 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + # Product specification for databasecenter resources. + # @!attribute [rw] type + # @return [::Google::Cloud::DatabaseCenter::V1beta::ProductType] + # Optional. Type of specific database product. It could be CloudSQL, AlloyDB + # etc.. + # @!attribute [rw] engine + # @return [::Google::Cloud::DatabaseCenter::V1beta::Engine] + # Optional. The specific engine that the underlying database is running. + # @!attribute [rw] version + # @return [::String] + # Optional. Version of the underlying database engine. Example values: For + # MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" + # etc. + # @!attribute [rw] minor_version + # @return [::String] + # Optional. Minor version of the underlying database engine. Example values: + # For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be + # "14.4", "15.5" etc. + class Product + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Engine refers to underlying database binary running in an instance. + module Engine + # UNSPECIFIED means engine type is not known or available. + ENGINE_UNSPECIFIED = 0 + + # MySQL binary running as an engine in the database instance. + ENGINE_MYSQL = 1 + + # Postgres binary running as engine in database instance. + ENGINE_POSTGRES = 2 + + # SQLServer binary running as engine in database instance. + ENGINE_SQL_SERVER = 3 + + # Native database binary running as engine in instance. + ENGINE_NATIVE = 4 + + # Memorystore with Redis dialect. + ENGINE_MEMORYSTORE_FOR_REDIS = 8 + + # Memorystore with Redis cluster dialect. + ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER = 9 + + # Firestore with native mode. + ENGINE_FIRESTORE_WITH_NATIVE_MODE = 10 + + # Firestore with datastore mode. + ENGINE_FIRESTORE_WITH_DATASTORE_MODE = 11 + + # Oracle Exadata engine. + ENGINE_EXADATA_ORACLE = 12 + + # Oracle Autonomous DB Serverless engine. + ENGINE_ADB_SERVERLESS_ORACLE = 13 + + # Firestore with MongoDB compatibility. + ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE = 14 + + # Other refers to rest of other database engine. This is to be when engine is + # known, but it is not present in this enum. + ENGINE_OTHER = 6 + end + + # ProductType is used to identify a database service offering either in a cloud + # provider or on-premise. This enum needs to be updated whenever we introduce + # a new ProductType. + module ProductType + # PRODUCT_TYPE_UNSPECIFIED means product type is not known or that the user + # didn't provide this field in the request. + PRODUCT_TYPE_UNSPECIFIED = 0 + + # Cloud SQL product area in GCP + PRODUCT_TYPE_CLOUD_SQL = 1 + + # AlloyDB product area in GCP + PRODUCT_TYPE_ALLOYDB = 2 + + # Spanner product area in GCP + PRODUCT_TYPE_SPANNER = 3 + + # Bigtable product area in GCP + PRODUCT_TYPE_BIGTABLE = 6 + + # Memorystore product area in GCP + PRODUCT_TYPE_MEMORYSTORE = 7 + + # Firestore product area in GCP + PRODUCT_TYPE_FIRESTORE = 8 + + # Compute Engine self managed databases + PRODUCT_TYPE_COMPUTE_ENGINE = 9 + + # Oracle product area in GCP + PRODUCT_TYPE_ORACLE_ON_GCP = 10 + + # BigQuery product area in GCP + PRODUCT_TYPE_BIGQUERY = 11 + + # Other refers to rest of other product type. This is to be when product type + # is known, but it is not present in this enum. + PRODUCT_TYPE_OTHER = 5 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb new file mode 100644 index 000000000000..1ea06c4fe1ed --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb @@ -0,0 +1,920 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + # QueryProductsRequest is the request to get a list of products. + # @!attribute [rw] parent + # @return [::String] + # Required. Parent can be a project, a folder, or an organization. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID}/locations/\\{LOCATION} + # (e.g.,"projects/foo-bar/locations/us-central1") + # * projects/\\{PROJECT_NUMBER}/locations/\\{LOCATION} + # (e.g.,"projects/12345678/locations/us-central1") + # * folders/\\{FOLDER_NUMBER}/locations/\\{LOCATION} + # (e.g.,"folders/1234567/locations/us-central1") + # * organizations/\\{ORGANIZATION_NUMBER}/locations/\\{LOCATION} + # (e.g.,"organizations/123456/locations/us-central1") + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. If unspecified, at most 50 products will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListLocations` call. + # Provide this to retrieve the subsequent page. + # All other parameters except page size should match the call that provided + # the page page token. + class QueryProductsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # QueryProductsResponse represents the response containing a list of products. + # @!attribute [rw] products + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Product>] + # List of database products returned. + # @!attribute [rw] next_page_token + # @return [::String] + # A token that can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + class QueryProductsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # QueryDatabaseResourceGroupsRequest is the request to get a list of database + # groups. + # @!attribute [rw] parent + # @return [::String] + # Required. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @!attribute [rw] filter + # @return [::String] + # Optional. The expression to filter resources. + # + # The following fields are filterable: + # * full_resource_name + # * resource_type + # * container + # * product.type + # * product.engine + # * product.version + # * location + # * labels + # * resource_category + # * machine_config.cpu_count + # * machine_config.memory_size_bytes + # * machine_config.shard_count + # * resource_name + # * tags + # * backupdr_config.backupdr_managed + # * edition + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # Example: `full_resource_name=~"test"` + # Example: `full_resource_name=~"test.*master"` + # @!attribute [rw] signal_type_groups + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup>] + # Optional. Groups of signal types that are requested. + # @!attribute [rw] signal_filters + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalFilter>] + # Optional. Filters based on signals. The list will be ORed together and then + # ANDed with the `filters` field above. + # @!attribute [rw] order_by + # @return [::String] + # Optional. A field that specifies the sort order of the results. + # + # The following fields are sortable: + # * full_resource_name + # * product.type + # * product.engine + # * product.version + # * container + # * issue_count + # * machine_config.vcpu_count + # * machine_config.memory_size_bytes + # * machine_config.shard_count + # * resource_name + # * issue_severity + # * signal_type + # * location + # * resource_type + # * instance_type + # * edition + # * metrics.p99_cpu_utilization + # * metrics.p95_cpu_utilization + # * metrics.current_storage_used_bytes + # * metrics.node_count + # * metrics.processing_unit_count + # * metrics.current_memory_used_bytes + # * metrics.peak_storage_utilization + # * metrics.peak_number_connections + # * metrics.peak_memory_utilization + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # + # For example: + # `order_by = "full_resource_name"` sorts response in ascending order + # `order_by = "full_resource_name DESC"` sorts response in descending order + # `order_by = "issue_count DESC"` sorts response in descending order of + # count of all issues associated with a resource. + # + # More explicitly, `order_by = "full_resource_name, product"` is not + # supported. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. If unspecified, at most 50 resource groups will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the + # subsequent page. All parameters except page_token should match the + # parameters in the call that provided the page page token. + class QueryDatabaseResourceGroupsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # QueryDatabaseResourceGroupsResponse represents the response message + # containing a list of resource groups. + # @!attribute [rw] resource_groups + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] + # List of database resource groups that pass the filter. + # @!attribute [rw] next_page_token + # @return [::String] + # A token that can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + class QueryDatabaseResourceGroupsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # DatabaseResourceGroup represents all resources that serve a common data set. + # It is considered notionally as a single entity, powered by any number of + # units of compute and storage. + # @!attribute [rw] root_resources + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource>] + # A database resource that serves as a root of the group of database + # resources. It is repeated just in case we have the concept of multiple + # roots in the future, however, it will only be populated with a single value + # for now. + # @!attribute [rw] signal_groups + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::IssueCount>] + # The filtered signal groups and the count of issues associated with the + # resources that have been filtered in. + class DatabaseResourceGroup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # DatabaseResource represents every individually configured database unit + # representing compute and/or storage. + # NextId: 20 + # @!attribute [rw] child_resources + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource>] + # List of children associated with a database group. + # @!attribute [rw] full_resource_name + # @return [::String] + # The full resource name, based on CAIS resource name format + # https://cloud.google.com/asset-inventory/docs/resource-name-format + # + # Example: + # + # `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` + # `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` + # `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` + # `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` + # `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` + # @!attribute [rw] container + # @return [::String] + # Specifies where the resource is created. For GCP, it is the full name of + # the project. + # @!attribute [rw] product + # @return [::Google::Cloud::DatabaseCenter::V1beta::Product] + # The product this resource represents. + # @!attribute [rw] location + # @return [::String] + # The location of the resources. It supports returning only regional + # locations in GCP. These are of the form: "us-central1", "us-east1", etc. + # See https://cloud.google.com/about/locations for a list of such regions. + # @!attribute [rw] labels + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Label>] + # Labels applied on the resource. The requirements for labels assigned to + # Google Cloud resources may be found at + # https://cloud.google.com/resource-manager/docs/labels-overview#requirements + # @!attribute [rw] tags + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Tag>] + # Tags applied on the resource. The requirements for tags assigned to + # Google Cloud resources may be found at + # https://cloud.google.com/resource-manager/docs/tags/tags-overview + # @!attribute [rw] resource_type + # @return [::String] + # The type of resource defined according to the pattern: + # \\{Service Name}/\\{Type}. Ex: + # sqladmin.googleapis.com/Instance + # alloydb.googleapis.com/Cluster + # alloydb.googleapis.com/Instance + # spanner.googleapis.com/Instance + # @!attribute [rw] sub_resource_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResourceType] + # Subtype of the resource specified at creation time. + # @!attribute [rw] machine_config + # @return [::Google::Cloud::DatabaseCenter::V1beta::MachineConfig] + # Machine configuration like CPU, memory, etc for the resource. + # @!attribute [rw] signal_groups + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalGroup>] + # The list of signal groups and count of issues related to the resource. + # Only those signals which have been requested would be included. + # @!attribute [rw] metrics + # @return [::Google::Cloud::DatabaseCenter::V1beta::Metrics] + # Observable metrics for the resource e.g. CPU utilization, memory + # utilization, etc. + # @!attribute [rw] resource_category + # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory] + # The category of the resource. + # @!attribute [rw] resource_name + # @return [::String] + # The name of the resource(The last part of the full resource name). + # Example: + # For full resource name - + # `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, + # resource name - `mysql-1` + # For full resource name - + # `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , + # resource name - `postgres-1` + # Note: In some cases, there might be more than one resource with the same + # resource name. + # @!attribute [rw] backupdr_config + # @return [::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig] + # Optional. Backup and disaster recovery details for the resource. + # @!attribute [rw] edition + # @return [::Google::Cloud::DatabaseCenter::V1beta::Edition] + # The edition of the resource. + # @!attribute [rw] maintenance_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo] + # Optional. The maintenance information of the resource. + class DatabaseResource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # AggregateIssueStatsRequest represents the input to the AggregateIssueStats + # method. + # @!attribute [rw] parent + # @return [::String] + # Required. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @!attribute [rw] filter + # @return [::String] + # Optional. The expression to filter resources. + # + # Supported fields are: `full_resource_name`, `resource_type`, `container`, + # `product.type`, `product.engine`, `product.version`, `location`, + # `labels`, `issues`, fields of availability_info, + # data_protection_info,'resource_name', etc. + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # @!attribute [rw] signal_type_groups + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup>] + # Optional. Lists of signal types that are issues. + # @!attribute [rw] baseline_date + # @return [::Google::Type::Date] + # Optional. The baseline date w.r.t. which the delta counts are calculated. + # If not set, delta counts are not included in the response and the response + # indicates the current state of the fleet. + class AggregateIssueStatsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message containing one of more group of relevant health issues + # for database resources. + # @!attribute [rw] issue_group_stats + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::IssueGroupStats>] + # List of issue group stats where each group contains stats for resources + # having a particular combination of relevant issues. + # @!attribute [rw] total_resources_count + # @return [::Integer] + # Total count of the resources filtered in based on the user given filter. + # @!attribute [rw] total_resource_groups_count + # @return [::Integer] + # Total count of the resource filtered in based on the user given filter. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + class AggregateIssueStatsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # IssueGroupStats refers to stats for a particulare combination of relevant + # health issues of database resources. + # @!attribute [rw] display_name + # @return [::String] + # Database resource level health card name. This will corresponds to one of + # the requested input group names. + # @!attribute [rw] resource_groups_count + # @return [::Integer] + # Total count of the groups of resources returned by the filter that + # also have one or more resources for which any of the specified issues + # are applicable. + # @!attribute [rw] resources_count + # @return [::Integer] + # Total count of resources returned by the filter for which any of the + # specified issues are applicable. + # @!attribute [rw] healthy_resource_groups_count + # @return [::Integer] + # The number of resource groups from the total groups as defined above + # that are healthy with respect to all of the specified issues. + # @!attribute [rw] healthy_resources_count + # @return [::Integer] + # The number of resources from the total defined above in field + # total_resources_count that are healthy with respect to all of the specified + # issues. + # @!attribute [rw] issue_stats + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::IssueStats>] + # List of issues stats containing count of resources having particular issue + # category. + class IssueGroupStats + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # IssueStats holds stats for a particular signal category. + # @!attribute [rw] signal_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] + # Type of signal which is an issue. + # @!attribute [rw] resource_count + # @return [::Integer] + # Number of resources having issues of a given type. + # @!attribute [rw] delta_details + # @return [::Google::Cloud::DatabaseCenter::V1beta::DeltaDetails] + # Optional. Delta counts and details of resources for which issue was raised + # or fixed. + # @!attribute [rw] issue_severity + # @return [::Google::Cloud::DatabaseCenter::V1beta::IssueSeverity] + # Severity of the issue. + class IssueStats + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Label is a key value pair applied to a resource. + # @!attribute [rw] key + # @return [::String] + # The key part of the label. + # @!attribute [rw] value + # @return [::String] + # The value part of the label. + # @!attribute [rw] source + # @return [::String] + # The source of the Label. Source is empty if the label is directly attached + # to the resource and not inherited. + class Label + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message to aggregate fleet which are grouped by a field. + # @!attribute [rw] parent + # @return [::String] + # Required. Parent can be a project, a folder, or an organization. The search + # is limited to the resources within the `scope`. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., + # "organizations/123456") + # @!attribute [rw] filter + # @return [::String] + # Optional. The expression to filter resources. + # + # Supported fields are: `full_resource_name`, `resource_type`, `container`, + # `product.type`, `product.engine`, `product.version`, `location`, + # `labels`, `issues`, fields of availability_info, data_protection_info, + # 'resource_name', etc. + # + # The expression is a list of zero or more restrictions combined via logical + # operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the + # combinations. + # + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # @!attribute [rw] group_by + # @return [::String] + # Optional. A field that statistics are grouped by. + # Valid values are any combination of the following: + # * container + # * product.type + # * product.engine + # * product.version + # * location + # * sub_resource_type + # * management_type + # * tag.key + # * tag.value + # * tag.source + # * tag.inherited + # * label.key + # * label.value + # * label.source + # * has_maintenance_schedule + # * has_deny_maintenance_schedules + # Comma separated list. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Valid values to order by are: + # * resource_groups_count + # * resources_count + # * and all fields supported by `group_by` + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It supports ordering using multiple fields. + # For example: + # `order_by = "resource_groups_count"` sorts response in ascending order + # `order_by = "resource_groups_count DESC"` sorts response in descending + # order + # `order_by = "product.type, product.version DESC, location"` orders by type + # in ascending order, version in descending order and location in ascending + # order + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. If unspecified, at most 50 items will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `AggregateFleet` call. + # Provide this to retrieve the subsequent page. + # All other parameters should match the parameters in the call that provided + # the page token except for page_size which can be different. + # @!attribute [rw] baseline_date + # @return [::Google::Type::Date] + # Optional. The baseline date w.r.t. which the delta counts are calculated. + # If not set, delta counts are not included in the response and the response + # indicates the current state of the fleet. + class AggregateFleetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message to aggregate a fleet by some group by + # fields. + # @!attribute [rw] rows + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] + # Represents a row grouped by the fields in the input. + # @!attribute [rw] resource_groups_total_count + # @return [::Integer] + # Count of all resource groups in the fleet. This includes counts from all + # pages. + # @!attribute [rw] resource_total_count + # @return [::Integer] + # Count of all resources in the fleet. This includes counts from all pages. + # @!attribute [rw] next_page_token + # @return [::String] + # A token that can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + class AggregateFleetResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Individual row grouped by a particular dimension. + # @!attribute [rw] dimension + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Dimension>] + # Group by dimension. + # @!attribute [rw] resource_groups_count + # @return [::Integer] + # Number of resource groups that have a particular dimension. + # @!attribute [rw] resources_count + # @return [::Integer] + # Number of resources that have a particular dimension. + # @!attribute [rw] delta_details + # @return [::Google::Cloud::DatabaseCenter::V1beta::DeltaDetails] + # Optional. Delta counts and details of resources which were added to/deleted + # from fleet. + class AggregateFleetRow + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Dimension used to aggregate the fleet. + # @!attribute [rw] container + # @return [::String] + # Specifies where the resource is created. For GCP, it is the full name of + # the project. + # + # Note: The following fields are mutually exclusive: `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] product_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::ProductType] + # Type to identify a product + # + # Note: The following fields are mutually exclusive: `product_type`, `container`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] product_engine + # @return [::Google::Cloud::DatabaseCenter::V1beta::Engine] + # Engine refers to underlying database binary running in an instance. + # + # Note: The following fields are mutually exclusive: `product_engine`, `container`, `product_type`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] product_version + # @return [::String] + # Version of the underlying database engine + # + # Note: The following fields are mutually exclusive: `product_version`, `container`, `product_type`, `product_engine`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] location + # @return [::String] + # The location of the resources. It supports returning only regional + # locations in GCP. + # + # Note: The following fields are mutually exclusive: `location`, `container`, `product_type`, `product_engine`, `product_version`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] resource_type + # @return [::String] + # The type of resource defined according to the pattern: + # \\{Service Name}/\\{Type}. Ex: + # sqladmin.googleapis.com/Instance + # alloydb.googleapis.com/Cluster + # alloydb.googleapis.com/Instance + # spanner.googleapis.com/Instance + # + # Note: The following fields are mutually exclusive: `resource_type`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] sub_resource_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResourceType] + # Subtype of the resource specified at creation time. + # + # Note: The following fields are mutually exclusive: `sub_resource_type`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] resource_category + # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory] + # The category of the resource. + # + # Note: The following fields are mutually exclusive: `resource_category`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] management_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::ManagementType] + # The management type of the resource. + # + # Note: The following fields are mutually exclusive: `management_type`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] edition + # @return [::Google::Cloud::DatabaseCenter::V1beta::Edition] + # The edition of the resource. + # + # Note: The following fields are mutually exclusive: `edition`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] tag_key + # @return [::String] + # Tag key of the resource. + # + # Note: The following fields are mutually exclusive: `tag_key`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] tag_value + # @return [::String] + # Tag value of the resource. + # + # Note: The following fields are mutually exclusive: `tag_value`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] tag_source + # @return [::String] + # Tag source of the resource. + # + # Note: The following fields are mutually exclusive: `tag_source`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] tag_inherited + # @return [::Boolean] + # Tag inheritance value of the resource. + # + # Note: The following fields are mutually exclusive: `tag_inherited`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] label_key + # @return [::String] + # Label key of the resource. + # + # Note: The following fields are mutually exclusive: `label_key`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] label_value + # @return [::String] + # Label value of the resource. + # + # Note: The following fields are mutually exclusive: `label_value`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] label_source + # @return [::String] + # Label source of the resource. + # + # Note: The following fields are mutually exclusive: `label_source`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] has_maintenance_schedule + # @return [::Boolean] + # Whether the resource has a maintenance schedule. + # + # Note: The following fields are mutually exclusive: `has_maintenance_schedule`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] has_deny_maintenance_schedules + # @return [::Boolean] + # Whether the resource has deny maintenance schedules. + # + # Note: The following fields are mutually exclusive: `has_deny_maintenance_schedules`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Dimension + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # BackupDRConfig to capture the backup and disaster recovery details of + # database resource. + # @!attribute [rw] backupdr_managed + # @return [::Boolean] + # Indicates if the resource is managed by BackupDR. + class BackupDRConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # QueryIssuesRequest is the request to get a list of issues. + # @!attribute [rw] parent + # @return [::String] + # Required. Parent can be a project, a folder, or an organization. The list + # is limited to the one attached to resources within the `scope` that a user + # has access to. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @!attribute [rw] filter + # @return [::String] + # Optional. + # Supported fields are: + # 'product', + # `location`, + # `issue_severity`, + # 'tags', + # 'labels', + # @!attribute [rw] signal_products_filters + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters>] + # Optional. Filters based on signal and product. The filter list will be ORed + # across pairs and ANDed within a signal and products pair. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Following fields are sortable: + # SignalType + # Product + # Location + # IssueSeverity + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. If unspecified, at most 50 issues will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `QueryIssues` call. + # Provide this to retrieve the subsequent page. + # All parameters except page size should match the parameters used in the + # call that provided the page token. + class QueryIssuesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # SignalProductsFilters represents a signal and list of supported products. + # @!attribute [rw] signal_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] + # Optional. The type of signal. + # @!attribute [rw] products + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Product>] + # Optional. Product type of the resource. The version of the product will be + # ignored in filtering. + class SignalProductsFilters + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # QueryIssuesResponse is the response containing a list of issues. + # @!attribute [rw] resource_issues + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # List of issues and resource details. + # @!attribute [rw] next_page_token + # @return [::String] + # A token that can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + class QueryIssuesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # DatabaseResource and Issue associated with it. + # @!attribute [rw] signal + # @return [::Google::Cloud::DatabaseCenter::V1beta::Signal] + # Signal associated with the issue. + # @!attribute [rw] resource + # @return [::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource] + # Resource associated with the issue. + class DatabaseResourceIssue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Tag is a key value pair attached to a resource. + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + # The value part of the tag. + # @!attribute [rw] source + # @return [::String] + # The source of the tag. According to + # https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, + # tags can be created only at the project or organization level. Tags can be + # inherited from different project as well not just the current project where + # the database resource is present. + # Format: + # "projects/\\{PROJECT_ID}", + # "projects/\\{PROJECT_NUMBER}", + # "organizations/\\{ORGANIZATION_ID}" + # @!attribute [rw] inherited + # @return [::Boolean] + # Indicates the inheritance status of a tag value + # attached to the given resource. If the tag value is inherited from one of + # the resource's ancestors, inherited will be true. If false, then the tag + # value is directly attached to the resource. + class Tag + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Capture the resource details for resources that are included in the delta + # counts. + # @!attribute [rw] full_resource_name + # @return [::String] + # Full resource name of the resource. + # @!attribute [rw] container + # @return [::String] + # Specifies where the resource is created. For GCP, it is the full name of + # the project. + # @!attribute [rw] product + # @return [::Google::Cloud::DatabaseCenter::V1beta::Product] + # Product type of the resource. + # @!attribute [rw] location + # @return [::String] + # Location of the resource. + class ResourceDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Captures the details of items that have increased or decreased in some bucket + # when compared to some point in history. + # It is currently used to capture the delta of resources that have been added + # or removed in the fleet as well as to capture the resources that have a + # change in Issue/Signal status. + # @!attribute [rw] increased_resources + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceDetails>] + # Details of resources that have increased. + # @!attribute [rw] decreased_resources + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceDetails>] + # Details of resources that have decreased. + class DeltaDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The enum value corresponds to 'type' suffix in the resource_type field. + module ResourceCategory + # Unspecified. + RESOURCE_CATEGORY_UNSPECIFIED = 0 + + # A resource that is an Instance. + INSTANCE = 1 + + # A resource that is a Cluster. + CLUSTER = 2 + + # A resource that is a Database. + DATABASE = 3 + end + + # Proto representing the edition of the instance. + # NextId: 4. + module Edition + # Default, to make it consistent with instance edition enum. + EDITION_UNSPECIFIED = 0 + + # Represents the enterprise edition. + EDITION_ENTERPRISE = 1 + + # Represents the enterprise plus edition. + EDITION_ENTERPRISE_PLUS = 2 + + # Represents the standard edition. + EDITION_STANDARD = 3 + end + + # SubResourceType refers to the sub-type of database resource. + module SubResourceType + # Unspecified. + SUB_RESOURCE_TYPE_UNSPECIFIED = 0 + + # A resource acting as a primary. + SUB_RESOURCE_TYPE_PRIMARY = 1 + + # A resource acting as a secondary. + SUB_RESOURCE_TYPE_SECONDARY = 2 + + # A resource acting as a read-replica. + SUB_RESOURCE_TYPE_READ_REPLICA = 3 + + # A resource acting as an external primary. + SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5 + + # For the rest of the categories. + SUB_RESOURCE_TYPE_OTHER = 4 + end + + # The management type of the resource. + module ManagementType + # Unspecified. + MANAGEMENT_TYPE_UNSPECIFIED = 0 + + # Google-managed resource. + MANAGEMENT_TYPE_GCP_MANAGED = 1 + + # Self-managed resource. + MANAGEMENT_TYPE_SELF_MANAGED = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/signals.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/signals.rb new file mode 100644 index 000000000000..397d12ca74ed --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/signals.rb @@ -0,0 +1,848 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + # A group of signal types that specifies what the user is interested in. + # + # Used by QueryDatabaseResourceGroups API. + # + # Example: + # + # signal_type_group { + # name = "AVAILABILITY" + # types = [SIGNAL_TYPE_NO_PROMOTABLE_REPLICA] + # } + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name of a signal group. + # @!attribute [rw] signal_types + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalType>] + # Optional. List of signal types present in the group. + class SignalTypeGroup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A filter for Signals. + # + # If signal_type is left unset, all signals should be returned. + # For example, the following filter returns all issues. + # signal_filter: { + # signal_status: SIGNAL_STATUS_ISSUE; + # } + # + # Another example, the following filter returns issues of the given type: + # signal_filter: { + # type: SIGNAL_TYPE_NO_PROMOTABLE_REPLICA + # signal_status: ISSUE + # } + # + # If signal_status is left unset or set to SIGNAL_STATE_UNSPECIFIED, an error + # should be returned. + # @!attribute [rw] signal_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] + # Optional. Represents the type of the Signal for which the filter is for. + # @!attribute [rw] signal_status + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalStatus] + # Optional. Represents the status of the Signal for which the filter is for. + class SignalFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A group of signals and their counts. + # @!attribute [rw] display_name + # @return [::String] + # Title of a signal group corresponding to the request. + # @!attribute [rw] issue_count + # @return [::Integer] + # When applied to a DatabaseResource represents count of issues associated + # with the resource. A signal is an issue when its SignalStatus field is + # set to SIGNAL_STATUS_ISSUE. + # @!attribute [rw] signals + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Signal>] + # List of signals present in the group and associated with the resource. + # + # Only applies to a DatabaseResource. + class SignalGroup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Count of issues for a group of signals. + # @!attribute [rw] display_name + # @return [::String] + # Title of a signal group corresponding to the request. + # @!attribute [rw] issue_count + # @return [::Integer] + # The count of the number of issues associated with those resources that + # are explicitly filtered in by the filters present in the request. + # A signal is an issue when its SignalStatus field is set to + # SIGNAL_STATUS_ISSUE. + class IssueCount + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details related to signal. + # @!attribute [rw] short_backup_retention_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::RetentionSettingsInfo] + # Short backup retention information applies to signals with type + # SIGNAL_TYPE_SHORT_BACKUP_RETENTION. + # + # Note: The following fields are mutually exclusive: `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] backup_run_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::BackupRunInfo] + # Backup run information applies to signals with types + # SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. + # + # Note: The following fields are mutually exclusive: `backup_run_info`, `short_backup_retention_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] scc_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::SCCInfo] + # SCC information applies to SCC signals. + # + # Note: The following fields are mutually exclusive: `scc_info`, `short_backup_retention_info`, `backup_run_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] recommendation_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::RecommendationInfo] + # Recommendation information applies to recommendations. + # + # Note: The following fields are mutually exclusive: `recommendation_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] automated_backup_policy_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::AutomatedBackupPolicyInfo] + # Automated backup policy information applies to signals with type + # SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. + # + # Note: The following fields are mutually exclusive: `automated_backup_policy_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] deletion_protection_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::DeletionProtectionInfo] + # Deletion protection information applies to signals with type + # {::Google::Cloud::DatabaseCenter::V1beta::SignalType::SIGNAL_TYPE_NO_DELETION_PROTECTION SIGNAL_TYPE_NO_DELETION_PROTECTION} + # + # Note: The following fields are mutually exclusive: `deletion_protection_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] resource_suspension_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceSuspensionInfo] + # Resource suspension information applies to signals with type + # {::Google::Cloud::DatabaseCenter::V1beta::SignalType::SIGNAL_TYPE_RESOURCE_SUSPENDED SIGNAL_TYPE_RESOURCE_SUSPENDED}. + # + # Note: The following fields are mutually exclusive: `resource_suspension_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] inefficient_query_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo] + # Inefficient query information applies to signals with type + # {::Google::Cloud::DatabaseCenter::V1beta::SignalType::SIGNAL_TYPE_INEFFICIENT_QUERY SIGNAL_TYPE_INEFFICIENT_QUERY}. + # + # Note: The following fields are mutually exclusive: `inefficient_query_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] outdated_minor_version_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::OutdatedMinorVersionInfo] + # Outdated minor version information applies to signals with type + # SIGNAL_TYPE_OUTDATED_MINOR_VERSION. + # + # Note: The following fields are mutually exclusive: `outdated_minor_version_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] maintenance_recommendation_info + # @return [::Google::Cloud::DatabaseCenter::V1beta::MaintenanceRecommendationInfo] + # Maintenance recommendation information applies to signals + # with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. + # + # Note: The following fields are mutually exclusive: `maintenance_recommendation_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] signal_source + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalSource] + # Where the signal is coming from. + # @!attribute [rw] signal_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] + # Type of the signal. + # @!attribute [rw] signal_event_time + # @return [::Google::Protobuf::Timestamp] + # Event time when signal was recorded by source service. + class AdditionalDetail + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Sub resource details + # For Spanner/Bigtable instance certain data protection settings are at + # sub resource level like database/table. + # This message is used to capture such sub resource details. + # @!attribute [rw] resource_type + # @return [::String] + # Optional. Resource type associated with the sub resource where backup + # settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner + # where backup retention is configured on database within an instance + # OPTIONAL + # @!attribute [rw] full_resource_name + # @return [::String] + # Optional. Resource name associated with the sub resource where backup + # settings are configured. + # E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" + # for Spanner where backup retention is configured on database within + # an instance + # OPTIONAL + # @!attribute [rw] product + # @return [::Google::Cloud::DatabaseCenter::V1beta::Product] + # Optional. Product information associated with the sub resource where + # backup retention settings are configured. + # e.g. + # ``` + # product: { + # type : PRODUCT_TYPE_SPANNER + # engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT + # } + # ``` + # for Spanner where backup is configured on database within + # an instance + # OPTIONAL + # @!attribute [rw] container + # @return [::String] + # Specifies where the resource is created. For GCP, it is the full name of + # the project. + class SubResource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata about backup retention settings for a database resource. + # @!attribute [rw] quantity_based_retention + # @return [::Google::Protobuf::Int32Value] + # Number of backups that will be retained. + # + # Note: The following fields are mutually exclusive: `quantity_based_retention`, `duration_based_retention`, `timestamp_based_retention_time`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] duration_based_retention + # @return [::Google::Protobuf::Duration] + # Duration based retention period i.e. 172800 seconds (2 days) + # + # Note: The following fields are mutually exclusive: `duration_based_retention`, `quantity_based_retention`, `timestamp_based_retention_time`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] timestamp_based_retention_time + # @return [::Google::Protobuf::Timestamp] + # Timestamp based retention period i.e. till 2024-05-01T00:00:00Z + # + # Note: The following fields are mutually exclusive: `timestamp_based_retention_time`, `quantity_based_retention`, `duration_based_retention`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] sub_resource + # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResource] + # Optional. Sub resource details associated with the backup configuration. + class RetentionSettingsInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Automated backup policy signal info + # @!attribute [rw] sub_resource + # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResource] + # Optional. Sub resource details associated with the signal. + # @!attribute [rw] is_enabled + # @return [::Boolean] + # Is automated policy enabled. + class AutomatedBackupPolicyInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Deletion protection signal info for a database resource. + # @!attribute [rw] sub_resource + # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResource] + # Optional. Sub resource details associated with the signal. + # @!attribute [rw] deletion_protection_enabled + # @return [::Boolean] + # Is deletion protection enabled. + class DeletionProtectionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Resource suspension info for a database resource. + # @!attribute [rw] resource_suspended + # @return [::Boolean] + # Is resource suspended. + # @!attribute [rw] suspension_reason + # @return [::Google::Cloud::DatabaseCenter::V1beta::SuspensionReason] + # Suspension reason for the resource. + class ResourceSuspensionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata about latest backup run state for a database resource. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time the backup operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # The time the backup operation completed. + # @!attribute [r] state + # @return [::Google::Cloud::DatabaseCenter::V1beta::BackupRunInfo::State] + # Output only. The state of this run. + # @!attribute [rw] error_message + # @return [::String] + # Additional information about the error encountered. + # @!attribute [rw] operation_error_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::OperationErrorType] + # Optional. OperationErrorType to expose specific error when backup operation + # of database resource failed, that is state is FAILED. + # @!attribute [rw] sub_resource + # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResource] + # Optional. Sub resource details associated with the backup run. + class BackupRunInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The status of a backup run. + module State + # Unspecified. + STATE_UNSPECIFIED = 0 + + # The backup succeeded. + SUCCEEDED = 1 + + # The backup was unsuccessful. + FAILED = 2 + end + end + + # Metadata about inefficient query signal info for a database resource. + # @!attribute [rw] database + # @return [::String] + # Name of the database where index is required. For example, "db1", which is + # the name of the database present in the instance. + # @!attribute [rw] table + # @return [::String] + # Name of the table where index is required + # @!attribute [rw] sql_index_statement + # @return [::String] + # SQL statement of the index. Based on the ddl type, this will be either + # CREATE INDEX or DROP INDEX. + # @!attribute [rw] storage_cost_bytes + # @return [::Integer] + # Cost of additional disk usage in bytes + # @!attribute [rw] impacted_queries_count + # @return [::Integer] + # Count of queries to be impacted if index is applied + class InefficientQueryInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Info associated with SCC signals. + # @!attribute [rw] signal + # @return [::String] + # Name of the signal. + # @!attribute [rw] category + # @return [::String] + # Name by which SCC calls this signal. + # @!attribute [rw] regulatory_standards + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::RegulatoryStandard>] + # Compliances that are associated with the signal. + # @!attribute [rw] external_uri + # @return [::String] + # External URI which points to a SCC page associated with the signal. + class SCCInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Info associated with recommendation. + # @!attribute [rw] recommender + # @return [::String] + # Name of recommendation. + # Examples: + # organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 + # @!attribute [rw] recommender_id + # @return [::String] + # ID of recommender. + # Examples: "google.cloudsql.instance.PerformanceRecommender" + # @!attribute [rw] recommender_subtype + # @return [::String] + # Contains an identifier for a subtype of recommendations produced for the + # same recommender. Subtype is a function of content and impact, meaning a + # new subtype might be added when significant changes to `content` or + # `primary_impact.category` are introduced. See the Recommenders section + # to see a list of subtypes for a given Recommender. + # + # Examples: + # For recommender = "google.cloudsql.instance.PerformanceRecommender", + # recommender_subtype can be + # "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" + class RecommendationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Compliances associated with signals. + # @!attribute [rw] standard + # @return [::String] + # Name of industry compliance standards, such as such as CIS, PCI, and + # OWASP. + # @!attribute [rw] version + # @return [::String] + # Version of the standard or benchmark, for example, 1.1. + class RegulatoryStandard + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Info associated with outdated minor version. + # @!attribute [rw] recommended_minor_version + # @return [::String] + # Recommended minor version of the underlying database engine. Example + # values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it + # could be "14.4", "15.5" etc. + class OutdatedMinorVersionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Info associated with maintenance recommendation. + # @!attribute [rw] resource_maintenance_schedules + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceMaintenanceSchedule>] + # Optional. List of recommended maintenance schedules for the database + # resource. + class MaintenanceRecommendationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a signal. + # @!attribute [rw] signal_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] + # Type of the signal. + # @!attribute [rw] signal_status + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalStatus] + # Status of the signal. + # @!attribute [rw] additional_details + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::AdditionalDetail>] + # Additional information related to the signal. + # In the case of composite signals, this field encapsulates details + # associated with granular signals, having a signal status of "ISSUE"; + # signals with a status of "OK" are not included. + # For granular signals, it encompasses information relevant to the signal, + # regardless of the signal status. + # @!attribute [rw] issue_severity + # @return [::Google::Cloud::DatabaseCenter::V1beta::IssueSeverity] + # Severity of the issue. + # @!attribute [rw] issue_create_time + # @return [::Google::Protobuf::Timestamp] + # Timestamp when the issue was created (when signal status is ISSUE). + class Signal + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the state of a signal. More enum values are expected to be added + # as needed. + module SignalStatus + # Unspecified. + SIGNAL_STATUS_UNSPECIFIED = 0 + + # Signal is not applicable to the resource. + SIGNAL_STATUS_NOT_APPLICABLE = 1 + + # Signal is not an issue. + SIGNAL_STATUS_OK = 2 + + # Signal is an issue. + SIGNAL_STATUS_ISSUE = 3 + + # Signal is not enabled for the resource. + SIGNAL_STATUS_NOT_ENABLED = 4 + end + + # Represents the source system from where a signal comes from. + # More enum values are expected to be added as needed. + module SignalSource + # Unspecified. + SIGNAL_SOURCE_UNSPECIFIED = 0 + + # Signal comes from resource metadata. + SIGNAL_SOURCE_RESOURCE_METADATA = 1 + + # Signal comes from SCC findings. + SIGNAL_SOURCE_SECURITY_FINDINGS = 2 + + # Signal comes from recommender hub. + SIGNAL_SOURCE_RECOMMENDER = 3 + + # Signal comes from modern observability platform. + SIGNAL_SOURCE_MODERN_OBSERVABILITY = 4 + end + + # IssueSeverity represents the severity of an issue. + module IssueSeverity + # Unspecified. + ISSUE_SEVERITY_UNSPECIFIED = 0 + + # Low severity. + ISSUE_SEVERITY_LOW = 1 + + # Medium severity. + ISSUE_SEVERITY_MEDIUM = 2 + + # High severity. + ISSUE_SEVERITY_HIGH = 3 + + # Critical severity. + ISSUE_SEVERITY_CRITICAL = 4 + + # Irrelevant severity. This means the issue should not be surfaced at all. + ISSUE_SEVERITY_IRRELEVANT = 5 + end + + # Represents the type of a signal. More values are expected to be added + # as needed. + module SignalType + # Unspecified. + SIGNAL_TYPE_UNSPECIFIED = 0 + + # Represents if a resource is protected by automatic failover. + # Checks for resources that are configured to have redundancy + # within a region that enables automatic failover. + SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED = 1 + + # Represents if a group is replicating across regions. + # Checks for resources that are configured to have redundancy, + # and ongoing replication, across regions. + SIGNAL_TYPE_GROUP_MULTIREGIONAL = 2 + + # Represents if a resource has an automated backup policy. + SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 4 + + # Represents if a resources has a short backup retention period. + SIGNAL_TYPE_SHORT_BACKUP_RETENTION = 5 + + # Represents if the last backup of a resource failed. + SIGNAL_TYPE_LAST_BACKUP_FAILED = 6 + + # Represents if the last backup of a resource is older than some threshold + # value. + SIGNAL_TYPE_LAST_BACKUP_OLD = 7 + + # Represents if a resource violates CIS GCP Foundation 2.0. + SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8 + + # Represents if a resource violates CIS GCP Foundation 1.3. + SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9 + + # Represents if a resource violates CIS GCP Foundation 1.2. + SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10 + + # Represents if a resource violates CIS GCP Foundation 1.1. + SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11 + + # Represents if a resource violates CIS GCP Foundation 1.0. + SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12 + + # Represents if a resource violates CIS Controls 8.0. + SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 = 76 + + # Represents if a resource violates NIST 800-53. + SIGNAL_TYPE_VIOLATES_NIST_800_53 = 13 + + # Represents if a resource violates NIST 800-53 R5. + SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 = 69 + + # Represents if a resource violates NIST Cybersecurity Framework 1.0. + SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 = 72 + + # Represents if a resource violates ISO-27001. + SIGNAL_TYPE_VIOLATES_ISO_27001 = 14 + + # Represents if a resource violates ISO 27001 2022. + SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 = 70 + + # Represents if a resource violates PCI-DSS v3.2.1. + SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 = 15 + + # Represents if a resource violates PCI-DSS v4.0. + SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 = 71 + + # Represents if a resource violates Cloud Controls Matrix v4.0. + SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 = 73 + + # Represents if a resource violates HIPAA. + SIGNAL_TYPE_VIOLATES_HIPAA = 74 + + # Represents if a resource violates SOC2 v2017. + SIGNAL_TYPE_VIOLATES_SOC2_V2017 = 75 + + # Represents if log_checkpoints database flag for a Cloud SQL for PostgreSQL + # instance is not set to on. + SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING = 16 + + # Represents if the log_duration database flag for a Cloud SQL for PostgreSQL + # instance is not set to on. + SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED = 17 + + # Represents if the log_error_verbosity database flag for a Cloud SQL for + # PostgreSQL instance is not set to default or stricter (default or terse). + SIGNAL_TYPE_VERBOSE_ERROR_LOGGING = 18 + + # Represents if the log_lock_waits database flag for a Cloud SQL for + # PostgreSQL instance is not set to on. + SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED = 19 + + # Represents if the log_min_error_statement database flag for a Cloud SQL + # for PostgreSQL instance is not set appropriately. + SIGNAL_TYPE_LOGGING_MOST_ERRORS = 20 + + # Represents if the log_min_error_statement database flag for a Cloud SQL + # for PostgreSQL instance does not have an appropriate severity level. + SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS = 21 + + # Represents if the log_min_messages database flag for a Cloud SQL for + # PostgreSQL instance is not set to warning or another recommended value. + SIGNAL_TYPE_MINIMAL_ERROR_LOGGING = 22 + + # Represents if the databaseFlags property of instance metadata for + # the log_executor_status field is set to on. + SIGNAL_TYPE_QUERY_STATS_LOGGED = 23 + + # Represents if the log_hostname database flag for a Cloud SQL for + # PostgreSQL instance is not set to off. + SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME = 24 + + # Represents if the log_parser_stats database flag for a Cloud SQL for + # PostgreSQL instance is not set to off. + SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS = 25 + + # Represents if the log_planner_stats database flag for a Cloud SQL for + # PostgreSQL instance is not set to off. + SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS = 26 + + # Represents if the log_statement database flag for a Cloud SQL for + # PostgreSQL instance is not set to DDL (all data definition statements). + SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS = 27 + + # Represents if the log_statement_stats database flag for a Cloud SQL for + # PostgreSQL instance is not set to off. + SIGNAL_TYPE_LOGGING_QUERY_STATS = 28 + + # Represents if the log_temp_files database flag for a Cloud SQL for + # PostgreSQL instance is not set to "0". (NOTE: 0 = ON) + SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES = 29 + + # Represents if the user connections database flag for a Cloud SQL for SQL + # Server instance is configured. + SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED = 30 + + # Represents if the user options database flag for Cloud SQL SQL Server + # instance is configured or not. + SIGNAL_TYPE_USER_OPTIONS_CONFIGURED = 31 + + # Represents if a resource is exposed to public access. + SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS = 32 + + # Represents if a resources requires all incoming connections to use SSL + # or not. + SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS = 33 + + # Represents if a Cloud SQL database has a password configured for the + # root account or not. + SIGNAL_TYPE_NO_ROOT_PASSWORD = 34 + + # Represents if a Cloud SQL database has a weak password configured for the + # root account. + SIGNAL_TYPE_WEAK_ROOT_PASSWORD = 35 + + # Represents if a SQL database instance is not encrypted with + # customer-managed encryption keys (CMEK). + SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED = 36 + + # Represents if The contained database authentication database flag for a + # Cloud SQL for SQL Server instance is not set to off. + SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED = 37 + + # Represents if he external scripts enabled database flag for a Cloud SQL + # for SQL Server instance is not set to off. + SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS = 39 + + # Represents if the local_infile database flag for a Cloud SQL for MySQL + # instance is not set to off. + SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS = 40 + + # Represents if the log_connections database flag for a Cloud SQL for + # PostgreSQL instance is not set to on. + SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED = 41 + + # Represents if the log_disconnections database flag for a Cloud SQL for + # PostgreSQL instance is not set to on. + SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED = 42 + + # Represents if the log_min_duration_statement database flag for a Cloud SQL + # for PostgreSQL instance is not set to -1. + SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO = 43 + + # Represents if the remote access database flag for a Cloud SQL for SQL + # Server instance is not set to off. + SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS = 44 + + # Represents if the skip_show_database database flag for a Cloud SQL for + # MySQL instance is not set to on. + SIGNAL_TYPE_DATABASE_NAMES_EXPOSED = 45 + + # Represents if the 3625 (trace flag) database flag for a Cloud SQL for + # SQL Server instance is not set to on. + SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED = 46 + + # Represents if public IP is enabled. + SIGNAL_TYPE_PUBLIC_IP_ENABLED = 47 + + # Represents idle instance helps to reduce costs. + SIGNAL_TYPE_IDLE = 48 + + # Represents instances that are unnecessarily large for given workload. + SIGNAL_TYPE_OVERPROVISIONED = 49 + + # Represents high number of concurrently opened tables. + SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES = 50 + + # Represents high table count close to SLA limit. + SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES = 51 + + # Represents high number of unvacuumed transactions + SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION = 52 + + # Represents need for more CPU and/or memory + SIGNAL_TYPE_UNDERPROVISIONED = 53 + + # Represents out of disk. + SIGNAL_TYPE_OUT_OF_DISK = 54 + + # Represents server certificate is near expiry. + SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY = 55 + + # Represents database auditing is disabled. + SIGNAL_TYPE_DATABASE_AUDITING_DISABLED = 56 + + # Represents not restricted to authorized networks. + SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS = 57 + + # Represents violate org policy restrict public ip. + SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP = 58 + + # Cluster nearing quota limit + SIGNAL_TYPE_QUOTA_LIMIT = 59 + + # No password policy set on resources + SIGNAL_TYPE_NO_PASSWORD_POLICY = 60 + + # Performance impact of connections settings + SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT = 61 + + # Performance impact of temporary tables settings + SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT = 62 + + # Performance impact of transaction logs settings + SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT = 63 + + # Performance impact of high joins without indexes + SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES = 64 + + # Detects events where a database superuser (postgres for PostgreSQL servers + # or root for MySQL users) writes to non-system tables. + SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES = 65 + + # Detects events where a database user or role has been granted all + # privileges to a database, or to all tables, procedures, or functions in a + # schema. + SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS = 66 + + # Detects if database instance data exported to a Cloud Storage bucket + # outside of the organization. + SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET = 67 + + # Detects if database instance data exported to a Cloud Storage bucket that + # is owned by the organization and is publicly accessible. + SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET = 68 + + # Detects if a database instance is using a weak password hash algorithm. + SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM = 77 + + # Detects if a database instance has no user password policy set. + SIGNAL_TYPE_NO_USER_PASSWORD_POLICY = 78 + + # Detects if a database instance/cluster has a hot node. + SIGNAL_TYPE_HOT_NODE = 79 + + # Deletion Protection Disabled for the resource + SIGNAL_TYPE_NO_DELETION_PROTECTION = 80 + + # Detects if a database instance has no point in time recovery enabled. + SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY = 81 + + # Detects if a database instance/cluster has suspended resources. + SIGNAL_TYPE_RESOURCE_SUSPENDED = 82 + + # Detects that expensive commands are being run on a database instance + # impacting overall performance. + SIGNAL_TYPE_EXPENSIVE_COMMANDS = 83 + + # Indicates that the instance does not have a maintenance policy configured. + SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED = 84 + + # Indicates that the instance has inefficient queries detected. + SIGNAL_TYPE_INEFFICIENT_QUERY = 85 + + # Indicates that the instance has read intensive workload. + SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD = 86 + + # Indicates that the instance is nearing memory limit. + SIGNAL_TYPE_MEMORY_LIMIT = 87 + + # Indicates that the instance's max server memory is configured higher than + # the recommended value. + SIGNAL_TYPE_MAX_SERVER_MEMORY = 88 + + # Indicates that the database has large rows beyond the recommended limit. + SIGNAL_TYPE_LARGE_ROWS = 89 + + # Heavy write pressure on the database rows. + SIGNAL_TYPE_HIGH_WRITE_PRESSURE = 90 + + # Heavy read pressure on the database rows. + SIGNAL_TYPE_HIGH_READ_PRESSURE = 91 + + # Encryption org policy not satisfied. + SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED = 92 + + # Location org policy not satisfied. + SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED = 93 + + # Outdated DB minor version. + SIGNAL_TYPE_OUTDATED_MINOR_VERSION = 94 + + # Schema not optimized. + SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 95 + + # Replication delay. + SIGNAL_TYPE_REPLICATION_LAG = 97 + + # Outdated client. + SIGNAL_TYPE_OUTDATED_CLIENT = 99 + + # Databoost is disabled. + SIGNAL_TYPE_DATABOOST_DISABLED = 100 + + # Recommended maintenance policy. + SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES = 101 + + # Resource version is in extended support. + SIGNAL_TYPE_EXTENDED_SUPPORT = 102 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb new file mode 100644 index 000000000000..1aa9b103d59d --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module DatabaseCenter + module V1beta + # The reason for suspension of the database resource. + module SuspensionReason + # Suspension reason is unspecified. + SUSPENSION_REASON_UNSPECIFIED = 0 + + # Wipeout hide event. + WIPEOUT_HIDE_EVENT = 1 + + # Wipeout purge event. + WIPEOUT_PURGE_EVENT = 2 + + # Billing disabled for project + BILLING_DISABLED = 3 + + # Abuse detected for resource + ABUSER_DETECTED = 4 + + # Encryption key inaccessible. + ENCRYPTION_KEY_INACCESSIBLE = 5 + + # Replicated cluster encryption key inaccessible. + REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE = 6 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/wrappers.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/wrappers.rb new file mode 100644 index 000000000000..1b485b0c3456 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/wrappers.rb @@ -0,0 +1,121 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 + # Wrapper message for `double`. + # + # The JSON representation for `DoubleValue` is JSON number. + # @!attribute [rw] value + # @return [::Float] + # The double value. + class DoubleValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `float`. + # + # The JSON representation for `FloatValue` is JSON number. + # @!attribute [rw] value + # @return [::Float] + # The float value. + class FloatValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `int64`. + # + # The JSON representation for `Int64Value` is JSON string. + # @!attribute [rw] value + # @return [::Integer] + # The int64 value. + class Int64Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `uint64`. + # + # The JSON representation for `UInt64Value` is JSON string. + # @!attribute [rw] value + # @return [::Integer] + # The uint64 value. + class UInt64Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `int32`. + # + # The JSON representation for `Int32Value` is JSON number. + # @!attribute [rw] value + # @return [::Integer] + # The int32 value. + class Int32Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `uint32`. + # + # The JSON representation for `UInt32Value` is JSON number. + # @!attribute [rw] value + # @return [::Integer] + # The uint32 value. + class UInt32Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `bool`. + # + # The JSON representation for `BoolValue` is JSON `true` and `false`. + # @!attribute [rw] value + # @return [::Boolean] + # The bool value. + class BoolValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `string`. + # + # The JSON representation for `StringValue` is JSON string. + # @!attribute [rw] value + # @return [::String] + # The string value. + class StringValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `bytes`. + # + # The JSON representation for `BytesValue` is JSON string. + # @!attribute [rw] value + # @return [::String] + # The bytes value. + class BytesValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/date.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/date.rb new file mode 100644 index 000000000000..14ec426522d9 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/date.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: + # + # * A full date, with non-zero year, month, and day values + # * A month and day value, with a zero year, such as an anniversary + # * A year on its own, with zero month and day values + # * A year and month value, with a zero day, such as a credit card expiration + # date + # + # Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and + # `google.protobuf.Timestamp`. + # @!attribute [rw] year + # @return [::Integer] + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without + # a year. + # @!attribute [rw] month + # @return [::Integer] + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a + # month and day. + # @!attribute [rw] day + # @return [::Integer] + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + # to specify a year by itself or a year and month where the day isn't + # significant. + class Date + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/dayofweek.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/dayofweek.rb new file mode 100644 index 000000000000..973211b9ffe7 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/dayofweek.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a day of the week. + module DayOfWeek + # The day of the week is unspecified. + DAY_OF_WEEK_UNSPECIFIED = 0 + + # Monday + MONDAY = 1 + + # Tuesday + TUESDAY = 2 + + # Wednesday + WEDNESDAY = 3 + + # Thursday + THURSDAY = 4 + + # Friday + FRIDAY = 5 + + # Saturday + SATURDAY = 6 + + # Sunday + SUNDAY = 7 + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/timeofday.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/timeofday.rb new file mode 100644 index 000000000000..b0c888c8c14a --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/timeofday.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a time of day. The date and time zone are either not significant + # or are specified elsewhere. An API may choose to allow leap seconds. Related + # types are {::Google::Type::Date google.type.Date} and + # `google.protobuf.Timestamp`. + # @!attribute [rw] hours + # @return [::Integer] + # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + # to allow the value "24:00:00" for scenarios like business closing time. + # @!attribute [rw] minutes + # @return [::Integer] + # Minutes of hour of day. Must be from 0 to 59. + # @!attribute [rw] seconds + # @return [::Integer] + # Seconds of minutes of the time. Must normally be from 0 to 59. An API may + # allow the value 60 if it allows leap-seconds. + # @!attribute [rw] nanos + # @return [::Integer] + # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + class TimeOfDay + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/Gemfile b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/Gemfile new file mode 100644 index 000000000000..00558c0fa0ab --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-database_center-v1beta", path: "../" +else + gem "google-cloud-database_center-v1beta" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_fleet.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_fleet.rb new file mode 100644 index 000000000000..7787b15c43ca --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_fleet.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync] +require "google/cloud/database_center/v1beta" + +## +# Snippet for the aggregate_fleet call in the DatabaseCenter service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_fleet. +# +def aggregate_fleet + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new + + # Call the aggregate_fleet method. + result = client.aggregate_fleet request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow. + p item + end +end +# [END databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_issue_stats.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_issue_stats.rb new file mode 100644 index 000000000000..318b81e5de66 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_issue_stats.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync] +require "google/cloud/database_center/v1beta" + +## +# Snippet for the aggregate_issue_stats call in the DatabaseCenter service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_issue_stats. +# +def aggregate_issue_stats + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new + + # Call the aggregate_issue_stats method. + result = client.aggregate_issue_stats request + + # The returned object is of type Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse. + p result +end +# [END databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_database_resource_groups.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_database_resource_groups.rb new file mode 100644 index 000000000000..56833e3909a8 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_database_resource_groups.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync] +require "google/cloud/database_center/v1beta" + +## +# Snippet for the query_database_resource_groups call in the DatabaseCenter service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_database_resource_groups. +# +def query_database_resource_groups + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new + + # Call the query_database_resource_groups method. + result = client.query_database_resource_groups request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup. + p item + end +end +# [END databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_issues.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_issues.rb new file mode 100644 index 000000000000..e51d2a134416 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_issues.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync] +require "google/cloud/database_center/v1beta" + +## +# Snippet for the query_issues call in the DatabaseCenter service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_issues. +# +def query_issues + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new + + # Call the query_issues method. + result = client.query_issues request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue. + p item + end +end +# [END databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_products.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_products.rb new file mode 100644 index 000000000000..4452cbbbe0e6 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_products.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync] +require "google/cloud/database_center/v1beta" + +## +# Snippet for the query_products call in the DatabaseCenter service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_products. +# +def query_products + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new + + # Call the query_products method. + result = client.query_products request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::Product. + p item + end +end +# [END databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json new file mode 100644 index 000000000000..a78120efb928 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json @@ -0,0 +1,215 @@ +{ + "client_library": { + "name": "google-cloud-database_center-v1beta", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.cloud.databasecenter.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync", + "title": "Snippet for the query_products call in the DatabaseCenter service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_products.", + "file": "database_center/query_products.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_products", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_products", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse", + "client": { + "short_name": "DatabaseCenter::Client", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" + }, + "method": { + "short_name": "QueryProducts", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryProducts", + "service": { + "short_name": "DatabaseCenter", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync", + "title": "Snippet for the aggregate_fleet call in the DatabaseCenter service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_fleet.", + "file": "database_center/aggregate_fleet.rb", + "language": "RUBY", + "client_method": { + "short_name": "aggregate_fleet", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_fleet", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse", + "client": { + "short_name": "DatabaseCenter::Client", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" + }, + "method": { + "short_name": "AggregateFleet", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateFleet", + "service": { + "short_name": "DatabaseCenter", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync", + "title": "Snippet for the query_database_resource_groups call in the DatabaseCenter service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_database_resource_groups.", + "file": "database_center/query_database_resource_groups.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_database_resource_groups", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_database_resource_groups", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse", + "client": { + "short_name": "DatabaseCenter::Client", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" + }, + "method": { + "short_name": "QueryDatabaseResourceGroups", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryDatabaseResourceGroups", + "service": { + "short_name": "DatabaseCenter", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync", + "title": "Snippet for the aggregate_issue_stats call in the DatabaseCenter service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_issue_stats.", + "file": "database_center/aggregate_issue_stats.rb", + "language": "RUBY", + "client_method": { + "short_name": "aggregate_issue_stats", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_issue_stats", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse", + "client": { + "short_name": "DatabaseCenter::Client", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" + }, + "method": { + "short_name": "AggregateIssueStats", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateIssueStats", + "service": { + "short_name": "DatabaseCenter", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync", + "title": "Snippet for the query_issues call in the DatabaseCenter service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_issues.", + "file": "database_center/query_issues.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_issues", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_issues", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse", + "client": { + "short_name": "DatabaseCenter::Client", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" + }, + "method": { + "short_name": "QueryIssues", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryIssues", + "service": { + "short_name": "DatabaseCenter", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb b/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb new file mode 100644 index 000000000000..2450ec74d065 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb @@ -0,0 +1,391 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/cloud/databasecenter/v1beta/service_pb" +require "google/cloud/database_center/v1beta/database_center/rest" + + +class ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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_query_products + # Create test objects. + client_result = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse.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" + + query_products_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_query_products_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_products_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_products({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_products parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_products ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_products({ parent: parent, 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 + client.query_products(::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new(parent: parent, 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, query_products_client_stub.call_count + end + end + end + + def test_aggregate_fleet + # Create test objects. + client_result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + group_by = "hello world" + order_by = "hello world" + page_size = 42 + page_token = "hello world" + baseline_date = {} + + aggregate_fleet_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_aggregate_fleet_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, aggregate_fleet_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.aggregate_fleet({ parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.aggregate_fleet parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.aggregate_fleet ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new(parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.aggregate_fleet({ parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.aggregate_fleet(::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new(parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, aggregate_fleet_client_stub.call_count + end + end + end + + def test_query_database_resource_groups + # Create test objects. + client_result = ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + signal_type_groups = [{}] + signal_filters = [{}] + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + query_database_resource_groups_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_query_database_resource_groups_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_database_resource_groups_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_database_resource_groups({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_database_resource_groups parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_database_resource_groups ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_database_resource_groups({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, 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 + client.query_database_resource_groups(::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, 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, query_database_resource_groups_client_stub.call_count + end + end + end + + def test_aggregate_issue_stats + # Create test objects. + client_result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + signal_type_groups = [{}] + baseline_date = {} + + aggregate_issue_stats_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_aggregate_issue_stats_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, aggregate_issue_stats_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.aggregate_issue_stats({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.aggregate_issue_stats parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.aggregate_issue_stats ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.aggregate_issue_stats({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.aggregate_issue_stats(::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, aggregate_issue_stats_client_stub.call_count + end + end + end + + def test_query_issues + # Create test objects. + client_result = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + signal_products_filters = [{}] + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + query_issues_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_query_issues_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_issues_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_issues parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_issues ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, 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 + client.query_issues(::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, 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, query_issues_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb b/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb new file mode 100644 index 000000000000..f2497f2947db --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb @@ -0,0 +1,460 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/databasecenter/v1beta/service_pb" +require "google/cloud/database_center/v1beta/database_center" + +class ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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_query_products + # Create GRPC objects. + grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.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" + + query_products_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_products, name + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_products_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_products({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_products parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_products ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_products({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_products(::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_products_client_stub.call_rpc_count + end + end + + def test_aggregate_fleet + # Create GRPC objects. + grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + group_by = "hello world" + order_by = "hello world" + page_size = 42 + page_token = "hello world" + baseline_date = {} + + aggregate_fleet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :aggregate_fleet, name + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["group_by"] + assert_equal "hello world", request["order_by"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Type::Date), request["baseline_date"] + assert request.has_baseline_date? + refute_nil options + end + + Gapic::ServiceStub.stub :new, aggregate_fleet_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.aggregate_fleet({ parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.aggregate_fleet parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.aggregate_fleet ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new(parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.aggregate_fleet({ parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.aggregate_fleet(::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new(parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date), 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, aggregate_fleet_client_stub.call_rpc_count + end + end + + def test_query_database_resource_groups + # Create GRPC objects. + grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + signal_type_groups = [{}] + signal_filters = [{}] + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + query_database_resource_groups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_database_resource_groups, name + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, request["signal_type_groups"].first + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalFilter, request["signal_filters"].first + assert_equal "hello world", request["order_by"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_database_resource_groups_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_database_resource_groups({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_database_resource_groups parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_database_resource_groups ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_database_resource_groups({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_database_resource_groups(::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_database_resource_groups_client_stub.call_rpc_count + end + end + + def test_aggregate_issue_stats + # Create GRPC objects. + grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + signal_type_groups = [{}] + baseline_date = {} + + aggregate_issue_stats_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :aggregate_issue_stats, name + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, request["signal_type_groups"].first + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Type::Date), request["baseline_date"] + assert request.has_baseline_date? + refute_nil options + end + + Gapic::ServiceStub.stub :new, aggregate_issue_stats_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.aggregate_issue_stats({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.aggregate_issue_stats parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.aggregate_issue_stats ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.aggregate_issue_stats({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.aggregate_issue_stats(::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, aggregate_issue_stats_client_stub.call_rpc_count + end + end + + def test_query_issues + # Create GRPC objects. + grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + signal_products_filters = [{}] + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + query_issues_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_issues, name + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, request["signal_products_filters"].first + assert_equal "hello world", request["order_by"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_issues_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_issues parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_issues ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_issues(::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_issues_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/test/helper.rb b/owl-bot-staging/google-cloud-database_center-v1beta/test/helper.rb new file mode 100644 index 000000000000..f0e715458fa2 --- /dev/null +++ b/owl-bot-staging/google-cloud-database_center-v1beta/test/helper.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/rg" + +require "grpc" + +require "ostruct" From 80401480c41fc8f5eb5c84b2d7821e4ca0851df7 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 11 Feb 2026 05:10:12 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../.owlbot-manifest.json | 1 + .../gapic_metadata.json | 5 + .../v1beta/database_center/client.rb | 173 ++- .../v1beta/database_center/rest/client.rb | 174 ++- .../database_center/rest/service_stub.rb | 60 + .../databasecenter/v1beta/maintenance_pb.rb | 2 +- .../cloud/databasecenter/v1beta/service_pb.rb | 6 +- .../v1beta/service_services_pb.rb | 3 + .../databasecenter/v1beta/maintenance.rb | 4 +- .../cloud/databasecenter/v1beta/service.rb | 141 ++- .../snippets/database_center/query_issues.rb | 0 ...ta_google.cloud.databasecenter.v1beta.json | 40 + .../v1beta/database_center_rest_test.rb | 59 + .../v1beta/database_center_test.rb | 73 ++ .../.gitignore | 22 - .../.repo-metadata.json | 17 - .../.rubocop.yml | 33 - .../.toys.rb | 28 - .../.yardopts | 12 - .../AUTHENTICATION.md | 122 -- .../CHANGELOG.md | 2 - .../Gemfile | 11 - .../LICENSE.md | 201 --- .../README.md | 154 --- .../Rakefile | 169 --- .../gapic_metadata.json | 43 - ...oogle-cloud-database_center-v1beta.gemspec | 28 - .../google-cloud-database_center-v1beta.rb | 21 - .../google/cloud/database_center/v1beta.rb | 45 - .../database_center/v1beta/database_center.rb | 54 - .../v1beta/database_center/client.rb | 1087 ----------------- .../v1beta/database_center/credentials.rb | 47 - .../v1beta/database_center/rest.rb | 51 - .../v1beta/database_center/rest/client.rb | 1049 ---------------- .../database_center/rest/service_stub.rb | 379 ------ .../cloud/database_center/v1beta/rest.rb | 37 - .../cloud/database_center/v1beta/version.rb | 28 - .../v1beta/machine_config_pb.rb | 44 - .../databasecenter/v1beta/maintenance_pb.rb | 52 - .../databasecenter/v1beta/metric_data_pb.rb | 47 - .../v1beta/operation_error_type_pb.rb | 42 - .../cloud/databasecenter/v1beta/product_pb.rb | 46 - .../cloud/databasecenter/v1beta/service_pb.rb | 84 -- .../v1beta/service_services_pb.rb | 56 - .../cloud/databasecenter/v1beta/signals_pb.rb | 78 -- .../v1beta/suspension_reason_pb.rb | 42 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 473 ------- .../proto_docs/google/api/field_behavior.rb | 85 -- .../proto_docs/google/api/launch_stage.rb | 71 -- .../proto_docs/google/api/resource.rb | 227 ---- .../databasecenter/v1beta/machine_config.rb | 42 - .../databasecenter/v1beta/maintenance.rb | 105 -- .../databasecenter/v1beta/metric_data.rb | 92 -- .../v1beta/operation_error_type.rb | 53 - .../cloud/databasecenter/v1beta/product.rb | 132 -- .../cloud/databasecenter/v1beta/service.rb | 920 -------------- .../cloud/databasecenter/v1beta/signals.rb | 848 ------------- .../v1beta/suspension_reason.rb | 50 - .../proto_docs/google/protobuf/duration.rb | 98 -- .../proto_docs/google/protobuf/timestamp.rb | 127 -- .../proto_docs/google/protobuf/wrappers.rb | 121 -- .../proto_docs/google/type/date.rb | 53 - .../proto_docs/google/type/dayofweek.rb | 49 - .../proto_docs/google/type/timeofday.rb | 45 - .../snippets/Gemfile | 32 - .../database_center/aggregate_fleet.rb | 51 - .../database_center/aggregate_issue_stats.rb | 47 - .../query_database_resource_groups.rb | 51 - .../database_center/query_products.rb | 51 - ...ta_google.cloud.databasecenter.v1beta.json | 215 ---- .../v1beta/database_center_rest_test.rb | 391 ------ .../v1beta/database_center_test.rb | 460 ------- .../test/helper.rb | 25 - 74 files changed, 673 insertions(+), 9117 deletions(-) rename {owl-bot-staging/google-cloud-database_center-v1beta => google-cloud-database_center-v1beta}/snippets/database_center/query_issues.rb (100%) delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.gitignore delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/.yardopts delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/Gemfile delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/README.md delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/Rakefile delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/google-cloud-database_center-v1beta.gemspec delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google-cloud-database_center-v1beta.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/rest.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/version.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/product_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/signals_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/product.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/signals.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/wrappers.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/date.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/dayofweek.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/timeofday.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_fleet.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_issue_stats.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_database_resource_groups.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_products.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb delete mode 100644 owl-bot-staging/google-cloud-database_center-v1beta/test/helper.rb diff --git a/google-cloud-database_center-v1beta/.owlbot-manifest.json b/google-cloud-database_center-v1beta/.owlbot-manifest.json index 091f98cb0b69..3906b5cb9f5f 100644 --- a/google-cloud-database_center-v1beta/.owlbot-manifest.json +++ b/google-cloud-database_center-v1beta/.owlbot-manifest.json @@ -55,6 +55,7 @@ "snippets/database_center/aggregate_fleet.rb", "snippets/database_center/aggregate_issue_stats.rb", "snippets/database_center/query_database_resource_groups.rb", + "snippets/database_center/query_issues.rb", "snippets/database_center/query_products.rb", "snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json", "test/google/cloud/database_center/v1beta/database_center_rest_test.rb", diff --git a/google-cloud-database_center-v1beta/gapic_metadata.json b/google-cloud-database_center-v1beta/gapic_metadata.json index e9702b951c3c..48cacf49f126 100644 --- a/google-cloud-database_center-v1beta/gapic_metadata.json +++ b/google-cloud-database_center-v1beta/gapic_metadata.json @@ -29,6 +29,11 @@ "methods": [ "aggregate_issue_stats" ] + }, + "QueryIssues": { + "methods": [ + "query_issues" + ] } } } diff --git a/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb b/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb index 2cbaa893b3df..ead427033f89 100644 --- a/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb +++ b/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb @@ -331,10 +331,10 @@ def query_products request, options = nil # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` # @param group_by [::String] # Optional. A field that statistics are grouped by. # Valid values are any combination of the following: @@ -364,9 +364,10 @@ def query_products request, options = nil # descending order. Add "ASC" after the field name to indicate ascending # order. It supports ordering using multiple fields. # For example: - # order_by = "resource_groups_count" sorts response in ascending order - # order_by = "resource_groups_count DESC" sorts response in descending order - # order_by = "product.type, product.version DESC, location" orders by type + # `order_by = "resource_groups_count"` sorts response in ascending order + # `order_by = "resource_groups_count DESC"` sorts response in descending + # order + # `order_by = "product.type, product.version DESC, location"` orders by type # in ascending order, version in descending order and location in ascending # order # @param page_size [::Integer] @@ -498,12 +499,12 @@ def aggregate_fleet request, options = nil # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" - # Example: full_resource_name=~"test" - # Example: full_resource_name=~"test.*master" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # Example: `full_resource_name=~"test"` + # Example: `full_resource_name=~"test.*master"` # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] # Optional. Groups of signal types that are requested. # @param signal_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalFilter, ::Hash>] @@ -544,12 +545,13 @@ def aggregate_fleet request, options = nil # order. It only supports a single field at a time. # # For example: - # order_by = "full_resource_name" sorts response in ascending order - # order_by = "full_resource_name DESC" sorts response in descending order - # order_by = "issue_count DESC" sorts response in descending order of + # `order_by = "full_resource_name"` sorts response in ascending order + # `order_by = "full_resource_name DESC"` sorts response in descending order + # `order_by = "issue_count DESC"` sorts response in descending order of # count of all issues associated with a resource. # - # More explicitly, order_by = "full_resource_name, product" is not supported. + # More explicitly, `order_by = "full_resource_name, product"` is not + # supported. # @param page_size [::Integer] # Optional. If unspecified, at most 50 resource groups will be returned. # The maximum value is 1000; values above 1000 will be coerced to 1000. @@ -662,10 +664,10 @@ def query_database_resource_groups request, options = nil # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] # Optional. Lists of signal types that are issues. # @param baseline_date [::Google::Type::Date, ::Hash] @@ -729,6 +731,128 @@ def aggregate_issue_stats request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # QueryIssues provides a list of issues and recommendations + # that a user has access to and that are within the requested scope. + # + # @overload query_issues(request, options = nil) + # Pass arguments to `query_issues` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_issues(parent: nil, filter: nil, signal_products_filters: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_issues` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The list + # is limited to the one attached to resources within the `scope` that a user + # has access to. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param filter [::String] + # Optional. + # Supported fields are: + # 'product', + # `location`, + # `issue_severity`, + # 'tags', + # 'labels', + # @param signal_products_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, ::Hash>] + # Optional. Filters based on signal and product. The filter list will be ORed + # across pairs and ANDed within a signal and products pair. + # @param order_by [::String] + # Optional. Following fields are sortable: + # SignalType + # Product + # Location + # IssueSeverity + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 issues will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `QueryIssues` call. + # Provide this to retrieve the subsequent page. + # All parameters except page size should match the parameters used in the + # call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new + # + # # Call the query_issues method. + # result = client.query_issues request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue. + # p item + # end + # + def query_issues request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_issues.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.query_issues.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_issues.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.call_rpc :query_issues, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @database_center_stub, :query_issues, 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 + ## # Configuration class for the DatabaseCenter API. # @@ -932,6 +1056,11 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :aggregate_issue_stats + ## + # RPC-specific configuration for `query_issues` + # @return [::Gapic::Config::Method] + # + attr_reader :query_issues # @private def initialize parent_rpcs = nil @@ -943,6 +1072,8 @@ def initialize parent_rpcs = nil @query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats @aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config + query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues + @query_issues = ::Gapic::Config::Method.new query_issues_config yield self if block_given? end diff --git a/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb b/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb index 97d6d1ce6088..a09dfb6324a8 100644 --- a/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb +++ b/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb @@ -325,10 +325,10 @@ def query_products request, options = nil # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` # @param group_by [::String] # Optional. A field that statistics are grouped by. # Valid values are any combination of the following: @@ -358,9 +358,10 @@ def query_products request, options = nil # descending order. Add "ASC" after the field name to indicate ascending # order. It supports ordering using multiple fields. # For example: - # order_by = "resource_groups_count" sorts response in ascending order - # order_by = "resource_groups_count DESC" sorts response in descending order - # order_by = "product.type, product.version DESC, location" orders by type + # `order_by = "resource_groups_count"` sorts response in ascending order + # `order_by = "resource_groups_count DESC"` sorts response in descending + # order + # `order_by = "product.type, product.version DESC, location"` orders by type # in ascending order, version in descending order and location in ascending # order # @param page_size [::Integer] @@ -493,12 +494,12 @@ def aggregate_fleet request, options = nil # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" - # Example: full_resource_name=~"test" - # Example: full_resource_name=~"test.*master" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # Example: `full_resource_name=~"test"` + # Example: `full_resource_name=~"test.*master"` # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] # Optional. Groups of signal types that are requested. # @param signal_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalFilter, ::Hash>] @@ -539,12 +540,13 @@ def aggregate_fleet request, options = nil # order. It only supports a single field at a time. # # For example: - # order_by = "full_resource_name" sorts response in ascending order - # order_by = "full_resource_name DESC" sorts response in descending order - # order_by = "issue_count DESC" sorts response in descending order of + # `order_by = "full_resource_name"` sorts response in ascending order + # `order_by = "full_resource_name DESC"` sorts response in descending order + # `order_by = "issue_count DESC"` sorts response in descending order of # count of all issues associated with a resource. # - # More explicitly, order_by = "full_resource_name, product" is not supported. + # More explicitly, `order_by = "full_resource_name, product"` is not + # supported. # @param page_size [::Integer] # Optional. If unspecified, at most 50 resource groups will be returned. # The maximum value is 1000; values above 1000 will be coerced to 1000. @@ -658,10 +660,10 @@ def query_database_resource_groups request, options = nil # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] # Optional. Lists of signal types that are issues. # @param baseline_date [::Google::Type::Date, ::Hash] @@ -726,6 +728,129 @@ def aggregate_issue_stats request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # QueryIssues provides a list of issues and recommendations + # that a user has access to and that are within the requested scope. + # + # @overload query_issues(request, options = nil) + # Pass arguments to `query_issues` via a request object, either of type + # {::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_issues(parent: nil, filter: nil, signal_products_filters: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_issues` via keyword arguments. Note that at + # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The list + # is limited to the one attached to resources within the `scope` that a user + # has access to. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @param filter [::String] + # Optional. + # Supported fields are: + # 'product', + # `location`, + # `issue_severity`, + # 'tags', + # 'labels', + # @param signal_products_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, ::Hash>] + # Optional. Filters based on signal and product. The filter list will be ORed + # across pairs and ANDed within a signal and products pair. + # @param order_by [::String] + # Optional. Following fields are sortable: + # SignalType + # Product + # Location + # IssueSeverity + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # @param page_size [::Integer] + # Optional. If unspecified, at most 50 issues will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `QueryIssues` call. + # Provide this to retrieve the subsequent page. + # All parameters except page size should match the parameters used in the + # call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/database_center/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new + # + # # Call the query_issues method. + # result = client.query_issues request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue. + # p item + # end + # + def query_issues request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest + + # Converts hash 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.query_issues.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::Cloud::DatabaseCenter::V1beta::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.query_issues.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_issues.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @database_center_stub.query_issues request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :query_issues, "resource_issues", 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 + ## # Configuration class for the DatabaseCenter REST API. # @@ -892,6 +1017,11 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :aggregate_issue_stats + ## + # RPC-specific configuration for `query_issues` + # @return [::Gapic::Config::Method] + # + attr_reader :query_issues # @private def initialize parent_rpcs = nil @@ -903,6 +1033,8 @@ def initialize parent_rpcs = nil @query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats @aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config + query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues + @query_issues = ::Gapic::Config::Method.new query_issues_config yield self if block_given? end diff --git a/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb b/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb index d48bc6c370de..6a06184bfd64 100644 --- a/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb +++ b/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb @@ -233,6 +233,46 @@ def aggregate_issue_stats request_pb, options = nil end end + ## + # Baseline implementation for the query_issues REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest] + # 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::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse] + # A result object deserialized from the server's reply + def query_issues request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_issues_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: "query_issues", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # @private # @@ -310,6 +350,26 @@ def self.transcode_aggregate_issue_stats_request request_pb ) transcoder.transcode request_pb end + + ## + # @private + # + # GRPC transcoding helper method for the query_issues REST call + # + # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_issues_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta:queryIssues", + body: "*", + matches: [] + ) + transcoder.transcode request_pb + end end end end diff --git a/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb b/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb index 4afcd62699ca..254224cd486f 100644 --- a/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb +++ b/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb @@ -10,7 +10,7 @@ require 'google/type/timeofday_pb' -descriptor_data = "\n4google/cloud/databasecenter/v1beta/maintenance.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xb7\x01\n\x1bResourceMaintenanceSchedule\x12/\n\nstart_time\x18\x01 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x01\x12(\n\x03\x64\x61y\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x12=\n\x05phase\x18\x03 \x01(\x0e\x32).google.cloud.databasecenter.v1beta.PhaseB\x03\xe0\x41\x01\"\xa2\x01\n\x1fResourceMaintenanceDenySchedule\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12)\n\x04time\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x01\"\x85\x02\n\x0fMaintenanceInfo\x12\x62\n\x14maintenance_schedule\x18\x01 \x01(\x0b\x32?.google.cloud.databasecenter.v1beta.ResourceMaintenanceScheduleB\x03\xe0\x41\x01\x12l\n\x1a\x64\x65ny_maintenance_schedules\x18\x02 \x03(\x0b\x32\x43.google.cloud.databasecenter.v1beta.ResourceMaintenanceDenyScheduleB\x03\xe0\x41\x01\x12 \n\x13maintenance_version\x18\x03 \x01(\tB\x03\xe0\x41\x01*`\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPHASE_WEEK1\x10\x01\x12\x0f\n\x0bPHASE_WEEK2\x10\x02\x12\x0f\n\x0bPHASE_WEEK5\x10\x03\x12\r\n\tPHASE_ANY\x10\x04\x42\xfe\x01\n&com.google.cloud.databasecenter.v1betaB\x10MaintenanceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" +descriptor_data = "\n4google/cloud/databasecenter/v1beta/maintenance.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xb7\x01\n\x1bResourceMaintenanceSchedule\x12/\n\nstart_time\x18\x01 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x01\x12(\n\x03\x64\x61y\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x12=\n\x05phase\x18\x03 \x01(\x0e\x32).google.cloud.databasecenter.v1beta.PhaseB\x03\xe0\x41\x01\"\xa2\x01\n\x1fResourceMaintenanceDenySchedule\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12)\n\x04time\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x01\"\x85\x02\n\x0fMaintenanceInfo\x12\x62\n\x14maintenance_schedule\x18\x01 \x01(\x0b\x32?.google.cloud.databasecenter.v1beta.ResourceMaintenanceScheduleB\x03\xe0\x41\x01\x12l\n\x1a\x64\x65ny_maintenance_schedules\x18\x02 \x03(\x0b\x32\x43.google.cloud.databasecenter.v1beta.ResourceMaintenanceDenyScheduleB\x03\xe0\x41\x01\x12 \n\x13maintenance_version\x18\x03 \x01(\tB\x03\xe0\x41\x03*`\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPHASE_WEEK1\x10\x01\x12\x0f\n\x0bPHASE_WEEK2\x10\x02\x12\x0f\n\x0bPHASE_WEEK5\x10\x03\x12\r\n\tPHASE_ANY\x10\x04\x42\xfe\x01\n&com.google.cloud.databasecenter.v1betaB\x10MaintenanceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool diff --git a/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb b/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb index 4bc64256786f..775a9c4cfc4d 100644 --- a/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb +++ b/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb @@ -15,7 +15,7 @@ require 'google/type/date_pb' -descriptor_data = "\n0google/cloud/databasecenter/v1beta/service.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x37google/cloud/databasecenter/v1beta/machine_config.proto\x1a\x34google/cloud/databasecenter/v1beta/maintenance.proto\x1a\x34google/cloud/databasecenter/v1beta/metric_data.proto\x1a\x30google/cloud/databasecenter/v1beta/product.proto\x1a\x30google/cloud/databasecenter/v1beta/signals.proto\x1a\x16google/type/date.proto\"\\\n\x14QueryProductsRequest\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x15QueryProductsResponse\x12=\n\x08products\x18\x01 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xbb\x02\n\"QueryDatabaseResourceGroupsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12M\n\x0esignal_filters\x18\x04 \x03(\x0b\x32\x30.google.cloud.databasecenter.v1beta.SignalFilterB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n#QueryDatabaseResourceGroupsResponse\x12R\n\x0fresource_groups\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xac\x01\n\x15\x44\x61tabaseResourceGroup\x12L\n\x0eroot_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x45\n\rsignal_groups\x18\x02 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueCount\"\xd6\x07\n\x10\x44\x61tabaseResource\x12M\n\x0f\x63hild_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x1a\n\x12\x66ull_resource_name\x18\x03 \x01(\t\x12\x11\n\tcontainer\x18\x04 \x01(\t\x12<\n\x07product\x18\x05 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x06 \x01(\t\x12\x39\n\x06labels\x18\x07 \x03(\x0b\x32).google.cloud.databasecenter.v1beta.Label\x12\x35\n\x04tags\x18\x10 \x03(\x0b\x32\'.google.cloud.databasecenter.v1beta.Tag\x12\x15\n\rresource_type\x18\x08 \x01(\t\x12N\n\x11sub_resource_type\x18\t \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceType\x12I\n\x0emachine_config\x18\x0c \x01(\x0b\x32\x31.google.cloud.databasecenter.v1beta.MachineConfig\x12\x46\n\rsignal_groups\x18\n \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.SignalGroup\x12<\n\x07metrics\x18\r \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Metrics\x12O\n\x11resource_category\x18\x0e \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategory\x12\x15\n\rresource_name\x18\x0f \x01(\t\x12P\n\x0f\x62\x61\x63kupdr_config\x18\x11 \x01(\x0b\x32\x32.google.cloud.databasecenter.v1beta.BackupDRConfigB\x03\xe0\x41\x01\x12<\n\x07\x65\x64ition\x18\x12 \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.Edition\x12R\n\x10maintenance_info\x18\x13 \x01(\x0b\x32\x33.google.cloud.databasecenter.v1beta.MaintenanceInfoB\x03\xe0\x41\x01\"\xe2\x01\n\x1a\x41ggregateIssueStatsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xcb\x01\n\x1b\x41ggregateIssueStatsResponse\x12N\n\x11issue_group_stats\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.IssueGroupStats\x12\x1d\n\x15total_resources_count\x18\x02 \x01(\x05\x12#\n\x1btotal_resource_groups_count\x18\x03 \x01(\x05\x12\x18\n\x0bunreachable\x18\x04 \x03(\tB\x03\xe0\x41\x06\"\xec\x01\n\x0fIssueGroupStats\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12%\n\x1dhealthy_resource_groups_count\x18\x04 \x01(\x05\x12\x1f\n\x17healthy_resources_count\x18\x05 \x01(\x05\x12\x43\n\x0bissue_stats\x18\x06 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueStats\"\xb1\x02\n\nIssueStats\x12\x43\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12\x16\n\x0eresource_count\x18\x02 \x01(\x05\x12Q\n\rdelta_details\x18\x03 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12N\n\x0eissue_severity\x18\x04 \x01(\x0e\x32\x31.google.cloud.databasecenter.v1beta.IssueSeverityH\x01\x88\x01\x01\x42\x10\n\x0e_delta_detailsB\x11\n\x0f_issue_severity\"3\n\x05Label\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\"\xe6\x01\n\x15\x41ggregateFleetRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08group_by\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x07 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xd3\x01\n\x16\x41ggregateFleetResponse\x12\x43\n\x04rows\x18\x01 \x03(\x0b\x32\x35.google.cloud.databasecenter.v1beta.AggregateFleetRow\x12#\n\x1bresource_groups_total_count\x18\x02 \x01(\x05\x12\x1c\n\x14resource_total_count\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\x12\x18\n\x0bunreachable\x18\x05 \x03(\tB\x03\xe0\x41\x06\"\xf2\x01\n\x11\x41ggregateFleetRow\x12@\n\tdimension\x18\x01 \x03(\x0b\x32-.google.cloud.databasecenter.v1beta.Dimension\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12Q\n\rdelta_details\x18\x04 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_delta_details\"\xa1\x06\n\tDimension\x12\x13\n\tcontainer\x18\x02 \x01(\tH\x00\x12G\n\x0cproduct_type\x18\x03 \x01(\x0e\x32/.google.cloud.databasecenter.v1beta.ProductTypeH\x00\x12\x44\n\x0eproduct_engine\x18\x04 \x01(\x0e\x32*.google.cloud.databasecenter.v1beta.EngineH\x00\x12\x19\n\x0fproduct_version\x18\x05 \x01(\tH\x00\x12\x12\n\x08location\x18\x06 \x01(\tH\x00\x12\x17\n\rresource_type\x18\x07 \x01(\tH\x00\x12P\n\x11sub_resource_type\x18\x08 \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceTypeH\x00\x12Q\n\x11resource_category\x18\t \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategoryH\x00\x12M\n\x0fmanagement_type\x18\n \x01(\x0e\x32\x32.google.cloud.databasecenter.v1beta.ManagementTypeH\x00\x12>\n\x07\x65\x64ition\x18\x0b \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.EditionH\x00\x12\x11\n\x07tag_key\x18\x0c \x01(\tH\x00\x12\x13\n\ttag_value\x18\r \x01(\tH\x00\x12\x14\n\ntag_source\x18\x0e \x01(\tH\x00\x12\x17\n\rtag_inherited\x18\x0f \x01(\x08H\x00\x12\x13\n\tlabel_key\x18\x10 \x01(\tH\x00\x12\x15\n\x0blabel_value\x18\x11 \x01(\tH\x00\x12\x16\n\x0clabel_source\x18\x12 \x01(\tH\x00\x12\"\n\x18has_maintenance_schedule\x18\x13 \x01(\x08H\x00\x12(\n\x1ehas_deny_maintenance_schedules\x18\x14 \x01(\x08H\x00\x42\x0b\n\tdimension\"D\n\x0e\x42\x61\x63kupDRConfig\x12\x1d\n\x10\x62\x61\x63kupdr_managed\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x13\n\x11_backupdr_managed\"D\n\x03Tag\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x11\n\tinherited\x18\x04 \x01(\x08\"\x90\x01\n\x0fResourceDetails\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x02 \x01(\t\x12<\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb2\x01\n\x0c\x44\x65ltaDetails\x12P\n\x13increased_resources\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails\x12P\n\x13\x64\x65\x63reased_resources\x18\x02 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails*^\n\x10ResourceCategory\x12!\n\x1dRESOURCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x0b\n\x07\x43LUSTER\x10\x02\x12\x0c\n\x08\x44\x41TABASE\x10\x03*m\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45\x44ITION_ENTERPRISE\x10\x01\x12\x1b\n\x17\x45\x44ITION_ENTERPRISE_PLUS\x10\x02\x12\x14\n\x10\x45\x44ITION_STANDARD\x10\x03*\xdd\x01\n\x0fSubResourceType\x12!\n\x1dSUB_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19SUB_RESOURCE_TYPE_PRIMARY\x10\x01\x12\x1f\n\x1bSUB_RESOURCE_TYPE_SECONDARY\x10\x02\x12\"\n\x1eSUB_RESOURCE_TYPE_READ_REPLICA\x10\x03\x12&\n\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\x10\x05\x12\x1b\n\x17SUB_RESOURCE_TYPE_OTHER\x10\x04*t\n\x0eManagementType\x12\x1f\n\x1bMANAGEMENT_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bMANAGEMENT_TYPE_GCP_MANAGED\x10\x01\x12 \n\x1cMANAGEMENT_TYPE_SELF_MANAGED\x10\x02\x32\xd5\x06\n\x0e\x44\x61tabaseCenter\x12\xa3\x01\n\rQueryProducts\x12\x38.google.cloud.databasecenter.v1beta.QueryProductsRequest\x1a\x39.google.cloud.databasecenter.v1beta.QueryProductsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1beta:queryProducts\x12\xa7\x01\n\x0e\x41ggregateFleet\x12\x39.google.cloud.databasecenter.v1beta.AggregateFleetRequest\x1a:.google.cloud.databasecenter.v1beta.AggregateFleetResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1beta:aggregateFleet\x12\xde\x01\n\x1bQueryDatabaseResourceGroups\x12\x46.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest\x1aG.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse\".\x82\xd3\xe4\x93\x02(\"#/v1beta:queryDatabaseResourceGroups:\x01*\x12\xbe\x01\n\x13\x41ggregateIssueStats\x12>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest\x1a?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1beta:aggregateIssueStats:\x01*\x1aQ\xca\x41\x1d\x64\x61tabasecenter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cServiceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" +descriptor_data = "\n0google/cloud/databasecenter/v1beta/service.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x37google/cloud/databasecenter/v1beta/machine_config.proto\x1a\x34google/cloud/databasecenter/v1beta/maintenance.proto\x1a\x34google/cloud/databasecenter/v1beta/metric_data.proto\x1a\x30google/cloud/databasecenter/v1beta/product.proto\x1a\x30google/cloud/databasecenter/v1beta/signals.proto\x1a\x16google/type/date.proto\"\\\n\x14QueryProductsRequest\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x15QueryProductsResponse\x12=\n\x08products\x18\x01 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xbb\x02\n\"QueryDatabaseResourceGroupsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12M\n\x0esignal_filters\x18\x04 \x03(\x0b\x32\x30.google.cloud.databasecenter.v1beta.SignalFilterB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n#QueryDatabaseResourceGroupsResponse\x12R\n\x0fresource_groups\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xac\x01\n\x15\x44\x61tabaseResourceGroup\x12L\n\x0eroot_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x45\n\rsignal_groups\x18\x02 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueCount\"\xd6\x07\n\x10\x44\x61tabaseResource\x12M\n\x0f\x63hild_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x1a\n\x12\x66ull_resource_name\x18\x03 \x01(\t\x12\x11\n\tcontainer\x18\x04 \x01(\t\x12<\n\x07product\x18\x05 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x06 \x01(\t\x12\x39\n\x06labels\x18\x07 \x03(\x0b\x32).google.cloud.databasecenter.v1beta.Label\x12\x35\n\x04tags\x18\x10 \x03(\x0b\x32\'.google.cloud.databasecenter.v1beta.Tag\x12\x15\n\rresource_type\x18\x08 \x01(\t\x12N\n\x11sub_resource_type\x18\t \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceType\x12I\n\x0emachine_config\x18\x0c \x01(\x0b\x32\x31.google.cloud.databasecenter.v1beta.MachineConfig\x12\x46\n\rsignal_groups\x18\n \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.SignalGroup\x12<\n\x07metrics\x18\r \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Metrics\x12O\n\x11resource_category\x18\x0e \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategory\x12\x15\n\rresource_name\x18\x0f \x01(\t\x12P\n\x0f\x62\x61\x63kupdr_config\x18\x11 \x01(\x0b\x32\x32.google.cloud.databasecenter.v1beta.BackupDRConfigB\x03\xe0\x41\x01\x12<\n\x07\x65\x64ition\x18\x12 \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.Edition\x12R\n\x10maintenance_info\x18\x13 \x01(\x0b\x32\x33.google.cloud.databasecenter.v1beta.MaintenanceInfoB\x03\xe0\x41\x01\"\xe2\x01\n\x1a\x41ggregateIssueStatsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xcb\x01\n\x1b\x41ggregateIssueStatsResponse\x12N\n\x11issue_group_stats\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.IssueGroupStats\x12\x1d\n\x15total_resources_count\x18\x02 \x01(\x05\x12#\n\x1btotal_resource_groups_count\x18\x03 \x01(\x05\x12\x18\n\x0bunreachable\x18\x04 \x03(\tB\x03\xe0\x41\x06\"\xec\x01\n\x0fIssueGroupStats\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12%\n\x1dhealthy_resource_groups_count\x18\x04 \x01(\x05\x12\x1f\n\x17healthy_resources_count\x18\x05 \x01(\x05\x12\x43\n\x0bissue_stats\x18\x06 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueStats\"\xb1\x02\n\nIssueStats\x12\x43\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12\x16\n\x0eresource_count\x18\x02 \x01(\x05\x12Q\n\rdelta_details\x18\x03 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12N\n\x0eissue_severity\x18\x04 \x01(\x0e\x32\x31.google.cloud.databasecenter.v1beta.IssueSeverityH\x01\x88\x01\x01\x42\x10\n\x0e_delta_detailsB\x11\n\x0f_issue_severity\"3\n\x05Label\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\"\xe6\x01\n\x15\x41ggregateFleetRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08group_by\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x07 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xd3\x01\n\x16\x41ggregateFleetResponse\x12\x43\n\x04rows\x18\x01 \x03(\x0b\x32\x35.google.cloud.databasecenter.v1beta.AggregateFleetRow\x12#\n\x1bresource_groups_total_count\x18\x02 \x01(\x05\x12\x1c\n\x14resource_total_count\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\x12\x18\n\x0bunreachable\x18\x05 \x03(\tB\x03\xe0\x41\x06\"\xf2\x01\n\x11\x41ggregateFleetRow\x12@\n\tdimension\x18\x01 \x03(\x0b\x32-.google.cloud.databasecenter.v1beta.Dimension\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12Q\n\rdelta_details\x18\x04 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_delta_details\"\xa1\x06\n\tDimension\x12\x13\n\tcontainer\x18\x02 \x01(\tH\x00\x12G\n\x0cproduct_type\x18\x03 \x01(\x0e\x32/.google.cloud.databasecenter.v1beta.ProductTypeH\x00\x12\x44\n\x0eproduct_engine\x18\x04 \x01(\x0e\x32*.google.cloud.databasecenter.v1beta.EngineH\x00\x12\x19\n\x0fproduct_version\x18\x05 \x01(\tH\x00\x12\x12\n\x08location\x18\x06 \x01(\tH\x00\x12\x17\n\rresource_type\x18\x07 \x01(\tH\x00\x12P\n\x11sub_resource_type\x18\x08 \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceTypeH\x00\x12Q\n\x11resource_category\x18\t \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategoryH\x00\x12M\n\x0fmanagement_type\x18\n \x01(\x0e\x32\x32.google.cloud.databasecenter.v1beta.ManagementTypeH\x00\x12>\n\x07\x65\x64ition\x18\x0b \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.EditionH\x00\x12\x11\n\x07tag_key\x18\x0c \x01(\tH\x00\x12\x13\n\ttag_value\x18\r \x01(\tH\x00\x12\x14\n\ntag_source\x18\x0e \x01(\tH\x00\x12\x17\n\rtag_inherited\x18\x0f \x01(\x08H\x00\x12\x13\n\tlabel_key\x18\x10 \x01(\tH\x00\x12\x15\n\x0blabel_value\x18\x11 \x01(\tH\x00\x12\x16\n\x0clabel_source\x18\x12 \x01(\tH\x00\x12\"\n\x18has_maintenance_schedule\x18\x13 \x01(\x08H\x00\x12(\n\x1ehas_deny_maintenance_schedules\x18\x14 \x01(\x08H\x00\x42\x0b\n\tdimension\"D\n\x0e\x42\x61\x63kupDRConfig\x12\x1d\n\x10\x62\x61\x63kupdr_managed\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x13\n\x11_backupdr_managed\"\xe7\x01\n\x12QueryIssuesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12_\n\x17signal_products_filters\x18\x03 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.SignalProductsFiltersB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\xa5\x01\n\x15SignalProductsFilters\x12H\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\x12\x42\n\x08products\x18\x02 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.ProductB\x03\xe0\x41\x01\"\x9c\x01\n\x13QueryIssuesResponse\x12R\n\x0fresource_issues\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceIssue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\x9b\x01\n\x15\x44\x61tabaseResourceIssue\x12:\n\x06signal\x18\x01 \x01(\x0b\x32*.google.cloud.databasecenter.v1beta.Signal\x12\x46\n\x08resource\x18\x02 \x01(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\"D\n\x03Tag\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x11\n\tinherited\x18\x04 \x01(\x08\"\x90\x01\n\x0fResourceDetails\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x02 \x01(\t\x12<\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb2\x01\n\x0c\x44\x65ltaDetails\x12P\n\x13increased_resources\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails\x12P\n\x13\x64\x65\x63reased_resources\x18\x02 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails*^\n\x10ResourceCategory\x12!\n\x1dRESOURCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x0b\n\x07\x43LUSTER\x10\x02\x12\x0c\n\x08\x44\x41TABASE\x10\x03*m\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45\x44ITION_ENTERPRISE\x10\x01\x12\x1b\n\x17\x45\x44ITION_ENTERPRISE_PLUS\x10\x02\x12\x14\n\x10\x45\x44ITION_STANDARD\x10\x03*\xdd\x01\n\x0fSubResourceType\x12!\n\x1dSUB_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19SUB_RESOURCE_TYPE_PRIMARY\x10\x01\x12\x1f\n\x1bSUB_RESOURCE_TYPE_SECONDARY\x10\x02\x12\"\n\x1eSUB_RESOURCE_TYPE_READ_REPLICA\x10\x03\x12&\n\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\x10\x05\x12\x1b\n\x17SUB_RESOURCE_TYPE_OTHER\x10\x04*t\n\x0eManagementType\x12\x1f\n\x1bMANAGEMENT_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bMANAGEMENT_TYPE_GCP_MANAGED\x10\x01\x12 \n\x1cMANAGEMENT_TYPE_SELF_MANAGED\x10\x02\x32\xff\x07\n\x0e\x44\x61tabaseCenter\x12\xa3\x01\n\rQueryProducts\x12\x38.google.cloud.databasecenter.v1beta.QueryProductsRequest\x1a\x39.google.cloud.databasecenter.v1beta.QueryProductsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1beta:queryProducts\x12\xa7\x01\n\x0e\x41ggregateFleet\x12\x39.google.cloud.databasecenter.v1beta.AggregateFleetRequest\x1a:.google.cloud.databasecenter.v1beta.AggregateFleetResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1beta:aggregateFleet\x12\xde\x01\n\x1bQueryDatabaseResourceGroups\x12\x46.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest\x1aG.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse\".\x82\xd3\xe4\x93\x02(\"#/v1beta:queryDatabaseResourceGroups:\x01*\x12\xbe\x01\n\x13\x41ggregateIssueStats\x12>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest\x1a?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1beta:aggregateIssueStats:\x01*\x12\xa7\x01\n\x0bQueryIssues\x12\x36.google.cloud.databasecenter.v1beta.QueryIssuesRequest\x1a\x37.google.cloud.databasecenter.v1beta.QueryIssuesResponse\"\'\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x18\"\x13/v1beta:queryIssues:\x01*\x1aQ\xca\x41\x1d\x64\x61tabasecenter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cServiceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -67,6 +67,10 @@ module V1beta AggregateFleetRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRow").msgclass Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Dimension").msgclass BackupDRConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.BackupDRConfig").msgclass + QueryIssuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryIssuesRequest").msgclass + SignalProductsFilters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalProductsFilters").msgclass + QueryIssuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryIssuesResponse").msgclass + DatabaseResourceIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResourceIssue").msgclass Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Tag").msgclass ResourceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceDetails").msgclass DeltaDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DeltaDetails").msgclass diff --git a/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb b/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb index de7b8e7db0bd..343299edb494 100644 --- a/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb +++ b/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb @@ -43,6 +43,9 @@ class Service rpc :QueryDatabaseResourceGroups, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse # AggregateIssueStats provides database resource issues statistics. rpc :AggregateIssueStats, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse + # QueryIssues provides a list of issues and recommendations + # that a user has access to and that are within the requested scope. + rpc :QueryIssues, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse end Stub = Service.rpc_stub_class diff --git a/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb b/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb index d7cff4cd12e7..d8598a7a6ed1 100644 --- a/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb +++ b/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb @@ -69,9 +69,9 @@ class ResourceMaintenanceDenySchedule # @!attribute [rw] deny_maintenance_schedules # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceMaintenanceDenySchedule>] # Optional. List of Deny maintenance period for the database resource. - # @!attribute [rw] maintenance_version + # @!attribute [r] maintenance_version # @return [::String] - # Optional. Current Maintenance version of the database resource. Example: + # Output only. Current Maintenance version of the database resource. Example: # "MYSQL_8_0_41.R20250531.01_15" class MaintenanceInfo include ::Google::Protobuf::MessageExts diff --git a/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb b/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb index f8b08209ec0e..1ea06c4fe1ed 100644 --- a/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb +++ b/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb @@ -112,12 +112,12 @@ class QueryProductsResponse # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" - # Example: full_resource_name=~"test" - # Example: full_resource_name=~"test.*master" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` + # Example: `full_resource_name=~"test"` + # Example: `full_resource_name=~"test.*master"` # @!attribute [rw] signal_type_groups # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup>] # Optional. Groups of signal types that are requested. @@ -161,12 +161,13 @@ class QueryProductsResponse # order. It only supports a single field at a time. # # For example: - # order_by = "full_resource_name" sorts response in ascending order - # order_by = "full_resource_name DESC" sorts response in descending order - # order_by = "issue_count DESC" sorts response in descending order of + # `order_by = "full_resource_name"` sorts response in ascending order + # `order_by = "full_resource_name DESC"` sorts response in descending order + # `order_by = "issue_count DESC"` sorts response in descending order of # count of all issues associated with a resource. # - # More explicitly, order_by = "full_resource_name, product" is not supported. + # More explicitly, `order_by = "full_resource_name, product"` is not + # supported. # @!attribute [rw] page_size # @return [::Integer] # Optional. If unspecified, at most 50 resource groups will be returned. @@ -336,10 +337,10 @@ class DatabaseResource # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` # @!attribute [rw] signal_type_groups # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup>] # Optional. Lists of signal types that are issues. @@ -469,10 +470,10 @@ class Label # expression, parentheses must be appropriately used to group the # combinations. # - # Example: location="us-east1" - # Example: container="projects/123" OR container="projects/456" - # Example: (container="projects/123" OR - # container="projects/456") AND location="us-east1" + # Example: `location="us-east1"` + # Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR + # container="projects/456") AND location="us-east1"` # @!attribute [rw] group_by # @return [::String] # Optional. A field that statistics are grouped by. @@ -504,9 +505,10 @@ class Label # descending order. Add "ASC" after the field name to indicate ascending # order. It supports ordering using multiple fields. # For example: - # order_by = "resource_groups_count" sorts response in ascending order - # order_by = "resource_groups_count DESC" sorts response in descending order - # order_by = "product.type, product.version DESC, location" orders by type + # `order_by = "resource_groups_count"` sorts response in ascending order + # `order_by = "resource_groups_count DESC"` sorts response in descending + # order + # `order_by = "product.type, product.version DESC, location"` orders by type # in ascending order, version in descending order and location in ascending # order # @!attribute [rw] page_size @@ -529,7 +531,8 @@ class AggregateFleetRequest extend ::Google::Protobuf::MessageExts::ClassMethods end - # The response message to aggregate a fleet by some group by fields. + # The response message to aggregate a fleet by some group by + # fields. # @!attribute [rw] rows # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] # Represents a row grouped by the fields in the input. @@ -690,6 +693,100 @@ class BackupDRConfig extend ::Google::Protobuf::MessageExts::ClassMethods end + # QueryIssuesRequest is the request to get a list of issues. + # @!attribute [rw] parent + # @return [::String] + # Required. Parent can be a project, a folder, or an organization. The list + # is limited to the one attached to resources within the `scope` that a user + # has access to. + # + # The allowed values are: + # + # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") + # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") + # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") + # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + # @!attribute [rw] filter + # @return [::String] + # Optional. + # Supported fields are: + # 'product', + # `location`, + # `issue_severity`, + # 'tags', + # 'labels', + # @!attribute [rw] signal_products_filters + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters>] + # Optional. Filters based on signal and product. The filter list will be ORed + # across pairs and ANDed within a signal and products pair. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Following fields are sortable: + # SignalType + # Product + # Location + # IssueSeverity + # + # The default order is ascending. Add "DESC" after the field name to indicate + # descending order. Add "ASC" after the field name to indicate ascending + # order. It only supports a single field at a time. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. If unspecified, at most 50 issues will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `QueryIssues` call. + # Provide this to retrieve the subsequent page. + # All parameters except page size should match the parameters used in the + # call that provided the page token. + class QueryIssuesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # SignalProductsFilters represents a signal and list of supported products. + # @!attribute [rw] signal_type + # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] + # Optional. The type of signal. + # @!attribute [rw] products + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Product>] + # Optional. Product type of the resource. The version of the product will be + # ignored in filtering. + class SignalProductsFilters + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # QueryIssuesResponse is the response containing a list of issues. + # @!attribute [rw] resource_issues + # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] + # List of issues and resource details. + # @!attribute [rw] next_page_token + # @return [::String] + # A token that can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + class QueryIssuesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # DatabaseResource and Issue associated with it. + # @!attribute [rw] signal + # @return [::Google::Cloud::DatabaseCenter::V1beta::Signal] + # Signal associated with the issue. + # @!attribute [rw] resource + # @return [::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource] + # Resource associated with the issue. + class DatabaseResourceIssue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Tag is a key value pair attached to a resource. # @!attribute [rw] key # @return [::String] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_issues.rb b/google-cloud-database_center-v1beta/snippets/database_center/query_issues.rb similarity index 100% rename from owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_issues.rb rename to google-cloud-database_center-v1beta/snippets/database_center/query_issues.rb diff --git a/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json b/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json index 8314714769e7..9dbea02850ee 100644 --- a/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json +++ b/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json @@ -170,6 +170,46 @@ "type": "FULL" } ] + }, + { + "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync", + "title": "Snippet for the query_issues call in the DatabaseCenter service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_issues.", + "file": "database_center/query_issues.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_issues", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_issues", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse", + "client": { + "short_name": "DatabaseCenter::Client", + "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" + }, + "method": { + "short_name": "QueryIssues", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryIssues", + "service": { + "short_name": "DatabaseCenter", + "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] } ] } \ No newline at end of file diff --git a/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb b/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb index c0acb538581c..2450ec74d065 100644 --- a/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb +++ b/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb @@ -311,6 +311,65 @@ def test_aggregate_issue_stats end end + def test_query_issues + # Create test objects. + client_result = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + signal_products_filters = [{}] + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + query_issues_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_query_issues_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_issues_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_issues parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_issues ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, 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 + client.query_issues(::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, 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, query_issues_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb b/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb index b407f275f721..f2497f2947db 100644 --- a/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb +++ b/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb @@ -346,6 +346,79 @@ def test_aggregate_issue_stats end end + def test_query_issues + # Create GRPC objects. + grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + signal_products_filters = [{}] + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + query_issues_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_issues, name + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, request["signal_products_filters"].first + assert_equal "hello world", request["order_by"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_issues_client_stub do + # Create client + client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_issues parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_issues ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_issues(::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_issues_client_stub.call_rpc_count + end + end + def test_configure grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.gitignore b/owl-bot-staging/google-cloud-database_center-v1beta/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.repo-metadata.json b/owl-bot-staging/google-cloud-database_center-v1beta/.repo-metadata.json deleted file mode 100644 index 36bd746450dc..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "api_id": "databasecenter.googleapis.com", - "api_shortname": "databasecenter", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest", - "distribution_name": "google-cloud-database_center-v1beta", - "is_cloud": true, - "language": "ruby", - "name": "databasecenter", - "name_pretty": "Database Center V1BETA API", - "product_documentation": "https://cloud.google.com/database-center/docs/overview", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "The Database Center API provides access to an organization-wide, cross-product database fleet health platform. It aggregates health, security, and compliance signals from various Google Cloud databases, offering a single pane of glass to identify and manage issues. Note that google-cloud-database_center-v1beta is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-database_center instead. See the readme for more details.", - "ruby-cloud-product-url": "https://cloud.google.com/database-center/docs/overview", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.rubocop.yml b/owl-bot-staging/google-cloud-database_center-v1beta/.rubocop.yml deleted file mode 100644 index 85308864c7ea..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-database_center-v1beta.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-database_center-v1beta.rb" diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.toys.rb b/owl-bot-staging/google-cloud-database_center-v1beta/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/.yardopts b/owl-bot-staging/google-cloud-database_center-v1beta/.yardopts deleted file mode 100644 index 21c5dcc37cba..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Database Center V1BETA API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/AUTHENTICATION.md b/owl-bot-staging/google-cloud-database_center-v1beta/AUTHENTICATION.md deleted file mode 100644 index d9c49920bc4f..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-database_center-v1beta library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-database_center-v1beta library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/database_center/v1beta" - -client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/database_center/v1beta" - -::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-database_center-v1beta -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/database_center/v1beta" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/CHANGELOG.md b/owl-bot-staging/google-cloud-database_center-v1beta/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/Gemfile b/owl-bot-staging/google-cloud-database_center-v1beta/Gemfile deleted file mode 100644 index 6442df18fa2f..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/Gemfile +++ /dev/null @@ -1,11 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.31.1" -gem "minitest", "~> 5.22" -gem "minitest-focus", "~> 1.4" -gem "minitest-rg", "~> 5.3" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/LICENSE.md b/owl-bot-staging/google-cloud-database_center-v1beta/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/README.md b/owl-bot-staging/google-cloud-database_center-v1beta/README.md deleted file mode 100644 index 7908ada925a9..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Database Center V1BETA API - -Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center’s fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team. - -The Database Center API provides access to an organization-wide, cross-product database fleet health platform. It aggregates health, security, and compliance signals from various Google Cloud databases, offering a single pane of glass to identify and manage issues. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Database Center V1BETA API. Most users should consider using -the main client gem, -[google-cloud-database_center](https://rubygems.org/gems/google-cloud-database_center). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-database_center-v1beta -``` - -## 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/databasecenter.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/database_center/v1beta" - -client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new -request = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new # (request fields as keyword arguments...) -response = client.query_products request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/database-center/docs/overview) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/database_center/v1beta" -require "logger" - -client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-database_center`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-database_center-v1beta`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-database_center`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-database_center-v1beta`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/Rakefile b/owl-bot-staging/google-cloud-database_center-v1beta/Rakefile deleted file mode 100644 index 2945939f962e..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-database_center-v1beta acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["GOOGLE_CLOUD_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["GOOGLE_CLOUD_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 GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/database_center/v1beta/database_center/credentials" - ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["GOOGLE_CLOUD_PROJECT"] = project - ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project - ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-database_center-v1beta gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-database_center-v1beta gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-database_center-v1beta gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-database_center-v1beta gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-database_center-v1beta" - header "google-cloud-database_center-v1beta rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-database_center-v1beta yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-database_center-v1beta test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-database_center-v1beta smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-database_center-v1beta acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/gapic_metadata.json b/owl-bot-staging/google-cloud-database_center-v1beta/gapic_metadata.json deleted file mode 100644 index 48cacf49f126..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/gapic_metadata.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.cloud.databasecenter.v1beta", - "libraryPackage": "::Google::Cloud::DatabaseCenter::V1beta", - "services": { - "DatabaseCenter": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client", - "rpcs": { - "QueryProducts": { - "methods": [ - "query_products" - ] - }, - "AggregateFleet": { - "methods": [ - "aggregate_fleet" - ] - }, - "QueryDatabaseResourceGroups": { - "methods": [ - "query_database_resource_groups" - ] - }, - "AggregateIssueStats": { - "methods": [ - "aggregate_issue_stats" - ] - }, - "QueryIssues": { - "methods": [ - "query_issues" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/google-cloud-database_center-v1beta.gemspec b/owl-bot-staging/google-cloud-database_center-v1beta/google-cloud-database_center-v1beta.gemspec deleted file mode 100644 index d8b8fb2c3ab3..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/google-cloud-database_center-v1beta.gemspec +++ /dev/null @@ -1,28 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/database_center/v1beta/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-database_center-v1beta" - gem.version = Google::Cloud::DatabaseCenter::V1beta::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "The Database Center API provides access to an organization-wide, cross-product database fleet health platform. It aggregates health, security, and compliance signals from various Google Cloud databases, offering a single pane of glass to identify and manage issues. Note that google-cloud-database_center-v1beta is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-database_center instead. See the readme for more details." - gem.summary = "Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center’s fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.1" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google-cloud-database_center-v1beta.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google-cloud-database_center-v1beta.rb deleted file mode 100644 index 9fa1c0288a32..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google-cloud-database_center-v1beta.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/database_center/v1beta" diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta.rb deleted file mode 100644 index 976188fa88b9..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta.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/cloud/database_center/v1beta/database_center" -require "google/cloud/database_center/v1beta/version" - -module Google - module Cloud - module DatabaseCenter - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/database_center/v1beta" - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/cloud/database_center/v1beta" - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - module V1beta - end - end - end -end - -helper_path = ::File.join __dir__, "v1beta", "_helpers.rb" -require "google/cloud/database_center/v1beta/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center.rb deleted file mode 100644 index efaaee25043d..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/database_center/v1beta/version" - -require "google/cloud/database_center/v1beta/database_center/credentials" -require "google/cloud/database_center/v1beta/database_center/client" -require "google/cloud/database_center/v1beta/database_center/rest" - -module Google - module Cloud - module DatabaseCenter - module V1beta - ## - # DatabaseCenter contains methods to query fleet view for database resources. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/database_center/v1beta/database_center" - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/database_center/v1beta/database_center/rest" - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - module DatabaseCenter - end - end - end - end -end - -helper_path = ::File.join __dir__, "database_center", "helpers.rb" -require "google/cloud/database_center/v1beta/database_center/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb deleted file mode 100644 index ead427033f89..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/client.rb +++ /dev/null @@ -1,1087 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/cloud/databasecenter/v1beta/service_pb" - -module Google - module Cloud - module DatabaseCenter - module V1beta - module DatabaseCenter - ## - # Client for the DatabaseCenter service. - # - # DatabaseCenter contains methods to query fleet view for database resources. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "databasecenter.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :database_center_stub - - ## - # Configure the DatabaseCenter Client class. - # - # See {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all DatabaseCenter clients - # ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "DatabaseCenter", "V1beta"] - 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 - end - yield @configure if block_given? - @configure - end - - ## - # Configure the DatabaseCenter Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 - @database_center_stub.universe_domain - end - - ## - # Create a new DatabaseCenter client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the DatabaseCenter 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/cloud/databasecenter/v1beta/service_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 - - @database_center_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 - ) - - @database_center_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 - @database_center_stub.logger - end - - # Service calls - - ## - # QueryProducts provides a list of all possible products which can be used to - # filter database resources. - # - # @overload query_products(request, options = nil) - # Pass arguments to `query_products` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_products(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_products` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID}/locations/\\{LOCATION} - # (e.g.,"projects/foo-bar/locations/us-central1") - # * projects/\\{PROJECT_NUMBER}/locations/\\{LOCATION} - # (e.g.,"projects/12345678/locations/us-central1") - # * folders/\\{FOLDER_NUMBER}/locations/\\{LOCATION} - # (e.g.,"folders/1234567/locations/us-central1") - # * organizations/\\{ORGANIZATION_NUMBER}/locations/\\{LOCATION} - # (e.g.,"organizations/123456/locations/us-central1") - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @param page_size [::Integer] - # Optional. If unspecified, at most 50 products will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous `ListLocations` call. - # Provide this to retrieve the subsequent page. - # All other parameters except page size should match the call that provided - # the page page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::Product>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::Product>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new - # - # # Call the query_products method. - # result = client.query_products request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::Product. - # p item - # end - # - def query_products request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_products.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.query_products.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_products.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.call_rpc :query_products, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @database_center_stub, :query_products, 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 - - ## - # AggregateFleet provides statistics about the fleet grouped by various - # fields. - # - # @overload aggregate_fleet(request, options = nil) - # Pass arguments to `aggregate_fleet` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload aggregate_fleet(parent: nil, filter: nil, group_by: nil, order_by: nil, page_size: nil, page_token: nil, baseline_date: nil) - # Pass arguments to `aggregate_fleet` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., - # "organizations/123456") - # @param filter [::String] - # Optional. The expression to filter resources. - # - # Supported fields are: `full_resource_name`, `resource_type`, `container`, - # `product.type`, `product.engine`, `product.version`, `location`, - # `labels`, `issues`, fields of availability_info, data_protection_info, - # 'resource_name', etc. - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # @param group_by [::String] - # Optional. A field that statistics are grouped by. - # Valid values are any combination of the following: - # * container - # * product.type - # * product.engine - # * product.version - # * location - # * sub_resource_type - # * management_type - # * tag.key - # * tag.value - # * tag.source - # * tag.inherited - # * label.key - # * label.value - # * label.source - # * has_maintenance_schedule - # * has_deny_maintenance_schedules - # Comma separated list. - # @param order_by [::String] - # Optional. Valid values to order by are: - # * resource_groups_count - # * resources_count - # * and all fields supported by `group_by` - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It supports ordering using multiple fields. - # For example: - # `order_by = "resource_groups_count"` sorts response in ascending order - # `order_by = "resource_groups_count DESC"` sorts response in descending - # order - # `order_by = "product.type, product.version DESC, location"` orders by type - # in ascending order, version in descending order and location in ascending - # order - # @param page_size [::Integer] - # Optional. If unspecified, at most 50 items will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous `AggregateFleet` call. - # Provide this to retrieve the subsequent page. - # All other parameters should match the parameters in the call that provided - # the page token except for page_size which can be different. - # @param baseline_date [::Google::Type::Date, ::Hash] - # Optional. The baseline date w.r.t. which the delta counts are calculated. - # If not set, delta counts are not included in the response and the response - # indicates the current state of the fleet. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new - # - # # Call the aggregate_fleet method. - # result = client.aggregate_fleet request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow. - # p item - # end - # - def aggregate_fleet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.aggregate_fleet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.aggregate_fleet.timeout, - metadata: metadata, - retry_policy: @config.rpcs.aggregate_fleet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.call_rpc :aggregate_fleet, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @database_center_stub, :aggregate_fleet, 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 - - ## - # QueryDatabaseResourceGroups returns paginated results of database groups. - # - # @overload query_database_resource_groups(request, options = nil) - # Pass arguments to `query_database_resource_groups` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_database_resource_groups(parent: nil, filter: nil, signal_type_groups: nil, signal_filters: nil, order_by: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_database_resource_groups` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @param filter [::String] - # Optional. The expression to filter resources. - # - # The following fields are filterable: - # * full_resource_name - # * resource_type - # * container - # * product.type - # * product.engine - # * product.version - # * location - # * labels - # * resource_category - # * machine_config.cpu_count - # * machine_config.memory_size_bytes - # * machine_config.shard_count - # * resource_name - # * tags - # * backupdr_config.backupdr_managed - # * edition - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # Example: `full_resource_name=~"test"` - # Example: `full_resource_name=~"test.*master"` - # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] - # Optional. Groups of signal types that are requested. - # @param signal_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalFilter, ::Hash>] - # Optional. Filters based on signals. The list will be ORed together and then - # ANDed with the `filters` field above. - # @param order_by [::String] - # Optional. A field that specifies the sort order of the results. - # - # The following fields are sortable: - # * full_resource_name - # * product.type - # * product.engine - # * product.version - # * container - # * issue_count - # * machine_config.vcpu_count - # * machine_config.memory_size_bytes - # * machine_config.shard_count - # * resource_name - # * issue_severity - # * signal_type - # * location - # * resource_type - # * instance_type - # * edition - # * metrics.p99_cpu_utilization - # * metrics.p95_cpu_utilization - # * metrics.current_storage_used_bytes - # * metrics.node_count - # * metrics.processing_unit_count - # * metrics.current_memory_used_bytes - # * metrics.peak_storage_utilization - # * metrics.peak_number_connections - # * metrics.peak_memory_utilization - # - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It only supports a single field at a time. - # - # For example: - # `order_by = "full_resource_name"` sorts response in ascending order - # `order_by = "full_resource_name DESC"` sorts response in descending order - # `order_by = "issue_count DESC"` sorts response in descending order of - # count of all issues associated with a resource. - # - # More explicitly, `order_by = "full_resource_name, product"` is not - # supported. - # @param page_size [::Integer] - # Optional. If unspecified, at most 50 resource groups will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - # subsequent page. All parameters except page_token should match the - # parameters in the call that provided the page page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new - # - # # Call the query_database_resource_groups method. - # result = client.query_database_resource_groups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup. - # p item - # end - # - def query_database_resource_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_database_resource_groups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.query_database_resource_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_database_resource_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.call_rpc :query_database_resource_groups, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @database_center_stub, :query_database_resource_groups, 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 - - ## - # AggregateIssueStats provides database resource issues statistics. - # - # @overload aggregate_issue_stats(request, options = nil) - # Pass arguments to `aggregate_issue_stats` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload aggregate_issue_stats(parent: nil, filter: nil, signal_type_groups: nil, baseline_date: nil) - # Pass arguments to `aggregate_issue_stats` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @param filter [::String] - # Optional. The expression to filter resources. - # - # Supported fields are: `full_resource_name`, `resource_type`, `container`, - # `product.type`, `product.engine`, `product.version`, `location`, - # `labels`, `issues`, fields of availability_info, - # data_protection_info,'resource_name', etc. - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] - # Optional. Lists of signal types that are issues. - # @param baseline_date [::Google::Type::Date, ::Hash] - # Optional. The baseline date w.r.t. which the delta counts are calculated. - # If not set, delta counts are not included in the response and the response - # indicates the current state of the fleet. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new - # - # # Call the aggregate_issue_stats method. - # result = client.aggregate_issue_stats request - # - # # The returned object is of type Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse. - # p result - # - def aggregate_issue_stats request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.aggregate_issue_stats.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.aggregate_issue_stats.timeout, - metadata: metadata, - retry_policy: @config.rpcs.aggregate_issue_stats.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.call_rpc :aggregate_issue_stats, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # QueryIssues provides a list of issues and recommendations - # that a user has access to and that are within the requested scope. - # - # @overload query_issues(request, options = nil) - # Pass arguments to `query_issues` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_issues(parent: nil, filter: nil, signal_products_filters: nil, order_by: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_issues` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The list - # is limited to the one attached to resources within the `scope` that a user - # has access to. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @param filter [::String] - # Optional. - # Supported fields are: - # 'product', - # `location`, - # `issue_severity`, - # 'tags', - # 'labels', - # @param signal_products_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, ::Hash>] - # Optional. Filters based on signal and product. The filter list will be ORed - # across pairs and ANDed within a signal and products pair. - # @param order_by [::String] - # Optional. Following fields are sortable: - # SignalType - # Product - # Location - # IssueSeverity - # - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It only supports a single field at a time. - # @param page_size [::Integer] - # Optional. If unspecified, at most 50 issues will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous `QueryIssues` call. - # Provide this to retrieve the subsequent page. - # All parameters except page size should match the parameters used in the - # call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new - # - # # Call the query_issues method. - # result = client.query_issues request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue. - # p item - # end - # - def query_issues request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_issues.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::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.query_issues.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_issues.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.call_rpc :query_issues, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @database_center_stub, :query_issues, 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 - - ## - # Configuration class for the DatabaseCenter API. - # - # This class represents the configuration for DatabaseCenter, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 - # # query_products to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.query_products.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.query_products.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "databasecenter.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 DatabaseCenter API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `query_products` - # @return [::Gapic::Config::Method] - # - attr_reader :query_products - ## - # RPC-specific configuration for `aggregate_fleet` - # @return [::Gapic::Config::Method] - # - attr_reader :aggregate_fleet - ## - # RPC-specific configuration for `query_database_resource_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :query_database_resource_groups - ## - # RPC-specific configuration for `aggregate_issue_stats` - # @return [::Gapic::Config::Method] - # - attr_reader :aggregate_issue_stats - ## - # RPC-specific configuration for `query_issues` - # @return [::Gapic::Config::Method] - # - attr_reader :query_issues - - # @private - def initialize parent_rpcs = nil - query_products_config = parent_rpcs.query_products if parent_rpcs.respond_to? :query_products - @query_products = ::Gapic::Config::Method.new query_products_config - aggregate_fleet_config = parent_rpcs.aggregate_fleet if parent_rpcs.respond_to? :aggregate_fleet - @aggregate_fleet = ::Gapic::Config::Method.new aggregate_fleet_config - query_database_resource_groups_config = parent_rpcs.query_database_resource_groups if parent_rpcs.respond_to? :query_database_resource_groups - @query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config - aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats - @aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config - query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues - @query_issues = ::Gapic::Config::Method.new query_issues_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/credentials.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/credentials.rb deleted file mode 100644 index c61d885263b3..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/credentials.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! - -require "googleauth" - -module Google - module Cloud - module DatabaseCenter - module V1beta - module DatabaseCenter - # Credentials for the DatabaseCenter API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform" - ] - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "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/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest.rb deleted file mode 100644 index 6190d206fc6b..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest.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! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/database_center/v1beta/version" - -require "google/cloud/database_center/v1beta/database_center/credentials" -require "google/cloud/database_center/v1beta/database_center/rest/client" - -module Google - module Cloud - module DatabaseCenter - module V1beta - ## - # DatabaseCenter contains methods to query fleet view for database resources. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/database_center/v1beta/database_center/rest" - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - module DatabaseCenter - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/database_center/v1beta/database_center/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb deleted file mode 100644 index a09dfb6324a8..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb +++ /dev/null @@ -1,1049 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/cloud/databasecenter/v1beta/service_pb" -require "google/cloud/database_center/v1beta/database_center/rest/service_stub" - -module Google - module Cloud - module DatabaseCenter - module V1beta - module DatabaseCenter - module Rest - ## - # REST client for the DatabaseCenter service. - # - # DatabaseCenter contains methods to query fleet view for database resources. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "databasecenter.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :database_center_stub - - ## - # Configure the DatabaseCenter Client class. - # - # See {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all DatabaseCenter clients - # ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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", "Cloud", "DatabaseCenter", "V1beta"] - 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 - end - yield @configure if block_given? - @configure - end - - ## - # Configure the DatabaseCenter Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 - @database_center_stub.universe_domain - end - - ## - # Create a new DatabaseCenter REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the DatabaseCenter 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 - - @database_center_stub = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @database_center_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 - @database_center_stub.logger - end - - # Service calls - - ## - # QueryProducts provides a list of all possible products which can be used to - # filter database resources. - # - # @overload query_products(request, options = nil) - # Pass arguments to `query_products` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_products(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_products` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID}/locations/\\{LOCATION} - # (e.g.,"projects/foo-bar/locations/us-central1") - # * projects/\\{PROJECT_NUMBER}/locations/\\{LOCATION} - # (e.g.,"projects/12345678/locations/us-central1") - # * folders/\\{FOLDER_NUMBER}/locations/\\{LOCATION} - # (e.g.,"folders/1234567/locations/us-central1") - # * organizations/\\{ORGANIZATION_NUMBER}/locations/\\{LOCATION} - # (e.g.,"organizations/123456/locations/us-central1") - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @param page_size [::Integer] - # Optional. If unspecified, at most 50 products will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous `ListLocations` call. - # Provide this to retrieve the subsequent page. - # All other parameters except page size should match the call that provided - # the page page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::Product>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::Product>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new - # - # # Call the query_products method. - # result = client.query_products request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::Product. - # p item - # end - # - def query_products request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest - - # Converts hash 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.query_products.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::Cloud::DatabaseCenter::V1beta::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.query_products.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_products.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.query_products request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :query_products, "products", 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 - - ## - # AggregateFleet provides statistics about the fleet grouped by various - # fields. - # - # @overload aggregate_fleet(request, options = nil) - # Pass arguments to `aggregate_fleet` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload aggregate_fleet(parent: nil, filter: nil, group_by: nil, order_by: nil, page_size: nil, page_token: nil, baseline_date: nil) - # Pass arguments to `aggregate_fleet` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., - # "organizations/123456") - # @param filter [::String] - # Optional. The expression to filter resources. - # - # Supported fields are: `full_resource_name`, `resource_type`, `container`, - # `product.type`, `product.engine`, `product.version`, `location`, - # `labels`, `issues`, fields of availability_info, data_protection_info, - # 'resource_name', etc. - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # @param group_by [::String] - # Optional. A field that statistics are grouped by. - # Valid values are any combination of the following: - # * container - # * product.type - # * product.engine - # * product.version - # * location - # * sub_resource_type - # * management_type - # * tag.key - # * tag.value - # * tag.source - # * tag.inherited - # * label.key - # * label.value - # * label.source - # * has_maintenance_schedule - # * has_deny_maintenance_schedules - # Comma separated list. - # @param order_by [::String] - # Optional. Valid values to order by are: - # * resource_groups_count - # * resources_count - # * and all fields supported by `group_by` - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It supports ordering using multiple fields. - # For example: - # `order_by = "resource_groups_count"` sorts response in ascending order - # `order_by = "resource_groups_count DESC"` sorts response in descending - # order - # `order_by = "product.type, product.version DESC, location"` orders by type - # in ascending order, version in descending order and location in ascending - # order - # @param page_size [::Integer] - # Optional. If unspecified, at most 50 items will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous `AggregateFleet` call. - # Provide this to retrieve the subsequent page. - # All other parameters should match the parameters in the call that provided - # the page token except for page_size which can be different. - # @param baseline_date [::Google::Type::Date, ::Hash] - # Optional. The baseline date w.r.t. which the delta counts are calculated. - # If not set, delta counts are not included in the response and the response - # indicates the current state of the fleet. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new - # - # # Call the aggregate_fleet method. - # result = client.aggregate_fleet request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow. - # p item - # end - # - def aggregate_fleet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest - - # Converts hash 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.aggregate_fleet.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::Cloud::DatabaseCenter::V1beta::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.aggregate_fleet.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.aggregate_fleet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.aggregate_fleet request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :aggregate_fleet, "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 - - ## - # QueryDatabaseResourceGroups returns paginated results of database groups. - # - # @overload query_database_resource_groups(request, options = nil) - # Pass arguments to `query_database_resource_groups` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_database_resource_groups(parent: nil, filter: nil, signal_type_groups: nil, signal_filters: nil, order_by: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_database_resource_groups` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @param filter [::String] - # Optional. The expression to filter resources. - # - # The following fields are filterable: - # * full_resource_name - # * resource_type - # * container - # * product.type - # * product.engine - # * product.version - # * location - # * labels - # * resource_category - # * machine_config.cpu_count - # * machine_config.memory_size_bytes - # * machine_config.shard_count - # * resource_name - # * tags - # * backupdr_config.backupdr_managed - # * edition - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # Example: `full_resource_name=~"test"` - # Example: `full_resource_name=~"test.*master"` - # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] - # Optional. Groups of signal types that are requested. - # @param signal_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalFilter, ::Hash>] - # Optional. Filters based on signals. The list will be ORed together and then - # ANDed with the `filters` field above. - # @param order_by [::String] - # Optional. A field that specifies the sort order of the results. - # - # The following fields are sortable: - # * full_resource_name - # * product.type - # * product.engine - # * product.version - # * container - # * issue_count - # * machine_config.vcpu_count - # * machine_config.memory_size_bytes - # * machine_config.shard_count - # * resource_name - # * issue_severity - # * signal_type - # * location - # * resource_type - # * instance_type - # * edition - # * metrics.p99_cpu_utilization - # * metrics.p95_cpu_utilization - # * metrics.current_storage_used_bytes - # * metrics.node_count - # * metrics.processing_unit_count - # * metrics.current_memory_used_bytes - # * metrics.peak_storage_utilization - # * metrics.peak_number_connections - # * metrics.peak_memory_utilization - # - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It only supports a single field at a time. - # - # For example: - # `order_by = "full_resource_name"` sorts response in ascending order - # `order_by = "full_resource_name DESC"` sorts response in descending order - # `order_by = "issue_count DESC"` sorts response in descending order of - # count of all issues associated with a resource. - # - # More explicitly, `order_by = "full_resource_name, product"` is not - # supported. - # @param page_size [::Integer] - # Optional. If unspecified, at most 50 resource groups will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - # subsequent page. All parameters except page_token should match the - # parameters in the call that provided the page page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new - # - # # Call the query_database_resource_groups method. - # result = client.query_database_resource_groups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup. - # p item - # end - # - def query_database_resource_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest - - # Converts hash 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.query_database_resource_groups.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::Cloud::DatabaseCenter::V1beta::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.query_database_resource_groups.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_database_resource_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.query_database_resource_groups request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :query_database_resource_groups, "resource_groups", 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 - - ## - # AggregateIssueStats provides database resource issues statistics. - # - # @overload aggregate_issue_stats(request, options = nil) - # Pass arguments to `aggregate_issue_stats` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload aggregate_issue_stats(parent: nil, filter: nil, signal_type_groups: nil, baseline_date: nil) - # Pass arguments to `aggregate_issue_stats` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @param filter [::String] - # Optional. The expression to filter resources. - # - # Supported fields are: `full_resource_name`, `resource_type`, `container`, - # `product.type`, `product.engine`, `product.version`, `location`, - # `labels`, `issues`, fields of availability_info, - # data_protection_info,'resource_name', etc. - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # @param signal_type_groups [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, ::Hash>] - # Optional. Lists of signal types that are issues. - # @param baseline_date [::Google::Type::Date, ::Hash] - # Optional. The baseline date w.r.t. which the delta counts are calculated. - # If not set, delta counts are not included in the response and the response - # indicates the current state of the fleet. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new - # - # # Call the aggregate_issue_stats method. - # result = client.aggregate_issue_stats request - # - # # The returned object is of type Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse. - # p result - # - def aggregate_issue_stats request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest - - # Converts hash 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.aggregate_issue_stats.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::Cloud::DatabaseCenter::V1beta::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.aggregate_issue_stats.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.aggregate_issue_stats.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.aggregate_issue_stats 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 - - ## - # QueryIssues provides a list of issues and recommendations - # that a user has access to and that are within the requested scope. - # - # @overload query_issues(request, options = nil) - # Pass arguments to `query_issues` via a request object, either of type - # {::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_issues(parent: nil, filter: nil, signal_products_filters: nil, order_by: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_issues` via keyword arguments. Note that at - # least one keyword argument is 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. Parent can be a project, a folder, or an organization. The list - # is limited to the one attached to resources within the `scope` that a user - # has access to. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @param filter [::String] - # Optional. - # Supported fields are: - # 'product', - # `location`, - # `issue_severity`, - # 'tags', - # 'labels', - # @param signal_products_filters [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, ::Hash>] - # Optional. Filters based on signal and product. The filter list will be ORed - # across pairs and ANDed within a signal and products pair. - # @param order_by [::String] - # Optional. Following fields are sortable: - # SignalType - # Product - # Location - # IssueSeverity - # - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It only supports a single field at a time. - # @param page_size [::Integer] - # Optional. If unspecified, at most 50 issues will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous `QueryIssues` call. - # Provide this to retrieve the subsequent page. - # All parameters except page size should match the parameters used in the - # call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/database_center/v1beta" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new - # - # # Call the query_issues method. - # result = client.query_issues request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue. - # p item - # end - # - def query_issues request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest - - # Converts hash 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.query_issues.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::Cloud::DatabaseCenter::V1beta::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.query_issues.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_issues.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @database_center_stub.query_issues request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :query_issues, "resource_issues", 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 - - ## - # Configuration class for the DatabaseCenter REST API. - # - # This class represents the configuration for DatabaseCenter 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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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 - # # query_products to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.query_products.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.query_products.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. - # * `: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 = "databasecenter.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 DatabaseCenter 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. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `query_products` - # @return [::Gapic::Config::Method] - # - attr_reader :query_products - ## - # RPC-specific configuration for `aggregate_fleet` - # @return [::Gapic::Config::Method] - # - attr_reader :aggregate_fleet - ## - # RPC-specific configuration for `query_database_resource_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :query_database_resource_groups - ## - # RPC-specific configuration for `aggregate_issue_stats` - # @return [::Gapic::Config::Method] - # - attr_reader :aggregate_issue_stats - ## - # RPC-specific configuration for `query_issues` - # @return [::Gapic::Config::Method] - # - attr_reader :query_issues - - # @private - def initialize parent_rpcs = nil - query_products_config = parent_rpcs.query_products if parent_rpcs.respond_to? :query_products - @query_products = ::Gapic::Config::Method.new query_products_config - aggregate_fleet_config = parent_rpcs.aggregate_fleet if parent_rpcs.respond_to? :aggregate_fleet - @aggregate_fleet = ::Gapic::Config::Method.new aggregate_fleet_config - query_database_resource_groups_config = parent_rpcs.query_database_resource_groups if parent_rpcs.respond_to? :query_database_resource_groups - @query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config - aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats - @aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config - query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues - @query_issues = ::Gapic::Config::Method.new query_issues_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb deleted file mode 100644 index 6a06184bfd64..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb +++ /dev/null @@ -1,379 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/databasecenter/v1beta/service_pb" - -module Google - module Cloud - module DatabaseCenter - module V1beta - module DatabaseCenter - module Rest - ## - # REST service stub for the DatabaseCenter 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 query_products REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest] - # 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::Cloud::DatabaseCenter::V1beta::QueryProductsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse] - # A result object deserialized from the server's reply - def query_products request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_products_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: "query_products", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the aggregate_fleet REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest] - # 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::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse] - # A result object deserialized from the server's reply - def aggregate_fleet request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_aggregate_fleet_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: "aggregate_fleet", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_database_resource_groups REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest] - # 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::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse] - # A result object deserialized from the server's reply - def query_database_resource_groups request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_database_resource_groups_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: "query_database_resource_groups", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the aggregate_issue_stats REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest] - # 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::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse] - # A result object deserialized from the server's reply - def aggregate_issue_stats request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_aggregate_issue_stats_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: "aggregate_issue_stats", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_issues REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest] - # 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::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse] - # A result object deserialized from the server's reply - def query_issues request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_issues_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: "query_issues", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.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 query_products REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_products_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta:queryProducts", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the aggregate_fleet REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_aggregate_fleet_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta:aggregateFleet", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_database_resource_groups REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_database_resource_groups_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta:queryDatabaseResourceGroups", - body: "*", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the aggregate_issue_stats REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_aggregate_issue_stats_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta:aggregateIssueStats", - body: "*", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_issues REST call - # - # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_issues_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta:queryIssues", - body: "*", - matches: [] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/rest.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/rest.rb deleted file mode 100644 index 141254082322..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/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/cloud/database_center/v1beta/database_center/rest" -require "google/cloud/database_center/v1beta/version" - -module Google - module Cloud - module DatabaseCenter - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/cloud/database_center/v1beta/rest" - # client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new - # - module V1beta - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/version.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/version.rb deleted file mode 100644 index ab12c4b661ee..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/database_center/v1beta/version.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! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - VERSION = "0.0.1" - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb deleted file mode 100644 index 52acdf8b121e..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/databasecenter/v1beta/machine_config.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n7google/cloud/databasecenter/v1beta/machine_config.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\x86\x01\n\rMachineConfig\x12\x19\n\x11memory_size_bytes\x18\x02 \x01(\x03\x12\x1d\n\x0bshard_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1c\n\nvcpu_count\x18\x04 \x01(\x01\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x42\x0e\n\x0c_shard_countB\r\n\x0b_vcpu_countB\x80\x02\n&com.google.cloud.databasecenter.v1betaB\x12MachineConfigProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module DatabaseCenter - module V1beta - MachineConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MachineConfig").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb deleted file mode 100644 index 254224cd486f..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/databasecenter/v1beta/maintenance.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/type/date_pb' -require 'google/type/dayofweek_pb' -require 'google/type/timeofday_pb' - - -descriptor_data = "\n4google/cloud/databasecenter/v1beta/maintenance.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xb7\x01\n\x1bResourceMaintenanceSchedule\x12/\n\nstart_time\x18\x01 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x01\x12(\n\x03\x64\x61y\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x12=\n\x05phase\x18\x03 \x01(\x0e\x32).google.cloud.databasecenter.v1beta.PhaseB\x03\xe0\x41\x01\"\xa2\x01\n\x1fResourceMaintenanceDenySchedule\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12)\n\x04time\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x01\"\x85\x02\n\x0fMaintenanceInfo\x12\x62\n\x14maintenance_schedule\x18\x01 \x01(\x0b\x32?.google.cloud.databasecenter.v1beta.ResourceMaintenanceScheduleB\x03\xe0\x41\x01\x12l\n\x1a\x64\x65ny_maintenance_schedules\x18\x02 \x03(\x0b\x32\x43.google.cloud.databasecenter.v1beta.ResourceMaintenanceDenyScheduleB\x03\xe0\x41\x01\x12 \n\x13maintenance_version\x18\x03 \x01(\tB\x03\xe0\x41\x03*`\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPHASE_WEEK1\x10\x01\x12\x0f\n\x0bPHASE_WEEK2\x10\x02\x12\x0f\n\x0bPHASE_WEEK5\x10\x03\x12\r\n\tPHASE_ANY\x10\x04\x42\xfe\x01\n&com.google.cloud.databasecenter.v1betaB\x10MaintenanceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.type.TimeOfDay", "google/type/timeofday.proto"], - ["google.type.Date", "google/type/date.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module DatabaseCenter - module V1beta - ResourceMaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule").msgclass - ResourceMaintenanceDenySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule").msgclass - MaintenanceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MaintenanceInfo").msgclass - Phase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Phase").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb deleted file mode 100644 index d219d12739b0..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/databasecenter/v1beta/metric_data.proto - -require 'google/protobuf' - -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n4google/cloud/databasecenter/v1beta/metric_data.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x07\n\x07Metrics\x12P\n\x13p99_cpu_utilization\x18\x01 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x00\x88\x01\x01\x12P\n\x13p95_cpu_utilization\x18\x02 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x01\x88\x01\x01\x12W\n\x1a\x63urrent_storage_used_bytes\x18\x03 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x02\x88\x01\x01\x12U\n\x18peak_storage_utilization\x18\x04 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x03\x88\x01\x01\x12T\n\x17peak_memory_utilization\x18\x05 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x04\x88\x01\x01\x12T\n\x17peak_number_connections\x18\x06 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x05\x88\x01\x01\x12G\n\nnode_count\x18\x07 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x06\x88\x01\x01\x12R\n\x15processing_unit_count\x18\x08 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x07\x88\x01\x01\x12V\n\x19\x63urrent_memory_used_bytes\x18\t \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x08\x88\x01\x01\x42\x16\n\x14_p99_cpu_utilizationB\x16\n\x14_p95_cpu_utilizationB\x1d\n\x1b_current_storage_used_bytesB\x1b\n\x19_peak_storage_utilizationB\x1a\n\x18_peak_memory_utilizationB\x1a\n\x18_peak_number_connectionsB\r\n\x0b_node_countB\x18\n\x16_processing_unit_countB\x1c\n\x1a_current_memory_used_bytes\"\x81\x01\n\nMetricData\x12=\n\x05value\x18\x01 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.TypedValue\x12\x34\n\x10observation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"D\n\nTypedValue\x12\x16\n\x0c\x64ouble_value\x18\x01 \x01(\x01H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x42\x07\n\x05valueB\xfd\x01\n&com.google.cloud.databasecenter.v1betaB\x0fMetricDataProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module DatabaseCenter - module V1beta - Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Metrics").msgclass - MetricData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MetricData").msgclass - TypedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.TypedValue").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb deleted file mode 100644 index c06d58adf53f..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/databasecenter/v1beta/operation_error_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/cloud/databasecenter/v1beta/operation_error_type.proto\x12\"google.cloud.databasecenter.v1beta*\xb6\x01\n\x12OperationErrorType\x12$\n OPERATION_ERROR_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rKMS_KEY_ERROR\x10\x01\x12\x12\n\x0e\x44\x41TABASE_ERROR\x10\x02\x12\x12\n\x0eSTOCKOUT_ERROR\x10\x03\x12\x16\n\x12\x43\x41NCELLATION_ERROR\x10\x04\x12\x13\n\x0fSQLSERVER_ERROR\x10\x05\x12\x12\n\x0eINTERNAL_ERROR\x10\x06\x42\x85\x02\n&com.google.cloud.databasecenter.v1betaB\x17OperationErrorTypeProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module DatabaseCenter - module V1beta - OperationErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.OperationErrorType").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/product_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/product_pb.rb deleted file mode 100644 index 53f6a06d9d29..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/product_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/databasecenter/v1beta/product.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n0google/cloud/databasecenter/v1beta/product.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xc0\x01\n\x07Product\x12\x42\n\x04type\x18\x01 \x01(\x0e\x32/.google.cloud.databasecenter.v1beta.ProductTypeB\x03\xe0\x41\x01\x12?\n\x06\x65ngine\x18\x02 \x01(\x0e\x32*.google.cloud.databasecenter.v1beta.EngineB\x03\xe0\x41\x01\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rminor_version\x18\x04 \x01(\tB\x03\xe0\x41\x01*\x93\x03\n\x06\x45ngine\x12\x16\n\x12\x45NGINE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x45NGINE_MYSQL\x10\x01\x12\x13\n\x0f\x45NGINE_POSTGRES\x10\x02\x12\x15\n\x11\x45NGINE_SQL_SERVER\x10\x03\x12\x11\n\rENGINE_NATIVE\x10\x04\x12 \n\x1c\x45NGINE_MEMORYSTORE_FOR_REDIS\x10\x08\x12(\n$ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER\x10\t\x12%\n!ENGINE_FIRESTORE_WITH_NATIVE_MODE\x10\n\x12(\n$ENGINE_FIRESTORE_WITH_DATASTORE_MODE\x10\x0b\x12\x19\n\x15\x45NGINE_EXADATA_ORACLE\x10\x0c\x12 \n\x1c\x45NGINE_ADB_SERVERLESS_ORACLE\x10\r\x12\x34\n0ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE\x10\x0e\x12\x10\n\x0c\x45NGINE_OTHER\x10\x06*\xc4\x02\n\x0bProductType\x12\x1c\n\x18PRODUCT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16PRODUCT_TYPE_CLOUD_SQL\x10\x01\x12\x18\n\x14PRODUCT_TYPE_ALLOYDB\x10\x02\x12\x18\n\x14PRODUCT_TYPE_SPANNER\x10\x03\x12\x19\n\x15PRODUCT_TYPE_BIGTABLE\x10\x06\x12\x1c\n\x18PRODUCT_TYPE_MEMORYSTORE\x10\x07\x12\x1a\n\x16PRODUCT_TYPE_FIRESTORE\x10\x08\x12\x1f\n\x1bPRODUCT_TYPE_COMPUTE_ENGINE\x10\t\x12\x1e\n\x1aPRODUCT_TYPE_ORACLE_ON_GCP\x10\n\x12\x19\n\x15PRODUCT_TYPE_BIGQUERY\x10\x0b\x12\x16\n\x12PRODUCT_TYPE_OTHER\x10\x05\x42\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cProductProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module DatabaseCenter - module V1beta - Product = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Product").msgclass - Engine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Engine").enummodule - ProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ProductType").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb deleted file mode 100644 index 775a9c4cfc4d..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_pb.rb +++ /dev/null @@ -1,84 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/databasecenter/v1beta/service.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/cloud/databasecenter/v1beta/machine_config_pb' -require 'google/cloud/databasecenter/v1beta/maintenance_pb' -require 'google/cloud/databasecenter/v1beta/metric_data_pb' -require 'google/cloud/databasecenter/v1beta/product_pb' -require 'google/cloud/databasecenter/v1beta/signals_pb' -require 'google/type/date_pb' - - -descriptor_data = "\n0google/cloud/databasecenter/v1beta/service.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x37google/cloud/databasecenter/v1beta/machine_config.proto\x1a\x34google/cloud/databasecenter/v1beta/maintenance.proto\x1a\x34google/cloud/databasecenter/v1beta/metric_data.proto\x1a\x30google/cloud/databasecenter/v1beta/product.proto\x1a\x30google/cloud/databasecenter/v1beta/signals.proto\x1a\x16google/type/date.proto\"\\\n\x14QueryProductsRequest\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x15QueryProductsResponse\x12=\n\x08products\x18\x01 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xbb\x02\n\"QueryDatabaseResourceGroupsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12M\n\x0esignal_filters\x18\x04 \x03(\x0b\x32\x30.google.cloud.databasecenter.v1beta.SignalFilterB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n#QueryDatabaseResourceGroupsResponse\x12R\n\x0fresource_groups\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xac\x01\n\x15\x44\x61tabaseResourceGroup\x12L\n\x0eroot_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x45\n\rsignal_groups\x18\x02 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueCount\"\xd6\x07\n\x10\x44\x61tabaseResource\x12M\n\x0f\x63hild_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x1a\n\x12\x66ull_resource_name\x18\x03 \x01(\t\x12\x11\n\tcontainer\x18\x04 \x01(\t\x12<\n\x07product\x18\x05 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x06 \x01(\t\x12\x39\n\x06labels\x18\x07 \x03(\x0b\x32).google.cloud.databasecenter.v1beta.Label\x12\x35\n\x04tags\x18\x10 \x03(\x0b\x32\'.google.cloud.databasecenter.v1beta.Tag\x12\x15\n\rresource_type\x18\x08 \x01(\t\x12N\n\x11sub_resource_type\x18\t \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceType\x12I\n\x0emachine_config\x18\x0c \x01(\x0b\x32\x31.google.cloud.databasecenter.v1beta.MachineConfig\x12\x46\n\rsignal_groups\x18\n \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.SignalGroup\x12<\n\x07metrics\x18\r \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Metrics\x12O\n\x11resource_category\x18\x0e \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategory\x12\x15\n\rresource_name\x18\x0f \x01(\t\x12P\n\x0f\x62\x61\x63kupdr_config\x18\x11 \x01(\x0b\x32\x32.google.cloud.databasecenter.v1beta.BackupDRConfigB\x03\xe0\x41\x01\x12<\n\x07\x65\x64ition\x18\x12 \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.Edition\x12R\n\x10maintenance_info\x18\x13 \x01(\x0b\x32\x33.google.cloud.databasecenter.v1beta.MaintenanceInfoB\x03\xe0\x41\x01\"\xe2\x01\n\x1a\x41ggregateIssueStatsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xcb\x01\n\x1b\x41ggregateIssueStatsResponse\x12N\n\x11issue_group_stats\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.IssueGroupStats\x12\x1d\n\x15total_resources_count\x18\x02 \x01(\x05\x12#\n\x1btotal_resource_groups_count\x18\x03 \x01(\x05\x12\x18\n\x0bunreachable\x18\x04 \x03(\tB\x03\xe0\x41\x06\"\xec\x01\n\x0fIssueGroupStats\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12%\n\x1dhealthy_resource_groups_count\x18\x04 \x01(\x05\x12\x1f\n\x17healthy_resources_count\x18\x05 \x01(\x05\x12\x43\n\x0bissue_stats\x18\x06 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueStats\"\xb1\x02\n\nIssueStats\x12\x43\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12\x16\n\x0eresource_count\x18\x02 \x01(\x05\x12Q\n\rdelta_details\x18\x03 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12N\n\x0eissue_severity\x18\x04 \x01(\x0e\x32\x31.google.cloud.databasecenter.v1beta.IssueSeverityH\x01\x88\x01\x01\x42\x10\n\x0e_delta_detailsB\x11\n\x0f_issue_severity\"3\n\x05Label\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\"\xe6\x01\n\x15\x41ggregateFleetRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08group_by\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x07 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xd3\x01\n\x16\x41ggregateFleetResponse\x12\x43\n\x04rows\x18\x01 \x03(\x0b\x32\x35.google.cloud.databasecenter.v1beta.AggregateFleetRow\x12#\n\x1bresource_groups_total_count\x18\x02 \x01(\x05\x12\x1c\n\x14resource_total_count\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\x12\x18\n\x0bunreachable\x18\x05 \x03(\tB\x03\xe0\x41\x06\"\xf2\x01\n\x11\x41ggregateFleetRow\x12@\n\tdimension\x18\x01 \x03(\x0b\x32-.google.cloud.databasecenter.v1beta.Dimension\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12Q\n\rdelta_details\x18\x04 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_delta_details\"\xa1\x06\n\tDimension\x12\x13\n\tcontainer\x18\x02 \x01(\tH\x00\x12G\n\x0cproduct_type\x18\x03 \x01(\x0e\x32/.google.cloud.databasecenter.v1beta.ProductTypeH\x00\x12\x44\n\x0eproduct_engine\x18\x04 \x01(\x0e\x32*.google.cloud.databasecenter.v1beta.EngineH\x00\x12\x19\n\x0fproduct_version\x18\x05 \x01(\tH\x00\x12\x12\n\x08location\x18\x06 \x01(\tH\x00\x12\x17\n\rresource_type\x18\x07 \x01(\tH\x00\x12P\n\x11sub_resource_type\x18\x08 \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceTypeH\x00\x12Q\n\x11resource_category\x18\t \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategoryH\x00\x12M\n\x0fmanagement_type\x18\n \x01(\x0e\x32\x32.google.cloud.databasecenter.v1beta.ManagementTypeH\x00\x12>\n\x07\x65\x64ition\x18\x0b \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.EditionH\x00\x12\x11\n\x07tag_key\x18\x0c \x01(\tH\x00\x12\x13\n\ttag_value\x18\r \x01(\tH\x00\x12\x14\n\ntag_source\x18\x0e \x01(\tH\x00\x12\x17\n\rtag_inherited\x18\x0f \x01(\x08H\x00\x12\x13\n\tlabel_key\x18\x10 \x01(\tH\x00\x12\x15\n\x0blabel_value\x18\x11 \x01(\tH\x00\x12\x16\n\x0clabel_source\x18\x12 \x01(\tH\x00\x12\"\n\x18has_maintenance_schedule\x18\x13 \x01(\x08H\x00\x12(\n\x1ehas_deny_maintenance_schedules\x18\x14 \x01(\x08H\x00\x42\x0b\n\tdimension\"D\n\x0e\x42\x61\x63kupDRConfig\x12\x1d\n\x10\x62\x61\x63kupdr_managed\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x13\n\x11_backupdr_managed\"\xe7\x01\n\x12QueryIssuesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12_\n\x17signal_products_filters\x18\x03 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.SignalProductsFiltersB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\xa5\x01\n\x15SignalProductsFilters\x12H\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\x12\x42\n\x08products\x18\x02 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.ProductB\x03\xe0\x41\x01\"\x9c\x01\n\x13QueryIssuesResponse\x12R\n\x0fresource_issues\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceIssue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\x9b\x01\n\x15\x44\x61tabaseResourceIssue\x12:\n\x06signal\x18\x01 \x01(\x0b\x32*.google.cloud.databasecenter.v1beta.Signal\x12\x46\n\x08resource\x18\x02 \x01(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\"D\n\x03Tag\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x11\n\tinherited\x18\x04 \x01(\x08\"\x90\x01\n\x0fResourceDetails\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x02 \x01(\t\x12<\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb2\x01\n\x0c\x44\x65ltaDetails\x12P\n\x13increased_resources\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails\x12P\n\x13\x64\x65\x63reased_resources\x18\x02 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails*^\n\x10ResourceCategory\x12!\n\x1dRESOURCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x0b\n\x07\x43LUSTER\x10\x02\x12\x0c\n\x08\x44\x41TABASE\x10\x03*m\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45\x44ITION_ENTERPRISE\x10\x01\x12\x1b\n\x17\x45\x44ITION_ENTERPRISE_PLUS\x10\x02\x12\x14\n\x10\x45\x44ITION_STANDARD\x10\x03*\xdd\x01\n\x0fSubResourceType\x12!\n\x1dSUB_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19SUB_RESOURCE_TYPE_PRIMARY\x10\x01\x12\x1f\n\x1bSUB_RESOURCE_TYPE_SECONDARY\x10\x02\x12\"\n\x1eSUB_RESOURCE_TYPE_READ_REPLICA\x10\x03\x12&\n\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\x10\x05\x12\x1b\n\x17SUB_RESOURCE_TYPE_OTHER\x10\x04*t\n\x0eManagementType\x12\x1f\n\x1bMANAGEMENT_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bMANAGEMENT_TYPE_GCP_MANAGED\x10\x01\x12 \n\x1cMANAGEMENT_TYPE_SELF_MANAGED\x10\x02\x32\xff\x07\n\x0e\x44\x61tabaseCenter\x12\xa3\x01\n\rQueryProducts\x12\x38.google.cloud.databasecenter.v1beta.QueryProductsRequest\x1a\x39.google.cloud.databasecenter.v1beta.QueryProductsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1beta:queryProducts\x12\xa7\x01\n\x0e\x41ggregateFleet\x12\x39.google.cloud.databasecenter.v1beta.AggregateFleetRequest\x1a:.google.cloud.databasecenter.v1beta.AggregateFleetResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1beta:aggregateFleet\x12\xde\x01\n\x1bQueryDatabaseResourceGroups\x12\x46.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest\x1aG.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse\".\x82\xd3\xe4\x93\x02(\"#/v1beta:queryDatabaseResourceGroups:\x01*\x12\xbe\x01\n\x13\x41ggregateIssueStats\x12>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest\x1a?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1beta:aggregateIssueStats:\x01*\x12\xa7\x01\n\x0bQueryIssues\x12\x36.google.cloud.databasecenter.v1beta.QueryIssuesRequest\x1a\x37.google.cloud.databasecenter.v1beta.QueryIssuesResponse\"\'\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x18\"\x13/v1beta:queryIssues:\x01*\x1aQ\xca\x41\x1d\x64\x61tabasecenter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cServiceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.cloud.databasecenter.v1beta.Product", "google/cloud/databasecenter/v1beta/product.proto"], - ["google.cloud.databasecenter.v1beta.SignalTypeGroup", "google/cloud/databasecenter/v1beta/signals.proto"], - ["google.cloud.databasecenter.v1beta.MachineConfig", "google/cloud/databasecenter/v1beta/machine_config.proto"], - ["google.cloud.databasecenter.v1beta.Metrics", "google/cloud/databasecenter/v1beta/metric_data.proto"], - ["google.cloud.databasecenter.v1beta.MaintenanceInfo", "google/cloud/databasecenter/v1beta/maintenance.proto"], - ["google.type.Date", "google/type/date.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module DatabaseCenter - module V1beta - QueryProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryProductsRequest").msgclass - QueryProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryProductsResponse").msgclass - QueryDatabaseResourceGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest").msgclass - QueryDatabaseResourceGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse").msgclass - DatabaseResourceGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResourceGroup").msgclass - DatabaseResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResource").msgclass - AggregateIssueStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest").msgclass - AggregateIssueStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse").msgclass - IssueGroupStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueGroupStats").msgclass - IssueStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueStats").msgclass - Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Label").msgclass - AggregateFleetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRequest").msgclass - AggregateFleetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetResponse").msgclass - AggregateFleetRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRow").msgclass - Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Dimension").msgclass - BackupDRConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.BackupDRConfig").msgclass - QueryIssuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryIssuesRequest").msgclass - SignalProductsFilters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalProductsFilters").msgclass - QueryIssuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryIssuesResponse").msgclass - DatabaseResourceIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResourceIssue").msgclass - Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Tag").msgclass - ResourceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceDetails").msgclass - DeltaDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DeltaDetails").msgclass - ResourceCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceCategory").enummodule - Edition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Edition").enummodule - SubResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SubResourceType").enummodule - ManagementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ManagementType").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb deleted file mode 100644 index a81b30a40b54..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/cloud/databasecenter/v1beta/service.proto for package 'Google.Cloud.DatabaseCenter.V1beta' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.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/cloud/databasecenter/v1beta/service_pb' - -module Google - module Cloud - module DatabaseCenter - module V1beta - module DatabaseCenter - # DatabaseCenter contains methods to query fleet view for database resources. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.cloud.databasecenter.v1beta.DatabaseCenter' - - # QueryProducts provides a list of all possible products which can be used to - # filter database resources. - rpc :QueryProducts, ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse - # AggregateFleet provides statistics about the fleet grouped by various - # fields. - rpc :AggregateFleet, ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse - # QueryDatabaseResourceGroups returns paginated results of database groups. - rpc :QueryDatabaseResourceGroups, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse - # AggregateIssueStats provides database resource issues statistics. - rpc :AggregateIssueStats, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse - # QueryIssues provides a list of issues and recommendations - # that a user has access to and that are within the requested scope. - rpc :QueryIssues, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/signals_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/signals_pb.rb deleted file mode 100644 index 384ee1e1e3d1..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/signals_pb.rb +++ /dev/null @@ -1,78 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/databasecenter/v1beta/signals.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/cloud/databasecenter/v1beta/maintenance_pb' -require 'google/cloud/databasecenter/v1beta/operation_error_type_pb' -require 'google/cloud/databasecenter/v1beta/product_pb' -require 'google/cloud/databasecenter/v1beta/suspension_reason_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/timestamp_pb' -require 'google/protobuf/wrappers_pb' - - -descriptor_data = "\n0google/cloud/databasecenter/v1beta/signals.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x34google/cloud/databasecenter/v1beta/maintenance.proto\x1a=google/cloud/databasecenter/v1beta/operation_error_type.proto\x1a\x30google/cloud/databasecenter/v1beta/product.proto\x1a:google/cloud/databasecenter/v1beta/suspension_reason.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"w\n\x0fSignalTypeGroup\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\x0csignal_types\x18\x02 \x03(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\"\xa6\x01\n\x0cSignalFilter\x12H\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\x12L\n\rsignal_status\x18\x02 \x01(\x0e\x32\x30.google.cloud.databasecenter.v1beta.SignalStatusB\x03\xe0\x41\x01\"u\n\x0bSignalGroup\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0bissue_count\x18\x02 \x01(\x05\x12;\n\x07signals\x18\x03 \x03(\x0b\x32*.google.cloud.databasecenter.v1beta.Signal\"7\n\nIssueCount\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0bissue_count\x18\x02 \x01(\x05\"\xff\x08\n\x10\x41\x64\x64itionalDetail\x12`\n\x1bshort_backup_retention_info\x18\x02 \x01(\x0b\x32\x39.google.cloud.databasecenter.v1beta.RetentionSettingsInfoH\x00\x12L\n\x0f\x62\x61\x63kup_run_info\x18\x03 \x01(\x0b\x32\x31.google.cloud.databasecenter.v1beta.BackupRunInfoH\x00\x12?\n\x08scc_info\x18\x04 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.SCCInfoH\x00\x12U\n\x13recommendation_info\x18\x06 \x01(\x0b\x32\x36.google.cloud.databasecenter.v1beta.RecommendationInfoH\x00\x12\x65\n\x1c\x61utomated_backup_policy_info\x18\x08 \x01(\x0b\x32=.google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfoH\x00\x12^\n\x18\x64\x65letion_protection_info\x18\t \x01(\x0b\x32:.google.cloud.databasecenter.v1beta.DeletionProtectionInfoH\x00\x12^\n\x18resource_suspension_info\x18\n \x01(\x0b\x32:.google.cloud.databasecenter.v1beta.ResourceSuspensionInfoH\x00\x12Z\n\x16inefficient_query_info\x18\x0b \x01(\x0b\x32\x38.google.cloud.databasecenter.v1beta.InefficientQueryInfoH\x00\x12\x63\n\x1boutdated_minor_version_info\x18\x0c \x01(\x0b\x32<.google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfoH\x00\x12l\n\x1fmaintenance_recommendation_info\x18\r \x01(\x0b\x32\x41.google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfoH\x00\x12G\n\rsignal_source\x18\x01 \x01(\x0e\x32\x30.google.cloud.databasecenter.v1beta.SignalSource\x12\x43\n\x0bsignal_type\x18\x05 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12\x35\n\x11signal_event_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\n\x06\x64\x65tail\"\xa0\x01\n\x0bSubResource\x12\x1a\n\rresource_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x66ull_resource_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x41\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.ProductB\x03\xe0\x41\x01\x12\x11\n\tcontainer\x18\x04 \x01(\t\"\xb6\x02\n\x15RetentionSettingsInfo\x12?\n\x18quantity_based_retention\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueH\x00\x12=\n\x18\x64uration_based_retention\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x44\n\x1etimestamp_based_retention_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12J\n\x0csub_resource\x18\x04 \x01(\x0b\x32/.google.cloud.databasecenter.v1beta.SubResourceB\x03\xe0\x41\x01\x42\x0b\n\tretention\"{\n\x19\x41utomatedBackupPolicyInfo\x12J\n\x0csub_resource\x18\x01 \x01(\x0b\x32/.google.cloud.databasecenter.v1beta.SubResourceB\x03\xe0\x41\x01\x12\x12\n\nis_enabled\x18\x02 \x01(\x08\"\x89\x01\n\x16\x44\x65letionProtectionInfo\x12J\n\x0csub_resource\x18\x01 \x01(\x0b\x32/.google.cloud.databasecenter.v1beta.SubResourceB\x03\xe0\x41\x01\x12#\n\x1b\x64\x65letion_protection_enabled\x18\x02 \x01(\x08\"\x85\x01\n\x16ResourceSuspensionInfo\x12\x1a\n\x12resource_suspended\x18\x01 \x01(\x08\x12O\n\x11suspension_reason\x18\x02 \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.SuspensionReason\"\xb3\x03\n\rBackupRunInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x05state\x18\x02 \x01(\x0e\x32\x37.google.cloud.databasecenter.v1beta.BackupRunInfo.StateB\x03\xe0\x41\x03\x12\x15\n\rerror_message\x18\x03 \x01(\t\x12Y\n\x14operation_error_type\x18\x04 \x01(\x0e\x32\x36.google.cloud.databasecenter.v1beta.OperationErrorTypeB\x03\xe0\x41\x01\x12J\n\x0csub_resource\x18\x05 \x01(\x0b\x32/.google.cloud.databasecenter.v1beta.SubResourceB\x03\xe0\x41\x01\"9\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x90\x01\n\x14InefficientQueryInfo\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\x1b\n\x13sql_index_statement\x18\x03 \x01(\t\x12\x1a\n\x12storage_cost_bytes\x18\x04 \x01(\x03\x12\x1e\n\x16impacted_queries_count\x18\x05 \x01(\x03\"\x97\x01\n\x07SCCInfo\x12\x0e\n\x06signal\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12T\n\x14regulatory_standards\x18\x03 \x03(\x0b\x32\x36.google.cloud.databasecenter.v1beta.RegulatoryStandard\x12\x14\n\x0c\x65xternal_uri\x18\x04 \x01(\t\"^\n\x12RecommendationInfo\x12\x13\n\x0brecommender\x18\x01 \x01(\t\x12\x16\n\x0erecommender_id\x18\x02 \x01(\t\x12\x1b\n\x13recommender_subtype\x18\x03 \x01(\t\"7\n\x12RegulatoryStandard\x12\x10\n\x08standard\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"=\n\x18OutdatedMinorVersionInfo\x12!\n\x19recommended_minor_version\x18\x01 \x01(\t\"\x8d\x01\n\x1dMaintenanceRecommendationInfo\x12l\n\x1eresource_maintenance_schedules\x18\x01 \x03(\x0b\x32?.google.cloud.databasecenter.v1beta.ResourceMaintenanceScheduleB\x03\xe0\x41\x01\"\xea\x02\n\x06Signal\x12\x43\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12G\n\rsignal_status\x18\x02 \x01(\x0e\x32\x30.google.cloud.databasecenter.v1beta.SignalStatus\x12P\n\x12\x61\x64\x64itional_details\x18\x03 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.AdditionalDetail\x12I\n\x0eissue_severity\x18\x04 \x01(\x0e\x32\x31.google.cloud.databasecenter.v1beta.IssueSeverity\x12\x35\n\x11issue_create_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp*\x9d\x01\n\x0cSignalStatus\x12\x1d\n\x19SIGNAL_STATUS_UNSPECIFIED\x10\x00\x12 \n\x1cSIGNAL_STATUS_NOT_APPLICABLE\x10\x01\x12\x14\n\x10SIGNAL_STATUS_OK\x10\x02\x12\x17\n\x13SIGNAL_STATUS_ISSUE\x10\x03\x12\x1d\n\x19SIGNAL_STATUS_NOT_ENABLED\x10\x04*\xbe\x01\n\x0cSignalSource\x12\x1d\n\x19SIGNAL_SOURCE_UNSPECIFIED\x10\x00\x12#\n\x1fSIGNAL_SOURCE_RESOURCE_METADATA\x10\x01\x12#\n\x1fSIGNAL_SOURCE_SECURITY_FINDINGS\x10\x02\x12\x1d\n\x19SIGNAL_SOURCE_RECOMMENDER\x10\x03\x12&\n\"SIGNAL_SOURCE_MODERN_OBSERVABILITY\x10\x04*\xb7\x01\n\rIssueSeverity\x12\x1e\n\x1aISSUE_SEVERITY_UNSPECIFIED\x10\x00\x12\x16\n\x12ISSUE_SEVERITY_LOW\x10\x01\x12\x19\n\x15ISSUE_SEVERITY_MEDIUM\x10\x02\x12\x17\n\x13ISSUE_SEVERITY_HIGH\x10\x03\x12\x1b\n\x17ISSUE_SEVERITY_CRITICAL\x10\x04\x12\x1d\n\x19ISSUE_SEVERITY_IRRELEVANT\x10\x05*\xdf \n\nSignalType\x12\x1b\n\x17SIGNAL_TYPE_UNSPECIFIED\x10\x00\x12+\n\'SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED\x10\x01\x12#\n\x1fSIGNAL_TYPE_GROUP_MULTIREGIONAL\x10\x02\x12*\n&SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY\x10\x04\x12&\n\"SIGNAL_TYPE_SHORT_BACKUP_RETENTION\x10\x05\x12\"\n\x1eSIGNAL_TYPE_LAST_BACKUP_FAILED\x10\x06\x12\x1f\n\x1bSIGNAL_TYPE_LAST_BACKUP_OLD\x10\x07\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0\x10\x08\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3\x10\t\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2\x10\n\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1\x10\x0b\x12/\n+SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0\x10\x0c\x12*\n&SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0\x10L\x12$\n SIGNAL_TYPE_VIOLATES_NIST_800_53\x10\r\x12\'\n#SIGNAL_TYPE_VIOLATES_NIST_800_53_R5\x10\x45\x12:\n6SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0\x10H\x12\"\n\x1eSIGNAL_TYPE_VIOLATES_ISO_27001\x10\x0e\x12(\n$SIGNAL_TYPE_VIOLATES_ISO_27001_V2022\x10\x46\x12\'\n#SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1\x10\x0f\x12%\n!SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0\x10G\x12\x31\n-SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4\x10I\x12\x1e\n\x1aSIGNAL_TYPE_VIOLATES_HIPAA\x10J\x12#\n\x1fSIGNAL_TYPE_VIOLATES_SOC2_V2017\x10K\x12\x36\n2SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING\x10\x10\x12*\n&SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED\x10\x11\x12%\n!SIGNAL_TYPE_VERBOSE_ERROR_LOGGING\x10\x12\x12+\n\'SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED\x10\x13\x12#\n\x1fSIGNAL_TYPE_LOGGING_MOST_ERRORS\x10\x14\x12,\n(SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS\x10\x15\x12%\n!SIGNAL_TYPE_MINIMAL_ERROR_LOGGING\x10\x16\x12\"\n\x1eSIGNAL_TYPE_QUERY_STATS_LOGGED\x10\x17\x12\x34\n0SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME\x10\x18\x12\x31\n-SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS\x10\x19\x12\x32\n.SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS\x10\x1a\x12/\n+SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS\x10\x1b\x12#\n\x1fSIGNAL_TYPE_LOGGING_QUERY_STATS\x10\x1c\x12+\n\'SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES\x10\x1d\x12-\n)SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED\x10\x1e\x12\'\n#SIGNAL_TYPE_USER_OPTIONS_CONFIGURED\x10\x1f\x12(\n$SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS\x10 \x12\'\n#SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS\x10!\x12 \n\x1cSIGNAL_TYPE_NO_ROOT_PASSWORD\x10\"\x12\"\n\x1eSIGNAL_TYPE_WEAK_ROOT_PASSWORD\x10#\x12\x33\n/SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED\x10$\x12\x32\n.SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED\x10%\x12+\n\'SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS\x10\'\x12+\n\'SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS\x10(\x12.\n*SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED\x10)\x12)\n%SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED\x10*\x12\x30\n,SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO\x10+\x12(\n$SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS\x10,\x12&\n\"SIGNAL_TYPE_DATABASE_NAMES_EXPOSED\x10-\x12/\n+SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED\x10.\x12!\n\x1dSIGNAL_TYPE_PUBLIC_IP_ENABLED\x10/\x12\x14\n\x10SIGNAL_TYPE_IDLE\x10\x30\x12\x1f\n\x1bSIGNAL_TYPE_OVERPROVISIONED\x10\x31\x12*\n&SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES\x10\x32\x12%\n!SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES\x10\x33\x12/\n+SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION\x10\x34\x12 \n\x1cSIGNAL_TYPE_UNDERPROVISIONED\x10\x35\x12\x1b\n\x17SIGNAL_TYPE_OUT_OF_DISK\x10\x36\x12.\n*SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY\x10\x37\x12*\n&SIGNAL_TYPE_DATABASE_AUDITING_DISABLED\x10\x38\x12,\n(SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS\x10\x39\x12\x31\n-SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP\x10:\x12\x1b\n\x17SIGNAL_TYPE_QUOTA_LIMIT\x10;\x12\"\n\x1eSIGNAL_TYPE_NO_PASSWORD_POLICY\x10<\x12.\n*SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT\x10=\x12-\n)SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT\x10>\x12-\n)SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT\x10?\x12*\n&SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES\x10@\x12\x30\n,SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES\x10\x41\x12,\n(SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS\x10\x42\x12<\n8SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET\x10\x43\x12:\n6SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET\x10\x44\x12,\n(SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM\x10M\x12\'\n#SIGNAL_TYPE_NO_USER_PASSWORD_POLICY\x10N\x12\x18\n\x14SIGNAL_TYPE_HOT_NODE\x10O\x12&\n\"SIGNAL_TYPE_NO_DELETION_PROTECTION\x10P\x12)\n%SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY\x10Q\x12\"\n\x1eSIGNAL_TYPE_RESOURCE_SUSPENDED\x10R\x12\"\n\x1eSIGNAL_TYPE_EXPENSIVE_COMMANDS\x10S\x12\x30\n,SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED\x10T\x12!\n\x1dSIGNAL_TYPE_INEFFICIENT_QUERY\x10U\x12\'\n#SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD\x10V\x12\x1c\n\x18SIGNAL_TYPE_MEMORY_LIMIT\x10W\x12!\n\x1dSIGNAL_TYPE_MAX_SERVER_MEMORY\x10X\x12\x1a\n\x16SIGNAL_TYPE_LARGE_ROWS\x10Y\x12#\n\x1fSIGNAL_TYPE_HIGH_WRITE_PRESSURE\x10Z\x12\"\n\x1eSIGNAL_TYPE_HIGH_READ_PRESSURE\x10[\x12\x33\n/SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED\x10\\\x12\x31\n-SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED\x10]\x12&\n\"SIGNAL_TYPE_OUTDATED_MINOR_VERSION\x10^\x12$\n SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED\x10_\x12\x1f\n\x1bSIGNAL_TYPE_REPLICATION_LAG\x10\x61\x12\x1f\n\x1bSIGNAL_TYPE_OUTDATED_CLIENT\x10\x63\x12\"\n\x1eSIGNAL_TYPE_DATABOOST_DISABLED\x10\x64\x12\x30\n,SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES\x10\x65\x12 \n\x1cSIGNAL_TYPE_EXTENDED_SUPPORT\x10\x66\x42\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cSignalsProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], - ["google.cloud.databasecenter.v1beta.Product", "google/cloud/databasecenter/v1beta/product.proto"], - ["google.protobuf.Int32Value", "google/protobuf/wrappers.proto"], - ["google.protobuf.Duration", "google/protobuf/duration.proto"], - ["google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule", "google/cloud/databasecenter/v1beta/maintenance.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module DatabaseCenter - module V1beta - SignalTypeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalTypeGroup").msgclass - SignalFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalFilter").msgclass - SignalGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalGroup").msgclass - IssueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueCount").msgclass - AdditionalDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AdditionalDetail").msgclass - SubResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SubResource").msgclass - RetentionSettingsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.RetentionSettingsInfo").msgclass - AutomatedBackupPolicyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo").msgclass - DeletionProtectionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DeletionProtectionInfo").msgclass - ResourceSuspensionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceSuspensionInfo").msgclass - BackupRunInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.BackupRunInfo").msgclass - BackupRunInfo::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.BackupRunInfo.State").enummodule - InefficientQueryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.InefficientQueryInfo").msgclass - SCCInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SCCInfo").msgclass - RecommendationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.RecommendationInfo").msgclass - RegulatoryStandard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.RegulatoryStandard").msgclass - OutdatedMinorVersionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo").msgclass - MaintenanceRecommendationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo").msgclass - Signal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Signal").msgclass - SignalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalStatus").enummodule - SignalSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalSource").enummodule - IssueSeverity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueSeverity").enummodule - SignalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SignalType").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb b/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb deleted file mode 100644 index 292bff775ad7..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/databasecenter/v1beta/suspension_reason.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/cloud/databasecenter/v1beta/suspension_reason.proto\x12\"google.cloud.databasecenter.v1beta*\xe6\x01\n\x10SuspensionReason\x12!\n\x1dSUSPENSION_REASON_UNSPECIFIED\x10\x00\x12\x16\n\x12WIPEOUT_HIDE_EVENT\x10\x01\x12\x17\n\x13WIPEOUT_PURGE_EVENT\x10\x02\x12\x14\n\x10\x42ILLING_DISABLED\x10\x03\x12\x13\n\x0f\x41\x42USER_DETECTED\x10\x04\x12\x1f\n\x1b\x45NCRYPTION_KEY_INACCESSIBLE\x10\x05\x12\x32\n.REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE\x10\x06\x42\x83\x02\n&com.google.cloud.databasecenter.v1betaB\x15SuspensionReasonProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module DatabaseCenter - module V1beta - SuspensionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SuspensionReason").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/README.md b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/README.md deleted file mode 100644 index 2e48b73b5298..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Database Center V1BETA Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/client.rb deleted file mode 100644 index d59ba51a5612..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/client.rb +++ /dev/null @@ -1,473 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb deleted file mode 100644 index 0c9e45906981..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb +++ /dev/null @@ -1,42 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - # MachineConfig describes the configuration of a machine specific to a Database - # Resource. - # @!attribute [rw] memory_size_bytes - # @return [::Integer] - # Memory size in bytes. - # @!attribute [rw] shard_count - # @return [::Integer] - # Optional. The number of Shards (if applicable). - # @!attribute [rw] vcpu_count - # @return [::Float] - # Optional. The number of vCPUs (if applicable). - class MachineConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb deleted file mode 100644 index d8598a7a6ed1..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb +++ /dev/null @@ -1,105 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - # Maintenance window for the database resource. It specifies preferred time - # and day of the week and phase in some cases, when the maintenance can start. - # @!attribute [rw] start_time - # @return [::Google::Type::TimeOfDay] - # Optional. Preferred time to start the maintenance operation on the - # specified day. - # @!attribute [rw] day - # @return [::Google::Type::DayOfWeek] - # Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - # etc. - # @!attribute [rw] phase - # @return [::Google::Cloud::DatabaseCenter::V1beta::Phase] - # Optional. Phase of the maintenance window. This is to capture order of - # maintenance. For example, for Cloud SQL resources, this can be used to - # capture if the maintenance window is in Week1, Week2, Week5, etc. Non - # production resources are usually part of early phase. - # For more details, refer to Cloud SQL resources - - # https://cloud.google.com/sql/docs/mysql/maintenance - class ResourceMaintenanceSchedule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Deny maintenance period for the database resource. It specifies the time - # range during which the maintenance cannot start. This is configured by the - # customer. - # @!attribute [rw] start_date - # @return [::Google::Type::Date] - # Optional. The start date of the deny maintenance period. - # @!attribute [rw] end_date - # @return [::Google::Type::Date] - # Optional. Deny period end date. - # @!attribute [rw] time - # @return [::Google::Type::TimeOfDay] - # Optional. Time in UTC when the deny period starts on start_date and ends on - # end_date. - class ResourceMaintenanceDenySchedule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # MaintenanceInfo to capture the maintenance details of database resource. - # @!attribute [rw] maintenance_schedule - # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceMaintenanceSchedule] - # Optional. Maintenance window for the database resource. - # @!attribute [rw] deny_maintenance_schedules - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceMaintenanceDenySchedule>] - # Optional. List of Deny maintenance period for the database resource. - # @!attribute [r] maintenance_version - # @return [::String] - # Output only. Current Maintenance version of the database resource. Example: - # "MYSQL_8_0_41.R20250531.01_15" - class MaintenanceInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Phase/Week of the maintenance window. This is to capture order of - # maintenance. For example, for Cloud SQL resources - - # https://cloud.google.com/sql/docs/mysql/maintenance. - # This enum can be extended to support DB Center specific phases for - # recommendation plan generation. - module Phase - # Phase is unspecified. - PHASE_UNSPECIFIED = 0 - - # Week 1. - PHASE_WEEK1 = 1 - - # Week 2. - PHASE_WEEK2 = 2 - - # Week 5. - PHASE_WEEK5 = 3 - - # Any phase. - PHASE_ANY = 4 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb deleted file mode 100644 index 638a50d8f586..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - # Metrics represents the metrics for a database resource. - # @!attribute [rw] p99_cpu_utilization - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # P99 CPU utilization observed for the resource. The value is a - # fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - # @!attribute [rw] p95_cpu_utilization - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # P95 CPU utilization observed for the resource. The value is a - # fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - # @!attribute [rw] current_storage_used_bytes - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # Current storage used by the resource in bytes. - # @!attribute [rw] peak_storage_utilization - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # Peak storage utilization observed for the resource. The value is a - # fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - # @!attribute [rw] peak_memory_utilization - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # Peak memory utilization observed for the resource. The value is a - # fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - # @!attribute [rw] peak_number_connections - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # Peak number of connections observed for the resource. The value is a - # positive integer. - # @!attribute [rw] node_count - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # Number of nodes in instance for spanner or bigtable. - # @!attribute [rw] processing_unit_count - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # Number of processing units in spanner. - # @!attribute [rw] current_memory_used_bytes - # @return [::Google::Cloud::DatabaseCenter::V1beta::MetricData] - # Current memory used by the resource in bytes. - class Metrics - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # MetricData represents the metric data for a database resource. - # @!attribute [rw] value - # @return [::Google::Cloud::DatabaseCenter::V1beta::TypedValue] - # The value associated with the metric. - # @!attribute [rw] observation_time - # @return [::Google::Protobuf::Timestamp] - # The time the metric was observed in the metric source service. - class MetricData - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # TypedValue represents the value of the metric based on data type. - # @!attribute [rw] double_value - # @return [::Float] - # The value of the metric as double. - # - # Note: The following fields are mutually exclusive: `double_value`, `int64_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] int64_value - # @return [::Integer] - # The value of the metric as int. - # - # Note: The following fields are mutually exclusive: `int64_value`, `double_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class TypedValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb deleted file mode 100644 index e23685625cd9..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - # OperationErrorType is used to expose specific error type which can happen in - # database resource while performing an operation. For example, an error can - # happen while database resource being backed up. - module OperationErrorType - # UNSPECIFIED means operation error type is not known or available. - OPERATION_ERROR_TYPE_UNSPECIFIED = 0 - - # Key destroyed, expired, not found, unreachable or permission denied. - KMS_KEY_ERROR = 1 - - # Database is not accessible. - DATABASE_ERROR = 2 - - # The zone or region does not have sufficient resources to handle the request - # at the moment. - STOCKOUT_ERROR = 3 - - # User initiated cancellation. - CANCELLATION_ERROR = 4 - - # SQL server specific error. - SQLSERVER_ERROR = 5 - - # Any other internal error. - INTERNAL_ERROR = 6 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/product.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/product.rb deleted file mode 100644 index a597bc2316eb..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/product.rb +++ /dev/null @@ -1,132 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - # Product specification for databasecenter resources. - # @!attribute [rw] type - # @return [::Google::Cloud::DatabaseCenter::V1beta::ProductType] - # Optional. Type of specific database product. It could be CloudSQL, AlloyDB - # etc.. - # @!attribute [rw] engine - # @return [::Google::Cloud::DatabaseCenter::V1beta::Engine] - # Optional. The specific engine that the underlying database is running. - # @!attribute [rw] version - # @return [::String] - # Optional. Version of the underlying database engine. Example values: For - # MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - # etc. - # @!attribute [rw] minor_version - # @return [::String] - # Optional. Minor version of the underlying database engine. Example values: - # For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - # "14.4", "15.5" etc. - class Product - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Engine refers to underlying database binary running in an instance. - module Engine - # UNSPECIFIED means engine type is not known or available. - ENGINE_UNSPECIFIED = 0 - - # MySQL binary running as an engine in the database instance. - ENGINE_MYSQL = 1 - - # Postgres binary running as engine in database instance. - ENGINE_POSTGRES = 2 - - # SQLServer binary running as engine in database instance. - ENGINE_SQL_SERVER = 3 - - # Native database binary running as engine in instance. - ENGINE_NATIVE = 4 - - # Memorystore with Redis dialect. - ENGINE_MEMORYSTORE_FOR_REDIS = 8 - - # Memorystore with Redis cluster dialect. - ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER = 9 - - # Firestore with native mode. - ENGINE_FIRESTORE_WITH_NATIVE_MODE = 10 - - # Firestore with datastore mode. - ENGINE_FIRESTORE_WITH_DATASTORE_MODE = 11 - - # Oracle Exadata engine. - ENGINE_EXADATA_ORACLE = 12 - - # Oracle Autonomous DB Serverless engine. - ENGINE_ADB_SERVERLESS_ORACLE = 13 - - # Firestore with MongoDB compatibility. - ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE = 14 - - # Other refers to rest of other database engine. This is to be when engine is - # known, but it is not present in this enum. - ENGINE_OTHER = 6 - end - - # ProductType is used to identify a database service offering either in a cloud - # provider or on-premise. This enum needs to be updated whenever we introduce - # a new ProductType. - module ProductType - # PRODUCT_TYPE_UNSPECIFIED means product type is not known or that the user - # didn't provide this field in the request. - PRODUCT_TYPE_UNSPECIFIED = 0 - - # Cloud SQL product area in GCP - PRODUCT_TYPE_CLOUD_SQL = 1 - - # AlloyDB product area in GCP - PRODUCT_TYPE_ALLOYDB = 2 - - # Spanner product area in GCP - PRODUCT_TYPE_SPANNER = 3 - - # Bigtable product area in GCP - PRODUCT_TYPE_BIGTABLE = 6 - - # Memorystore product area in GCP - PRODUCT_TYPE_MEMORYSTORE = 7 - - # Firestore product area in GCP - PRODUCT_TYPE_FIRESTORE = 8 - - # Compute Engine self managed databases - PRODUCT_TYPE_COMPUTE_ENGINE = 9 - - # Oracle product area in GCP - PRODUCT_TYPE_ORACLE_ON_GCP = 10 - - # BigQuery product area in GCP - PRODUCT_TYPE_BIGQUERY = 11 - - # Other refers to rest of other product type. This is to be when product type - # is known, but it is not present in this enum. - PRODUCT_TYPE_OTHER = 5 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb deleted file mode 100644 index 1ea06c4fe1ed..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/service.rb +++ /dev/null @@ -1,920 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - # QueryProductsRequest is the request to get a list of products. - # @!attribute [rw] parent - # @return [::String] - # Required. Parent can be a project, a folder, or an organization. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID}/locations/\\{LOCATION} - # (e.g.,"projects/foo-bar/locations/us-central1") - # * projects/\\{PROJECT_NUMBER}/locations/\\{LOCATION} - # (e.g.,"projects/12345678/locations/us-central1") - # * folders/\\{FOLDER_NUMBER}/locations/\\{LOCATION} - # (e.g.,"folders/1234567/locations/us-central1") - # * organizations/\\{ORGANIZATION_NUMBER}/locations/\\{LOCATION} - # (e.g.,"organizations/123456/locations/us-central1") - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. If unspecified, at most 50 products will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListLocations` call. - # Provide this to retrieve the subsequent page. - # All other parameters except page size should match the call that provided - # the page page token. - class QueryProductsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # QueryProductsResponse represents the response containing a list of products. - # @!attribute [rw] products - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Product>] - # List of database products returned. - # @!attribute [rw] next_page_token - # @return [::String] - # A token that can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. List of unreachable regions from where data could not be - # retrieved. - class QueryProductsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # QueryDatabaseResourceGroupsRequest is the request to get a list of database - # groups. - # @!attribute [rw] parent - # @return [::String] - # Required. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @!attribute [rw] filter - # @return [::String] - # Optional. The expression to filter resources. - # - # The following fields are filterable: - # * full_resource_name - # * resource_type - # * container - # * product.type - # * product.engine - # * product.version - # * location - # * labels - # * resource_category - # * machine_config.cpu_count - # * machine_config.memory_size_bytes - # * machine_config.shard_count - # * resource_name - # * tags - # * backupdr_config.backupdr_managed - # * edition - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # Example: `full_resource_name=~"test"` - # Example: `full_resource_name=~"test.*master"` - # @!attribute [rw] signal_type_groups - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup>] - # Optional. Groups of signal types that are requested. - # @!attribute [rw] signal_filters - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalFilter>] - # Optional. Filters based on signals. The list will be ORed together and then - # ANDed with the `filters` field above. - # @!attribute [rw] order_by - # @return [::String] - # Optional. A field that specifies the sort order of the results. - # - # The following fields are sortable: - # * full_resource_name - # * product.type - # * product.engine - # * product.version - # * container - # * issue_count - # * machine_config.vcpu_count - # * machine_config.memory_size_bytes - # * machine_config.shard_count - # * resource_name - # * issue_severity - # * signal_type - # * location - # * resource_type - # * instance_type - # * edition - # * metrics.p99_cpu_utilization - # * metrics.p95_cpu_utilization - # * metrics.current_storage_used_bytes - # * metrics.node_count - # * metrics.processing_unit_count - # * metrics.current_memory_used_bytes - # * metrics.peak_storage_utilization - # * metrics.peak_number_connections - # * metrics.peak_memory_utilization - # - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It only supports a single field at a time. - # - # For example: - # `order_by = "full_resource_name"` sorts response in ascending order - # `order_by = "full_resource_name DESC"` sorts response in descending order - # `order_by = "issue_count DESC"` sorts response in descending order of - # count of all issues associated with a resource. - # - # More explicitly, `order_by = "full_resource_name, product"` is not - # supported. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. If unspecified, at most 50 resource groups will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - # subsequent page. All parameters except page_token should match the - # parameters in the call that provided the page page token. - class QueryDatabaseResourceGroupsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # QueryDatabaseResourceGroupsResponse represents the response message - # containing a list of resource groups. - # @!attribute [rw] resource_groups - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup>] - # List of database resource groups that pass the filter. - # @!attribute [rw] next_page_token - # @return [::String] - # A token that can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. List of unreachable regions from where data could not be - # retrieved. - class QueryDatabaseResourceGroupsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # DatabaseResourceGroup represents all resources that serve a common data set. - # It is considered notionally as a single entity, powered by any number of - # units of compute and storage. - # @!attribute [rw] root_resources - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource>] - # A database resource that serves as a root of the group of database - # resources. It is repeated just in case we have the concept of multiple - # roots in the future, however, it will only be populated with a single value - # for now. - # @!attribute [rw] signal_groups - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::IssueCount>] - # The filtered signal groups and the count of issues associated with the - # resources that have been filtered in. - class DatabaseResourceGroup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # DatabaseResource represents every individually configured database unit - # representing compute and/or storage. - # NextId: 20 - # @!attribute [rw] child_resources - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource>] - # List of children associated with a database group. - # @!attribute [rw] full_resource_name - # @return [::String] - # The full resource name, based on CAIS resource name format - # https://cloud.google.com/asset-inventory/docs/resource-name-format - # - # Example: - # - # `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - # `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - # `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - # `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - # `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - # @!attribute [rw] container - # @return [::String] - # Specifies where the resource is created. For GCP, it is the full name of - # the project. - # @!attribute [rw] product - # @return [::Google::Cloud::DatabaseCenter::V1beta::Product] - # The product this resource represents. - # @!attribute [rw] location - # @return [::String] - # The location of the resources. It supports returning only regional - # locations in GCP. These are of the form: "us-central1", "us-east1", etc. - # See https://cloud.google.com/about/locations for a list of such regions. - # @!attribute [rw] labels - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Label>] - # Labels applied on the resource. The requirements for labels assigned to - # Google Cloud resources may be found at - # https://cloud.google.com/resource-manager/docs/labels-overview#requirements - # @!attribute [rw] tags - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Tag>] - # Tags applied on the resource. The requirements for tags assigned to - # Google Cloud resources may be found at - # https://cloud.google.com/resource-manager/docs/tags/tags-overview - # @!attribute [rw] resource_type - # @return [::String] - # The type of resource defined according to the pattern: - # \\{Service Name}/\\{Type}. Ex: - # sqladmin.googleapis.com/Instance - # alloydb.googleapis.com/Cluster - # alloydb.googleapis.com/Instance - # spanner.googleapis.com/Instance - # @!attribute [rw] sub_resource_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResourceType] - # Subtype of the resource specified at creation time. - # @!attribute [rw] machine_config - # @return [::Google::Cloud::DatabaseCenter::V1beta::MachineConfig] - # Machine configuration like CPU, memory, etc for the resource. - # @!attribute [rw] signal_groups - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalGroup>] - # The list of signal groups and count of issues related to the resource. - # Only those signals which have been requested would be included. - # @!attribute [rw] metrics - # @return [::Google::Cloud::DatabaseCenter::V1beta::Metrics] - # Observable metrics for the resource e.g. CPU utilization, memory - # utilization, etc. - # @!attribute [rw] resource_category - # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory] - # The category of the resource. - # @!attribute [rw] resource_name - # @return [::String] - # The name of the resource(The last part of the full resource name). - # Example: - # For full resource name - - # `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - # resource name - `mysql-1` - # For full resource name - - # `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - # resource name - `postgres-1` - # Note: In some cases, there might be more than one resource with the same - # resource name. - # @!attribute [rw] backupdr_config - # @return [::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig] - # Optional. Backup and disaster recovery details for the resource. - # @!attribute [rw] edition - # @return [::Google::Cloud::DatabaseCenter::V1beta::Edition] - # The edition of the resource. - # @!attribute [rw] maintenance_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo] - # Optional. The maintenance information of the resource. - class DatabaseResource - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # AggregateIssueStatsRequest represents the input to the AggregateIssueStats - # method. - # @!attribute [rw] parent - # @return [::String] - # Required. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @!attribute [rw] filter - # @return [::String] - # Optional. The expression to filter resources. - # - # Supported fields are: `full_resource_name`, `resource_type`, `container`, - # `product.type`, `product.engine`, `product.version`, `location`, - # `labels`, `issues`, fields of availability_info, - # data_protection_info,'resource_name', etc. - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # @!attribute [rw] signal_type_groups - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup>] - # Optional. Lists of signal types that are issues. - # @!attribute [rw] baseline_date - # @return [::Google::Type::Date] - # Optional. The baseline date w.r.t. which the delta counts are calculated. - # If not set, delta counts are not included in the response and the response - # indicates the current state of the fleet. - class AggregateIssueStatsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message containing one of more group of relevant health issues - # for database resources. - # @!attribute [rw] issue_group_stats - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::IssueGroupStats>] - # List of issue group stats where each group contains stats for resources - # having a particular combination of relevant issues. - # @!attribute [rw] total_resources_count - # @return [::Integer] - # Total count of the resources filtered in based on the user given filter. - # @!attribute [rw] total_resource_groups_count - # @return [::Integer] - # Total count of the resource filtered in based on the user given filter. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. List of unreachable regions from where data could not be - # retrieved. - class AggregateIssueStatsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # IssueGroupStats refers to stats for a particulare combination of relevant - # health issues of database resources. - # @!attribute [rw] display_name - # @return [::String] - # Database resource level health card name. This will corresponds to one of - # the requested input group names. - # @!attribute [rw] resource_groups_count - # @return [::Integer] - # Total count of the groups of resources returned by the filter that - # also have one or more resources for which any of the specified issues - # are applicable. - # @!attribute [rw] resources_count - # @return [::Integer] - # Total count of resources returned by the filter for which any of the - # specified issues are applicable. - # @!attribute [rw] healthy_resource_groups_count - # @return [::Integer] - # The number of resource groups from the total groups as defined above - # that are healthy with respect to all of the specified issues. - # @!attribute [rw] healthy_resources_count - # @return [::Integer] - # The number of resources from the total defined above in field - # total_resources_count that are healthy with respect to all of the specified - # issues. - # @!attribute [rw] issue_stats - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::IssueStats>] - # List of issues stats containing count of resources having particular issue - # category. - class IssueGroupStats - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # IssueStats holds stats for a particular signal category. - # @!attribute [rw] signal_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] - # Type of signal which is an issue. - # @!attribute [rw] resource_count - # @return [::Integer] - # Number of resources having issues of a given type. - # @!attribute [rw] delta_details - # @return [::Google::Cloud::DatabaseCenter::V1beta::DeltaDetails] - # Optional. Delta counts and details of resources for which issue was raised - # or fixed. - # @!attribute [rw] issue_severity - # @return [::Google::Cloud::DatabaseCenter::V1beta::IssueSeverity] - # Severity of the issue. - class IssueStats - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Label is a key value pair applied to a resource. - # @!attribute [rw] key - # @return [::String] - # The key part of the label. - # @!attribute [rw] value - # @return [::String] - # The value part of the label. - # @!attribute [rw] source - # @return [::String] - # The source of the Label. Source is empty if the label is directly attached - # to the resource and not inherited. - class Label - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message to aggregate fleet which are grouped by a field. - # @!attribute [rw] parent - # @return [::String] - # Required. Parent can be a project, a folder, or an organization. The search - # is limited to the resources within the `scope`. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., - # "organizations/123456") - # @!attribute [rw] filter - # @return [::String] - # Optional. The expression to filter resources. - # - # Supported fields are: `full_resource_name`, `resource_type`, `container`, - # `product.type`, `product.engine`, `product.version`, `location`, - # `labels`, `issues`, fields of availability_info, data_protection_info, - # 'resource_name', etc. - # - # The expression is a list of zero or more restrictions combined via logical - # operators `AND` and `OR`. When `AND` and `OR` are both used in the - # expression, parentheses must be appropriately used to group the - # combinations. - # - # Example: `location="us-east1"` - # Example: `container="projects/123" OR container="projects/456"` - # Example: `(container="projects/123" OR - # container="projects/456") AND location="us-east1"` - # @!attribute [rw] group_by - # @return [::String] - # Optional. A field that statistics are grouped by. - # Valid values are any combination of the following: - # * container - # * product.type - # * product.engine - # * product.version - # * location - # * sub_resource_type - # * management_type - # * tag.key - # * tag.value - # * tag.source - # * tag.inherited - # * label.key - # * label.value - # * label.source - # * has_maintenance_schedule - # * has_deny_maintenance_schedules - # Comma separated list. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Valid values to order by are: - # * resource_groups_count - # * resources_count - # * and all fields supported by `group_by` - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It supports ordering using multiple fields. - # For example: - # `order_by = "resource_groups_count"` sorts response in ascending order - # `order_by = "resource_groups_count DESC"` sorts response in descending - # order - # `order_by = "product.type, product.version DESC, location"` orders by type - # in ascending order, version in descending order and location in ascending - # order - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. If unspecified, at most 50 items will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `AggregateFleet` call. - # Provide this to retrieve the subsequent page. - # All other parameters should match the parameters in the call that provided - # the page token except for page_size which can be different. - # @!attribute [rw] baseline_date - # @return [::Google::Type::Date] - # Optional. The baseline date w.r.t. which the delta counts are calculated. - # If not set, delta counts are not included in the response and the response - # indicates the current state of the fleet. - class AggregateFleetRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message to aggregate a fleet by some group by - # fields. - # @!attribute [rw] rows - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow>] - # Represents a row grouped by the fields in the input. - # @!attribute [rw] resource_groups_total_count - # @return [::Integer] - # Count of all resource groups in the fleet. This includes counts from all - # pages. - # @!attribute [rw] resource_total_count - # @return [::Integer] - # Count of all resources in the fleet. This includes counts from all pages. - # @!attribute [rw] next_page_token - # @return [::String] - # A token that can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. List of unreachable regions from where data could not be - # retrieved. - class AggregateFleetResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Individual row grouped by a particular dimension. - # @!attribute [rw] dimension - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Dimension>] - # Group by dimension. - # @!attribute [rw] resource_groups_count - # @return [::Integer] - # Number of resource groups that have a particular dimension. - # @!attribute [rw] resources_count - # @return [::Integer] - # Number of resources that have a particular dimension. - # @!attribute [rw] delta_details - # @return [::Google::Cloud::DatabaseCenter::V1beta::DeltaDetails] - # Optional. Delta counts and details of resources which were added to/deleted - # from fleet. - class AggregateFleetRow - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Dimension used to aggregate the fleet. - # @!attribute [rw] container - # @return [::String] - # Specifies where the resource is created. For GCP, it is the full name of - # the project. - # - # Note: The following fields are mutually exclusive: `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] product_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::ProductType] - # Type to identify a product - # - # Note: The following fields are mutually exclusive: `product_type`, `container`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] product_engine - # @return [::Google::Cloud::DatabaseCenter::V1beta::Engine] - # Engine refers to underlying database binary running in an instance. - # - # Note: The following fields are mutually exclusive: `product_engine`, `container`, `product_type`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] product_version - # @return [::String] - # Version of the underlying database engine - # - # Note: The following fields are mutually exclusive: `product_version`, `container`, `product_type`, `product_engine`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] location - # @return [::String] - # The location of the resources. It supports returning only regional - # locations in GCP. - # - # Note: The following fields are mutually exclusive: `location`, `container`, `product_type`, `product_engine`, `product_version`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] resource_type - # @return [::String] - # The type of resource defined according to the pattern: - # \\{Service Name}/\\{Type}. Ex: - # sqladmin.googleapis.com/Instance - # alloydb.googleapis.com/Cluster - # alloydb.googleapis.com/Instance - # spanner.googleapis.com/Instance - # - # Note: The following fields are mutually exclusive: `resource_type`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] sub_resource_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResourceType] - # Subtype of the resource specified at creation time. - # - # Note: The following fields are mutually exclusive: `sub_resource_type`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] resource_category - # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory] - # The category of the resource. - # - # Note: The following fields are mutually exclusive: `resource_category`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] management_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::ManagementType] - # The management type of the resource. - # - # Note: The following fields are mutually exclusive: `management_type`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] edition - # @return [::Google::Cloud::DatabaseCenter::V1beta::Edition] - # The edition of the resource. - # - # Note: The following fields are mutually exclusive: `edition`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] tag_key - # @return [::String] - # Tag key of the resource. - # - # Note: The following fields are mutually exclusive: `tag_key`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] tag_value - # @return [::String] - # Tag value of the resource. - # - # Note: The following fields are mutually exclusive: `tag_value`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] tag_source - # @return [::String] - # Tag source of the resource. - # - # Note: The following fields are mutually exclusive: `tag_source`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] tag_inherited - # @return [::Boolean] - # Tag inheritance value of the resource. - # - # Note: The following fields are mutually exclusive: `tag_inherited`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] label_key - # @return [::String] - # Label key of the resource. - # - # Note: The following fields are mutually exclusive: `label_key`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_value`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] label_value - # @return [::String] - # Label value of the resource. - # - # Note: The following fields are mutually exclusive: `label_value`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_source`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] label_source - # @return [::String] - # Label source of the resource. - # - # Note: The following fields are mutually exclusive: `label_source`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `has_maintenance_schedule`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] has_maintenance_schedule - # @return [::Boolean] - # Whether the resource has a maintenance schedule. - # - # Note: The following fields are mutually exclusive: `has_maintenance_schedule`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_deny_maintenance_schedules`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] has_deny_maintenance_schedules - # @return [::Boolean] - # Whether the resource has deny maintenance schedules. - # - # Note: The following fields are mutually exclusive: `has_deny_maintenance_schedules`, `container`, `product_type`, `product_engine`, `product_version`, `location`, `resource_type`, `sub_resource_type`, `resource_category`, `management_type`, `edition`, `tag_key`, `tag_value`, `tag_source`, `tag_inherited`, `label_key`, `label_value`, `label_source`, `has_maintenance_schedule`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Dimension - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # BackupDRConfig to capture the backup and disaster recovery details of - # database resource. - # @!attribute [rw] backupdr_managed - # @return [::Boolean] - # Indicates if the resource is managed by BackupDR. - class BackupDRConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # QueryIssuesRequest is the request to get a list of issues. - # @!attribute [rw] parent - # @return [::String] - # Required. Parent can be a project, a folder, or an organization. The list - # is limited to the one attached to resources within the `scope` that a user - # has access to. - # - # The allowed values are: - # - # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar") - # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678") - # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567") - # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - # @!attribute [rw] filter - # @return [::String] - # Optional. - # Supported fields are: - # 'product', - # `location`, - # `issue_severity`, - # 'tags', - # 'labels', - # @!attribute [rw] signal_products_filters - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters>] - # Optional. Filters based on signal and product. The filter list will be ORed - # across pairs and ANDed within a signal and products pair. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Following fields are sortable: - # SignalType - # Product - # Location - # IssueSeverity - # - # The default order is ascending. Add "DESC" after the field name to indicate - # descending order. Add "ASC" after the field name to indicate ascending - # order. It only supports a single field at a time. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. If unspecified, at most 50 issues will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `QueryIssues` call. - # Provide this to retrieve the subsequent page. - # All parameters except page size should match the parameters used in the - # call that provided the page token. - class QueryIssuesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # SignalProductsFilters represents a signal and list of supported products. - # @!attribute [rw] signal_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] - # Optional. The type of signal. - # @!attribute [rw] products - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Product>] - # Optional. Product type of the resource. The version of the product will be - # ignored in filtering. - class SignalProductsFilters - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # QueryIssuesResponse is the response containing a list of issues. - # @!attribute [rw] resource_issues - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceIssue>] - # List of issues and resource details. - # @!attribute [rw] next_page_token - # @return [::String] - # A token that can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. List of unreachable regions from where data could not be - # retrieved. - class QueryIssuesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # DatabaseResource and Issue associated with it. - # @!attribute [rw] signal - # @return [::Google::Cloud::DatabaseCenter::V1beta::Signal] - # Signal associated with the issue. - # @!attribute [rw] resource - # @return [::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource] - # Resource associated with the issue. - class DatabaseResourceIssue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Tag is a key value pair attached to a resource. - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - # The value part of the tag. - # @!attribute [rw] source - # @return [::String] - # The source of the tag. According to - # https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - # tags can be created only at the project or organization level. Tags can be - # inherited from different project as well not just the current project where - # the database resource is present. - # Format: - # "projects/\\{PROJECT_ID}", - # "projects/\\{PROJECT_NUMBER}", - # "organizations/\\{ORGANIZATION_ID}" - # @!attribute [rw] inherited - # @return [::Boolean] - # Indicates the inheritance status of a tag value - # attached to the given resource. If the tag value is inherited from one of - # the resource's ancestors, inherited will be true. If false, then the tag - # value is directly attached to the resource. - class Tag - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Capture the resource details for resources that are included in the delta - # counts. - # @!attribute [rw] full_resource_name - # @return [::String] - # Full resource name of the resource. - # @!attribute [rw] container - # @return [::String] - # Specifies where the resource is created. For GCP, it is the full name of - # the project. - # @!attribute [rw] product - # @return [::Google::Cloud::DatabaseCenter::V1beta::Product] - # Product type of the resource. - # @!attribute [rw] location - # @return [::String] - # Location of the resource. - class ResourceDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Captures the details of items that have increased or decreased in some bucket - # when compared to some point in history. - # It is currently used to capture the delta of resources that have been added - # or removed in the fleet as well as to capture the resources that have a - # change in Issue/Signal status. - # @!attribute [rw] increased_resources - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceDetails>] - # Details of resources that have increased. - # @!attribute [rw] decreased_resources - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceDetails>] - # Details of resources that have decreased. - class DeltaDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The enum value corresponds to 'type' suffix in the resource_type field. - module ResourceCategory - # Unspecified. - RESOURCE_CATEGORY_UNSPECIFIED = 0 - - # A resource that is an Instance. - INSTANCE = 1 - - # A resource that is a Cluster. - CLUSTER = 2 - - # A resource that is a Database. - DATABASE = 3 - end - - # Proto representing the edition of the instance. - # NextId: 4. - module Edition - # Default, to make it consistent with instance edition enum. - EDITION_UNSPECIFIED = 0 - - # Represents the enterprise edition. - EDITION_ENTERPRISE = 1 - - # Represents the enterprise plus edition. - EDITION_ENTERPRISE_PLUS = 2 - - # Represents the standard edition. - EDITION_STANDARD = 3 - end - - # SubResourceType refers to the sub-type of database resource. - module SubResourceType - # Unspecified. - SUB_RESOURCE_TYPE_UNSPECIFIED = 0 - - # A resource acting as a primary. - SUB_RESOURCE_TYPE_PRIMARY = 1 - - # A resource acting as a secondary. - SUB_RESOURCE_TYPE_SECONDARY = 2 - - # A resource acting as a read-replica. - SUB_RESOURCE_TYPE_READ_REPLICA = 3 - - # A resource acting as an external primary. - SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5 - - # For the rest of the categories. - SUB_RESOURCE_TYPE_OTHER = 4 - end - - # The management type of the resource. - module ManagementType - # Unspecified. - MANAGEMENT_TYPE_UNSPECIFIED = 0 - - # Google-managed resource. - MANAGEMENT_TYPE_GCP_MANAGED = 1 - - # Self-managed resource. - MANAGEMENT_TYPE_SELF_MANAGED = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/signals.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/signals.rb deleted file mode 100644 index 397d12ca74ed..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/signals.rb +++ /dev/null @@ -1,848 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - # A group of signal types that specifies what the user is interested in. - # - # Used by QueryDatabaseResourceGroups API. - # - # Example: - # - # signal_type_group { - # name = "AVAILABILITY" - # types = [SIGNAL_TYPE_NO_PROMOTABLE_REPLICA] - # } - # @!attribute [rw] display_name - # @return [::String] - # Required. The display name of a signal group. - # @!attribute [rw] signal_types - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalType>] - # Optional. List of signal types present in the group. - class SignalTypeGroup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A filter for Signals. - # - # If signal_type is left unset, all signals should be returned. - # For example, the following filter returns all issues. - # signal_filter: { - # signal_status: SIGNAL_STATUS_ISSUE; - # } - # - # Another example, the following filter returns issues of the given type: - # signal_filter: { - # type: SIGNAL_TYPE_NO_PROMOTABLE_REPLICA - # signal_status: ISSUE - # } - # - # If signal_status is left unset or set to SIGNAL_STATE_UNSPECIFIED, an error - # should be returned. - # @!attribute [rw] signal_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] - # Optional. Represents the type of the Signal for which the filter is for. - # @!attribute [rw] signal_status - # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalStatus] - # Optional. Represents the status of the Signal for which the filter is for. - class SignalFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A group of signals and their counts. - # @!attribute [rw] display_name - # @return [::String] - # Title of a signal group corresponding to the request. - # @!attribute [rw] issue_count - # @return [::Integer] - # When applied to a DatabaseResource represents count of issues associated - # with the resource. A signal is an issue when its SignalStatus field is - # set to SIGNAL_STATUS_ISSUE. - # @!attribute [rw] signals - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Signal>] - # List of signals present in the group and associated with the resource. - # - # Only applies to a DatabaseResource. - class SignalGroup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Count of issues for a group of signals. - # @!attribute [rw] display_name - # @return [::String] - # Title of a signal group corresponding to the request. - # @!attribute [rw] issue_count - # @return [::Integer] - # The count of the number of issues associated with those resources that - # are explicitly filtered in by the filters present in the request. - # A signal is an issue when its SignalStatus field is set to - # SIGNAL_STATUS_ISSUE. - class IssueCount - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details related to signal. - # @!attribute [rw] short_backup_retention_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::RetentionSettingsInfo] - # Short backup retention information applies to signals with type - # SIGNAL_TYPE_SHORT_BACKUP_RETENTION. - # - # Note: The following fields are mutually exclusive: `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] backup_run_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::BackupRunInfo] - # Backup run information applies to signals with types - # SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. - # - # Note: The following fields are mutually exclusive: `backup_run_info`, `short_backup_retention_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] scc_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::SCCInfo] - # SCC information applies to SCC signals. - # - # Note: The following fields are mutually exclusive: `scc_info`, `short_backup_retention_info`, `backup_run_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] recommendation_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::RecommendationInfo] - # Recommendation information applies to recommendations. - # - # Note: The following fields are mutually exclusive: `recommendation_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] automated_backup_policy_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::AutomatedBackupPolicyInfo] - # Automated backup policy information applies to signals with type - # SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. - # - # Note: The following fields are mutually exclusive: `automated_backup_policy_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] deletion_protection_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::DeletionProtectionInfo] - # Deletion protection information applies to signals with type - # {::Google::Cloud::DatabaseCenter::V1beta::SignalType::SIGNAL_TYPE_NO_DELETION_PROTECTION SIGNAL_TYPE_NO_DELETION_PROTECTION} - # - # Note: The following fields are mutually exclusive: `deletion_protection_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] resource_suspension_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceSuspensionInfo] - # Resource suspension information applies to signals with type - # {::Google::Cloud::DatabaseCenter::V1beta::SignalType::SIGNAL_TYPE_RESOURCE_SUSPENDED SIGNAL_TYPE_RESOURCE_SUSPENDED}. - # - # Note: The following fields are mutually exclusive: `resource_suspension_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `inefficient_query_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] inefficient_query_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo] - # Inefficient query information applies to signals with type - # {::Google::Cloud::DatabaseCenter::V1beta::SignalType::SIGNAL_TYPE_INEFFICIENT_QUERY SIGNAL_TYPE_INEFFICIENT_QUERY}. - # - # Note: The following fields are mutually exclusive: `inefficient_query_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `outdated_minor_version_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] outdated_minor_version_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::OutdatedMinorVersionInfo] - # Outdated minor version information applies to signals with type - # SIGNAL_TYPE_OUTDATED_MINOR_VERSION. - # - # Note: The following fields are mutually exclusive: `outdated_minor_version_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `maintenance_recommendation_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] maintenance_recommendation_info - # @return [::Google::Cloud::DatabaseCenter::V1beta::MaintenanceRecommendationInfo] - # Maintenance recommendation information applies to signals - # with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. - # - # Note: The following fields are mutually exclusive: `maintenance_recommendation_info`, `short_backup_retention_info`, `backup_run_info`, `scc_info`, `recommendation_info`, `automated_backup_policy_info`, `deletion_protection_info`, `resource_suspension_info`, `inefficient_query_info`, `outdated_minor_version_info`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] signal_source - # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalSource] - # Where the signal is coming from. - # @!attribute [rw] signal_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] - # Type of the signal. - # @!attribute [rw] signal_event_time - # @return [::Google::Protobuf::Timestamp] - # Event time when signal was recorded by source service. - class AdditionalDetail - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Sub resource details - # For Spanner/Bigtable instance certain data protection settings are at - # sub resource level like database/table. - # This message is used to capture such sub resource details. - # @!attribute [rw] resource_type - # @return [::String] - # Optional. Resource type associated with the sub resource where backup - # settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - # where backup retention is configured on database within an instance - # OPTIONAL - # @!attribute [rw] full_resource_name - # @return [::String] - # Optional. Resource name associated with the sub resource where backup - # settings are configured. - # E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - # for Spanner where backup retention is configured on database within - # an instance - # OPTIONAL - # @!attribute [rw] product - # @return [::Google::Cloud::DatabaseCenter::V1beta::Product] - # Optional. Product information associated with the sub resource where - # backup retention settings are configured. - # e.g. - # ``` - # product: { - # type : PRODUCT_TYPE_SPANNER - # engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - # } - # ``` - # for Spanner where backup is configured on database within - # an instance - # OPTIONAL - # @!attribute [rw] container - # @return [::String] - # Specifies where the resource is created. For GCP, it is the full name of - # the project. - class SubResource - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata about backup retention settings for a database resource. - # @!attribute [rw] quantity_based_retention - # @return [::Google::Protobuf::Int32Value] - # Number of backups that will be retained. - # - # Note: The following fields are mutually exclusive: `quantity_based_retention`, `duration_based_retention`, `timestamp_based_retention_time`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] duration_based_retention - # @return [::Google::Protobuf::Duration] - # Duration based retention period i.e. 172800 seconds (2 days) - # - # Note: The following fields are mutually exclusive: `duration_based_retention`, `quantity_based_retention`, `timestamp_based_retention_time`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] timestamp_based_retention_time - # @return [::Google::Protobuf::Timestamp] - # Timestamp based retention period i.e. till 2024-05-01T00:00:00Z - # - # Note: The following fields are mutually exclusive: `timestamp_based_retention_time`, `quantity_based_retention`, `duration_based_retention`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] sub_resource - # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResource] - # Optional. Sub resource details associated with the backup configuration. - class RetentionSettingsInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Automated backup policy signal info - # @!attribute [rw] sub_resource - # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResource] - # Optional. Sub resource details associated with the signal. - # @!attribute [rw] is_enabled - # @return [::Boolean] - # Is automated policy enabled. - class AutomatedBackupPolicyInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Deletion protection signal info for a database resource. - # @!attribute [rw] sub_resource - # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResource] - # Optional. Sub resource details associated with the signal. - # @!attribute [rw] deletion_protection_enabled - # @return [::Boolean] - # Is deletion protection enabled. - class DeletionProtectionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Resource suspension info for a database resource. - # @!attribute [rw] resource_suspended - # @return [::Boolean] - # Is resource suspended. - # @!attribute [rw] suspension_reason - # @return [::Google::Cloud::DatabaseCenter::V1beta::SuspensionReason] - # Suspension reason for the resource. - class ResourceSuspensionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata about latest backup run state for a database resource. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time the backup operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # The time the backup operation completed. - # @!attribute [r] state - # @return [::Google::Cloud::DatabaseCenter::V1beta::BackupRunInfo::State] - # Output only. The state of this run. - # @!attribute [rw] error_message - # @return [::String] - # Additional information about the error encountered. - # @!attribute [rw] operation_error_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::OperationErrorType] - # Optional. OperationErrorType to expose specific error when backup operation - # of database resource failed, that is state is FAILED. - # @!attribute [rw] sub_resource - # @return [::Google::Cloud::DatabaseCenter::V1beta::SubResource] - # Optional. Sub resource details associated with the backup run. - class BackupRunInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The status of a backup run. - module State - # Unspecified. - STATE_UNSPECIFIED = 0 - - # The backup succeeded. - SUCCEEDED = 1 - - # The backup was unsuccessful. - FAILED = 2 - end - end - - # Metadata about inefficient query signal info for a database resource. - # @!attribute [rw] database - # @return [::String] - # Name of the database where index is required. For example, "db1", which is - # the name of the database present in the instance. - # @!attribute [rw] table - # @return [::String] - # Name of the table where index is required - # @!attribute [rw] sql_index_statement - # @return [::String] - # SQL statement of the index. Based on the ddl type, this will be either - # CREATE INDEX or DROP INDEX. - # @!attribute [rw] storage_cost_bytes - # @return [::Integer] - # Cost of additional disk usage in bytes - # @!attribute [rw] impacted_queries_count - # @return [::Integer] - # Count of queries to be impacted if index is applied - class InefficientQueryInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Info associated with SCC signals. - # @!attribute [rw] signal - # @return [::String] - # Name of the signal. - # @!attribute [rw] category - # @return [::String] - # Name by which SCC calls this signal. - # @!attribute [rw] regulatory_standards - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::RegulatoryStandard>] - # Compliances that are associated with the signal. - # @!attribute [rw] external_uri - # @return [::String] - # External URI which points to a SCC page associated with the signal. - class SCCInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Info associated with recommendation. - # @!attribute [rw] recommender - # @return [::String] - # Name of recommendation. - # Examples: - # organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - # @!attribute [rw] recommender_id - # @return [::String] - # ID of recommender. - # Examples: "google.cloudsql.instance.PerformanceRecommender" - # @!attribute [rw] recommender_subtype - # @return [::String] - # Contains an identifier for a subtype of recommendations produced for the - # same recommender. Subtype is a function of content and impact, meaning a - # new subtype might be added when significant changes to `content` or - # `primary_impact.category` are introduced. See the Recommenders section - # to see a list of subtypes for a given Recommender. - # - # Examples: - # For recommender = "google.cloudsql.instance.PerformanceRecommender", - # recommender_subtype can be - # "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - class RecommendationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Compliances associated with signals. - # @!attribute [rw] standard - # @return [::String] - # Name of industry compliance standards, such as such as CIS, PCI, and - # OWASP. - # @!attribute [rw] version - # @return [::String] - # Version of the standard or benchmark, for example, 1.1. - class RegulatoryStandard - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Info associated with outdated minor version. - # @!attribute [rw] recommended_minor_version - # @return [::String] - # Recommended minor version of the underlying database engine. Example - # values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - # could be "14.4", "15.5" etc. - class OutdatedMinorVersionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Info associated with maintenance recommendation. - # @!attribute [rw] resource_maintenance_schedules - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceMaintenanceSchedule>] - # Optional. List of recommended maintenance schedules for the database - # resource. - class MaintenanceRecommendationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a signal. - # @!attribute [rw] signal_type - # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalType] - # Type of the signal. - # @!attribute [rw] signal_status - # @return [::Google::Cloud::DatabaseCenter::V1beta::SignalStatus] - # Status of the signal. - # @!attribute [rw] additional_details - # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::AdditionalDetail>] - # Additional information related to the signal. - # In the case of composite signals, this field encapsulates details - # associated with granular signals, having a signal status of "ISSUE"; - # signals with a status of "OK" are not included. - # For granular signals, it encompasses information relevant to the signal, - # regardless of the signal status. - # @!attribute [rw] issue_severity - # @return [::Google::Cloud::DatabaseCenter::V1beta::IssueSeverity] - # Severity of the issue. - # @!attribute [rw] issue_create_time - # @return [::Google::Protobuf::Timestamp] - # Timestamp when the issue was created (when signal status is ISSUE). - class Signal - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the state of a signal. More enum values are expected to be added - # as needed. - module SignalStatus - # Unspecified. - SIGNAL_STATUS_UNSPECIFIED = 0 - - # Signal is not applicable to the resource. - SIGNAL_STATUS_NOT_APPLICABLE = 1 - - # Signal is not an issue. - SIGNAL_STATUS_OK = 2 - - # Signal is an issue. - SIGNAL_STATUS_ISSUE = 3 - - # Signal is not enabled for the resource. - SIGNAL_STATUS_NOT_ENABLED = 4 - end - - # Represents the source system from where a signal comes from. - # More enum values are expected to be added as needed. - module SignalSource - # Unspecified. - SIGNAL_SOURCE_UNSPECIFIED = 0 - - # Signal comes from resource metadata. - SIGNAL_SOURCE_RESOURCE_METADATA = 1 - - # Signal comes from SCC findings. - SIGNAL_SOURCE_SECURITY_FINDINGS = 2 - - # Signal comes from recommender hub. - SIGNAL_SOURCE_RECOMMENDER = 3 - - # Signal comes from modern observability platform. - SIGNAL_SOURCE_MODERN_OBSERVABILITY = 4 - end - - # IssueSeverity represents the severity of an issue. - module IssueSeverity - # Unspecified. - ISSUE_SEVERITY_UNSPECIFIED = 0 - - # Low severity. - ISSUE_SEVERITY_LOW = 1 - - # Medium severity. - ISSUE_SEVERITY_MEDIUM = 2 - - # High severity. - ISSUE_SEVERITY_HIGH = 3 - - # Critical severity. - ISSUE_SEVERITY_CRITICAL = 4 - - # Irrelevant severity. This means the issue should not be surfaced at all. - ISSUE_SEVERITY_IRRELEVANT = 5 - end - - # Represents the type of a signal. More values are expected to be added - # as needed. - module SignalType - # Unspecified. - SIGNAL_TYPE_UNSPECIFIED = 0 - - # Represents if a resource is protected by automatic failover. - # Checks for resources that are configured to have redundancy - # within a region that enables automatic failover. - SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED = 1 - - # Represents if a group is replicating across regions. - # Checks for resources that are configured to have redundancy, - # and ongoing replication, across regions. - SIGNAL_TYPE_GROUP_MULTIREGIONAL = 2 - - # Represents if a resource has an automated backup policy. - SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 4 - - # Represents if a resources has a short backup retention period. - SIGNAL_TYPE_SHORT_BACKUP_RETENTION = 5 - - # Represents if the last backup of a resource failed. - SIGNAL_TYPE_LAST_BACKUP_FAILED = 6 - - # Represents if the last backup of a resource is older than some threshold - # value. - SIGNAL_TYPE_LAST_BACKUP_OLD = 7 - - # Represents if a resource violates CIS GCP Foundation 2.0. - SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8 - - # Represents if a resource violates CIS GCP Foundation 1.3. - SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9 - - # Represents if a resource violates CIS GCP Foundation 1.2. - SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10 - - # Represents if a resource violates CIS GCP Foundation 1.1. - SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11 - - # Represents if a resource violates CIS GCP Foundation 1.0. - SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12 - - # Represents if a resource violates CIS Controls 8.0. - SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 = 76 - - # Represents if a resource violates NIST 800-53. - SIGNAL_TYPE_VIOLATES_NIST_800_53 = 13 - - # Represents if a resource violates NIST 800-53 R5. - SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 = 69 - - # Represents if a resource violates NIST Cybersecurity Framework 1.0. - SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 = 72 - - # Represents if a resource violates ISO-27001. - SIGNAL_TYPE_VIOLATES_ISO_27001 = 14 - - # Represents if a resource violates ISO 27001 2022. - SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 = 70 - - # Represents if a resource violates PCI-DSS v3.2.1. - SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 = 15 - - # Represents if a resource violates PCI-DSS v4.0. - SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 = 71 - - # Represents if a resource violates Cloud Controls Matrix v4.0. - SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 = 73 - - # Represents if a resource violates HIPAA. - SIGNAL_TYPE_VIOLATES_HIPAA = 74 - - # Represents if a resource violates SOC2 v2017. - SIGNAL_TYPE_VIOLATES_SOC2_V2017 = 75 - - # Represents if log_checkpoints database flag for a Cloud SQL for PostgreSQL - # instance is not set to on. - SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING = 16 - - # Represents if the log_duration database flag for a Cloud SQL for PostgreSQL - # instance is not set to on. - SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED = 17 - - # Represents if the log_error_verbosity database flag for a Cloud SQL for - # PostgreSQL instance is not set to default or stricter (default or terse). - SIGNAL_TYPE_VERBOSE_ERROR_LOGGING = 18 - - # Represents if the log_lock_waits database flag for a Cloud SQL for - # PostgreSQL instance is not set to on. - SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED = 19 - - # Represents if the log_min_error_statement database flag for a Cloud SQL - # for PostgreSQL instance is not set appropriately. - SIGNAL_TYPE_LOGGING_MOST_ERRORS = 20 - - # Represents if the log_min_error_statement database flag for a Cloud SQL - # for PostgreSQL instance does not have an appropriate severity level. - SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS = 21 - - # Represents if the log_min_messages database flag for a Cloud SQL for - # PostgreSQL instance is not set to warning or another recommended value. - SIGNAL_TYPE_MINIMAL_ERROR_LOGGING = 22 - - # Represents if the databaseFlags property of instance metadata for - # the log_executor_status field is set to on. - SIGNAL_TYPE_QUERY_STATS_LOGGED = 23 - - # Represents if the log_hostname database flag for a Cloud SQL for - # PostgreSQL instance is not set to off. - SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME = 24 - - # Represents if the log_parser_stats database flag for a Cloud SQL for - # PostgreSQL instance is not set to off. - SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS = 25 - - # Represents if the log_planner_stats database flag for a Cloud SQL for - # PostgreSQL instance is not set to off. - SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS = 26 - - # Represents if the log_statement database flag for a Cloud SQL for - # PostgreSQL instance is not set to DDL (all data definition statements). - SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS = 27 - - # Represents if the log_statement_stats database flag for a Cloud SQL for - # PostgreSQL instance is not set to off. - SIGNAL_TYPE_LOGGING_QUERY_STATS = 28 - - # Represents if the log_temp_files database flag for a Cloud SQL for - # PostgreSQL instance is not set to "0". (NOTE: 0 = ON) - SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES = 29 - - # Represents if the user connections database flag for a Cloud SQL for SQL - # Server instance is configured. - SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED = 30 - - # Represents if the user options database flag for Cloud SQL SQL Server - # instance is configured or not. - SIGNAL_TYPE_USER_OPTIONS_CONFIGURED = 31 - - # Represents if a resource is exposed to public access. - SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS = 32 - - # Represents if a resources requires all incoming connections to use SSL - # or not. - SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS = 33 - - # Represents if a Cloud SQL database has a password configured for the - # root account or not. - SIGNAL_TYPE_NO_ROOT_PASSWORD = 34 - - # Represents if a Cloud SQL database has a weak password configured for the - # root account. - SIGNAL_TYPE_WEAK_ROOT_PASSWORD = 35 - - # Represents if a SQL database instance is not encrypted with - # customer-managed encryption keys (CMEK). - SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED = 36 - - # Represents if The contained database authentication database flag for a - # Cloud SQL for SQL Server instance is not set to off. - SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED = 37 - - # Represents if he external scripts enabled database flag for a Cloud SQL - # for SQL Server instance is not set to off. - SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS = 39 - - # Represents if the local_infile database flag for a Cloud SQL for MySQL - # instance is not set to off. - SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS = 40 - - # Represents if the log_connections database flag for a Cloud SQL for - # PostgreSQL instance is not set to on. - SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED = 41 - - # Represents if the log_disconnections database flag for a Cloud SQL for - # PostgreSQL instance is not set to on. - SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED = 42 - - # Represents if the log_min_duration_statement database flag for a Cloud SQL - # for PostgreSQL instance is not set to -1. - SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO = 43 - - # Represents if the remote access database flag for a Cloud SQL for SQL - # Server instance is not set to off. - SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS = 44 - - # Represents if the skip_show_database database flag for a Cloud SQL for - # MySQL instance is not set to on. - SIGNAL_TYPE_DATABASE_NAMES_EXPOSED = 45 - - # Represents if the 3625 (trace flag) database flag for a Cloud SQL for - # SQL Server instance is not set to on. - SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED = 46 - - # Represents if public IP is enabled. - SIGNAL_TYPE_PUBLIC_IP_ENABLED = 47 - - # Represents idle instance helps to reduce costs. - SIGNAL_TYPE_IDLE = 48 - - # Represents instances that are unnecessarily large for given workload. - SIGNAL_TYPE_OVERPROVISIONED = 49 - - # Represents high number of concurrently opened tables. - SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES = 50 - - # Represents high table count close to SLA limit. - SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES = 51 - - # Represents high number of unvacuumed transactions - SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION = 52 - - # Represents need for more CPU and/or memory - SIGNAL_TYPE_UNDERPROVISIONED = 53 - - # Represents out of disk. - SIGNAL_TYPE_OUT_OF_DISK = 54 - - # Represents server certificate is near expiry. - SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY = 55 - - # Represents database auditing is disabled. - SIGNAL_TYPE_DATABASE_AUDITING_DISABLED = 56 - - # Represents not restricted to authorized networks. - SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS = 57 - - # Represents violate org policy restrict public ip. - SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP = 58 - - # Cluster nearing quota limit - SIGNAL_TYPE_QUOTA_LIMIT = 59 - - # No password policy set on resources - SIGNAL_TYPE_NO_PASSWORD_POLICY = 60 - - # Performance impact of connections settings - SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT = 61 - - # Performance impact of temporary tables settings - SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT = 62 - - # Performance impact of transaction logs settings - SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT = 63 - - # Performance impact of high joins without indexes - SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES = 64 - - # Detects events where a database superuser (postgres for PostgreSQL servers - # or root for MySQL users) writes to non-system tables. - SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES = 65 - - # Detects events where a database user or role has been granted all - # privileges to a database, or to all tables, procedures, or functions in a - # schema. - SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS = 66 - - # Detects if database instance data exported to a Cloud Storage bucket - # outside of the organization. - SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET = 67 - - # Detects if database instance data exported to a Cloud Storage bucket that - # is owned by the organization and is publicly accessible. - SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET = 68 - - # Detects if a database instance is using a weak password hash algorithm. - SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM = 77 - - # Detects if a database instance has no user password policy set. - SIGNAL_TYPE_NO_USER_PASSWORD_POLICY = 78 - - # Detects if a database instance/cluster has a hot node. - SIGNAL_TYPE_HOT_NODE = 79 - - # Deletion Protection Disabled for the resource - SIGNAL_TYPE_NO_DELETION_PROTECTION = 80 - - # Detects if a database instance has no point in time recovery enabled. - SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY = 81 - - # Detects if a database instance/cluster has suspended resources. - SIGNAL_TYPE_RESOURCE_SUSPENDED = 82 - - # Detects that expensive commands are being run on a database instance - # impacting overall performance. - SIGNAL_TYPE_EXPENSIVE_COMMANDS = 83 - - # Indicates that the instance does not have a maintenance policy configured. - SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED = 84 - - # Indicates that the instance has inefficient queries detected. - SIGNAL_TYPE_INEFFICIENT_QUERY = 85 - - # Indicates that the instance has read intensive workload. - SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD = 86 - - # Indicates that the instance is nearing memory limit. - SIGNAL_TYPE_MEMORY_LIMIT = 87 - - # Indicates that the instance's max server memory is configured higher than - # the recommended value. - SIGNAL_TYPE_MAX_SERVER_MEMORY = 88 - - # Indicates that the database has large rows beyond the recommended limit. - SIGNAL_TYPE_LARGE_ROWS = 89 - - # Heavy write pressure on the database rows. - SIGNAL_TYPE_HIGH_WRITE_PRESSURE = 90 - - # Heavy read pressure on the database rows. - SIGNAL_TYPE_HIGH_READ_PRESSURE = 91 - - # Encryption org policy not satisfied. - SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED = 92 - - # Location org policy not satisfied. - SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED = 93 - - # Outdated DB minor version. - SIGNAL_TYPE_OUTDATED_MINOR_VERSION = 94 - - # Schema not optimized. - SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 95 - - # Replication delay. - SIGNAL_TYPE_REPLICATION_LAG = 97 - - # Outdated client. - SIGNAL_TYPE_OUTDATED_CLIENT = 99 - - # Databoost is disabled. - SIGNAL_TYPE_DATABOOST_DISABLED = 100 - - # Recommended maintenance policy. - SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES = 101 - - # Resource version is in extended support. - SIGNAL_TYPE_EXTENDED_SUPPORT = 102 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb deleted file mode 100644 index 1aa9b103d59d..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module DatabaseCenter - module V1beta - # The reason for suspension of the database resource. - module SuspensionReason - # Suspension reason is unspecified. - SUSPENSION_REASON_UNSPECIFIED = 0 - - # Wipeout hide event. - WIPEOUT_HIDE_EVENT = 1 - - # Wipeout purge event. - WIPEOUT_PURGE_EVENT = 2 - - # Billing disabled for project - BILLING_DISABLED = 3 - - # Abuse detected for resource - ABUSER_DETECTED = 4 - - # Encryption key inaccessible. - ENCRYPTION_KEY_INACCESSIBLE = 5 - - # Replicated cluster encryption key inaccessible. - REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE = 6 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/wrappers.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/wrappers.rb deleted file mode 100644 index 1b485b0c3456..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/protobuf/wrappers.rb +++ /dev/null @@ -1,121 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 - # Wrapper message for `double`. - # - # The JSON representation for `DoubleValue` is JSON number. - # @!attribute [rw] value - # @return [::Float] - # The double value. - class DoubleValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `float`. - # - # The JSON representation for `FloatValue` is JSON number. - # @!attribute [rw] value - # @return [::Float] - # The float value. - class FloatValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `int64`. - # - # The JSON representation for `Int64Value` is JSON string. - # @!attribute [rw] value - # @return [::Integer] - # The int64 value. - class Int64Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `uint64`. - # - # The JSON representation for `UInt64Value` is JSON string. - # @!attribute [rw] value - # @return [::Integer] - # The uint64 value. - class UInt64Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `int32`. - # - # The JSON representation for `Int32Value` is JSON number. - # @!attribute [rw] value - # @return [::Integer] - # The int32 value. - class Int32Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `uint32`. - # - # The JSON representation for `UInt32Value` is JSON number. - # @!attribute [rw] value - # @return [::Integer] - # The uint32 value. - class UInt32Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `bool`. - # - # The JSON representation for `BoolValue` is JSON `true` and `false`. - # @!attribute [rw] value - # @return [::Boolean] - # The bool value. - class BoolValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `string`. - # - # The JSON representation for `StringValue` is JSON string. - # @!attribute [rw] value - # @return [::String] - # The string value. - class StringValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `bytes`. - # - # The JSON representation for `BytesValue` is JSON string. - # @!attribute [rw] value - # @return [::String] - # The bytes value. - class BytesValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/date.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/date.rb deleted file mode 100644 index 14ec426522d9..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/date.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a whole or partial calendar date, such as a birthday. The time of - # day and time zone are either specified elsewhere or are insignificant. The - # date is relative to the Gregorian Calendar. This can represent one of the - # following: - # - # * A full date, with non-zero year, month, and day values - # * A month and day value, with a zero year, such as an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, such as a credit card expiration - # date - # - # Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and - # `google.protobuf.Timestamp`. - # @!attribute [rw] year - # @return [::Integer] - # Year of the date. Must be from 1 to 9999, or 0 to specify a date without - # a year. - # @!attribute [rw] month - # @return [::Integer] - # Month of a year. Must be from 1 to 12, or 0 to specify a year without a - # month and day. - # @!attribute [rw] day - # @return [::Integer] - # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - # to specify a year by itself or a year and month where the day isn't - # significant. - class Date - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/dayofweek.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/dayofweek.rb deleted file mode 100644 index 973211b9ffe7..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/dayofweek.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a day of the week. - module DayOfWeek - # The day of the week is unspecified. - DAY_OF_WEEK_UNSPECIFIED = 0 - - # Monday - MONDAY = 1 - - # Tuesday - TUESDAY = 2 - - # Wednesday - WEDNESDAY = 3 - - # Thursday - THURSDAY = 4 - - # Friday - FRIDAY = 5 - - # Saturday - SATURDAY = 6 - - # Sunday - SUNDAY = 7 - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/timeofday.rb b/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/timeofday.rb deleted file mode 100644 index b0c888c8c14a..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/proto_docs/google/type/timeofday.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! - - -module Google - module Type - # Represents a time of day. The date and time zone are either not significant - # or are specified elsewhere. An API may choose to allow leap seconds. Related - # types are {::Google::Type::Date google.type.Date} and - # `google.protobuf.Timestamp`. - # @!attribute [rw] hours - # @return [::Integer] - # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - # to allow the value "24:00:00" for scenarios like business closing time. - # @!attribute [rw] minutes - # @return [::Integer] - # Minutes of hour of day. Must be from 0 to 59. - # @!attribute [rw] seconds - # @return [::Integer] - # Seconds of minutes of the time. Must normally be from 0 to 59. An API may - # allow the value 60 if it allows leap-seconds. - # @!attribute [rw] nanos - # @return [::Integer] - # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - class TimeOfDay - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/Gemfile b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/Gemfile deleted file mode 100644 index 00558c0fa0ab..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-database_center-v1beta", path: "../" -else - gem "google-cloud-database_center-v1beta" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_fleet.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_fleet.rb deleted file mode 100644 index 7787b15c43ca..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_fleet.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 databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync] -require "google/cloud/database_center/v1beta" - -## -# Snippet for the aggregate_fleet call in the DatabaseCenter service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_fleet. -# -def aggregate_fleet - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new - - # Call the aggregate_fleet method. - result = client.aggregate_fleet request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRow. - p item - end -end -# [END databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_issue_stats.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_issue_stats.rb deleted file mode 100644 index 318b81e5de66..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/aggregate_issue_stats.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 databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync] -require "google/cloud/database_center/v1beta" - -## -# Snippet for the aggregate_issue_stats call in the DatabaseCenter service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_issue_stats. -# -def aggregate_issue_stats - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new - - # Call the aggregate_issue_stats method. - result = client.aggregate_issue_stats request - - # The returned object is of type Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse. - p result -end -# [END databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_database_resource_groups.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_database_resource_groups.rb deleted file mode 100644 index 56833e3909a8..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_database_resource_groups.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 databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync] -require "google/cloud/database_center/v1beta" - -## -# Snippet for the query_database_resource_groups call in the DatabaseCenter service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_database_resource_groups. -# -def query_database_resource_groups - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new - - # Call the query_database_resource_groups method. - result = client.query_database_resource_groups request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::DatabaseResourceGroup. - p item - end -end -# [END databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_products.rb b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_products.rb deleted file mode 100644 index 4452cbbbe0e6..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/database_center/query_products.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 databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync] -require "google/cloud/database_center/v1beta" - -## -# Snippet for the query_products call in the DatabaseCenter service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_products. -# -def query_products - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new - - # Call the query_products method. - result = client.query_products request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::Product. - p item - end -end -# [END databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync] diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json b/owl-bot-staging/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json deleted file mode 100644 index a78120efb928..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/snippets/snippet_metadata_google.cloud.databasecenter.v1beta.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-database_center-v1beta", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.cloud.databasecenter.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync", - "title": "Snippet for the query_products call in the DatabaseCenter service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_products.", - "file": "database_center/query_products.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_products", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_products", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse", - "client": { - "short_name": "DatabaseCenter::Client", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" - }, - "method": { - "short_name": "QueryProducts", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryProducts", - "service": { - "short_name": "DatabaseCenter", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync", - "title": "Snippet for the aggregate_fleet call in the DatabaseCenter service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_fleet.", - "file": "database_center/aggregate_fleet.rb", - "language": "RUBY", - "client_method": { - "short_name": "aggregate_fleet", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_fleet", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse", - "client": { - "short_name": "DatabaseCenter::Client", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" - }, - "method": { - "short_name": "AggregateFleet", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateFleet", - "service": { - "short_name": "DatabaseCenter", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync", - "title": "Snippet for the query_database_resource_groups call in the DatabaseCenter service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_database_resource_groups.", - "file": "database_center/query_database_resource_groups.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_database_resource_groups", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_database_resource_groups", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse", - "client": { - "short_name": "DatabaseCenter::Client", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" - }, - "method": { - "short_name": "QueryDatabaseResourceGroups", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryDatabaseResourceGroups", - "service": { - "short_name": "DatabaseCenter", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync", - "title": "Snippet for the aggregate_issue_stats call in the DatabaseCenter service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_issue_stats.", - "file": "database_center/aggregate_issue_stats.rb", - "language": "RUBY", - "client_method": { - "short_name": "aggregate_issue_stats", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#aggregate_issue_stats", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse", - "client": { - "short_name": "DatabaseCenter::Client", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" - }, - "method": { - "short_name": "AggregateIssueStats", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateIssueStats", - "service": { - "short_name": "DatabaseCenter", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync", - "title": "Snippet for the query_issues call in the DatabaseCenter service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_issues.", - "file": "database_center/query_issues.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_issues", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client#query_issues", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse", - "client": { - "short_name": "DatabaseCenter::Client", - "full_name": "::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client" - }, - "method": { - "short_name": "QueryIssues", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryIssues", - "service": { - "short_name": "DatabaseCenter", - "full_name": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb b/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb deleted file mode 100644 index 2450ec74d065..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_rest_test.rb +++ /dev/null @@ -1,391 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/cloud/databasecenter/v1beta/service_pb" -require "google/cloud/database_center/v1beta/database_center/rest" - - -class ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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_query_products - # Create test objects. - client_result = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse.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" - - query_products_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_query_products_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_products_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_products({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_products parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_products ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_products({ parent: parent, 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 - client.query_products(::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new(parent: parent, 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, query_products_client_stub.call_count - end - end - end - - def test_aggregate_fleet - # Create test objects. - client_result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - group_by = "hello world" - order_by = "hello world" - page_size = 42 - page_token = "hello world" - baseline_date = {} - - aggregate_fleet_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_aggregate_fleet_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, aggregate_fleet_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.aggregate_fleet({ parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.aggregate_fleet parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.aggregate_fleet ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new(parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.aggregate_fleet({ parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.aggregate_fleet(::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new(parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, aggregate_fleet_client_stub.call_count - end - end - end - - def test_query_database_resource_groups - # Create test objects. - client_result = ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - signal_type_groups = [{}] - signal_filters = [{}] - order_by = "hello world" - page_size = 42 - page_token = "hello world" - - query_database_resource_groups_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_query_database_resource_groups_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_database_resource_groups_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_database_resource_groups({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_database_resource_groups parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_database_resource_groups ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_database_resource_groups({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, 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 - client.query_database_resource_groups(::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, 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, query_database_resource_groups_client_stub.call_count - end - end - end - - def test_aggregate_issue_stats - # Create test objects. - client_result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - signal_type_groups = [{}] - baseline_date = {} - - aggregate_issue_stats_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_aggregate_issue_stats_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, aggregate_issue_stats_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.aggregate_issue_stats({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.aggregate_issue_stats parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.aggregate_issue_stats ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.aggregate_issue_stats({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.aggregate_issue_stats(::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, aggregate_issue_stats_client_stub.call_count - end - end - end - - def test_query_issues - # Create test objects. - client_result = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - signal_products_filters = [{}] - order_by = "hello world" - page_size = 42 - page_token = "hello world" - - query_issues_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::ServiceStub.stub :transcode_query_issues_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_issues_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_issues parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_issues ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, 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 - client.query_issues(::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, 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, query_issues_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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb b/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb deleted file mode 100644 index f2497f2947db..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/test/google/cloud/database_center/v1beta/database_center_test.rb +++ /dev/null @@ -1,460 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/databasecenter/v1beta/service_pb" -require "google/cloud/database_center/v1beta/database_center" - -class ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::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_query_products - # Create GRPC objects. - grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.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" - - query_products_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_products, name - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_products_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_products({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_products parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_products ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_products({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_products(::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_products_client_stub.call_rpc_count - end - end - - def test_aggregate_fleet - # Create GRPC objects. - grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - group_by = "hello world" - order_by = "hello world" - page_size = 42 - page_token = "hello world" - baseline_date = {} - - aggregate_fleet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :aggregate_fleet, name - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["group_by"] - assert_equal "hello world", request["order_by"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Type::Date), request["baseline_date"] - assert request.has_baseline_date? - refute_nil options - end - - Gapic::ServiceStub.stub :new, aggregate_fleet_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.aggregate_fleet({ parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.aggregate_fleet parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.aggregate_fleet ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new(parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.aggregate_fleet({ parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.aggregate_fleet(::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest.new(parent: parent, filter: filter, group_by: group_by, order_by: order_by, page_size: page_size, page_token: page_token, baseline_date: baseline_date), 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, aggregate_fleet_client_stub.call_rpc_count - end - end - - def test_query_database_resource_groups - # Create GRPC objects. - grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - signal_type_groups = [{}] - signal_filters = [{}] - order_by = "hello world" - page_size = 42 - page_token = "hello world" - - query_database_resource_groups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_database_resource_groups, name - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, request["signal_type_groups"].first - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalFilter, request["signal_filters"].first - assert_equal "hello world", request["order_by"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_database_resource_groups_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_database_resource_groups({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_database_resource_groups parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_database_resource_groups ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_database_resource_groups({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_database_resource_groups(::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, signal_filters: signal_filters, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_database_resource_groups_client_stub.call_rpc_count - end - end - - def test_aggregate_issue_stats - # Create GRPC objects. - grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - signal_type_groups = [{}] - baseline_date = {} - - aggregate_issue_stats_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :aggregate_issue_stats, name - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalTypeGroup, request["signal_type_groups"].first - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Type::Date), request["baseline_date"] - assert request.has_baseline_date? - refute_nil options - end - - Gapic::ServiceStub.stub :new, aggregate_issue_stats_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.aggregate_issue_stats({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.aggregate_issue_stats parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.aggregate_issue_stats ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.aggregate_issue_stats({ parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.aggregate_issue_stats(::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest.new(parent: parent, filter: filter, signal_type_groups: signal_type_groups, baseline_date: baseline_date), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, aggregate_issue_stats_client_stub.call_rpc_count - end - end - - def test_query_issues - # Create GRPC objects. - grpc_response = ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - signal_products_filters = [{}] - order_by = "hello world" - page_size = 42 - page_token = "hello world" - - query_issues_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_issues, name - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::SignalProductsFilters, request["signal_products_filters"].first - assert_equal "hello world", request["order_by"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_issues_client_stub do - # Create client - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_issues parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_issues ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_issues({ parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_issues(::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest.new(parent: parent, filter: filter, signal_products_filters: signal_products_filters, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_issues_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-database_center-v1beta/test/helper.rb b/owl-bot-staging/google-cloud-database_center-v1beta/test/helper.rb deleted file mode 100644 index f0e715458fa2..000000000000 --- a/owl-bot-staging/google-cloud-database_center-v1beta/test/helper.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/rg" - -require "grpc" - -require "ostruct"