google-cloud-database_center-v1beta 0.a → 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 +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/database_center/v1beta/database_center/client.rb +841 -0
- data/lib/google/cloud/database_center/v1beta/database_center/credentials.rb +47 -0
- data/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb +801 -0
- data/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb +259 -0
- data/lib/google/cloud/database_center/v1beta/database_center/rest.rb +51 -0
- data/lib/google/cloud/database_center/v1beta/database_center.rb +54 -0
- data/lib/google/cloud/database_center/v1beta/rest.rb +37 -0
- data/lib/google/cloud/database_center/v1beta/version.rb +8 -3
- data/lib/google/cloud/database_center/v1beta.rb +45 -0
- data/lib/google/cloud/databasecenter/v1beta/machine_config_pb.rb +44 -0
- data/lib/google/cloud/databasecenter/v1beta/maintenance_pb.rb +52 -0
- data/lib/google/cloud/databasecenter/v1beta/metric_data_pb.rb +47 -0
- data/lib/google/cloud/databasecenter/v1beta/operation_error_type_pb.rb +42 -0
- data/lib/google/cloud/databasecenter/v1beta/product_pb.rb +46 -0
- data/lib/google/cloud/databasecenter/v1beta/service_pb.rb +76 -0
- data/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb +51 -0
- data/lib/google/cloud/databasecenter/v1beta/signals_pb.rb +78 -0
- data/lib/google/cloud/databasecenter/v1beta/suspension_reason_pb.rb +42 -0
- data/lib/google-cloud-database_center-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/machine_config.rb +43 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/maintenance.rb +105 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/metric_data.rb +92 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/operation_error_type.rb +53 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/product.rb +132 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/service.rb +706 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/signals.rb +848 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/suspension_reason.rb +50 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/type/date.rb +53 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +82 -9
|
@@ -0,0 +1,259 @@
|
|
|
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
|
+
require "google/cloud/databasecenter/v1beta/service_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module DatabaseCenter
|
|
24
|
+
module V1beta
|
|
25
|
+
module DatabaseCenter
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the DatabaseCenter service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
# @private
|
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
35
|
+
# These require statements are intentionally placed here to initialize
|
|
36
|
+
# the REST modules only when it's required.
|
|
37
|
+
require "gapic/rest"
|
|
38
|
+
|
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
40
|
+
endpoint_template: endpoint_template,
|
|
41
|
+
universe_domain: universe_domain,
|
|
42
|
+
credentials: credentials,
|
|
43
|
+
numeric_enums: true,
|
|
44
|
+
service_name: self.class,
|
|
45
|
+
raise_faraday_errors: false,
|
|
46
|
+
logger: logger
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# The effective universe domain
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
def universe_domain
|
|
55
|
+
@client_stub.universe_domain
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
##
|
|
59
|
+
# The effective endpoint
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
def endpoint
|
|
64
|
+
@client_stub.endpoint
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# The logger used for request/response debug logging.
|
|
69
|
+
#
|
|
70
|
+
# @return [Logger]
|
|
71
|
+
#
|
|
72
|
+
def logger stub: false
|
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the query_products REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def query_products request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_query_products_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "query_products",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::DatabaseCenter::V1beta::QueryProductsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the aggregate_fleet REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest]
|
|
120
|
+
# A request object representing the call parameters. Required.
|
|
121
|
+
# @param options [::Gapic::CallOptions]
|
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
123
|
+
#
|
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
125
|
+
# @yieldparam result [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def aggregate_fleet request_pb, options = nil
|
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
132
|
+
|
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_aggregate_fleet_request request_pb
|
|
134
|
+
query_string_params = if query_string_params.any?
|
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
136
|
+
else
|
|
137
|
+
{}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
response = @client_stub.make_http_request(
|
|
141
|
+
verb,
|
|
142
|
+
uri: uri,
|
|
143
|
+
body: body || "",
|
|
144
|
+
params: query_string_params,
|
|
145
|
+
method_name: "aggregate_fleet",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetResponse.decode_json response.body, ignore_unknown_fields: true
|
|
150
|
+
catch :response do
|
|
151
|
+
yield result, operation if block_given?
|
|
152
|
+
result
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
##
|
|
157
|
+
# Baseline implementation for the query_database_resource_groups REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest]
|
|
160
|
+
# A request object representing the call parameters. Required.
|
|
161
|
+
# @param options [::Gapic::CallOptions]
|
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
163
|
+
#
|
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
165
|
+
# @yieldparam result [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def query_database_resource_groups request_pb, options = nil
|
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
172
|
+
|
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_query_database_resource_groups_request request_pb
|
|
174
|
+
query_string_params = if query_string_params.any?
|
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
176
|
+
else
|
|
177
|
+
{}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
response = @client_stub.make_http_request(
|
|
181
|
+
verb,
|
|
182
|
+
uri: uri,
|
|
183
|
+
body: body || "",
|
|
184
|
+
params: query_string_params,
|
|
185
|
+
method_name: "query_database_resource_groups",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
190
|
+
catch :response do
|
|
191
|
+
yield result, operation if block_given?
|
|
192
|
+
result
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
##
|
|
197
|
+
# @private
|
|
198
|
+
#
|
|
199
|
+
# GRPC transcoding helper method for the query_products REST call
|
|
200
|
+
#
|
|
201
|
+
# @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryProductsRequest]
|
|
202
|
+
# A request object representing the call parameters. Required.
|
|
203
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
204
|
+
# Uri, Body, Query string parameters
|
|
205
|
+
def self.transcode_query_products_request request_pb
|
|
206
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
207
|
+
.with_bindings(
|
|
208
|
+
uri_method: :get,
|
|
209
|
+
uri_template: "/v1beta:queryProducts",
|
|
210
|
+
matches: []
|
|
211
|
+
)
|
|
212
|
+
transcoder.transcode request_pb
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
##
|
|
216
|
+
# @private
|
|
217
|
+
#
|
|
218
|
+
# GRPC transcoding helper method for the aggregate_fleet REST call
|
|
219
|
+
#
|
|
220
|
+
# @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateFleetRequest]
|
|
221
|
+
# A request object representing the call parameters. Required.
|
|
222
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
223
|
+
# Uri, Body, Query string parameters
|
|
224
|
+
def self.transcode_aggregate_fleet_request request_pb
|
|
225
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
226
|
+
.with_bindings(
|
|
227
|
+
uri_method: :get,
|
|
228
|
+
uri_template: "/v1beta:aggregateFleet",
|
|
229
|
+
matches: []
|
|
230
|
+
)
|
|
231
|
+
transcoder.transcode request_pb
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
##
|
|
235
|
+
# @private
|
|
236
|
+
#
|
|
237
|
+
# GRPC transcoding helper method for the query_database_resource_groups REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest]
|
|
240
|
+
# A request object representing the call parameters. Required.
|
|
241
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
242
|
+
# Uri, Body, Query string parameters
|
|
243
|
+
def self.transcode_query_database_resource_groups_request request_pb
|
|
244
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
245
|
+
.with_bindings(
|
|
246
|
+
uri_method: :post,
|
|
247
|
+
uri_template: "/v1beta:queryDatabaseResourceGroups",
|
|
248
|
+
body: "*",
|
|
249
|
+
matches: []
|
|
250
|
+
)
|
|
251
|
+
transcoder.transcode request_pb
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
require "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/database_center/v1beta/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/database_center/v1beta/database_center/credentials"
|
|
26
|
+
require "google/cloud/database_center/v1beta/database_center/rest/client"
|
|
27
|
+
|
|
28
|
+
module Google
|
|
29
|
+
module Cloud
|
|
30
|
+
module DatabaseCenter
|
|
31
|
+
module V1beta
|
|
32
|
+
##
|
|
33
|
+
# DatabaseCenter contains methods to query fleet view for database resources.
|
|
34
|
+
#
|
|
35
|
+
# To load this service and instantiate a REST client:
|
|
36
|
+
#
|
|
37
|
+
# require "google/cloud/database_center/v1beta/database_center/rest"
|
|
38
|
+
# client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new
|
|
39
|
+
#
|
|
40
|
+
module DatabaseCenter
|
|
41
|
+
# Client for the REST transport
|
|
42
|
+
module Rest
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
51
|
+
require "google/cloud/database_center/v1beta/database_center/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
require "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/database_center/v1beta/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/database_center/v1beta/database_center/credentials"
|
|
26
|
+
require "google/cloud/database_center/v1beta/database_center/client"
|
|
27
|
+
require "google/cloud/database_center/v1beta/database_center/rest"
|
|
28
|
+
|
|
29
|
+
module Google
|
|
30
|
+
module Cloud
|
|
31
|
+
module DatabaseCenter
|
|
32
|
+
module V1beta
|
|
33
|
+
##
|
|
34
|
+
# DatabaseCenter contains methods to query fleet view for database resources.
|
|
35
|
+
#
|
|
36
|
+
# @example Load this service and instantiate a gRPC client
|
|
37
|
+
#
|
|
38
|
+
# require "google/cloud/database_center/v1beta/database_center"
|
|
39
|
+
# client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new
|
|
40
|
+
#
|
|
41
|
+
# @example Load this service and instantiate a REST client
|
|
42
|
+
#
|
|
43
|
+
# require "google/cloud/database_center/v1beta/database_center/rest"
|
|
44
|
+
# client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new
|
|
45
|
+
#
|
|
46
|
+
module DatabaseCenter
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
helper_path = ::File.join __dir__, "database_center", "helpers.rb"
|
|
54
|
+
require "google/cloud/database_center/v1beta/database_center/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
require "google/cloud/database_center/v1beta/database_center/rest"
|
|
20
|
+
require "google/cloud/database_center/v1beta/version"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module DatabaseCenter
|
|
25
|
+
##
|
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
#
|
|
30
|
+
# require "google/cloud/database_center/v1beta/rest"
|
|
31
|
+
# client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new
|
|
32
|
+
#
|
|
33
|
+
module V1beta
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
2
4
|
#
|
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
# you may not use this file except in compliance with the License.
|
|
5
7
|
# You may obtain a copy of the License at
|
|
6
8
|
#
|
|
7
|
-
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
10
|
#
|
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -12,11 +14,14 @@
|
|
|
12
14
|
# See the License for the specific language governing permissions and
|
|
13
15
|
# limitations under the License.
|
|
14
16
|
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
15
20
|
module Google
|
|
16
21
|
module Cloud
|
|
17
22
|
module DatabaseCenter
|
|
18
23
|
module V1beta
|
|
19
|
-
VERSION = "0.
|
|
24
|
+
VERSION = "0.1.0"
|
|
20
25
|
end
|
|
21
26
|
end
|
|
22
27
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
require "google/cloud/database_center/v1beta/database_center"
|
|
20
|
+
require "google/cloud/database_center/v1beta/version"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module DatabaseCenter
|
|
25
|
+
##
|
|
26
|
+
# API client module.
|
|
27
|
+
#
|
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
|
29
|
+
#
|
|
30
|
+
# require "google/cloud/database_center/v1beta"
|
|
31
|
+
# client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new
|
|
32
|
+
#
|
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
|
34
|
+
#
|
|
35
|
+
# require "google/cloud/database_center/v1beta"
|
|
36
|
+
# client = ::Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new
|
|
37
|
+
#
|
|
38
|
+
module V1beta
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
helper_path = ::File.join __dir__, "v1beta", "_helpers.rb"
|
|
45
|
+
require "google/cloud/database_center/v1beta/_helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/databasecenter/v1beta/machine_config.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
|
|
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"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError
|
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
+
parsed.clear_dependency
|
|
21
|
+
serialized = parsed.class.encode(parsed)
|
|
22
|
+
file = pool.add_serialized_file(serialized)
|
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
+
imports = [
|
|
25
|
+
]
|
|
26
|
+
imports.each do |type_name, expected_filename|
|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
28
|
+
if import_file.name != expected_filename
|
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
33
|
+
warn "This will become an error in the next major version."
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
module Google
|
|
37
|
+
module Cloud
|
|
38
|
+
module DatabaseCenter
|
|
39
|
+
module V1beta
|
|
40
|
+
MachineConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MachineConfig").msgclass
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/databasecenter/v1beta/maintenance.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/type/date_pb'
|
|
9
|
+
require 'google/type/dayofweek_pb'
|
|
10
|
+
require 'google/type/timeofday_pb'
|
|
11
|
+
|
|
12
|
+
|
|
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\x01*`\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPHASE_WEEK1\x10\x01\x12\x0f\n\x0bPHASE_WEEK2\x10\x02\x12\x0f\n\x0bPHASE_WEEK5\x10\x03\x12\r\n\tPHASE_ANY\x10\x04\x42\xfe\x01\n&com.google.cloud.databasecenter.v1betaB\x10MaintenanceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
|
|
17
|
+
begin
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
rescue TypeError
|
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
+
parsed.clear_dependency
|
|
24
|
+
serialized = parsed.class.encode(parsed)
|
|
25
|
+
file = pool.add_serialized_file(serialized)
|
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
+
imports = [
|
|
28
|
+
["google.type.TimeOfDay", "google/type/timeofday.proto"],
|
|
29
|
+
["google.type.Date", "google/type/date.proto"],
|
|
30
|
+
]
|
|
31
|
+
imports.each do |type_name, expected_filename|
|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
+
if import_file.name != expected_filename
|
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
+
warn "This will become an error in the next major version."
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
module Google
|
|
42
|
+
module Cloud
|
|
43
|
+
module DatabaseCenter
|
|
44
|
+
module V1beta
|
|
45
|
+
ResourceMaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule").msgclass
|
|
46
|
+
ResourceMaintenanceDenySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule").msgclass
|
|
47
|
+
MaintenanceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MaintenanceInfo").msgclass
|
|
48
|
+
Phase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Phase").enummodule
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/databasecenter/v1beta/metric_data.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n4google/cloud/databasecenter/v1beta/metric_data.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x07\n\x07Metrics\x12P\n\x13p99_cpu_utilization\x18\x01 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x00\x88\x01\x01\x12P\n\x13p95_cpu_utilization\x18\x02 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x01\x88\x01\x01\x12W\n\x1a\x63urrent_storage_used_bytes\x18\x03 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x02\x88\x01\x01\x12U\n\x18peak_storage_utilization\x18\x04 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x03\x88\x01\x01\x12T\n\x17peak_memory_utilization\x18\x05 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x04\x88\x01\x01\x12T\n\x17peak_number_connections\x18\x06 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x05\x88\x01\x01\x12G\n\nnode_count\x18\x07 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x06\x88\x01\x01\x12R\n\x15processing_unit_count\x18\x08 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x07\x88\x01\x01\x12V\n\x19\x63urrent_memory_used_bytes\x18\t \x01(\x0b\x32..google.cloud.databasecenter.v1beta.MetricDataH\x08\x88\x01\x01\x42\x16\n\x14_p99_cpu_utilizationB\x16\n\x14_p95_cpu_utilizationB\x1d\n\x1b_current_storage_used_bytesB\x1b\n\x19_peak_storage_utilizationB\x1a\n\x18_peak_memory_utilizationB\x1a\n\x18_peak_number_connectionsB\r\n\x0b_node_countB\x18\n\x16_processing_unit_countB\x1c\n\x1a_current_memory_used_bytes\"\x81\x01\n\nMetricData\x12=\n\x05value\x18\x01 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.TypedValue\x12\x34\n\x10observation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"D\n\nTypedValue\x12\x16\n\x0c\x64ouble_value\x18\x01 \x01(\x01H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x42\x07\n\x05valueB\xfd\x01\n&com.google.cloud.databasecenter.v1betaB\x0fMetricDataProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError
|
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
+
parsed.clear_dependency
|
|
21
|
+
serialized = parsed.class.encode(parsed)
|
|
22
|
+
file = pool.add_serialized_file(serialized)
|
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
+
imports = [
|
|
25
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
26
|
+
]
|
|
27
|
+
imports.each do |type_name, expected_filename|
|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
29
|
+
if import_file.name != expected_filename
|
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
34
|
+
warn "This will become an error in the next major version."
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
module Google
|
|
38
|
+
module Cloud
|
|
39
|
+
module DatabaseCenter
|
|
40
|
+
module V1beta
|
|
41
|
+
Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Metrics").msgclass
|
|
42
|
+
MetricData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.MetricData").msgclass
|
|
43
|
+
TypedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.TypedValue").msgclass
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|