google-apis-databasecenter_v1beta 0.1.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 +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/databasecenter_v1beta/classes.rb +2560 -0
- data/lib/google/apis/databasecenter_v1beta/gem_version.rb +28 -0
- data/lib/google/apis/databasecenter_v1beta/representations.rb +1045 -0
- data/lib/google/apis/databasecenter_v1beta/service.rb +407 -0
- data/lib/google/apis/databasecenter_v1beta.rb +42 -0
- data/lib/google-apis-databasecenter_v1beta.rb +15 -0
- metadata +79 -0
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module DatabasecenterV1beta
|
|
23
|
+
# Database Center API
|
|
24
|
+
#
|
|
25
|
+
# Database Center offers a comprehensive, organization-wide platform for
|
|
26
|
+
# monitoring database fleet health across various products. It simplifies
|
|
27
|
+
# management and reduces risk by automatically aggregating and summarizing key
|
|
28
|
+
# health signals, removing the need for custom dashboards. The platform provides
|
|
29
|
+
# a unified view through its dashboard and API, enabling teams focused on
|
|
30
|
+
# reliability, compliance, security, cost, and administration to quickly
|
|
31
|
+
# identify and address relevant issues within their database fleets.
|
|
32
|
+
#
|
|
33
|
+
# @example
|
|
34
|
+
# require 'google/apis/databasecenter_v1beta'
|
|
35
|
+
#
|
|
36
|
+
# Databasecenter = Google::Apis::DatabasecenterV1beta # Alias the module
|
|
37
|
+
# service = Databasecenter::DatabaseCenterService.new
|
|
38
|
+
#
|
|
39
|
+
# @see https://docs.cloud.google.com/database-center/docs/overview
|
|
40
|
+
class DatabaseCenterService < Google::Apis::Core::BaseService
|
|
41
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://databasecenter.$UNIVERSE_DOMAIN$/"
|
|
42
|
+
|
|
43
|
+
# @return [String]
|
|
44
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
45
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
46
|
+
attr_accessor :key
|
|
47
|
+
|
|
48
|
+
# @return [String]
|
|
49
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
50
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
51
|
+
attr_accessor :quota_user
|
|
52
|
+
|
|
53
|
+
def initialize
|
|
54
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
|
55
|
+
client_name: 'google-apis-databasecenter_v1beta',
|
|
56
|
+
client_version: Google::Apis::DatabasecenterV1beta::GEM_VERSION)
|
|
57
|
+
@batch_path = 'batch'
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# AggregateQueryStats provides database resource query execution statistics.
|
|
61
|
+
# @param [String] parent
|
|
62
|
+
# Required. Parent can be a project, a folder, or an organization. The search is
|
|
63
|
+
# limited to the resources within the `parent`. The allowed values are: *
|
|
64
|
+
# projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` (
|
|
65
|
+
# e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567")
|
|
66
|
+
# * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456")
|
|
67
|
+
# @param [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest] aggregate_query_stats_request_object
|
|
68
|
+
# @param [String] fields
|
|
69
|
+
# Selector specifying which fields to include in a partial response.
|
|
70
|
+
# @param [String] quota_user
|
|
71
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
72
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
73
|
+
# @param [Google::Apis::RequestOptions] options
|
|
74
|
+
# Request-specific options
|
|
75
|
+
#
|
|
76
|
+
# @yield [result, err] Result & error if block supplied
|
|
77
|
+
# @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] parsed result object
|
|
78
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
79
|
+
#
|
|
80
|
+
# @return [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse]
|
|
81
|
+
#
|
|
82
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
83
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
84
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
85
|
+
def aggregate_folder_query_stats(parent, aggregate_query_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
86
|
+
command = make_simple_command(:post, 'v1beta/{+parent}:aggregateQueryStats', options)
|
|
87
|
+
command.request_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest::Representation
|
|
88
|
+
command.request_object = aggregate_query_stats_request_object
|
|
89
|
+
command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse::Representation
|
|
90
|
+
command.response_class = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse
|
|
91
|
+
command.params['parent'] = parent unless parent.nil?
|
|
92
|
+
command.query['fields'] = fields unless fields.nil?
|
|
93
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
94
|
+
execute_or_queue_command(command, &block)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# AggregateQueryStats provides database resource query execution statistics.
|
|
98
|
+
# @param [String] parent
|
|
99
|
+
# Required. Parent can be a project, a folder, or an organization. The search is
|
|
100
|
+
# limited to the resources within the `parent`. The allowed values are: *
|
|
101
|
+
# projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` (
|
|
102
|
+
# e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567")
|
|
103
|
+
# * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456")
|
|
104
|
+
# @param [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest] aggregate_query_stats_request_object
|
|
105
|
+
# @param [String] fields
|
|
106
|
+
# Selector specifying which fields to include in a partial response.
|
|
107
|
+
# @param [String] quota_user
|
|
108
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
109
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
110
|
+
# @param [Google::Apis::RequestOptions] options
|
|
111
|
+
# Request-specific options
|
|
112
|
+
#
|
|
113
|
+
# @yield [result, err] Result & error if block supplied
|
|
114
|
+
# @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] parsed result object
|
|
115
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
116
|
+
#
|
|
117
|
+
# @return [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse]
|
|
118
|
+
#
|
|
119
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
120
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
121
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
122
|
+
def aggregate_organization_query_stats(parent, aggregate_query_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
123
|
+
command = make_simple_command(:post, 'v1beta/{+parent}:aggregateQueryStats', options)
|
|
124
|
+
command.request_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest::Representation
|
|
125
|
+
command.request_object = aggregate_query_stats_request_object
|
|
126
|
+
command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse::Representation
|
|
127
|
+
command.response_class = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse
|
|
128
|
+
command.params['parent'] = parent unless parent.nil?
|
|
129
|
+
command.query['fields'] = fields unless fields.nil?
|
|
130
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
131
|
+
execute_or_queue_command(command, &block)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# AggregateQueryStats provides database resource query execution statistics.
|
|
135
|
+
# @param [String] parent
|
|
136
|
+
# Required. Parent can be a project, a folder, or an organization. The search is
|
|
137
|
+
# limited to the resources within the `parent`. The allowed values are: *
|
|
138
|
+
# projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` (
|
|
139
|
+
# e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567")
|
|
140
|
+
# * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456")
|
|
141
|
+
# @param [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest] aggregate_query_stats_request_object
|
|
142
|
+
# @param [String] fields
|
|
143
|
+
# Selector specifying which fields to include in a partial response.
|
|
144
|
+
# @param [String] quota_user
|
|
145
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
146
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
147
|
+
# @param [Google::Apis::RequestOptions] options
|
|
148
|
+
# Request-specific options
|
|
149
|
+
#
|
|
150
|
+
# @yield [result, err] Result & error if block supplied
|
|
151
|
+
# @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] parsed result object
|
|
152
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
153
|
+
#
|
|
154
|
+
# @return [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse]
|
|
155
|
+
#
|
|
156
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
157
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
158
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
159
|
+
def aggregate_project_query_stats(parent, aggregate_query_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
160
|
+
command = make_simple_command(:post, 'v1beta/{+parent}:aggregateQueryStats', options)
|
|
161
|
+
command.request_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest::Representation
|
|
162
|
+
command.request_object = aggregate_query_stats_request_object
|
|
163
|
+
command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse::Representation
|
|
164
|
+
command.response_class = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse
|
|
165
|
+
command.params['parent'] = parent unless parent.nil?
|
|
166
|
+
command.query['fields'] = fields unless fields.nil?
|
|
167
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
168
|
+
execute_or_queue_command(command, &block)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# AggregateFleet provides statistics about the fleet grouped by various fields.
|
|
172
|
+
# @param [Fixnum] baseline_date_day
|
|
173
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
|
|
174
|
+
# specify a year by itself or a year and month where the day isn't significant.
|
|
175
|
+
# @param [Fixnum] baseline_date_month
|
|
176
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
|
|
177
|
+
# and day.
|
|
178
|
+
# @param [Fixnum] baseline_date_year
|
|
179
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
|
|
180
|
+
# year.
|
|
181
|
+
# @param [String] filter
|
|
182
|
+
# Optional. The expression to filter resources. Supported fields are: `
|
|
183
|
+
# full_resource_name`, `resource_type`, `container`, `product.type`, `product.
|
|
184
|
+
# engine`, `product.version`, `location`, `labels`, `issues`, fields of
|
|
185
|
+
# availability_info, data_protection_info, 'resource_name', etc. The expression
|
|
186
|
+
# is a list of zero or more restrictions combined via logical operators `AND`
|
|
187
|
+
# and `OR`. When `AND` and `OR` are both used in the expression, parentheses
|
|
188
|
+
# must be appropriately used to group the combinations. Example: `location="us-
|
|
189
|
+
# east1"` Example: `container="projects/123" OR container="projects/456"`
|
|
190
|
+
# Example: `(container="projects/123" OR container="projects/456") AND location="
|
|
191
|
+
# us-east1"`
|
|
192
|
+
# @param [String] group_by
|
|
193
|
+
# Optional. A field that statistics are grouped by. Valid values are any
|
|
194
|
+
# combination of the following: * container * product.type * product.engine *
|
|
195
|
+
# product.version * location * sub_resource_type * management_type * tag.key *
|
|
196
|
+
# tag.value * tag.source * tag.inherited * label.key * label.value * label.
|
|
197
|
+
# source * has_maintenance_schedule * has_deny_maintenance_schedules Comma
|
|
198
|
+
# separated list.
|
|
199
|
+
# @param [String] order_by
|
|
200
|
+
# Optional. Valid values to order by are: * resource_groups_count *
|
|
201
|
+
# resources_count * and all fields supported by `group_by` The default order is
|
|
202
|
+
# ascending. Add "DESC" after the field name to indicate descending order. Add "
|
|
203
|
+
# ASC" after the field name to indicate ascending order. It supports ordering
|
|
204
|
+
# using multiple fields. For example: `order_by = "resource_groups_count"` sorts
|
|
205
|
+
# response in ascending order `order_by = "resource_groups_count DESC"` sorts
|
|
206
|
+
# response in descending order `order_by = "product.type, product.version DESC,
|
|
207
|
+
# location"` orders by type in ascending order, version in descending order and
|
|
208
|
+
# location in ascending order
|
|
209
|
+
# @param [Fixnum] page_size
|
|
210
|
+
# Optional. If unspecified, at most 50 items will be returned. The maximum value
|
|
211
|
+
# is 1000; values above 1000 will be coerced to 1000.
|
|
212
|
+
# @param [String] page_token
|
|
213
|
+
# Optional. A page token, received from a previous `AggregateFleet` call.
|
|
214
|
+
# Provide this to retrieve the subsequent page. All other parameters should
|
|
215
|
+
# match the parameters in the call that provided the page token except for
|
|
216
|
+
# page_size which can be different.
|
|
217
|
+
# @param [String] parent
|
|
218
|
+
# Required. Parent can be a project, a folder, or an organization. The search is
|
|
219
|
+
# limited to the resources within the `scope`. The allowed values are: *
|
|
220
|
+
# projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` (
|
|
221
|
+
# e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567")
|
|
222
|
+
# * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456")
|
|
223
|
+
# @param [String] fields
|
|
224
|
+
# Selector specifying which fields to include in a partial response.
|
|
225
|
+
# @param [String] quota_user
|
|
226
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
227
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
228
|
+
# @param [Google::Apis::RequestOptions] options
|
|
229
|
+
# Request-specific options
|
|
230
|
+
#
|
|
231
|
+
# @yield [result, err] Result & error if block supplied
|
|
232
|
+
# @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateFleetResponse] parsed result object
|
|
233
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
234
|
+
#
|
|
235
|
+
# @return [Google::Apis::DatabasecenterV1beta::AggregateFleetResponse]
|
|
236
|
+
#
|
|
237
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
238
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
239
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
240
|
+
def aggregate_fleet(baseline_date_day: nil, baseline_date_month: nil, baseline_date_year: nil, filter: nil, group_by: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
241
|
+
command = make_simple_command(:get, 'v1beta:aggregateFleet', options)
|
|
242
|
+
command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateFleetResponse::Representation
|
|
243
|
+
command.response_class = Google::Apis::DatabasecenterV1beta::AggregateFleetResponse
|
|
244
|
+
command.query['baselineDate.day'] = baseline_date_day unless baseline_date_day.nil?
|
|
245
|
+
command.query['baselineDate.month'] = baseline_date_month unless baseline_date_month.nil?
|
|
246
|
+
command.query['baselineDate.year'] = baseline_date_year unless baseline_date_year.nil?
|
|
247
|
+
command.query['filter'] = filter unless filter.nil?
|
|
248
|
+
command.query['groupBy'] = group_by unless group_by.nil?
|
|
249
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
250
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
251
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
252
|
+
command.query['parent'] = parent unless parent.nil?
|
|
253
|
+
command.query['fields'] = fields unless fields.nil?
|
|
254
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
255
|
+
execute_or_queue_command(command, &block)
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# AggregateIssueStats provides database resource issues statistics.
|
|
259
|
+
# @param [Google::Apis::DatabasecenterV1beta::AggregateIssueStatsRequest] aggregate_issue_stats_request_object
|
|
260
|
+
# @param [String] fields
|
|
261
|
+
# Selector specifying which fields to include in a partial response.
|
|
262
|
+
# @param [String] quota_user
|
|
263
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
264
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
265
|
+
# @param [Google::Apis::RequestOptions] options
|
|
266
|
+
# Request-specific options
|
|
267
|
+
#
|
|
268
|
+
# @yield [result, err] Result & error if block supplied
|
|
269
|
+
# @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateIssueStatsResponse] parsed result object
|
|
270
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
271
|
+
#
|
|
272
|
+
# @return [Google::Apis::DatabasecenterV1beta::AggregateIssueStatsResponse]
|
|
273
|
+
#
|
|
274
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
275
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
276
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
277
|
+
def aggregate_issue_stats(aggregate_issue_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
278
|
+
command = make_simple_command(:post, 'v1beta:aggregateIssueStats', options)
|
|
279
|
+
command.request_representation = Google::Apis::DatabasecenterV1beta::AggregateIssueStatsRequest::Representation
|
|
280
|
+
command.request_object = aggregate_issue_stats_request_object
|
|
281
|
+
command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateIssueStatsResponse::Representation
|
|
282
|
+
command.response_class = Google::Apis::DatabasecenterV1beta::AggregateIssueStatsResponse
|
|
283
|
+
command.query['fields'] = fields unless fields.nil?
|
|
284
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
285
|
+
execute_or_queue_command(command, &block)
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# QueryDatabaseResourceGroups returns paginated results of database groups.
|
|
289
|
+
# @param [Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsRequest] query_database_resource_groups_request_object
|
|
290
|
+
# @param [String] fields
|
|
291
|
+
# Selector specifying which fields to include in a partial response.
|
|
292
|
+
# @param [String] quota_user
|
|
293
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
294
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
295
|
+
# @param [Google::Apis::RequestOptions] options
|
|
296
|
+
# Request-specific options
|
|
297
|
+
#
|
|
298
|
+
# @yield [result, err] Result & error if block supplied
|
|
299
|
+
# @yieldparam result [Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsResponse] parsed result object
|
|
300
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
301
|
+
#
|
|
302
|
+
# @return [Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsResponse]
|
|
303
|
+
#
|
|
304
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
305
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
306
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
307
|
+
def query_database_resource_groups(query_database_resource_groups_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
308
|
+
command = make_simple_command(:post, 'v1beta:queryDatabaseResourceGroups', options)
|
|
309
|
+
command.request_representation = Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsRequest::Representation
|
|
310
|
+
command.request_object = query_database_resource_groups_request_object
|
|
311
|
+
command.response_representation = Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsResponse::Representation
|
|
312
|
+
command.response_class = Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsResponse
|
|
313
|
+
command.query['fields'] = fields unless fields.nil?
|
|
314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
315
|
+
execute_or_queue_command(command, &block)
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# QueryIssues provides a list of issues and recommendations that a user has
|
|
319
|
+
# access to and that are within the requested scope.
|
|
320
|
+
# @param [Google::Apis::DatabasecenterV1beta::QueryIssuesRequest] query_issues_request_object
|
|
321
|
+
# @param [String] fields
|
|
322
|
+
# Selector specifying which fields to include in a partial response.
|
|
323
|
+
# @param [String] quota_user
|
|
324
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
325
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
326
|
+
# @param [Google::Apis::RequestOptions] options
|
|
327
|
+
# Request-specific options
|
|
328
|
+
#
|
|
329
|
+
# @yield [result, err] Result & error if block supplied
|
|
330
|
+
# @yieldparam result [Google::Apis::DatabasecenterV1beta::QueryIssuesResponse] parsed result object
|
|
331
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
332
|
+
#
|
|
333
|
+
# @return [Google::Apis::DatabasecenterV1beta::QueryIssuesResponse]
|
|
334
|
+
#
|
|
335
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
336
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
337
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
338
|
+
def query_issues(query_issues_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
339
|
+
command = make_simple_command(:post, 'v1beta:queryIssues', options)
|
|
340
|
+
command.request_representation = Google::Apis::DatabasecenterV1beta::QueryIssuesRequest::Representation
|
|
341
|
+
command.request_object = query_issues_request_object
|
|
342
|
+
command.response_representation = Google::Apis::DatabasecenterV1beta::QueryIssuesResponse::Representation
|
|
343
|
+
command.response_class = Google::Apis::DatabasecenterV1beta::QueryIssuesResponse
|
|
344
|
+
command.query['fields'] = fields unless fields.nil?
|
|
345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
346
|
+
execute_or_queue_command(command, &block)
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# QueryProducts provides a list of all possible products which can be used to
|
|
350
|
+
# filter database resources.
|
|
351
|
+
# @param [Fixnum] page_size
|
|
352
|
+
# Optional. If unspecified, at most 50 products will be returned. The maximum
|
|
353
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
|
354
|
+
# @param [String] page_token
|
|
355
|
+
# Optional. A page token, received from a previous `ListLocations` call. Provide
|
|
356
|
+
# this to retrieve the subsequent page. All other parameters except page size
|
|
357
|
+
# should match the call that provided the page page token.
|
|
358
|
+
# @param [String] parent
|
|
359
|
+
# Required. Parent can be a project, a folder, or an organization. The allowed
|
|
360
|
+
# values are: * projects/`PROJECT_ID`/locations/`LOCATION` (e.g.,"projects/foo-
|
|
361
|
+
# bar/locations/us-central1") * projects/`PROJECT_NUMBER`/locations/`LOCATION` (
|
|
362
|
+
# e.g.,"projects/12345678/locations/us-central1") * folders/`FOLDER_NUMBER`/
|
|
363
|
+
# locations/`LOCATION` (e.g.,"folders/1234567/locations/us-central1") *
|
|
364
|
+
# organizations/`ORGANIZATION_NUMBER`/locations/`LOCATION` (e.g.,"organizations/
|
|
365
|
+
# 123456/locations/us-central1") * projects/`PROJECT_ID` (e.g., "projects/foo-
|
|
366
|
+
# bar") * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") * folders/`
|
|
367
|
+
# FOLDER_NUMBER` (e.g., "folders/1234567") * organizations/`ORGANIZATION_NUMBER`
|
|
368
|
+
# (e.g., "organizations/123456")
|
|
369
|
+
# @param [String] fields
|
|
370
|
+
# Selector specifying which fields to include in a partial response.
|
|
371
|
+
# @param [String] quota_user
|
|
372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
374
|
+
# @param [Google::Apis::RequestOptions] options
|
|
375
|
+
# Request-specific options
|
|
376
|
+
#
|
|
377
|
+
# @yield [result, err] Result & error if block supplied
|
|
378
|
+
# @yieldparam result [Google::Apis::DatabasecenterV1beta::QueryProductsResponse] parsed result object
|
|
379
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
380
|
+
#
|
|
381
|
+
# @return [Google::Apis::DatabasecenterV1beta::QueryProductsResponse]
|
|
382
|
+
#
|
|
383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
386
|
+
def query_products(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
387
|
+
command = make_simple_command(:get, 'v1beta:queryProducts', options)
|
|
388
|
+
command.response_representation = Google::Apis::DatabasecenterV1beta::QueryProductsResponse::Representation
|
|
389
|
+
command.response_class = Google::Apis::DatabasecenterV1beta::QueryProductsResponse
|
|
390
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
391
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
392
|
+
command.query['parent'] = parent unless parent.nil?
|
|
393
|
+
command.query['fields'] = fields unless fields.nil?
|
|
394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
395
|
+
execute_or_queue_command(command, &block)
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
protected
|
|
399
|
+
|
|
400
|
+
def apply_command_defaults(command)
|
|
401
|
+
command.query['key'] = key unless key.nil?
|
|
402
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
403
|
+
end
|
|
404
|
+
end
|
|
405
|
+
end
|
|
406
|
+
end
|
|
407
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/databasecenter_v1beta/service.rb'
|
|
16
|
+
require 'google/apis/databasecenter_v1beta/classes.rb'
|
|
17
|
+
require 'google/apis/databasecenter_v1beta/representations.rb'
|
|
18
|
+
require 'google/apis/databasecenter_v1beta/gem_version.rb'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
# Database Center API
|
|
23
|
+
#
|
|
24
|
+
# Database Center offers a comprehensive, organization-wide platform for
|
|
25
|
+
# monitoring database fleet health across various products. It simplifies
|
|
26
|
+
# management and reduces risk by automatically aggregating and summarizing key
|
|
27
|
+
# health signals, removing the need for custom dashboards. The platform provides
|
|
28
|
+
# a unified view through its dashboard and API, enabling teams focused on
|
|
29
|
+
# reliability, compliance, security, cost, and administration to quickly
|
|
30
|
+
# identify and address relevant issues within their database fleets.
|
|
31
|
+
#
|
|
32
|
+
# @see https://docs.cloud.google.com/database-center/docs/overview
|
|
33
|
+
module DatabasecenterV1beta
|
|
34
|
+
# Version of the Database Center API this client connects to.
|
|
35
|
+
# This is NOT the gem version.
|
|
36
|
+
VERSION = 'V1beta'
|
|
37
|
+
|
|
38
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
39
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require "google/apis/databasecenter_v1beta"
|
metadata
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: google-apis-databasecenter_v1beta
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Google LLC
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: google-apis-core
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: 0.15.0
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 2.a
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 0.15.0
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 2.a
|
|
32
|
+
description: This is the simple REST client for Database Center API V1beta. Simple
|
|
33
|
+
REST clients are Ruby client libraries that provide access to Google services via
|
|
34
|
+
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
|
35
|
+
based on the discovery documents published by the service, and they handle most
|
|
36
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
|
37
|
+
use this client to access the Database Center API, but note that some services may
|
|
38
|
+
provide a separate modern client that is easier to use.
|
|
39
|
+
email: googleapis-packages@google.com
|
|
40
|
+
executables: []
|
|
41
|
+
extensions: []
|
|
42
|
+
extra_rdoc_files: []
|
|
43
|
+
files:
|
|
44
|
+
- ".yardopts"
|
|
45
|
+
- CHANGELOG.md
|
|
46
|
+
- LICENSE.md
|
|
47
|
+
- OVERVIEW.md
|
|
48
|
+
- lib/google-apis-databasecenter_v1beta.rb
|
|
49
|
+
- lib/google/apis/databasecenter_v1beta.rb
|
|
50
|
+
- lib/google/apis/databasecenter_v1beta/classes.rb
|
|
51
|
+
- lib/google/apis/databasecenter_v1beta/gem_version.rb
|
|
52
|
+
- lib/google/apis/databasecenter_v1beta/representations.rb
|
|
53
|
+
- lib/google/apis/databasecenter_v1beta/service.rb
|
|
54
|
+
homepage: https://github.com/google/google-api-ruby-client
|
|
55
|
+
licenses:
|
|
56
|
+
- Apache-2.0
|
|
57
|
+
metadata:
|
|
58
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-databasecenter_v1beta/CHANGELOG.md
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-databasecenter_v1beta/v0.1.0
|
|
61
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-databasecenter_v1beta
|
|
62
|
+
rdoc_options: []
|
|
63
|
+
require_paths:
|
|
64
|
+
- lib
|
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '3.2'
|
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
requirements: []
|
|
76
|
+
rubygems_version: 3.6.9
|
|
77
|
+
specification_version: 4
|
|
78
|
+
summary: Simple REST client for Database Center API V1beta
|
|
79
|
+
test_files: []
|