google-cloud-database_center-v1beta 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fafb3611f96a4e6b33fcb9db99f9b6c5e225b44b2586db10d60a7c78ad29b9c
4
- data.tar.gz: 7d7c65f1b9b72cda9ea544e4a9de25854b5792bd63589ea8d8008f11ce10958c
3
+ metadata.gz: e08cdb28b2e21bb7c9d7f63f1770d554d06a36bd5a49fdd1c139268a204d3a7e
4
+ data.tar.gz: 57dd50e52f975a385360552eae378b307a8240d997efe1f7c9a977c05b2f4ecf
5
5
  SHA512:
6
- metadata.gz: 6a348f1181b85b482a5e5b9c9a7d88c5ba8d44cba8b1d6c336e945659db566a3309539022f820946cc237b27e3b06c3d50964c7aa55629f1a02cca65343cb74c
7
- data.tar.gz: 8bb9773ec4ae565d81e0f1baaf6842ab8c43e1a1d519d3937b256931ee85cfd39dc55c6bf14de568b149e4e589ff6b728d5a0c50c439fa23c0cb6aec20c1fd92
6
+ metadata.gz: 57371f8b830026f41f6f16f15a06d64e80e8d08b56e16668e8380fb33f4ba710559f1b811578ecafe19e2131ae9ac67d3246788a7a87c558e63b677001ca2a88
7
+ data.tar.gz: 4334681bf38f02baafa706cbf76f9c5efc15ee27a9467c22c2ecbbe4e431dddf0e1d7ef4d257692d2ac51645e7263778a38d079fad25814e12c2bbf534ddb3d3
@@ -731,6 +731,143 @@ module Google
731
731
  raise ::Google::Cloud::Error.from_error(e)
732
732
  end
733
733
 
734
+ ##
735
+ # AggregateQueryStats provides database resource query execution statistics.
736
+ #
737
+ # @overload aggregate_query_stats(request, options = nil)
738
+ # Pass arguments to `aggregate_query_stats` via a request object, either of type
739
+ # {::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest} or an equivalent Hash.
740
+ #
741
+ # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest, ::Hash]
742
+ # A request object representing the call parameters. Required. To specify no
743
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
744
+ # @param options [::Gapic::CallOptions, ::Hash]
745
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
746
+ #
747
+ # @overload aggregate_query_stats(parent: nil, order_by: nil, filter: nil, page_size: nil, page_token: nil)
748
+ # Pass arguments to `aggregate_query_stats` via keyword arguments. Note that at
749
+ # least one keyword argument is required. To specify no parameters, or to keep all
750
+ # the default parameter values, pass an empty Hash as a request object (see above).
751
+ #
752
+ # @param parent [::String]
753
+ # Required. Parent can be a project, a folder, or an organization. The search
754
+ # is limited to the resources within the `parent`.
755
+ #
756
+ # The allowed values are:
757
+ #
758
+ # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar")
759
+ # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678")
760
+ # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567")
761
+ # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
762
+ # @param order_by [::String]
763
+ # Optional. The expression to order the results by.
764
+ # Example: `order_by="execution_count"`
765
+ # Example: `order_by="execution_count desc"`
766
+ # Supported order by fields are `execution_count`, `rows_processed`,
767
+ # `total_cpu_time`, `avg_cpu_time`.
768
+ # @param filter [::String]
769
+ # Optional. The expression to filter resources.
770
+ #
771
+ # Supported fields are: `full_resource_name`, `resource_type`, `container`,
772
+ # `product.type`, `product.engine`, `product.version`, `location`,
773
+ # `labels`, `issues`, fields of availability_info,
774
+ # data_protection_info,'resource_name', etc.
775
+ #
776
+ # The expression is a list of zero or more restrictions combined via logical
777
+ # operators `AND` and `OR`. When `AND` and `OR` are both used in the
778
+ # expression, parentheses must be appropriately used to group the
779
+ # combinations.
780
+ #
781
+ # Example: `location="us-east1"`
782
+ # Example: `container="projects/123" OR container="projects/456"`
783
+ # Example: `(container="projects/123" OR
784
+ # container="projects/456") AND location="us-east1"`
785
+ # Additional specific fields for query stats are: `metric_window`,
786
+ # `query_hash`, `normalized_query`.
787
+ # Example: `metric_window="LAST_ONE_DAY"`
788
+ # (Possible values for `metric_window` are: `LAST_ONE_DAY`,
789
+ # `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`)
790
+ # Example: `query_hash="12345678"`
791
+ # Example: `normalized_query="SELECT * FROM table"`
792
+ # @param page_size [::Integer]
793
+ # Optional. If unspecified, at most 100 query stats will be returned.
794
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
795
+ # @param page_token [::String]
796
+ # Optional. A page token, received from a previous
797
+ # `AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent
798
+ # page. All parameters except page_token should match the parameters in the
799
+ # call that provided the page token.
800
+ #
801
+ # @yield [response, operation] Access the result along with the RPC operation
802
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
803
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
804
+ #
805
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
806
+ #
807
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
808
+ #
809
+ # @example Basic example
810
+ # require "google/cloud/database_center/v1beta"
811
+ #
812
+ # # Create a client object. The client can be reused for multiple calls.
813
+ # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new
814
+ #
815
+ # # Create a request. To set request fields, pass in keyword arguments.
816
+ # request = Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest.new
817
+ #
818
+ # # Call the aggregate_query_stats method.
819
+ # result = client.aggregate_query_stats request
820
+ #
821
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
822
+ # # over elements, and API calls will be issued to fetch pages as needed.
823
+ # result.each do |item|
824
+ # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo.
825
+ # p item
826
+ # end
827
+ #
828
+ def aggregate_query_stats request, options = nil
829
+ raise ::ArgumentError, "request must be provided" if request.nil?
830
+
831
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest
832
+
833
+ # Converts hash and nil to an options object
834
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
835
+
836
+ # Customize the options with defaults
837
+ metadata = @config.rpcs.aggregate_query_stats.metadata.to_h
838
+
839
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
840
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
841
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
842
+ gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::VERSION
843
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
844
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
845
+
846
+ header_params = {}
847
+ if request.parent
848
+ header_params["parent"] = request.parent
849
+ end
850
+
851
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
852
+ metadata[:"x-goog-request-params"] ||= request_params_header
853
+
854
+ options.apply_defaults timeout: @config.rpcs.aggregate_query_stats.timeout,
855
+ metadata: metadata,
856
+ retry_policy: @config.rpcs.aggregate_query_stats.retry_policy
857
+
858
+ options.apply_defaults timeout: @config.timeout,
859
+ metadata: @config.metadata,
860
+ retry_policy: @config.retry_policy
861
+
862
+ @database_center_stub.call_rpc :aggregate_query_stats, request, options: options do |response, operation|
863
+ response = ::Gapic::PagedEnumerable.new @database_center_stub, :aggregate_query_stats, request, response, operation, options
864
+ yield response, operation if block_given?
865
+ throw :response, response
866
+ end
867
+ rescue ::GRPC::BadStatus => e
868
+ raise ::Google::Cloud::Error.from_error(e)
869
+ end
870
+
734
871
  ##
735
872
  # QueryIssues provides a list of issues and recommendations
736
873
  # that a user has access to and that are within the requested scope.
@@ -1057,6 +1194,11 @@ module Google
1057
1194
  #
1058
1195
  attr_reader :aggregate_issue_stats
1059
1196
  ##
1197
+ # RPC-specific configuration for `aggregate_query_stats`
1198
+ # @return [::Gapic::Config::Method]
1199
+ #
1200
+ attr_reader :aggregate_query_stats
1201
+ ##
1060
1202
  # RPC-specific configuration for `query_issues`
1061
1203
  # @return [::Gapic::Config::Method]
1062
1204
  #
@@ -1072,6 +1214,8 @@ module Google
1072
1214
  @query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config
1073
1215
  aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats
1074
1216
  @aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config
1217
+ aggregate_query_stats_config = parent_rpcs.aggregate_query_stats if parent_rpcs.respond_to? :aggregate_query_stats
1218
+ @aggregate_query_stats = ::Gapic::Config::Method.new aggregate_query_stats_config
1075
1219
  query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues
1076
1220
  @query_issues = ::Gapic::Config::Method.new query_issues_config
1077
1221
 
@@ -728,6 +728,136 @@ module Google
728
728
  raise ::Google::Cloud::Error.from_error(e)
729
729
  end
730
730
 
731
+ ##
732
+ # AggregateQueryStats provides database resource query execution statistics.
733
+ #
734
+ # @overload aggregate_query_stats(request, options = nil)
735
+ # Pass arguments to `aggregate_query_stats` via a request object, either of type
736
+ # {::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest} or an equivalent Hash.
737
+ #
738
+ # @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest, ::Hash]
739
+ # A request object representing the call parameters. Required. To specify no
740
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
741
+ # @param options [::Gapic::CallOptions, ::Hash]
742
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
743
+ #
744
+ # @overload aggregate_query_stats(parent: nil, order_by: nil, filter: nil, page_size: nil, page_token: nil)
745
+ # Pass arguments to `aggregate_query_stats` via keyword arguments. Note that at
746
+ # least one keyword argument is required. To specify no parameters, or to keep all
747
+ # the default parameter values, pass an empty Hash as a request object (see above).
748
+ #
749
+ # @param parent [::String]
750
+ # Required. Parent can be a project, a folder, or an organization. The search
751
+ # is limited to the resources within the `parent`.
752
+ #
753
+ # The allowed values are:
754
+ #
755
+ # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar")
756
+ # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678")
757
+ # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567")
758
+ # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
759
+ # @param order_by [::String]
760
+ # Optional. The expression to order the results by.
761
+ # Example: `order_by="execution_count"`
762
+ # Example: `order_by="execution_count desc"`
763
+ # Supported order by fields are `execution_count`, `rows_processed`,
764
+ # `total_cpu_time`, `avg_cpu_time`.
765
+ # @param filter [::String]
766
+ # Optional. The expression to filter resources.
767
+ #
768
+ # Supported fields are: `full_resource_name`, `resource_type`, `container`,
769
+ # `product.type`, `product.engine`, `product.version`, `location`,
770
+ # `labels`, `issues`, fields of availability_info,
771
+ # data_protection_info,'resource_name', etc.
772
+ #
773
+ # The expression is a list of zero or more restrictions combined via logical
774
+ # operators `AND` and `OR`. When `AND` and `OR` are both used in the
775
+ # expression, parentheses must be appropriately used to group the
776
+ # combinations.
777
+ #
778
+ # Example: `location="us-east1"`
779
+ # Example: `container="projects/123" OR container="projects/456"`
780
+ # Example: `(container="projects/123" OR
781
+ # container="projects/456") AND location="us-east1"`
782
+ # Additional specific fields for query stats are: `metric_window`,
783
+ # `query_hash`, `normalized_query`.
784
+ # Example: `metric_window="LAST_ONE_DAY"`
785
+ # (Possible values for `metric_window` are: `LAST_ONE_DAY`,
786
+ # `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`)
787
+ # Example: `query_hash="12345678"`
788
+ # Example: `normalized_query="SELECT * FROM table"`
789
+ # @param page_size [::Integer]
790
+ # Optional. If unspecified, at most 100 query stats will be returned.
791
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
792
+ # @param page_token [::String]
793
+ # Optional. A page token, received from a previous
794
+ # `AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent
795
+ # page. All parameters except page_token should match the parameters in the
796
+ # call that provided the page token.
797
+ # @yield [result, operation] Access the result along with the TransportOperation object
798
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
799
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
800
+ #
801
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
802
+ #
803
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
804
+ #
805
+ # @example Basic example
806
+ # require "google/cloud/database_center/v1beta"
807
+ #
808
+ # # Create a client object. The client can be reused for multiple calls.
809
+ # client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new
810
+ #
811
+ # # Create a request. To set request fields, pass in keyword arguments.
812
+ # request = Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest.new
813
+ #
814
+ # # Call the aggregate_query_stats method.
815
+ # result = client.aggregate_query_stats request
816
+ #
817
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
818
+ # # over elements, and API calls will be issued to fetch pages as needed.
819
+ # result.each do |item|
820
+ # # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo.
821
+ # p item
822
+ # end
823
+ #
824
+ def aggregate_query_stats request, options = nil
825
+ raise ::ArgumentError, "request must be provided" if request.nil?
826
+
827
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest
828
+
829
+ # Converts hash and nil to an options object
830
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
831
+
832
+ # Customize the options with defaults
833
+ call_metadata = @config.rpcs.aggregate_query_stats.metadata.to_h
834
+
835
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
836
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
837
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
838
+ gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::VERSION,
839
+ transports_version_send: [:rest]
840
+
841
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
842
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
+
844
+ options.apply_defaults timeout: @config.rpcs.aggregate_query_stats.timeout,
845
+ metadata: call_metadata,
846
+ retry_policy: @config.rpcs.aggregate_query_stats.retry_policy
847
+
848
+ options.apply_defaults timeout: @config.timeout,
849
+ metadata: @config.metadata,
850
+ retry_policy: @config.retry_policy
851
+
852
+ @database_center_stub.aggregate_query_stats request, options do |result, operation|
853
+ result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :aggregate_query_stats, "query_stats", request, result, options
854
+ yield result, operation if block_given?
855
+ throw :response, result
856
+ end
857
+ rescue ::Gapic::Rest::Error => e
858
+ raise ::Google::Cloud::Error.from_error(e)
859
+ end
860
+
731
861
  ##
732
862
  # QueryIssues provides a list of issues and recommendations
733
863
  # that a user has access to and that are within the requested scope.
@@ -1018,6 +1148,11 @@ module Google
1018
1148
  #
1019
1149
  attr_reader :aggregate_issue_stats
1020
1150
  ##
1151
+ # RPC-specific configuration for `aggregate_query_stats`
1152
+ # @return [::Gapic::Config::Method]
1153
+ #
1154
+ attr_reader :aggregate_query_stats
1155
+ ##
1021
1156
  # RPC-specific configuration for `query_issues`
1022
1157
  # @return [::Gapic::Config::Method]
1023
1158
  #
@@ -1033,6 +1168,8 @@ module Google
1033
1168
  @query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config
1034
1169
  aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats
1035
1170
  @aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config
1171
+ aggregate_query_stats_config = parent_rpcs.aggregate_query_stats if parent_rpcs.respond_to? :aggregate_query_stats
1172
+ @aggregate_query_stats = ::Gapic::Config::Method.new aggregate_query_stats_config
1036
1173
  query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues
1037
1174
  @query_issues = ::Gapic::Config::Method.new query_issues_config
1038
1175
 
@@ -233,6 +233,46 @@ module Google
233
233
  end
234
234
  end
235
235
 
236
+ ##
237
+ # Baseline implementation for the aggregate_query_stats REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @param options [::Gapic::CallOptions]
242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
243
+ #
244
+ # @yield [result, operation] Access the result along with the TransportOperation object
245
+ # @yieldparam result [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsResponse]
246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
247
+ #
248
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsResponse]
249
+ # A result object deserialized from the server's reply
250
+ def aggregate_query_stats request_pb, options = nil
251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
+
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_aggregate_query_stats_request request_pb
254
+ query_string_params = if query_string_params.any?
255
+ query_string_params.to_h { |p| p.split "=", 2 }
256
+ else
257
+ {}
258
+ end
259
+
260
+ response = @client_stub.make_http_request(
261
+ verb,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "aggregate_query_stats",
266
+ options: options
267
+ )
268
+ operation = ::Gapic::Rest::TransportOperation.new response
269
+ result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsResponse.decode_json response.body, ignore_unknown_fields: true
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
274
+ end
275
+
236
276
  ##
237
277
  # Baseline implementation for the query_issues REST call
238
278
  #
@@ -351,6 +391,44 @@ module Google
351
391
  transcoder.transcode request_pb
352
392
  end
353
393
 
394
+ ##
395
+ # @private
396
+ #
397
+ # GRPC transcoding helper method for the aggregate_query_stats REST call
398
+ #
399
+ # @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest]
400
+ # A request object representing the call parameters. Required.
401
+ # @return [Array(String, [String, nil], Hash{String => String})]
402
+ # Uri, Body, Query string parameters
403
+ def self.transcode_aggregate_query_stats_request request_pb
404
+ transcoder = Gapic::Rest::GrpcTranscoder.new
405
+ .with_bindings(
406
+ uri_method: :post,
407
+ uri_template: "/v1beta/{parent}:aggregateQueryStats",
408
+ body: "*",
409
+ matches: [
410
+ ["parent", %r{^organizations/[^/]+/?$}, false]
411
+ ]
412
+ )
413
+ .with_bindings(
414
+ uri_method: :post,
415
+ uri_template: "/v1beta/{parent}:aggregateQueryStats",
416
+ body: "*",
417
+ matches: [
418
+ ["parent", %r{^folders/[^/]+/?$}, false]
419
+ ]
420
+ )
421
+ .with_bindings(
422
+ uri_method: :post,
423
+ uri_template: "/v1beta/{parent}:aggregateQueryStats",
424
+ body: "*",
425
+ matches: [
426
+ ["parent", %r{^projects/[^/]+/?$}, false]
427
+ ]
428
+ )
429
+ transcoder.transcode request_pb
430
+ end
431
+
354
432
  ##
355
433
  # @private
356
434
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DatabaseCenter
23
23
  module V1beta
24
- VERSION = "0.5.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/databasecenter/v1beta/affiliation.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+
9
+
10
+ descriptor_data = "\n4google/cloud/databasecenter/v1beta/affiliation.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xcf\x03\n\x0b\x41\x66\x66iliation\x12\x18\n\x0bresource_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x66ull_resource_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12N\n\x08lineages\x18\x03 \x03(\x0b\x32\x37.google.cloud.databasecenter.v1beta.Affiliation.LineageB\x03\xe0\x41\x01\x1a\xad\x01\n\x07Lineage\x12\x17\n\nsource_fqn\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ntarget_fqn\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bprocess_fqn\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12V\n\x0cprocess_type\x18\x04 \x01(\x0e\x32;.google.cloud.databasecenter.v1beta.Affiliation.ProcessTypeB\x03\xe0\x41\x01\"\x84\x01\n\x0bProcessType\x12\x1c\n\x18PROCESS_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43OMPOSER\x10\x01\x12\x0e\n\nDATASTREAM\x10\x02\x12\x0c\n\x08\x44\x41TAFLOW\x10\x03\x12\x0c\n\x08\x42IGQUERY\x10\x04\x12\x0f\n\x0b\x44\x41TA_FUSION\x10\x05\x12\x0c\n\x08\x44\x41TAPROC\x10\x06\x42\xfe\x01\n&com.google.cloud.databasecenter.v1betaB\x10\x41\x66\x66iliationProtoP\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"
11
+
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Google
16
+ module Cloud
17
+ module DatabaseCenter
18
+ module V1beta
19
+ Affiliation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Affiliation").msgclass
20
+ Affiliation::Lineage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Affiliation.Lineage").msgclass
21
+ Affiliation::ProcessType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Affiliation.ProcessType").enummodule
22
+ end
23
+ end
24
+ end
25
+ end
@@ -7,7 +7,7 @@ require 'google/protobuf'
7
7
  require 'google/api/field_behavior_pb'
8
8
 
9
9
 
10
- 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"
10
+ descriptor_data = "\n7google/cloud/databasecenter/v1beta/machine_config.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\x92\x02\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\x12%\n\x13\x62\x61seline_slot_count\x18\x05 \x01(\x03\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x12,\n\x1amax_reservation_slot_count\x18\x06 \x01(\x03\x42\x03\xe0\x41\x01H\x03\x88\x01\x01\x42\x0e\n\x0c_shard_countB\r\n\x0b_vcpu_countB\x16\n\x14_baseline_slot_countB\x1d\n\x1b_max_reservation_slot_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"
11
11
 
12
12
  pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
13
  pool.add_serialized_file(descriptor_data)
@@ -5,12 +5,13 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/field_behavior_pb'
8
+ require 'google/protobuf/timestamp_pb'
8
9
  require 'google/type/date_pb'
9
10
  require 'google/type/dayofweek_pb'
10
11
  require 'google/type/timeofday_pb'
11
12
 
12
13
 
13
- 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"
14
+ descriptor_data = "\n4google/cloud/databasecenter/v1beta/maintenance.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.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\"}\n\x13UpcomingMaintenance\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xf6\x04\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\x12<\n\x1c\x63urrent_version_release_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x03\x12Z\n\x14upcoming_maintenance\x18\x05 \x01(\x0b\x32\x37.google.cloud.databasecenter.v1beta.UpcomingMaintenanceB\x03\xe0\x41\x03\x12H\n\x05state\x18\x06 \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.MaintenanceStateB\x03\xe0\x41\x03\x12`\n\x18possible_failure_reasons\x18\x07 \x03(\x0e\x32\x39.google.cloud.databasecenter.v1beta.PossibleFailureReasonB\x03\xe0\x41\x03\x12)\n\x1cprevious_maintenance_version\x18\x08 \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*\xb8\x01\n\x10MaintenanceState\x12!\n\x1dMAINTENANCE_STATE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bMAINTENANCE_STATE_SCHEDULED\x10\x01\x12!\n\x1dMAINTENANCE_STATE_IN_PROGRESS\x10\x02\x12\x1f\n\x1bMAINTENANCE_STATE_COMPLETED\x10\x03\x12\x1c\n\x18MAINTENANCE_STATE_FAILED\x10\x04*\xa9\x01\n\x15PossibleFailureReason\x12\'\n#POSSIBLE_FAILURE_REASON_UNSPECIFIED\x10\x00\x12\x30\n,POSSIBLE_FAILURE_REASON_DENY_POLICY_CONFLICT\x10\x01\x12\x35\n1POSSIBLE_FAILURE_REASON_INSTANCE_IN_STOPPED_STATE\x10\x02\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"
14
15
 
15
16
  pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
17
  pool.add_serialized_file(descriptor_data)
@@ -21,8 +22,11 @@ module Google
21
22
  module V1beta
22
23
  ResourceMaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule").msgclass
23
24
  ResourceMaintenanceDenySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule").msgclass
25
+ UpcomingMaintenance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.UpcomingMaintenance").msgclass
24
26
  MaintenanceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MaintenanceInfo").msgclass
25
27
  Phase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Phase").enummodule
28
+ MaintenanceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MaintenanceState").enummodule
29
+ PossibleFailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.PossibleFailureReason").enummodule
26
30
  end
27
31
  end
28
32
  end
@@ -7,15 +7,18 @@ require 'google/protobuf'
7
7
  require 'google/api/annotations_pb'
8
8
  require 'google/api/client_pb'
9
9
  require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/databasecenter/v1beta/affiliation_pb'
10
12
  require 'google/cloud/databasecenter/v1beta/machine_config_pb'
11
13
  require 'google/cloud/databasecenter/v1beta/maintenance_pb'
12
14
  require 'google/cloud/databasecenter/v1beta/metric_data_pb'
13
15
  require 'google/cloud/databasecenter/v1beta/product_pb'
14
16
  require 'google/cloud/databasecenter/v1beta/signals_pb'
17
+ require 'google/protobuf/duration_pb'
15
18
  require 'google/type/date_pb'
16
19
 
17
20
 
18
- 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*\xc0\x02\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\x1f\n\x1bSUB_RESOURCE_TYPE_READ_POOL\x10\x06\x12!\n\x1dSUB_RESOURCE_TYPE_RESERVATION\x10\x07\x12\x1d\n\x19SUB_RESOURCE_TYPE_DATASET\x10\x08\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"
21
+ 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\x19google/api/resource.proto\x1a\x34google/cloud/databasecenter/v1beta/affiliation.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\x1egoogle/protobuf/duration.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\"\xa2\x08\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\x12J\n\x0c\x61\x66\x66iliations\x18\x14 \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.AffiliationB\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\"\x8e\x01\n\x1a\x41ggregateQueryStatsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08order_by\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x1b\x41ggregateQueryStatsResponse\x12G\n\x0bquery_stats\x18\x01 \x03(\x0b\x32\x32.google.cloud.databasecenter.v1beta.QueryStatsInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\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\"\xa5\x01\n\x0eQueryStatsInfo\x12N\n\x16\x61ggregated_query_stats\x18\x01 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.QueryStats\x12\x43\n\x0bquery_stats\x18\x02 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.QueryStats\"}\n\nResourceId\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x15\n\rresource_type\x18\x02 \x01(\t\x12<\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\"\xc2\x02\n\nQueryStats\x12\x12\n\nquery_hash\x18\x01 \x01(\t\x12\x18\n\x10normalized_query\x18\x02 \x01(\t\x12\x1d\n\rresource_type\x18\x04 \x01(\tB\x06\xfa\x41\x03\n\x01*\x12\x44\n\x0cresource_ids\x18\x05 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.ResourceId\x12G\n\rquery_metrics\x18\x06 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.QueryMetrics\x12X\n\x16inefficient_query_info\x18\x07 \x01(\x0b\x32\x38.google.cloud.databasecenter.v1beta.InefficientQueryInfo\"\xe5\x02\n\x0cQueryMetrics\x12\x17\n\x0f\x65xecution_count\x18\x01 \x01(\x03\x12/\n\x0c\x61vg_cpu_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x31\n\x0etotal_cpu_time\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0erows_processed\x18\x04 \x01(\x03\x12V\n\x0emetrics_window\x18\x05 \x01(\x0e\x32>.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow\"h\n\rMetricsWindow\x12\x1e\n\x1aMETRICS_WINDOW_UNSPECIFIED\x10\x00\x12\x10\n\x0cLAST_ONE_DAY\x10\x01\x12\x11\n\rLAST_ONE_WEEK\x10\x02\x12\x12\n\x0eLAST_TWO_WEEKS\x10\x03\"\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*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*\xc0\x02\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\x1f\n\x1bSUB_RESOURCE_TYPE_READ_POOL\x10\x06\x12!\n\x1dSUB_RESOURCE_TYPE_RESERVATION\x10\x07\x12\x1d\n\x19SUB_RESOURCE_TYPE_DATASET\x10\x08\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*|\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\x12\x0b\n\x07\x44\x41TASET\x10\x04\x12\x0f\n\x0bRESERVATION\x10\x05\x32\xc6\n\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\xc4\x02\n\x13\x41ggregateQueryStats\x12>.google.cloud.databasecenter.v1beta.AggregateQueryStatsRequest\x1a?.google.cloud.databasecenter.v1beta.AggregateQueryStatsResponse\"\xab\x01\x82\xd3\xe4\x93\x02\xa4\x01\"4/v1beta/{parent=organizations/*}:aggregateQueryStats:\x01*Z3\"./v1beta/{parent=folders/*}:aggregateQueryStats:\x01*Z4\"//v1beta/{parent=projects/*}:aggregateQueryStats:\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"
19
22
 
20
23
  pool = ::Google::Protobuf::DescriptorPool.generated_pool
21
24
  pool.add_serialized_file(descriptor_data)
@@ -31,11 +34,18 @@ module Google
31
34
  DatabaseResourceGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResourceGroup").msgclass
32
35
  DatabaseResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResource").msgclass
33
36
  AggregateIssueStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest").msgclass
37
+ AggregateQueryStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateQueryStatsRequest").msgclass
38
+ AggregateQueryStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateQueryStatsResponse").msgclass
34
39
  AggregateIssueStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse").msgclass
35
40
  IssueGroupStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueGroupStats").msgclass
36
41
  IssueStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueStats").msgclass
37
42
  Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Label").msgclass
38
43
  AggregateFleetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRequest").msgclass
44
+ QueryStatsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryStatsInfo").msgclass
45
+ ResourceId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceId").msgclass
46
+ QueryStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryStats").msgclass
47
+ QueryMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryMetrics").msgclass
48
+ QueryMetrics::MetricsWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow").enummodule
39
49
  AggregateFleetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetResponse").msgclass
40
50
  AggregateFleetRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRow").msgclass
41
51
  Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Dimension").msgclass
@@ -47,10 +57,10 @@ module Google
47
57
  Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Tag").msgclass
48
58
  ResourceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceDetails").msgclass
49
59
  DeltaDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DeltaDetails").msgclass
50
- ResourceCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceCategory").enummodule
51
60
  Edition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Edition").enummodule
52
61
  SubResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.SubResourceType").enummodule
53
62
  ManagementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ManagementType").enummodule
63
+ ResourceCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceCategory").enummodule
54
64
  end
55
65
  end
56
66
  end
@@ -43,6 +43,8 @@ module Google
43
43
  rpc :QueryDatabaseResourceGroups, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse
44
44
  # AggregateIssueStats provides database resource issues statistics.
45
45
  rpc :AggregateIssueStats, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse
46
+ # AggregateQueryStats provides database resource query execution statistics.
47
+ rpc :AggregateQueryStats, ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsResponse
46
48
  # QueryIssues provides a list of issues and recommendations
47
49
  # that a user has access to and that are within the requested scope.
48
50
  rpc :QueryIssues, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse
@@ -31,6 +31,8 @@ module Google
31
31
  # @!attribute [rw] selective_gapic_generation
32
32
  # @return [::Google::Api::SelectiveGapicGeneration]
33
33
  # Configuration for which RPCs should be generated in the GAPIC client.
34
+ #
35
+ # Note: This field should not be used in most cases.
34
36
  class CommonLanguageSettings
35
37
  include ::Google::Protobuf::MessageExts
36
38
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -441,6 +443,8 @@ module Google
441
443
 
442
444
  # This message is used to configure the generation of a subset of the RPCs in
443
445
  # a service for client libraries.
446
+ #
447
+ # Note: This feature should not be used in most cases.
444
448
  # @!attribute [rw] methods
445
449
  # @return [::Array<::String>]
446
450
  # An allowlist of the fully qualified names of RPCs that should be included
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DatabaseCenter
23
+ module V1beta
24
+ # Affiliation information of a resource
25
+ # @!attribute [rw] resource_id
26
+ # @return [::String]
27
+ # Optional. resource id of affiliated resource
28
+ # @!attribute [rw] full_resource_name
29
+ # @return [::String]
30
+ # Optional. Full resource name
31
+ # @!attribute [rw] lineages
32
+ # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Affiliation::Lineage>]
33
+ # Optional. Multiple lineages can be created from a resource.
34
+ # For example, a resource can be replicated to multiple target resources.
35
+ # In this case, there will be multiple lineages for the resource, one for
36
+ # each target resource.
37
+ class Affiliation
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+
41
+ # lineage information of the affiliated resources
42
+ # This captures source, target and process which created the lineage.
43
+ # @!attribute [rw] source_fqn
44
+ # @return [::String]
45
+ # Optional. FQN of source table / column
46
+ # @!attribute [rw] target_fqn
47
+ # @return [::String]
48
+ # Optional. FQN of target table / column
49
+ # @!attribute [rw] process_fqn
50
+ # @return [::String]
51
+ # Optional. FQN of process which created the lineage i.e. dataplex,
52
+ # datastream etc.
53
+ # @!attribute [rw] process_type
54
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::Affiliation::ProcessType]
55
+ # Optional. Type of process which created the lineage.
56
+ class Lineage
57
+ include ::Google::Protobuf::MessageExts
58
+ extend ::Google::Protobuf::MessageExts::ClassMethods
59
+ end
60
+
61
+ # Type of process which created the lineage.
62
+ module ProcessType
63
+ # Unspecified process type.
64
+ PROCESS_TYPE_UNSPECIFIED = 0
65
+
66
+ # Composer process type.
67
+ COMPOSER = 1
68
+
69
+ # Datastream process type.
70
+ DATASTREAM = 2
71
+
72
+ # Dataflow process type.
73
+ DATAFLOW = 3
74
+
75
+ # Bigquery process type.
76
+ BIGQUERY = 4
77
+
78
+ # Data fusion process type.
79
+ DATA_FUSION = 5
80
+
81
+ # Dataproc process type.
82
+ DATAPROC = 6
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -32,6 +32,14 @@ module Google
32
32
  # @!attribute [rw] vcpu_count
33
33
  # @return [::Float]
34
34
  # Optional. The number of vCPUs (if applicable).
35
+ # @!attribute [rw] baseline_slot_count
36
+ # @return [::Integer]
37
+ # Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
38
+ # increments of 50.
39
+ # @!attribute [rw] max_reservation_slot_count
40
+ # @return [::Integer]
41
+ # Optional. Max slots for BigQuery Reservations. Max slots are in increments
42
+ # of 50.
35
43
  class MachineConfig
36
44
  include ::Google::Protobuf::MessageExts
37
45
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -62,6 +62,21 @@ module Google
62
62
  extend ::Google::Protobuf::MessageExts::ClassMethods
63
63
  end
64
64
 
65
+ # Upcoming maintenance window for the database resource.
66
+ # @!attribute [r] start_time
67
+ # @return [::Google::Protobuf::Timestamp]
68
+ # Output only. Start time of the upcoming maintenance.
69
+ # Start time is always populated when an upcoming maintenance is
70
+ # scheduled.
71
+ # @!attribute [r] end_time
72
+ # @return [::Google::Protobuf::Timestamp]
73
+ # Output only. End time of the upcoming maintenance. This is only populated
74
+ # for an engine, if end time is public for the engine.
75
+ class UpcomingMaintenance
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
78
+ end
79
+
65
80
  # MaintenanceInfo to capture the maintenance details of database resource.
66
81
  # @!attribute [rw] maintenance_schedule
67
82
  # @return [::Google::Cloud::DatabaseCenter::V1beta::ResourceMaintenanceSchedule]
@@ -73,6 +88,32 @@ module Google
73
88
  # @return [::String]
74
89
  # Output only. Current Maintenance version of the database resource. Example:
75
90
  # "MYSQL_8_0_41.R20250531.01_15"
91
+ # @!attribute [r] current_version_release_date
92
+ # @return [::Google::Type::Date]
93
+ # Output only. The date when the maintenance version was released.
94
+ # @!attribute [r] upcoming_maintenance
95
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::UpcomingMaintenance]
96
+ # Output only. Upcoming maintenance window for the database resource. This is
97
+ # only populated for an engine, if upcoming maintenance is scheduled for the
98
+ # resource. This schedule is generated per engine and engine version, and
99
+ # there is only one upcoming maintenance window at any given time. In case of
100
+ # upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
101
+ # and then IN_PROGRESS when the maintenance window starts.
102
+ # @!attribute [r] state
103
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::MaintenanceState]
104
+ # Output only. Resource maintenance state. This is to capture the current
105
+ # state of the maintenance.
106
+ # @!attribute [r] possible_failure_reasons
107
+ # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::PossibleFailureReason>]
108
+ # Output only. List of possible reasons why the maintenance is not completed.
109
+ # This is an optional field and is only populated if there are any
110
+ # reasons for failures recorded for the maintenance by DB Center.
111
+ # FAILURE maintenance status may not always have a failure reason.
112
+ # @!attribute [r] previous_maintenance_version
113
+ # @return [::String]
114
+ # Output only. Previous maintenance version of the database resource.
115
+ # Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
116
+ # version maintenance is complete on a database resource.
76
117
  class MaintenanceInfo
77
118
  include ::Google::Protobuf::MessageExts
78
119
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -99,6 +140,38 @@ module Google
99
140
  # Any phase.
100
141
  PHASE_ANY = 4
101
142
  end
143
+
144
+ # Resource maintenance state.
145
+ module MaintenanceState
146
+ # Status is unspecified.
147
+ MAINTENANCE_STATE_UNSPECIFIED = 0
148
+
149
+ # Maintenance is scheduled.
150
+ MAINTENANCE_STATE_SCHEDULED = 1
151
+
152
+ # Maintenance is in progress.
153
+ MAINTENANCE_STATE_IN_PROGRESS = 2
154
+
155
+ # Maintenance is completed.
156
+ MAINTENANCE_STATE_COMPLETED = 3
157
+
158
+ # Maintenance has failed.
159
+ MAINTENANCE_STATE_FAILED = 4
160
+ end
161
+
162
+ # Possible reasons why the maintenance is not completed.
163
+ # STATE_FAILED maintenance state may not always have a failure reason.
164
+ module PossibleFailureReason
165
+ # Failure reason is unspecified.
166
+ POSSIBLE_FAILURE_REASON_UNSPECIFIED = 0
167
+
168
+ # Maintenance may not be completed because there is a deny policy
169
+ # overlapping with upcoming maintenance schedule.
170
+ POSSIBLE_FAILURE_REASON_DENY_POLICY_CONFLICT = 1
171
+
172
+ # Maintenance may not be completed because the instance is stopped.
173
+ POSSIBLE_FAILURE_REASON_INSTANCE_IN_STOPPED_STATE = 2
174
+ end
102
175
  end
103
176
  end
104
177
  end
@@ -305,6 +305,9 @@ module Google
305
305
  # @!attribute [rw] maintenance_info
306
306
  # @return [::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo]
307
307
  # Optional. The maintenance information of the resource.
308
+ # @!attribute [rw] affiliations
309
+ # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::Affiliation>]
310
+ # Optional. Affiliation details of the resource.
308
311
  class DatabaseResource
309
312
  include ::Google::Protobuf::MessageExts
310
313
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -354,6 +357,85 @@ module Google
354
357
  extend ::Google::Protobuf::MessageExts::ClassMethods
355
358
  end
356
359
 
360
+ # AggregateQueryStatsRequest represents the input to the AggregateQueryStats
361
+ # method.
362
+ # @!attribute [rw] parent
363
+ # @return [::String]
364
+ # Required. Parent can be a project, a folder, or an organization. The search
365
+ # is limited to the resources within the `parent`.
366
+ #
367
+ # The allowed values are:
368
+ #
369
+ # * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar")
370
+ # * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678")
371
+ # * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567")
372
+ # * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
373
+ # @!attribute [rw] order_by
374
+ # @return [::String]
375
+ # Optional. The expression to order the results by.
376
+ # Example: `order_by="execution_count"`
377
+ # Example: `order_by="execution_count desc"`
378
+ # Supported order by fields are `execution_count`, `rows_processed`,
379
+ # `total_cpu_time`, `avg_cpu_time`.
380
+ # @!attribute [rw] filter
381
+ # @return [::String]
382
+ # Optional. The expression to filter resources.
383
+ #
384
+ # Supported fields are: `full_resource_name`, `resource_type`, `container`,
385
+ # `product.type`, `product.engine`, `product.version`, `location`,
386
+ # `labels`, `issues`, fields of availability_info,
387
+ # data_protection_info,'resource_name', etc.
388
+ #
389
+ # The expression is a list of zero or more restrictions combined via logical
390
+ # operators `AND` and `OR`. When `AND` and `OR` are both used in the
391
+ # expression, parentheses must be appropriately used to group the
392
+ # combinations.
393
+ #
394
+ # Example: `location="us-east1"`
395
+ # Example: `container="projects/123" OR container="projects/456"`
396
+ # Example: `(container="projects/123" OR
397
+ # container="projects/456") AND location="us-east1"`
398
+ # Additional specific fields for query stats are: `metric_window`,
399
+ # `query_hash`, `normalized_query`.
400
+ # Example: `metric_window="LAST_ONE_DAY"`
401
+ # (Possible values for `metric_window` are: `LAST_ONE_DAY`,
402
+ # `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`)
403
+ # Example: `query_hash="12345678"`
404
+ # Example: `normalized_query="SELECT * FROM table"`
405
+ # @!attribute [rw] page_size
406
+ # @return [::Integer]
407
+ # Optional. If unspecified, at most 100 query stats will be returned.
408
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
409
+ # @!attribute [rw] page_token
410
+ # @return [::String]
411
+ # Optional. A page token, received from a previous
412
+ # `AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent
413
+ # page. All parameters except page_token should match the parameters in the
414
+ # call that provided the page token.
415
+ class AggregateQueryStatsRequest
416
+ include ::Google::Protobuf::MessageExts
417
+ extend ::Google::Protobuf::MessageExts::ClassMethods
418
+ end
419
+
420
+ # The response message containing relevant query stats
421
+ # for database resources.
422
+ # @!attribute [rw] query_stats
423
+ # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
424
+ # List of query stats where each group contains stats for resources having a
425
+ # particular combination of relevant query stats.
426
+ # @!attribute [rw] next_page_token
427
+ # @return [::String]
428
+ # A token that can be sent as `page_token` to retrieve the next page.
429
+ # If this field is omitted, there are no subsequent pages.
430
+ # @!attribute [rw] unreachable
431
+ # @return [::Array<::String>]
432
+ # Unordered list. List of unreachable regions from where data could not be
433
+ # retrieved.
434
+ class AggregateQueryStatsResponse
435
+ include ::Google::Protobuf::MessageExts
436
+ extend ::Google::Protobuf::MessageExts::ClassMethods
437
+ end
438
+
357
439
  # The response message containing one of more group of relevant health issues
358
440
  # for database resources.
359
441
  # @!attribute [rw] issue_group_stats
@@ -531,6 +613,105 @@ module Google
531
613
  extend ::Google::Protobuf::MessageExts::ClassMethods
532
614
  end
533
615
 
616
+ # QueryStatsInfo contains the aggregated and detailed query stats for a
617
+ # particular combination of relevant query stats for queries having same
618
+ # normalized query.
619
+ # @!attribute [rw] aggregated_query_stats
620
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryStats]
621
+ # Aggregated query stats for the resources for same normalized query.
622
+ # @!attribute [rw] query_stats
623
+ # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::QueryStats>]
624
+ # List of query stats for the resources in the group.
625
+ # This stats is stats at resource level for the resources having same
626
+ # normalized query.
627
+ class QueryStatsInfo
628
+ include ::Google::Protobuf::MessageExts
629
+ extend ::Google::Protobuf::MessageExts::ClassMethods
630
+ end
631
+
632
+ # ResourceId contains the identifier for a database resource,
633
+ # including the full resource name, resource type, and product.
634
+ # @!attribute [rw] full_resource_name
635
+ # @return [::String]
636
+ # The full resource name of the resource.
637
+ # @!attribute [rw] resource_type
638
+ # @return [::String]
639
+ # The type of the resource.
640
+ # sqladmin.googleapis.com/Instance
641
+ # alloydb.googleapis.com/Cluster
642
+ # alloydb.googleapis.com/Instance
643
+ # @!attribute [rw] product
644
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::Product]
645
+ # The product of the resource, including the type, engine, and version.
646
+ class ResourceId
647
+ include ::Google::Protobuf::MessageExts
648
+ extend ::Google::Protobuf::MessageExts::ClassMethods
649
+ end
650
+
651
+ # QueryStats contains the stats for a particular combination of query_hash,
652
+ # query_string and resource_type.
653
+ # @!attribute [rw] query_hash
654
+ # @return [::String]
655
+ # The query hash of the query.
656
+ # @!attribute [rw] normalized_query
657
+ # @return [::String]
658
+ # The query string is normalized query without any PII data.
659
+ # @!attribute [rw] resource_type
660
+ # @return [::String]
661
+ # The type of the resource.
662
+ # sqladmin.googleapis.com/Instance
663
+ # alloydb.googleapis.com/Cluster
664
+ # alloydb.googleapis.com/Instance
665
+ # @!attribute [rw] resource_ids
666
+ # @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceId>]
667
+ # The resource ids for which the query stats are collected.
668
+ # @!attribute [rw] query_metrics
669
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics]
670
+ # Metrics related to the query performance.
671
+ # @!attribute [rw] inefficient_query_info
672
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo]
673
+ # Information about inefficient query.
674
+ class QueryStats
675
+ include ::Google::Protobuf::MessageExts
676
+ extend ::Google::Protobuf::MessageExts::ClassMethods
677
+ end
678
+
679
+ # QueryMetrics contains the metrics related to the query execution.
680
+ # @!attribute [rw] execution_count
681
+ # @return [::Integer]
682
+ # The number of times the query was executed.
683
+ # @!attribute [rw] avg_cpu_time
684
+ # @return [::Google::Protobuf::Duration]
685
+ # The average execution period of the query across all runs.
686
+ # @!attribute [rw] total_cpu_time
687
+ # @return [::Google::Protobuf::Duration]
688
+ # The total CPU time consumed by the query across all runs.
689
+ # @!attribute [rw] rows_processed
690
+ # @return [::Integer]
691
+ # The average number of rows processed by the query across all runs.
692
+ # @!attribute [rw] metrics_window
693
+ # @return [::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics::MetricsWindow]
694
+ # The window over which the metrics are aggregated.
695
+ class QueryMetrics
696
+ include ::Google::Protobuf::MessageExts
697
+ extend ::Google::Protobuf::MessageExts::ClassMethods
698
+
699
+ # Enum to represent the window over which the metrics are aggregated.
700
+ module MetricsWindow
701
+ # Unspecified. Default value.
702
+ METRICS_WINDOW_UNSPECIFIED = 0
703
+
704
+ # Metrics are aggregated over the last 1 day.
705
+ LAST_ONE_DAY = 1
706
+
707
+ # Metrics are aggregated over the last 7 days.
708
+ LAST_ONE_WEEK = 2
709
+
710
+ # Metrics are aggregated over the last 14 days.
711
+ LAST_TWO_WEEKS = 3
712
+ end
713
+ end
714
+
534
715
  # The response message to aggregate a fleet by some group by
535
716
  # fields.
536
717
  # @!attribute [rw] rows
@@ -851,21 +1032,6 @@ module Google
851
1032
  extend ::Google::Protobuf::MessageExts::ClassMethods
852
1033
  end
853
1034
 
854
- # The enum value corresponds to 'type' suffix in the resource_type field.
855
- module ResourceCategory
856
- # Unspecified.
857
- RESOURCE_CATEGORY_UNSPECIFIED = 0
858
-
859
- # A resource that is an Instance.
860
- INSTANCE = 1
861
-
862
- # A resource that is a Cluster.
863
- CLUSTER = 2
864
-
865
- # A resource that is a Database.
866
- DATABASE = 3
867
- end
868
-
869
1035
  # Represents the edition of a database resource.
870
1036
  module Edition
871
1037
  # Default, to make it consistent with instance edition enum.
@@ -922,6 +1088,27 @@ module Google
922
1088
  # Self-managed resource.
923
1089
  MANAGEMENT_TYPE_SELF_MANAGED = 2
924
1090
  end
1091
+
1092
+ # The enum value corresponds to 'type' suffix in the resource_type field.
1093
+ module ResourceCategory
1094
+ # Unspecified.
1095
+ RESOURCE_CATEGORY_UNSPECIFIED = 0
1096
+
1097
+ # A resource that is an Instance.
1098
+ INSTANCE = 1
1099
+
1100
+ # A resource that is a Cluster.
1101
+ CLUSTER = 2
1102
+
1103
+ # A resource that is a Database.
1104
+ DATABASE = 3
1105
+
1106
+ # A resource that is a Dataset.
1107
+ DATASET = 4
1108
+
1109
+ # A resource that is a Reservation.
1110
+ RESERVATION = 5
1111
+ end
925
1112
  end
926
1113
  end
927
1114
  end
@@ -24,14 +24,17 @@ module Google
24
24
  # date is relative to the Gregorian Calendar. This can represent one of the
25
25
  # following:
26
26
  #
27
- # * A full date, with non-zero year, month, and day values
28
- # * A month and day value, with a zero year, such as an anniversary
29
- # * A year on its own, with zero month and day values
30
- # * A year and month value, with a zero day, such as a credit card expiration
31
- # date
27
+ # * A full date, with non-zero year, month, and day values.
28
+ # * A month and day, with a zero year (for example, an anniversary).
29
+ # * A year on its own, with a zero month and a zero day.
30
+ # * A year and month, with a zero day (for example, a credit card expiration
31
+ # date).
32
32
  #
33
- # Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and
34
- # `google.protobuf.Timestamp`.
33
+ # Related types:
34
+ #
35
+ # * {::Google::Type::TimeOfDay google.type.TimeOfDay}
36
+ # * [google.type.DateTime][google.type.DateTime]
37
+ # * {::Google::Protobuf::Timestamp google.protobuf.Timestamp}
35
38
  # @!attribute [rw] year
36
39
  # @return [::Integer]
37
40
  # Year of the date. Must be from 1 to 9999, or 0 to specify a date without
@@ -25,18 +25,22 @@ module Google
25
25
  # `google.protobuf.Timestamp`.
26
26
  # @!attribute [rw] hours
27
27
  # @return [::Integer]
28
- # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
29
- # to allow the value "24:00:00" for scenarios like business closing time.
28
+ # Hours of a day in 24 hour format. Must be greater than or equal to 0 and
29
+ # typically must be less than or equal to 23. An API may choose to allow the
30
+ # value "24:00:00" for scenarios like business closing time.
30
31
  # @!attribute [rw] minutes
31
32
  # @return [::Integer]
32
- # Minutes of hour of day. Must be from 0 to 59.
33
+ # Minutes of an hour. Must be greater than or equal to 0 and less than or
34
+ # equal to 59.
33
35
  # @!attribute [rw] seconds
34
36
  # @return [::Integer]
35
- # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
36
- # allow the value 60 if it allows leap-seconds.
37
+ # Seconds of a minute. Must be greater than or equal to 0 and typically must
38
+ # be less than or equal to 59. An API may allow the value 60 if it allows
39
+ # leap-seconds.
37
40
  # @!attribute [rw] nanos
38
41
  # @return [::Integer]
39
- # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
42
+ # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
43
+ # and less than or equal to 999,999,999.
40
44
  class TimeOfDay
41
45
  include ::Google::Protobuf::MessageExts
42
46
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-database_center-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -62,6 +62,7 @@ files:
62
62
  - lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb
63
63
  - lib/google/cloud/database_center/v1beta/rest.rb
64
64
  - lib/google/cloud/database_center/v1beta/version.rb
65
+ - lib/google/cloud/databasecenter/v1beta/affiliation_pb.rb
65
66
  - lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb
66
67
  - lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb
67
68
  - lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb
@@ -76,6 +77,7 @@ files:
76
77
  - proto_docs/google/api/field_behavior.rb
77
78
  - proto_docs/google/api/launch_stage.rb
78
79
  - proto_docs/google/api/resource.rb
80
+ - proto_docs/google/cloud/databasecenter/v1beta/affiliation.rb
79
81
  - proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb
80
82
  - proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb
81
83
  - proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb