google-cloud-oracle_database-v1 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/oracle_database/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb +47 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +124 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +2647 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb +907 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +1428 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb +54 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database.rb +48 -0
- data/lib/google/cloud/oracle_database/v1/rest.rb +38 -0
- data/lib/google/cloud/oracle_database/v1/version.rb +7 -2
- data/lib/google/cloud/oracle_database/v1.rb +40 -0
- data/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb +46 -0
- data/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb +83 -0
- data/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb +50 -0
- data/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb +46 -0
- data/lib/google/cloud/oracledatabase/v1/common_pb.rb +44 -0
- data/lib/google/cloud/oracledatabase/v1/db_node_pb.rb +47 -0
- data/lib/google/cloud/oracledatabase/v1/db_server_pb.rb +47 -0
- data/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb +45 -0
- data/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb +47 -0
- data/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +56 -0
- data/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb +45 -0
- data/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb +44 -0
- data/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +108 -0
- data/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +89 -0
- data/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +54 -0
- data/lib/google-cloud-oracle_database-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +459 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -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/oracledatabase/v1/autonomous_database.rb +844 -0
- data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb +57 -0
- data/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb +175 -0
- data/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb +48 -0
- data/proto_docs/google/cloud/oracledatabase/v1/common.rb +37 -0
- data/proto_docs/google/cloud/oracledatabase/v1/db_node.rb +103 -0
- data/proto_docs/google/cloud/oracledatabase/v1/db_server.rb +100 -0
- data/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb +70 -0
- data/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb +78 -0
- data/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb +266 -0
- data/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb +41 -0
- data/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb +35 -0
- data/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +649 -0
- data/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +251 -0
- data/proto_docs/google/longrunning/operations.rb +169 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/datetime.rb +99 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/month.rb +64 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +124 -11
@@ -0,0 +1,1428 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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/oracledatabase/v1/oracledatabase_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module OracleDatabase
|
24
|
+
module V1
|
25
|
+
module OracleDatabase
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the OracleDatabase 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 list_cloud_exadata_infrastructures REST call
|
78
|
+
#
|
79
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest]
|
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::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse]
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
87
|
+
#
|
88
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse]
|
89
|
+
# A result object deserialized from the server's reply
|
90
|
+
def list_cloud_exadata_infrastructures 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_list_cloud_exadata_infrastructures_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: "list_cloud_exadata_infrastructures",
|
106
|
+
options: options
|
107
|
+
)
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
109
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse.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 get_cloud_exadata_infrastructure REST call
|
118
|
+
#
|
119
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest]
|
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::OracleDatabase::V1::CloudExadataInfrastructure]
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
127
|
+
#
|
128
|
+
# @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure]
|
129
|
+
# A result object deserialized from the server's reply
|
130
|
+
def get_cloud_exadata_infrastructure 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_get_cloud_exadata_infrastructure_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: "get_cloud_exadata_infrastructure",
|
146
|
+
options: options
|
147
|
+
)
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
149
|
+
result = ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.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 create_cloud_exadata_infrastructure REST call
|
158
|
+
#
|
159
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest]
|
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::Longrunning::Operation]
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
167
|
+
#
|
168
|
+
# @return [::Google::Longrunning::Operation]
|
169
|
+
# A result object deserialized from the server's reply
|
170
|
+
def create_cloud_exadata_infrastructure 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_create_cloud_exadata_infrastructure_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: "create_cloud_exadata_infrastructure",
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Longrunning::Operation.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
|
+
# Baseline implementation for the delete_cloud_exadata_infrastructure REST call
|
198
|
+
#
|
199
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest]
|
200
|
+
# A request object representing the call parameters. Required.
|
201
|
+
# @param options [::Gapic::CallOptions]
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
203
|
+
#
|
204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
205
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
207
|
+
#
|
208
|
+
# @return [::Google::Longrunning::Operation]
|
209
|
+
# A result object deserialized from the server's reply
|
210
|
+
def delete_cloud_exadata_infrastructure request_pb, options = nil
|
211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
212
|
+
|
213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_cloud_exadata_infrastructure_request request_pb
|
214
|
+
query_string_params = if query_string_params.any?
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
216
|
+
else
|
217
|
+
{}
|
218
|
+
end
|
219
|
+
|
220
|
+
response = @client_stub.make_http_request(
|
221
|
+
verb,
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "delete_cloud_exadata_infrastructure",
|
226
|
+
options: options
|
227
|
+
)
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
229
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
##
|
237
|
+
# Baseline implementation for the list_cloud_vm_clusters REST call
|
238
|
+
#
|
239
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest]
|
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::OracleDatabase::V1::ListCloudVmClustersResponse]
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
247
|
+
#
|
248
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse]
|
249
|
+
# A result object deserialized from the server's reply
|
250
|
+
def list_cloud_vm_clusters 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_list_cloud_vm_clusters_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: "list_cloud_vm_clusters",
|
266
|
+
options: options
|
267
|
+
)
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
269
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse.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
|
+
|
276
|
+
##
|
277
|
+
# Baseline implementation for the get_cloud_vm_cluster REST call
|
278
|
+
#
|
279
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest]
|
280
|
+
# A request object representing the call parameters. Required.
|
281
|
+
# @param options [::Gapic::CallOptions]
|
282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
283
|
+
#
|
284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
285
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudVmCluster]
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
287
|
+
#
|
288
|
+
# @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster]
|
289
|
+
# A result object deserialized from the server's reply
|
290
|
+
def get_cloud_vm_cluster request_pb, options = nil
|
291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
292
|
+
|
293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_cloud_vm_cluster_request request_pb
|
294
|
+
query_string_params = if query_string_params.any?
|
295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
296
|
+
else
|
297
|
+
{}
|
298
|
+
end
|
299
|
+
|
300
|
+
response = @client_stub.make_http_request(
|
301
|
+
verb,
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "get_cloud_vm_cluster",
|
306
|
+
options: options
|
307
|
+
)
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
309
|
+
result = ::Google::Cloud::OracleDatabase::V1::CloudVmCluster.decode_json response.body, ignore_unknown_fields: true
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
##
|
317
|
+
# Baseline implementation for the create_cloud_vm_cluster REST call
|
318
|
+
#
|
319
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest]
|
320
|
+
# A request object representing the call parameters. Required.
|
321
|
+
# @param options [::Gapic::CallOptions]
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
323
|
+
#
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
325
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
327
|
+
#
|
328
|
+
# @return [::Google::Longrunning::Operation]
|
329
|
+
# A result object deserialized from the server's reply
|
330
|
+
def create_cloud_vm_cluster request_pb, options = nil
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
332
|
+
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_cloud_vm_cluster_request request_pb
|
334
|
+
query_string_params = if query_string_params.any?
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
336
|
+
else
|
337
|
+
{}
|
338
|
+
end
|
339
|
+
|
340
|
+
response = @client_stub.make_http_request(
|
341
|
+
verb,
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "create_cloud_vm_cluster",
|
346
|
+
options: options
|
347
|
+
)
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
349
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
##
|
357
|
+
# Baseline implementation for the delete_cloud_vm_cluster REST call
|
358
|
+
#
|
359
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest]
|
360
|
+
# A request object representing the call parameters. Required.
|
361
|
+
# @param options [::Gapic::CallOptions]
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
363
|
+
#
|
364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
365
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
367
|
+
#
|
368
|
+
# @return [::Google::Longrunning::Operation]
|
369
|
+
# A result object deserialized from the server's reply
|
370
|
+
def delete_cloud_vm_cluster request_pb, options = nil
|
371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
372
|
+
|
373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_cloud_vm_cluster_request request_pb
|
374
|
+
query_string_params = if query_string_params.any?
|
375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
376
|
+
else
|
377
|
+
{}
|
378
|
+
end
|
379
|
+
|
380
|
+
response = @client_stub.make_http_request(
|
381
|
+
verb,
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "delete_cloud_vm_cluster",
|
386
|
+
options: options
|
387
|
+
)
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
389
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
##
|
397
|
+
# Baseline implementation for the list_entitlements REST call
|
398
|
+
#
|
399
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest]
|
400
|
+
# A request object representing the call parameters. Required.
|
401
|
+
# @param options [::Gapic::CallOptions]
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
403
|
+
#
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
405
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse]
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
407
|
+
#
|
408
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse]
|
409
|
+
# A result object deserialized from the server's reply
|
410
|
+
def list_entitlements request_pb, options = nil
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
412
|
+
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_entitlements_request request_pb
|
414
|
+
query_string_params = if query_string_params.any?
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
416
|
+
else
|
417
|
+
{}
|
418
|
+
end
|
419
|
+
|
420
|
+
response = @client_stub.make_http_request(
|
421
|
+
verb,
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "list_entitlements",
|
426
|
+
options: options
|
427
|
+
)
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
429
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse.decode_json response.body, ignore_unknown_fields: true
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
436
|
+
##
|
437
|
+
# Baseline implementation for the list_db_servers REST call
|
438
|
+
#
|
439
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest]
|
440
|
+
# A request object representing the call parameters. Required.
|
441
|
+
# @param options [::Gapic::CallOptions]
|
442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
443
|
+
#
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
445
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbServersResponse]
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
447
|
+
#
|
448
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListDbServersResponse]
|
449
|
+
# A result object deserialized from the server's reply
|
450
|
+
def list_db_servers request_pb, options = nil
|
451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
452
|
+
|
453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_db_servers_request request_pb
|
454
|
+
query_string_params = if query_string_params.any?
|
455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
456
|
+
else
|
457
|
+
{}
|
458
|
+
end
|
459
|
+
|
460
|
+
response = @client_stub.make_http_request(
|
461
|
+
verb,
|
462
|
+
uri: uri,
|
463
|
+
body: body || "",
|
464
|
+
params: query_string_params,
|
465
|
+
method_name: "list_db_servers",
|
466
|
+
options: options
|
467
|
+
)
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
469
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse.decode_json response.body, ignore_unknown_fields: true
|
470
|
+
catch :response do
|
471
|
+
yield result, operation if block_given?
|
472
|
+
result
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
##
|
477
|
+
# Baseline implementation for the list_db_nodes REST call
|
478
|
+
#
|
479
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest]
|
480
|
+
# A request object representing the call parameters. Required.
|
481
|
+
# @param options [::Gapic::CallOptions]
|
482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
483
|
+
#
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
485
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse]
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
487
|
+
#
|
488
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse]
|
489
|
+
# A result object deserialized from the server's reply
|
490
|
+
def list_db_nodes request_pb, options = nil
|
491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
492
|
+
|
493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_db_nodes_request request_pb
|
494
|
+
query_string_params = if query_string_params.any?
|
495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
496
|
+
else
|
497
|
+
{}
|
498
|
+
end
|
499
|
+
|
500
|
+
response = @client_stub.make_http_request(
|
501
|
+
verb,
|
502
|
+
uri: uri,
|
503
|
+
body: body || "",
|
504
|
+
params: query_string_params,
|
505
|
+
method_name: "list_db_nodes",
|
506
|
+
options: options
|
507
|
+
)
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
509
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse.decode_json response.body, ignore_unknown_fields: true
|
510
|
+
catch :response do
|
511
|
+
yield result, operation if block_given?
|
512
|
+
result
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
516
|
+
##
|
517
|
+
# Baseline implementation for the list_gi_versions REST call
|
518
|
+
#
|
519
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest]
|
520
|
+
# A request object representing the call parameters. Required.
|
521
|
+
# @param options [::Gapic::CallOptions]
|
522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
523
|
+
#
|
524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
525
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse]
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
527
|
+
#
|
528
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse]
|
529
|
+
# A result object deserialized from the server's reply
|
530
|
+
def list_gi_versions request_pb, options = nil
|
531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
532
|
+
|
533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_gi_versions_request request_pb
|
534
|
+
query_string_params = if query_string_params.any?
|
535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
536
|
+
else
|
537
|
+
{}
|
538
|
+
end
|
539
|
+
|
540
|
+
response = @client_stub.make_http_request(
|
541
|
+
verb,
|
542
|
+
uri: uri,
|
543
|
+
body: body || "",
|
544
|
+
params: query_string_params,
|
545
|
+
method_name: "list_gi_versions",
|
546
|
+
options: options
|
547
|
+
)
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
549
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse.decode_json response.body, ignore_unknown_fields: true
|
550
|
+
catch :response do
|
551
|
+
yield result, operation if block_given?
|
552
|
+
result
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
556
|
+
##
|
557
|
+
# Baseline implementation for the list_db_system_shapes REST call
|
558
|
+
#
|
559
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest]
|
560
|
+
# A request object representing the call parameters. Required.
|
561
|
+
# @param options [::Gapic::CallOptions]
|
562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
563
|
+
#
|
564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
565
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse]
|
566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
567
|
+
#
|
568
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse]
|
569
|
+
# A result object deserialized from the server's reply
|
570
|
+
def list_db_system_shapes request_pb, options = nil
|
571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
572
|
+
|
573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_db_system_shapes_request request_pb
|
574
|
+
query_string_params = if query_string_params.any?
|
575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
576
|
+
else
|
577
|
+
{}
|
578
|
+
end
|
579
|
+
|
580
|
+
response = @client_stub.make_http_request(
|
581
|
+
verb,
|
582
|
+
uri: uri,
|
583
|
+
body: body || "",
|
584
|
+
params: query_string_params,
|
585
|
+
method_name: "list_db_system_shapes",
|
586
|
+
options: options
|
587
|
+
)
|
588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
589
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse.decode_json response.body, ignore_unknown_fields: true
|
590
|
+
catch :response do
|
591
|
+
yield result, operation if block_given?
|
592
|
+
result
|
593
|
+
end
|
594
|
+
end
|
595
|
+
|
596
|
+
##
|
597
|
+
# Baseline implementation for the list_autonomous_databases REST call
|
598
|
+
#
|
599
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest]
|
600
|
+
# A request object representing the call parameters. Required.
|
601
|
+
# @param options [::Gapic::CallOptions]
|
602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
603
|
+
#
|
604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
605
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse]
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
607
|
+
#
|
608
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse]
|
609
|
+
# A result object deserialized from the server's reply
|
610
|
+
def list_autonomous_databases request_pb, options = nil
|
611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
612
|
+
|
613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_databases_request request_pb
|
614
|
+
query_string_params = if query_string_params.any?
|
615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
616
|
+
else
|
617
|
+
{}
|
618
|
+
end
|
619
|
+
|
620
|
+
response = @client_stub.make_http_request(
|
621
|
+
verb,
|
622
|
+
uri: uri,
|
623
|
+
body: body || "",
|
624
|
+
params: query_string_params,
|
625
|
+
method_name: "list_autonomous_databases",
|
626
|
+
options: options
|
627
|
+
)
|
628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
629
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse.decode_json response.body, ignore_unknown_fields: true
|
630
|
+
catch :response do
|
631
|
+
yield result, operation if block_given?
|
632
|
+
result
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
##
|
637
|
+
# Baseline implementation for the get_autonomous_database REST call
|
638
|
+
#
|
639
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest]
|
640
|
+
# A request object representing the call parameters. Required.
|
641
|
+
# @param options [::Gapic::CallOptions]
|
642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
643
|
+
#
|
644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
645
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase]
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
647
|
+
#
|
648
|
+
# @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase]
|
649
|
+
# A result object deserialized from the server's reply
|
650
|
+
def get_autonomous_database request_pb, options = nil
|
651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
652
|
+
|
653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_autonomous_database_request request_pb
|
654
|
+
query_string_params = if query_string_params.any?
|
655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
656
|
+
else
|
657
|
+
{}
|
658
|
+
end
|
659
|
+
|
660
|
+
response = @client_stub.make_http_request(
|
661
|
+
verb,
|
662
|
+
uri: uri,
|
663
|
+
body: body || "",
|
664
|
+
params: query_string_params,
|
665
|
+
method_name: "get_autonomous_database",
|
666
|
+
options: options
|
667
|
+
)
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
669
|
+
result = ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase.decode_json response.body, ignore_unknown_fields: true
|
670
|
+
catch :response do
|
671
|
+
yield result, operation if block_given?
|
672
|
+
result
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
676
|
+
##
|
677
|
+
# Baseline implementation for the create_autonomous_database REST call
|
678
|
+
#
|
679
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest]
|
680
|
+
# A request object representing the call parameters. Required.
|
681
|
+
# @param options [::Gapic::CallOptions]
|
682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
683
|
+
#
|
684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
685
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
687
|
+
#
|
688
|
+
# @return [::Google::Longrunning::Operation]
|
689
|
+
# A result object deserialized from the server's reply
|
690
|
+
def create_autonomous_database request_pb, options = nil
|
691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
692
|
+
|
693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_autonomous_database_request request_pb
|
694
|
+
query_string_params = if query_string_params.any?
|
695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
696
|
+
else
|
697
|
+
{}
|
698
|
+
end
|
699
|
+
|
700
|
+
response = @client_stub.make_http_request(
|
701
|
+
verb,
|
702
|
+
uri: uri,
|
703
|
+
body: body || "",
|
704
|
+
params: query_string_params,
|
705
|
+
method_name: "create_autonomous_database",
|
706
|
+
options: options
|
707
|
+
)
|
708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
709
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
710
|
+
catch :response do
|
711
|
+
yield result, operation if block_given?
|
712
|
+
result
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
##
|
717
|
+
# Baseline implementation for the delete_autonomous_database REST call
|
718
|
+
#
|
719
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest]
|
720
|
+
# A request object representing the call parameters. Required.
|
721
|
+
# @param options [::Gapic::CallOptions]
|
722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
723
|
+
#
|
724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
725
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
727
|
+
#
|
728
|
+
# @return [::Google::Longrunning::Operation]
|
729
|
+
# A result object deserialized from the server's reply
|
730
|
+
def delete_autonomous_database request_pb, options = nil
|
731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
732
|
+
|
733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_autonomous_database_request request_pb
|
734
|
+
query_string_params = if query_string_params.any?
|
735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
736
|
+
else
|
737
|
+
{}
|
738
|
+
end
|
739
|
+
|
740
|
+
response = @client_stub.make_http_request(
|
741
|
+
verb,
|
742
|
+
uri: uri,
|
743
|
+
body: body || "",
|
744
|
+
params: query_string_params,
|
745
|
+
method_name: "delete_autonomous_database",
|
746
|
+
options: options
|
747
|
+
)
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
749
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
750
|
+
catch :response do
|
751
|
+
yield result, operation if block_given?
|
752
|
+
result
|
753
|
+
end
|
754
|
+
end
|
755
|
+
|
756
|
+
##
|
757
|
+
# Baseline implementation for the restore_autonomous_database REST call
|
758
|
+
#
|
759
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest]
|
760
|
+
# A request object representing the call parameters. Required.
|
761
|
+
# @param options [::Gapic::CallOptions]
|
762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
763
|
+
#
|
764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
765
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
767
|
+
#
|
768
|
+
# @return [::Google::Longrunning::Operation]
|
769
|
+
# A result object deserialized from the server's reply
|
770
|
+
def restore_autonomous_database request_pb, options = nil
|
771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
772
|
+
|
773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_restore_autonomous_database_request request_pb
|
774
|
+
query_string_params = if query_string_params.any?
|
775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
776
|
+
else
|
777
|
+
{}
|
778
|
+
end
|
779
|
+
|
780
|
+
response = @client_stub.make_http_request(
|
781
|
+
verb,
|
782
|
+
uri: uri,
|
783
|
+
body: body || "",
|
784
|
+
params: query_string_params,
|
785
|
+
method_name: "restore_autonomous_database",
|
786
|
+
options: options
|
787
|
+
)
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
789
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
790
|
+
catch :response do
|
791
|
+
yield result, operation if block_given?
|
792
|
+
result
|
793
|
+
end
|
794
|
+
end
|
795
|
+
|
796
|
+
##
|
797
|
+
# Baseline implementation for the generate_autonomous_database_wallet REST call
|
798
|
+
#
|
799
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest]
|
800
|
+
# A request object representing the call parameters. Required.
|
801
|
+
# @param options [::Gapic::CallOptions]
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
803
|
+
#
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
805
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse]
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
807
|
+
#
|
808
|
+
# @return [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse]
|
809
|
+
# A result object deserialized from the server's reply
|
810
|
+
def generate_autonomous_database_wallet request_pb, options = nil
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
812
|
+
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_generate_autonomous_database_wallet_request request_pb
|
814
|
+
query_string_params = if query_string_params.any?
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
816
|
+
else
|
817
|
+
{}
|
818
|
+
end
|
819
|
+
|
820
|
+
response = @client_stub.make_http_request(
|
821
|
+
verb,
|
822
|
+
uri: uri,
|
823
|
+
body: body || "",
|
824
|
+
params: query_string_params,
|
825
|
+
method_name: "generate_autonomous_database_wallet",
|
826
|
+
options: options
|
827
|
+
)
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
829
|
+
result = ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse.decode_json response.body, ignore_unknown_fields: true
|
830
|
+
catch :response do
|
831
|
+
yield result, operation if block_given?
|
832
|
+
result
|
833
|
+
end
|
834
|
+
end
|
835
|
+
|
836
|
+
##
|
837
|
+
# Baseline implementation for the list_autonomous_db_versions REST call
|
838
|
+
#
|
839
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest]
|
840
|
+
# A request object representing the call parameters. Required.
|
841
|
+
# @param options [::Gapic::CallOptions]
|
842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
843
|
+
#
|
844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
845
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse]
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
847
|
+
#
|
848
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse]
|
849
|
+
# A result object deserialized from the server's reply
|
850
|
+
def list_autonomous_db_versions request_pb, options = nil
|
851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
852
|
+
|
853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_db_versions_request request_pb
|
854
|
+
query_string_params = if query_string_params.any?
|
855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
856
|
+
else
|
857
|
+
{}
|
858
|
+
end
|
859
|
+
|
860
|
+
response = @client_stub.make_http_request(
|
861
|
+
verb,
|
862
|
+
uri: uri,
|
863
|
+
body: body || "",
|
864
|
+
params: query_string_params,
|
865
|
+
method_name: "list_autonomous_db_versions",
|
866
|
+
options: options
|
867
|
+
)
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
869
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse.decode_json response.body, ignore_unknown_fields: true
|
870
|
+
catch :response do
|
871
|
+
yield result, operation if block_given?
|
872
|
+
result
|
873
|
+
end
|
874
|
+
end
|
875
|
+
|
876
|
+
##
|
877
|
+
# Baseline implementation for the list_autonomous_database_character_sets REST call
|
878
|
+
#
|
879
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest]
|
880
|
+
# A request object representing the call parameters. Required.
|
881
|
+
# @param options [::Gapic::CallOptions]
|
882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
883
|
+
#
|
884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
885
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse]
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
887
|
+
#
|
888
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse]
|
889
|
+
# A result object deserialized from the server's reply
|
890
|
+
def list_autonomous_database_character_sets request_pb, options = nil
|
891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
892
|
+
|
893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_database_character_sets_request request_pb
|
894
|
+
query_string_params = if query_string_params.any?
|
895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
896
|
+
else
|
897
|
+
{}
|
898
|
+
end
|
899
|
+
|
900
|
+
response = @client_stub.make_http_request(
|
901
|
+
verb,
|
902
|
+
uri: uri,
|
903
|
+
body: body || "",
|
904
|
+
params: query_string_params,
|
905
|
+
method_name: "list_autonomous_database_character_sets",
|
906
|
+
options: options
|
907
|
+
)
|
908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
909
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse.decode_json response.body, ignore_unknown_fields: true
|
910
|
+
catch :response do
|
911
|
+
yield result, operation if block_given?
|
912
|
+
result
|
913
|
+
end
|
914
|
+
end
|
915
|
+
|
916
|
+
##
|
917
|
+
# Baseline implementation for the list_autonomous_database_backups REST call
|
918
|
+
#
|
919
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest]
|
920
|
+
# A request object representing the call parameters. Required.
|
921
|
+
# @param options [::Gapic::CallOptions]
|
922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
923
|
+
#
|
924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
925
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse]
|
926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
927
|
+
#
|
928
|
+
# @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse]
|
929
|
+
# A result object deserialized from the server's reply
|
930
|
+
def list_autonomous_database_backups request_pb, options = nil
|
931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
932
|
+
|
933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_database_backups_request request_pb
|
934
|
+
query_string_params = if query_string_params.any?
|
935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
936
|
+
else
|
937
|
+
{}
|
938
|
+
end
|
939
|
+
|
940
|
+
response = @client_stub.make_http_request(
|
941
|
+
verb,
|
942
|
+
uri: uri,
|
943
|
+
body: body || "",
|
944
|
+
params: query_string_params,
|
945
|
+
method_name: "list_autonomous_database_backups",
|
946
|
+
options: options
|
947
|
+
)
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
949
|
+
result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse.decode_json response.body, ignore_unknown_fields: true
|
950
|
+
catch :response do
|
951
|
+
yield result, operation if block_given?
|
952
|
+
result
|
953
|
+
end
|
954
|
+
end
|
955
|
+
|
956
|
+
##
|
957
|
+
# @private
|
958
|
+
#
|
959
|
+
# GRPC transcoding helper method for the list_cloud_exadata_infrastructures REST call
|
960
|
+
#
|
961
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest]
|
962
|
+
# A request object representing the call parameters. Required.
|
963
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
964
|
+
# Uri, Body, Query string parameters
|
965
|
+
def self.transcode_list_cloud_exadata_infrastructures_request request_pb
|
966
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
967
|
+
.with_bindings(
|
968
|
+
uri_method: :get,
|
969
|
+
uri_template: "/v1/{parent}/cloudExadataInfrastructures",
|
970
|
+
matches: [
|
971
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
972
|
+
]
|
973
|
+
)
|
974
|
+
transcoder.transcode request_pb
|
975
|
+
end
|
976
|
+
|
977
|
+
##
|
978
|
+
# @private
|
979
|
+
#
|
980
|
+
# GRPC transcoding helper method for the get_cloud_exadata_infrastructure REST call
|
981
|
+
#
|
982
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest]
|
983
|
+
# A request object representing the call parameters. Required.
|
984
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
985
|
+
# Uri, Body, Query string parameters
|
986
|
+
def self.transcode_get_cloud_exadata_infrastructure_request request_pb
|
987
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
988
|
+
.with_bindings(
|
989
|
+
uri_method: :get,
|
990
|
+
uri_template: "/v1/{name}",
|
991
|
+
matches: [
|
992
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false]
|
993
|
+
]
|
994
|
+
)
|
995
|
+
transcoder.transcode request_pb
|
996
|
+
end
|
997
|
+
|
998
|
+
##
|
999
|
+
# @private
|
1000
|
+
#
|
1001
|
+
# GRPC transcoding helper method for the create_cloud_exadata_infrastructure REST call
|
1002
|
+
#
|
1003
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest]
|
1004
|
+
# A request object representing the call parameters. Required.
|
1005
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1006
|
+
# Uri, Body, Query string parameters
|
1007
|
+
def self.transcode_create_cloud_exadata_infrastructure_request request_pb
|
1008
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1009
|
+
.with_bindings(
|
1010
|
+
uri_method: :post,
|
1011
|
+
uri_template: "/v1/{parent}/cloudExadataInfrastructures",
|
1012
|
+
body: "cloud_exadata_infrastructure",
|
1013
|
+
matches: [
|
1014
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1015
|
+
]
|
1016
|
+
)
|
1017
|
+
transcoder.transcode request_pb
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
##
|
1021
|
+
# @private
|
1022
|
+
#
|
1023
|
+
# GRPC transcoding helper method for the delete_cloud_exadata_infrastructure REST call
|
1024
|
+
#
|
1025
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest]
|
1026
|
+
# A request object representing the call parameters. Required.
|
1027
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1028
|
+
# Uri, Body, Query string parameters
|
1029
|
+
def self.transcode_delete_cloud_exadata_infrastructure_request request_pb
|
1030
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1031
|
+
.with_bindings(
|
1032
|
+
uri_method: :delete,
|
1033
|
+
uri_template: "/v1/{name}",
|
1034
|
+
matches: [
|
1035
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false]
|
1036
|
+
]
|
1037
|
+
)
|
1038
|
+
transcoder.transcode request_pb
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
##
|
1042
|
+
# @private
|
1043
|
+
#
|
1044
|
+
# GRPC transcoding helper method for the list_cloud_vm_clusters REST call
|
1045
|
+
#
|
1046
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest]
|
1047
|
+
# A request object representing the call parameters. Required.
|
1048
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1049
|
+
# Uri, Body, Query string parameters
|
1050
|
+
def self.transcode_list_cloud_vm_clusters_request request_pb
|
1051
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1052
|
+
.with_bindings(
|
1053
|
+
uri_method: :get,
|
1054
|
+
uri_template: "/v1/{parent}/cloudVmClusters",
|
1055
|
+
matches: [
|
1056
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1057
|
+
]
|
1058
|
+
)
|
1059
|
+
transcoder.transcode request_pb
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
##
|
1063
|
+
# @private
|
1064
|
+
#
|
1065
|
+
# GRPC transcoding helper method for the get_cloud_vm_cluster REST call
|
1066
|
+
#
|
1067
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest]
|
1068
|
+
# A request object representing the call parameters. Required.
|
1069
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1070
|
+
# Uri, Body, Query string parameters
|
1071
|
+
def self.transcode_get_cloud_vm_cluster_request request_pb
|
1072
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1073
|
+
.with_bindings(
|
1074
|
+
uri_method: :get,
|
1075
|
+
uri_template: "/v1/{name}",
|
1076
|
+
matches: [
|
1077
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false]
|
1078
|
+
]
|
1079
|
+
)
|
1080
|
+
transcoder.transcode request_pb
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
##
|
1084
|
+
# @private
|
1085
|
+
#
|
1086
|
+
# GRPC transcoding helper method for the create_cloud_vm_cluster REST call
|
1087
|
+
#
|
1088
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest]
|
1089
|
+
# A request object representing the call parameters. Required.
|
1090
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1091
|
+
# Uri, Body, Query string parameters
|
1092
|
+
def self.transcode_create_cloud_vm_cluster_request request_pb
|
1093
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1094
|
+
.with_bindings(
|
1095
|
+
uri_method: :post,
|
1096
|
+
uri_template: "/v1/{parent}/cloudVmClusters",
|
1097
|
+
body: "cloud_vm_cluster",
|
1098
|
+
matches: [
|
1099
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1100
|
+
]
|
1101
|
+
)
|
1102
|
+
transcoder.transcode request_pb
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
##
|
1106
|
+
# @private
|
1107
|
+
#
|
1108
|
+
# GRPC transcoding helper method for the delete_cloud_vm_cluster REST call
|
1109
|
+
#
|
1110
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest]
|
1111
|
+
# A request object representing the call parameters. Required.
|
1112
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1113
|
+
# Uri, Body, Query string parameters
|
1114
|
+
def self.transcode_delete_cloud_vm_cluster_request request_pb
|
1115
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1116
|
+
.with_bindings(
|
1117
|
+
uri_method: :delete,
|
1118
|
+
uri_template: "/v1/{name}",
|
1119
|
+
matches: [
|
1120
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false]
|
1121
|
+
]
|
1122
|
+
)
|
1123
|
+
transcoder.transcode request_pb
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
##
|
1127
|
+
# @private
|
1128
|
+
#
|
1129
|
+
# GRPC transcoding helper method for the list_entitlements REST call
|
1130
|
+
#
|
1131
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest]
|
1132
|
+
# A request object representing the call parameters. Required.
|
1133
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1134
|
+
# Uri, Body, Query string parameters
|
1135
|
+
def self.transcode_list_entitlements_request request_pb
|
1136
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1137
|
+
.with_bindings(
|
1138
|
+
uri_method: :get,
|
1139
|
+
uri_template: "/v1/{parent}/entitlements",
|
1140
|
+
matches: [
|
1141
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1142
|
+
]
|
1143
|
+
)
|
1144
|
+
transcoder.transcode request_pb
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
##
|
1148
|
+
# @private
|
1149
|
+
#
|
1150
|
+
# GRPC transcoding helper method for the list_db_servers REST call
|
1151
|
+
#
|
1152
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest]
|
1153
|
+
# A request object representing the call parameters. Required.
|
1154
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1155
|
+
# Uri, Body, Query string parameters
|
1156
|
+
def self.transcode_list_db_servers_request request_pb
|
1157
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1158
|
+
.with_bindings(
|
1159
|
+
uri_method: :get,
|
1160
|
+
uri_template: "/v1/{parent}/dbServers",
|
1161
|
+
matches: [
|
1162
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false]
|
1163
|
+
]
|
1164
|
+
)
|
1165
|
+
transcoder.transcode request_pb
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
##
|
1169
|
+
# @private
|
1170
|
+
#
|
1171
|
+
# GRPC transcoding helper method for the list_db_nodes REST call
|
1172
|
+
#
|
1173
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest]
|
1174
|
+
# A request object representing the call parameters. Required.
|
1175
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1176
|
+
# Uri, Body, Query string parameters
|
1177
|
+
def self.transcode_list_db_nodes_request request_pb
|
1178
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1179
|
+
.with_bindings(
|
1180
|
+
uri_method: :get,
|
1181
|
+
uri_template: "/v1/{parent}/dbNodes",
|
1182
|
+
matches: [
|
1183
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false]
|
1184
|
+
]
|
1185
|
+
)
|
1186
|
+
transcoder.transcode request_pb
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
##
|
1190
|
+
# @private
|
1191
|
+
#
|
1192
|
+
# GRPC transcoding helper method for the list_gi_versions REST call
|
1193
|
+
#
|
1194
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest]
|
1195
|
+
# A request object representing the call parameters. Required.
|
1196
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1197
|
+
# Uri, Body, Query string parameters
|
1198
|
+
def self.transcode_list_gi_versions_request request_pb
|
1199
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1200
|
+
.with_bindings(
|
1201
|
+
uri_method: :get,
|
1202
|
+
uri_template: "/v1/{parent}/giVersions",
|
1203
|
+
matches: [
|
1204
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1205
|
+
]
|
1206
|
+
)
|
1207
|
+
transcoder.transcode request_pb
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
##
|
1211
|
+
# @private
|
1212
|
+
#
|
1213
|
+
# GRPC transcoding helper method for the list_db_system_shapes REST call
|
1214
|
+
#
|
1215
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest]
|
1216
|
+
# A request object representing the call parameters. Required.
|
1217
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1218
|
+
# Uri, Body, Query string parameters
|
1219
|
+
def self.transcode_list_db_system_shapes_request request_pb
|
1220
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1221
|
+
.with_bindings(
|
1222
|
+
uri_method: :get,
|
1223
|
+
uri_template: "/v1/{parent}/dbSystemShapes",
|
1224
|
+
matches: [
|
1225
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1226
|
+
]
|
1227
|
+
)
|
1228
|
+
transcoder.transcode request_pb
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
##
|
1232
|
+
# @private
|
1233
|
+
#
|
1234
|
+
# GRPC transcoding helper method for the list_autonomous_databases REST call
|
1235
|
+
#
|
1236
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest]
|
1237
|
+
# A request object representing the call parameters. Required.
|
1238
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1239
|
+
# Uri, Body, Query string parameters
|
1240
|
+
def self.transcode_list_autonomous_databases_request request_pb
|
1241
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1242
|
+
.with_bindings(
|
1243
|
+
uri_method: :get,
|
1244
|
+
uri_template: "/v1/{parent}/autonomousDatabases",
|
1245
|
+
matches: [
|
1246
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1247
|
+
]
|
1248
|
+
)
|
1249
|
+
transcoder.transcode request_pb
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
##
|
1253
|
+
# @private
|
1254
|
+
#
|
1255
|
+
# GRPC transcoding helper method for the get_autonomous_database REST call
|
1256
|
+
#
|
1257
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest]
|
1258
|
+
# A request object representing the call parameters. Required.
|
1259
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1260
|
+
# Uri, Body, Query string parameters
|
1261
|
+
def self.transcode_get_autonomous_database_request request_pb
|
1262
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1263
|
+
.with_bindings(
|
1264
|
+
uri_method: :get,
|
1265
|
+
uri_template: "/v1/{name}",
|
1266
|
+
matches: [
|
1267
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false]
|
1268
|
+
]
|
1269
|
+
)
|
1270
|
+
transcoder.transcode request_pb
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
##
|
1274
|
+
# @private
|
1275
|
+
#
|
1276
|
+
# GRPC transcoding helper method for the create_autonomous_database REST call
|
1277
|
+
#
|
1278
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest]
|
1279
|
+
# A request object representing the call parameters. Required.
|
1280
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1281
|
+
# Uri, Body, Query string parameters
|
1282
|
+
def self.transcode_create_autonomous_database_request request_pb
|
1283
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1284
|
+
.with_bindings(
|
1285
|
+
uri_method: :post,
|
1286
|
+
uri_template: "/v1/{parent}/autonomousDatabases",
|
1287
|
+
body: "autonomous_database",
|
1288
|
+
matches: [
|
1289
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1290
|
+
]
|
1291
|
+
)
|
1292
|
+
transcoder.transcode request_pb
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
##
|
1296
|
+
# @private
|
1297
|
+
#
|
1298
|
+
# GRPC transcoding helper method for the delete_autonomous_database REST call
|
1299
|
+
#
|
1300
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest]
|
1301
|
+
# A request object representing the call parameters. Required.
|
1302
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1303
|
+
# Uri, Body, Query string parameters
|
1304
|
+
def self.transcode_delete_autonomous_database_request request_pb
|
1305
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1306
|
+
.with_bindings(
|
1307
|
+
uri_method: :delete,
|
1308
|
+
uri_template: "/v1/{name}",
|
1309
|
+
matches: [
|
1310
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false]
|
1311
|
+
]
|
1312
|
+
)
|
1313
|
+
transcoder.transcode request_pb
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
##
|
1317
|
+
# @private
|
1318
|
+
#
|
1319
|
+
# GRPC transcoding helper method for the restore_autonomous_database REST call
|
1320
|
+
#
|
1321
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest]
|
1322
|
+
# A request object representing the call parameters. Required.
|
1323
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1324
|
+
# Uri, Body, Query string parameters
|
1325
|
+
def self.transcode_restore_autonomous_database_request request_pb
|
1326
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1327
|
+
.with_bindings(
|
1328
|
+
uri_method: :post,
|
1329
|
+
uri_template: "/v1/{name}:restore",
|
1330
|
+
body: "*",
|
1331
|
+
matches: [
|
1332
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false]
|
1333
|
+
]
|
1334
|
+
)
|
1335
|
+
transcoder.transcode request_pb
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
##
|
1339
|
+
# @private
|
1340
|
+
#
|
1341
|
+
# GRPC transcoding helper method for the generate_autonomous_database_wallet REST call
|
1342
|
+
#
|
1343
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest]
|
1344
|
+
# A request object representing the call parameters. Required.
|
1345
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1346
|
+
# Uri, Body, Query string parameters
|
1347
|
+
def self.transcode_generate_autonomous_database_wallet_request request_pb
|
1348
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1349
|
+
.with_bindings(
|
1350
|
+
uri_method: :post,
|
1351
|
+
uri_template: "/v1/{name}:generateWallet",
|
1352
|
+
body: "*",
|
1353
|
+
matches: [
|
1354
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false]
|
1355
|
+
]
|
1356
|
+
)
|
1357
|
+
transcoder.transcode request_pb
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
##
|
1361
|
+
# @private
|
1362
|
+
#
|
1363
|
+
# GRPC transcoding helper method for the list_autonomous_db_versions REST call
|
1364
|
+
#
|
1365
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest]
|
1366
|
+
# A request object representing the call parameters. Required.
|
1367
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1368
|
+
# Uri, Body, Query string parameters
|
1369
|
+
def self.transcode_list_autonomous_db_versions_request request_pb
|
1370
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1371
|
+
.with_bindings(
|
1372
|
+
uri_method: :get,
|
1373
|
+
uri_template: "/v1/{parent}/autonomousDbVersions",
|
1374
|
+
matches: [
|
1375
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1376
|
+
]
|
1377
|
+
)
|
1378
|
+
transcoder.transcode request_pb
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
##
|
1382
|
+
# @private
|
1383
|
+
#
|
1384
|
+
# GRPC transcoding helper method for the list_autonomous_database_character_sets REST call
|
1385
|
+
#
|
1386
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest]
|
1387
|
+
# A request object representing the call parameters. Required.
|
1388
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1389
|
+
# Uri, Body, Query string parameters
|
1390
|
+
def self.transcode_list_autonomous_database_character_sets_request request_pb
|
1391
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1392
|
+
.with_bindings(
|
1393
|
+
uri_method: :get,
|
1394
|
+
uri_template: "/v1/{parent}/autonomousDatabaseCharacterSets",
|
1395
|
+
matches: [
|
1396
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1397
|
+
]
|
1398
|
+
)
|
1399
|
+
transcoder.transcode request_pb
|
1400
|
+
end
|
1401
|
+
|
1402
|
+
##
|
1403
|
+
# @private
|
1404
|
+
#
|
1405
|
+
# GRPC transcoding helper method for the list_autonomous_database_backups REST call
|
1406
|
+
#
|
1407
|
+
# @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest]
|
1408
|
+
# A request object representing the call parameters. Required.
|
1409
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1410
|
+
# Uri, Body, Query string parameters
|
1411
|
+
def self.transcode_list_autonomous_database_backups_request request_pb
|
1412
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1413
|
+
.with_bindings(
|
1414
|
+
uri_method: :get,
|
1415
|
+
uri_template: "/v1/{parent}/autonomousDatabaseBackups",
|
1416
|
+
matches: [
|
1417
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1418
|
+
]
|
1419
|
+
)
|
1420
|
+
transcoder.transcode request_pb
|
1421
|
+
end
|
1422
|
+
end
|
1423
|
+
end
|
1424
|
+
end
|
1425
|
+
end
|
1426
|
+
end
|
1427
|
+
end
|
1428
|
+
end
|