google-cloud-financial_services-v1 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/financial_services/v1/aml/client.rb +4687 -0
- data/lib/google/cloud/financial_services/v1/aml/credentials.rb +47 -0
- data/lib/google/cloud/financial_services/v1/aml/operations.rb +813 -0
- data/lib/google/cloud/financial_services/v1/aml/paths.rb +195 -0
- data/lib/google/cloud/financial_services/v1/aml/rest/client.rb +4403 -0
- data/lib/google/cloud/financial_services/v1/aml/rest/operations.rb +914 -0
- data/lib/google/cloud/financial_services/v1/aml/rest/service_stub.rb +2417 -0
- data/lib/google/cloud/financial_services/v1/aml/rest.rb +55 -0
- data/lib/google/cloud/financial_services/v1/aml.rb +57 -0
- data/lib/google/cloud/financial_services/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/financial_services/v1/rest.rb +38 -0
- data/lib/google/cloud/financial_services/v1/version.rb +7 -2
- data/lib/google/cloud/financial_services/v1.rb +45 -0
- data/lib/google/cloud/financialservices/v1/backtest_result_pb.rb +62 -0
- data/lib/google/cloud/financialservices/v1/bigquery_destination_pb.rb +45 -0
- data/lib/google/cloud/financialservices/v1/dataset_pb.rb +60 -0
- data/lib/google/cloud/financialservices/v1/engine_config_pb.rb +65 -0
- data/lib/google/cloud/financialservices/v1/engine_version_pb.rb +52 -0
- data/lib/google/cloud/financialservices/v1/instance_pb.rb +64 -0
- data/lib/google/cloud/financialservices/v1/line_of_business_pb.rb +42 -0
- data/lib/google/cloud/financialservices/v1/model_pb.rb +61 -0
- data/lib/google/cloud/financialservices/v1/prediction_result_pb.rb +62 -0
- data/lib/google/cloud/financialservices/v1/service_pb.rb +57 -0
- data/lib/google/cloud/financialservices/v1/service_services_pb.rb +138 -0
- data/lib/google-cloud-financial_services-v1.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/financialservices/v1/backtest_result.rb +277 -0
- data/proto_docs/google/cloud/financialservices/v1/bigquery_destination.rb +56 -0
- data/proto_docs/google/cloud/financialservices/v1/dataset.rb +242 -0
- data/proto_docs/google/cloud/financialservices/v1/engine_config.rb +324 -0
- data/proto_docs/google/cloud/financialservices/v1/engine_version.rb +126 -0
- data/proto_docs/google/cloud/financialservices/v1/instance.rb +318 -0
- data/proto_docs/google/cloud/financialservices/v1/line_of_business.rb +38 -0
- data/proto_docs/google/cloud/financialservices/v1/model.rb +256 -0
- data/proto_docs/google/cloud/financialservices/v1/prediction_result.rb +277 -0
- data/proto_docs/google/cloud/financialservices/v1/service.rb +60 -0
- data/proto_docs/google/longrunning/operations.rb +173 -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/field_mask.rb +229 -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 +103 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +113 -9
@@ -0,0 +1,2417 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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/financialservices/v1/service_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module FinancialServices
|
24
|
+
module V1
|
25
|
+
module AML
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the AML 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_instances REST call
|
78
|
+
#
|
79
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListInstancesRequest]
|
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::FinancialServices::V1::ListInstancesResponse]
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
87
|
+
#
|
88
|
+
# @return [::Google::Cloud::FinancialServices::V1::ListInstancesResponse]
|
89
|
+
# A result object deserialized from the server's reply
|
90
|
+
def list_instances 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_instances_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_instances",
|
106
|
+
options: options
|
107
|
+
)
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
109
|
+
result = ::Google::Cloud::FinancialServices::V1::ListInstancesResponse.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_instance REST call
|
118
|
+
#
|
119
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetInstanceRequest]
|
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::FinancialServices::V1::Instance]
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
127
|
+
#
|
128
|
+
# @return [::Google::Cloud::FinancialServices::V1::Instance]
|
129
|
+
# A result object deserialized from the server's reply
|
130
|
+
def get_instance 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_instance_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_instance",
|
146
|
+
options: options
|
147
|
+
)
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
149
|
+
result = ::Google::Cloud::FinancialServices::V1::Instance.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_instance REST call
|
158
|
+
#
|
159
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateInstanceRequest]
|
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_instance 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_instance_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_instance",
|
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 update_instance REST call
|
198
|
+
#
|
199
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateInstanceRequest]
|
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 update_instance 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_update_instance_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: "update_instance",
|
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 delete_instance REST call
|
238
|
+
#
|
239
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteInstanceRequest]
|
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::Longrunning::Operation]
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
247
|
+
#
|
248
|
+
# @return [::Google::Longrunning::Operation]
|
249
|
+
# A result object deserialized from the server's reply
|
250
|
+
def delete_instance 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_delete_instance_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: "delete_instance",
|
266
|
+
options: options
|
267
|
+
)
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
269
|
+
result = ::Google::Longrunning::Operation.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 import_registered_parties REST call
|
278
|
+
#
|
279
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ImportRegisteredPartiesRequest]
|
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::Longrunning::Operation]
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
287
|
+
#
|
288
|
+
# @return [::Google::Longrunning::Operation]
|
289
|
+
# A result object deserialized from the server's reply
|
290
|
+
def import_registered_parties 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_import_registered_parties_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: "import_registered_parties",
|
306
|
+
options: options
|
307
|
+
)
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
309
|
+
result = ::Google::Longrunning::Operation.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 export_registered_parties REST call
|
318
|
+
#
|
319
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportRegisteredPartiesRequest]
|
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 export_registered_parties 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_export_registered_parties_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: "export_registered_parties",
|
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 list_datasets REST call
|
358
|
+
#
|
359
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListDatasetsRequest]
|
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::Cloud::FinancialServices::V1::ListDatasetsResponse]
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
367
|
+
#
|
368
|
+
# @return [::Google::Cloud::FinancialServices::V1::ListDatasetsResponse]
|
369
|
+
# A result object deserialized from the server's reply
|
370
|
+
def list_datasets 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_list_datasets_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: "list_datasets",
|
386
|
+
options: options
|
387
|
+
)
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
389
|
+
result = ::Google::Cloud::FinancialServices::V1::ListDatasetsResponse.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 get_dataset REST call
|
398
|
+
#
|
399
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetDatasetRequest]
|
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::FinancialServices::V1::Dataset]
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
407
|
+
#
|
408
|
+
# @return [::Google::Cloud::FinancialServices::V1::Dataset]
|
409
|
+
# A result object deserialized from the server's reply
|
410
|
+
def get_dataset 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_get_dataset_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: "get_dataset",
|
426
|
+
options: options
|
427
|
+
)
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
429
|
+
result = ::Google::Cloud::FinancialServices::V1::Dataset.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 create_dataset REST call
|
438
|
+
#
|
439
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateDatasetRequest]
|
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::Longrunning::Operation]
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
447
|
+
#
|
448
|
+
# @return [::Google::Longrunning::Operation]
|
449
|
+
# A result object deserialized from the server's reply
|
450
|
+
def create_dataset 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_create_dataset_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: "create_dataset",
|
466
|
+
options: options
|
467
|
+
)
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
469
|
+
result = ::Google::Longrunning::Operation.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 update_dataset REST call
|
478
|
+
#
|
479
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateDatasetRequest]
|
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::Longrunning::Operation]
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
487
|
+
#
|
488
|
+
# @return [::Google::Longrunning::Operation]
|
489
|
+
# A result object deserialized from the server's reply
|
490
|
+
def update_dataset 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_update_dataset_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: "update_dataset",
|
506
|
+
options: options
|
507
|
+
)
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
509
|
+
result = ::Google::Longrunning::Operation.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 delete_dataset REST call
|
518
|
+
#
|
519
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteDatasetRequest]
|
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::Longrunning::Operation]
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
527
|
+
#
|
528
|
+
# @return [::Google::Longrunning::Operation]
|
529
|
+
# A result object deserialized from the server's reply
|
530
|
+
def delete_dataset 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_delete_dataset_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: "delete_dataset",
|
546
|
+
options: options
|
547
|
+
)
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
549
|
+
result = ::Google::Longrunning::Operation.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_models REST call
|
558
|
+
#
|
559
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListModelsRequest]
|
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::FinancialServices::V1::ListModelsResponse]
|
566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
567
|
+
#
|
568
|
+
# @return [::Google::Cloud::FinancialServices::V1::ListModelsResponse]
|
569
|
+
# A result object deserialized from the server's reply
|
570
|
+
def list_models 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_models_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_models",
|
586
|
+
options: options
|
587
|
+
)
|
588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
589
|
+
result = ::Google::Cloud::FinancialServices::V1::ListModelsResponse.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 get_model REST call
|
598
|
+
#
|
599
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetModelRequest]
|
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::FinancialServices::V1::Model]
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
607
|
+
#
|
608
|
+
# @return [::Google::Cloud::FinancialServices::V1::Model]
|
609
|
+
# A result object deserialized from the server's reply
|
610
|
+
def get_model 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_get_model_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: "get_model",
|
626
|
+
options: options
|
627
|
+
)
|
628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
629
|
+
result = ::Google::Cloud::FinancialServices::V1::Model.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 create_model REST call
|
638
|
+
#
|
639
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateModelRequest]
|
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::Longrunning::Operation]
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
647
|
+
#
|
648
|
+
# @return [::Google::Longrunning::Operation]
|
649
|
+
# A result object deserialized from the server's reply
|
650
|
+
def create_model 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_create_model_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: "create_model",
|
666
|
+
options: options
|
667
|
+
)
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
669
|
+
result = ::Google::Longrunning::Operation.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 update_model REST call
|
678
|
+
#
|
679
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateModelRequest]
|
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 update_model 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_update_model_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: "update_model",
|
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 export_model_metadata REST call
|
718
|
+
#
|
719
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportModelMetadataRequest]
|
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 export_model_metadata 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_export_model_metadata_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: "export_model_metadata",
|
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 delete_model REST call
|
758
|
+
#
|
759
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteModelRequest]
|
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 delete_model 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_delete_model_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: "delete_model",
|
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 list_engine_configs REST call
|
798
|
+
#
|
799
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListEngineConfigsRequest]
|
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::FinancialServices::V1::ListEngineConfigsResponse]
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
807
|
+
#
|
808
|
+
# @return [::Google::Cloud::FinancialServices::V1::ListEngineConfigsResponse]
|
809
|
+
# A result object deserialized from the server's reply
|
810
|
+
def list_engine_configs 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_list_engine_configs_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: "list_engine_configs",
|
826
|
+
options: options
|
827
|
+
)
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
829
|
+
result = ::Google::Cloud::FinancialServices::V1::ListEngineConfigsResponse.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 get_engine_config REST call
|
838
|
+
#
|
839
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetEngineConfigRequest]
|
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::FinancialServices::V1::EngineConfig]
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
847
|
+
#
|
848
|
+
# @return [::Google::Cloud::FinancialServices::V1::EngineConfig]
|
849
|
+
# A result object deserialized from the server's reply
|
850
|
+
def get_engine_config 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_get_engine_config_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: "get_engine_config",
|
866
|
+
options: options
|
867
|
+
)
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
869
|
+
result = ::Google::Cloud::FinancialServices::V1::EngineConfig.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 create_engine_config REST call
|
878
|
+
#
|
879
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateEngineConfigRequest]
|
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::Longrunning::Operation]
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
887
|
+
#
|
888
|
+
# @return [::Google::Longrunning::Operation]
|
889
|
+
# A result object deserialized from the server's reply
|
890
|
+
def create_engine_config 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_create_engine_config_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: "create_engine_config",
|
906
|
+
options: options
|
907
|
+
)
|
908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
909
|
+
result = ::Google::Longrunning::Operation.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 update_engine_config REST call
|
918
|
+
#
|
919
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateEngineConfigRequest]
|
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::Longrunning::Operation]
|
926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
927
|
+
#
|
928
|
+
# @return [::Google::Longrunning::Operation]
|
929
|
+
# A result object deserialized from the server's reply
|
930
|
+
def update_engine_config 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_update_engine_config_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: "update_engine_config",
|
946
|
+
options: options
|
947
|
+
)
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
949
|
+
result = ::Google::Longrunning::Operation.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
|
+
# Baseline implementation for the export_engine_config_metadata REST call
|
958
|
+
#
|
959
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportEngineConfigMetadataRequest]
|
960
|
+
# A request object representing the call parameters. Required.
|
961
|
+
# @param options [::Gapic::CallOptions]
|
962
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
963
|
+
#
|
964
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
965
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
967
|
+
#
|
968
|
+
# @return [::Google::Longrunning::Operation]
|
969
|
+
# A result object deserialized from the server's reply
|
970
|
+
def export_engine_config_metadata request_pb, options = nil
|
971
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
972
|
+
|
973
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_engine_config_metadata_request request_pb
|
974
|
+
query_string_params = if query_string_params.any?
|
975
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
976
|
+
else
|
977
|
+
{}
|
978
|
+
end
|
979
|
+
|
980
|
+
response = @client_stub.make_http_request(
|
981
|
+
verb,
|
982
|
+
uri: uri,
|
983
|
+
body: body || "",
|
984
|
+
params: query_string_params,
|
985
|
+
method_name: "export_engine_config_metadata",
|
986
|
+
options: options
|
987
|
+
)
|
988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
989
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
990
|
+
catch :response do
|
991
|
+
yield result, operation if block_given?
|
992
|
+
result
|
993
|
+
end
|
994
|
+
end
|
995
|
+
|
996
|
+
##
|
997
|
+
# Baseline implementation for the delete_engine_config REST call
|
998
|
+
#
|
999
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteEngineConfigRequest]
|
1000
|
+
# A request object representing the call parameters. Required.
|
1001
|
+
# @param options [::Gapic::CallOptions]
|
1002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1003
|
+
#
|
1004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1005
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1007
|
+
#
|
1008
|
+
# @return [::Google::Longrunning::Operation]
|
1009
|
+
# A result object deserialized from the server's reply
|
1010
|
+
def delete_engine_config request_pb, options = nil
|
1011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1012
|
+
|
1013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_engine_config_request request_pb
|
1014
|
+
query_string_params = if query_string_params.any?
|
1015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1016
|
+
else
|
1017
|
+
{}
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
response = @client_stub.make_http_request(
|
1021
|
+
verb,
|
1022
|
+
uri: uri,
|
1023
|
+
body: body || "",
|
1024
|
+
params: query_string_params,
|
1025
|
+
method_name: "delete_engine_config",
|
1026
|
+
options: options
|
1027
|
+
)
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1029
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1030
|
+
catch :response do
|
1031
|
+
yield result, operation if block_given?
|
1032
|
+
result
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
##
|
1037
|
+
# Baseline implementation for the get_engine_version REST call
|
1038
|
+
#
|
1039
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetEngineVersionRequest]
|
1040
|
+
# A request object representing the call parameters. Required.
|
1041
|
+
# @param options [::Gapic::CallOptions]
|
1042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1043
|
+
#
|
1044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1045
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::EngineVersion]
|
1046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1047
|
+
#
|
1048
|
+
# @return [::Google::Cloud::FinancialServices::V1::EngineVersion]
|
1049
|
+
# A result object deserialized from the server's reply
|
1050
|
+
def get_engine_version request_pb, options = nil
|
1051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1052
|
+
|
1053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_engine_version_request request_pb
|
1054
|
+
query_string_params = if query_string_params.any?
|
1055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1056
|
+
else
|
1057
|
+
{}
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
response = @client_stub.make_http_request(
|
1061
|
+
verb,
|
1062
|
+
uri: uri,
|
1063
|
+
body: body || "",
|
1064
|
+
params: query_string_params,
|
1065
|
+
method_name: "get_engine_version",
|
1066
|
+
options: options
|
1067
|
+
)
|
1068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1069
|
+
result = ::Google::Cloud::FinancialServices::V1::EngineVersion.decode_json response.body, ignore_unknown_fields: true
|
1070
|
+
catch :response do
|
1071
|
+
yield result, operation if block_given?
|
1072
|
+
result
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
##
|
1077
|
+
# Baseline implementation for the list_engine_versions REST call
|
1078
|
+
#
|
1079
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListEngineVersionsRequest]
|
1080
|
+
# A request object representing the call parameters. Required.
|
1081
|
+
# @param options [::Gapic::CallOptions]
|
1082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1083
|
+
#
|
1084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1085
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::ListEngineVersionsResponse]
|
1086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1087
|
+
#
|
1088
|
+
# @return [::Google::Cloud::FinancialServices::V1::ListEngineVersionsResponse]
|
1089
|
+
# A result object deserialized from the server's reply
|
1090
|
+
def list_engine_versions request_pb, options = nil
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1092
|
+
|
1093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_engine_versions_request request_pb
|
1094
|
+
query_string_params = if query_string_params.any?
|
1095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1096
|
+
else
|
1097
|
+
{}
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
response = @client_stub.make_http_request(
|
1101
|
+
verb,
|
1102
|
+
uri: uri,
|
1103
|
+
body: body || "",
|
1104
|
+
params: query_string_params,
|
1105
|
+
method_name: "list_engine_versions",
|
1106
|
+
options: options
|
1107
|
+
)
|
1108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1109
|
+
result = ::Google::Cloud::FinancialServices::V1::ListEngineVersionsResponse.decode_json response.body, ignore_unknown_fields: true
|
1110
|
+
catch :response do
|
1111
|
+
yield result, operation if block_given?
|
1112
|
+
result
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
##
|
1117
|
+
# Baseline implementation for the list_prediction_results REST call
|
1118
|
+
#
|
1119
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListPredictionResultsRequest]
|
1120
|
+
# A request object representing the call parameters. Required.
|
1121
|
+
# @param options [::Gapic::CallOptions]
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1123
|
+
#
|
1124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1125
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::ListPredictionResultsResponse]
|
1126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1127
|
+
#
|
1128
|
+
# @return [::Google::Cloud::FinancialServices::V1::ListPredictionResultsResponse]
|
1129
|
+
# A result object deserialized from the server's reply
|
1130
|
+
def list_prediction_results request_pb, options = nil
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1132
|
+
|
1133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_prediction_results_request request_pb
|
1134
|
+
query_string_params = if query_string_params.any?
|
1135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1136
|
+
else
|
1137
|
+
{}
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
response = @client_stub.make_http_request(
|
1141
|
+
verb,
|
1142
|
+
uri: uri,
|
1143
|
+
body: body || "",
|
1144
|
+
params: query_string_params,
|
1145
|
+
method_name: "list_prediction_results",
|
1146
|
+
options: options
|
1147
|
+
)
|
1148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1149
|
+
result = ::Google::Cloud::FinancialServices::V1::ListPredictionResultsResponse.decode_json response.body, ignore_unknown_fields: true
|
1150
|
+
catch :response do
|
1151
|
+
yield result, operation if block_given?
|
1152
|
+
result
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
##
|
1157
|
+
# Baseline implementation for the get_prediction_result REST call
|
1158
|
+
#
|
1159
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetPredictionResultRequest]
|
1160
|
+
# A request object representing the call parameters. Required.
|
1161
|
+
# @param options [::Gapic::CallOptions]
|
1162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1163
|
+
#
|
1164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1165
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::PredictionResult]
|
1166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1167
|
+
#
|
1168
|
+
# @return [::Google::Cloud::FinancialServices::V1::PredictionResult]
|
1169
|
+
# A result object deserialized from the server's reply
|
1170
|
+
def get_prediction_result request_pb, options = nil
|
1171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1172
|
+
|
1173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_prediction_result_request request_pb
|
1174
|
+
query_string_params = if query_string_params.any?
|
1175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1176
|
+
else
|
1177
|
+
{}
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
response = @client_stub.make_http_request(
|
1181
|
+
verb,
|
1182
|
+
uri: uri,
|
1183
|
+
body: body || "",
|
1184
|
+
params: query_string_params,
|
1185
|
+
method_name: "get_prediction_result",
|
1186
|
+
options: options
|
1187
|
+
)
|
1188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1189
|
+
result = ::Google::Cloud::FinancialServices::V1::PredictionResult.decode_json response.body, ignore_unknown_fields: true
|
1190
|
+
catch :response do
|
1191
|
+
yield result, operation if block_given?
|
1192
|
+
result
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
##
|
1197
|
+
# Baseline implementation for the create_prediction_result REST call
|
1198
|
+
#
|
1199
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreatePredictionResultRequest]
|
1200
|
+
# A request object representing the call parameters. Required.
|
1201
|
+
# @param options [::Gapic::CallOptions]
|
1202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1203
|
+
#
|
1204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1205
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1207
|
+
#
|
1208
|
+
# @return [::Google::Longrunning::Operation]
|
1209
|
+
# A result object deserialized from the server's reply
|
1210
|
+
def create_prediction_result request_pb, options = nil
|
1211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1212
|
+
|
1213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_prediction_result_request request_pb
|
1214
|
+
query_string_params = if query_string_params.any?
|
1215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1216
|
+
else
|
1217
|
+
{}
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
response = @client_stub.make_http_request(
|
1221
|
+
verb,
|
1222
|
+
uri: uri,
|
1223
|
+
body: body || "",
|
1224
|
+
params: query_string_params,
|
1225
|
+
method_name: "create_prediction_result",
|
1226
|
+
options: options
|
1227
|
+
)
|
1228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1229
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1230
|
+
catch :response do
|
1231
|
+
yield result, operation if block_given?
|
1232
|
+
result
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
##
|
1237
|
+
# Baseline implementation for the update_prediction_result REST call
|
1238
|
+
#
|
1239
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdatePredictionResultRequest]
|
1240
|
+
# A request object representing the call parameters. Required.
|
1241
|
+
# @param options [::Gapic::CallOptions]
|
1242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1243
|
+
#
|
1244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1245
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1247
|
+
#
|
1248
|
+
# @return [::Google::Longrunning::Operation]
|
1249
|
+
# A result object deserialized from the server's reply
|
1250
|
+
def update_prediction_result request_pb, options = nil
|
1251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1252
|
+
|
1253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_prediction_result_request request_pb
|
1254
|
+
query_string_params = if query_string_params.any?
|
1255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1256
|
+
else
|
1257
|
+
{}
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
response = @client_stub.make_http_request(
|
1261
|
+
verb,
|
1262
|
+
uri: uri,
|
1263
|
+
body: body || "",
|
1264
|
+
params: query_string_params,
|
1265
|
+
method_name: "update_prediction_result",
|
1266
|
+
options: options
|
1267
|
+
)
|
1268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1269
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1270
|
+
catch :response do
|
1271
|
+
yield result, operation if block_given?
|
1272
|
+
result
|
1273
|
+
end
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
##
|
1277
|
+
# Baseline implementation for the export_prediction_result_metadata REST call
|
1278
|
+
#
|
1279
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportPredictionResultMetadataRequest]
|
1280
|
+
# A request object representing the call parameters. Required.
|
1281
|
+
# @param options [::Gapic::CallOptions]
|
1282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1283
|
+
#
|
1284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1285
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1287
|
+
#
|
1288
|
+
# @return [::Google::Longrunning::Operation]
|
1289
|
+
# A result object deserialized from the server's reply
|
1290
|
+
def export_prediction_result_metadata request_pb, options = nil
|
1291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1292
|
+
|
1293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_prediction_result_metadata_request request_pb
|
1294
|
+
query_string_params = if query_string_params.any?
|
1295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1296
|
+
else
|
1297
|
+
{}
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
response = @client_stub.make_http_request(
|
1301
|
+
verb,
|
1302
|
+
uri: uri,
|
1303
|
+
body: body || "",
|
1304
|
+
params: query_string_params,
|
1305
|
+
method_name: "export_prediction_result_metadata",
|
1306
|
+
options: options
|
1307
|
+
)
|
1308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1309
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1310
|
+
catch :response do
|
1311
|
+
yield result, operation if block_given?
|
1312
|
+
result
|
1313
|
+
end
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
##
|
1317
|
+
# Baseline implementation for the delete_prediction_result REST call
|
1318
|
+
#
|
1319
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeletePredictionResultRequest]
|
1320
|
+
# A request object representing the call parameters. Required.
|
1321
|
+
# @param options [::Gapic::CallOptions]
|
1322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1323
|
+
#
|
1324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1325
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1327
|
+
#
|
1328
|
+
# @return [::Google::Longrunning::Operation]
|
1329
|
+
# A result object deserialized from the server's reply
|
1330
|
+
def delete_prediction_result request_pb, options = nil
|
1331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1332
|
+
|
1333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_prediction_result_request request_pb
|
1334
|
+
query_string_params = if query_string_params.any?
|
1335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1336
|
+
else
|
1337
|
+
{}
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
response = @client_stub.make_http_request(
|
1341
|
+
verb,
|
1342
|
+
uri: uri,
|
1343
|
+
body: body || "",
|
1344
|
+
params: query_string_params,
|
1345
|
+
method_name: "delete_prediction_result",
|
1346
|
+
options: options
|
1347
|
+
)
|
1348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1349
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1350
|
+
catch :response do
|
1351
|
+
yield result, operation if block_given?
|
1352
|
+
result
|
1353
|
+
end
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
##
|
1357
|
+
# Baseline implementation for the list_backtest_results REST call
|
1358
|
+
#
|
1359
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListBacktestResultsRequest]
|
1360
|
+
# A request object representing the call parameters. Required.
|
1361
|
+
# @param options [::Gapic::CallOptions]
|
1362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1363
|
+
#
|
1364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1365
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::ListBacktestResultsResponse]
|
1366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1367
|
+
#
|
1368
|
+
# @return [::Google::Cloud::FinancialServices::V1::ListBacktestResultsResponse]
|
1369
|
+
# A result object deserialized from the server's reply
|
1370
|
+
def list_backtest_results request_pb, options = nil
|
1371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1372
|
+
|
1373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_backtest_results_request request_pb
|
1374
|
+
query_string_params = if query_string_params.any?
|
1375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1376
|
+
else
|
1377
|
+
{}
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
response = @client_stub.make_http_request(
|
1381
|
+
verb,
|
1382
|
+
uri: uri,
|
1383
|
+
body: body || "",
|
1384
|
+
params: query_string_params,
|
1385
|
+
method_name: "list_backtest_results",
|
1386
|
+
options: options
|
1387
|
+
)
|
1388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1389
|
+
result = ::Google::Cloud::FinancialServices::V1::ListBacktestResultsResponse.decode_json response.body, ignore_unknown_fields: true
|
1390
|
+
catch :response do
|
1391
|
+
yield result, operation if block_given?
|
1392
|
+
result
|
1393
|
+
end
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
##
|
1397
|
+
# Baseline implementation for the get_backtest_result REST call
|
1398
|
+
#
|
1399
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetBacktestResultRequest]
|
1400
|
+
# A request object representing the call parameters. Required.
|
1401
|
+
# @param options [::Gapic::CallOptions]
|
1402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1403
|
+
#
|
1404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1405
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::BacktestResult]
|
1406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1407
|
+
#
|
1408
|
+
# @return [::Google::Cloud::FinancialServices::V1::BacktestResult]
|
1409
|
+
# A result object deserialized from the server's reply
|
1410
|
+
def get_backtest_result request_pb, options = nil
|
1411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1412
|
+
|
1413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_backtest_result_request request_pb
|
1414
|
+
query_string_params = if query_string_params.any?
|
1415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1416
|
+
else
|
1417
|
+
{}
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
response = @client_stub.make_http_request(
|
1421
|
+
verb,
|
1422
|
+
uri: uri,
|
1423
|
+
body: body || "",
|
1424
|
+
params: query_string_params,
|
1425
|
+
method_name: "get_backtest_result",
|
1426
|
+
options: options
|
1427
|
+
)
|
1428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1429
|
+
result = ::Google::Cloud::FinancialServices::V1::BacktestResult.decode_json response.body, ignore_unknown_fields: true
|
1430
|
+
catch :response do
|
1431
|
+
yield result, operation if block_given?
|
1432
|
+
result
|
1433
|
+
end
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
##
|
1437
|
+
# Baseline implementation for the create_backtest_result REST call
|
1438
|
+
#
|
1439
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateBacktestResultRequest]
|
1440
|
+
# A request object representing the call parameters. Required.
|
1441
|
+
# @param options [::Gapic::CallOptions]
|
1442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1443
|
+
#
|
1444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1445
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1447
|
+
#
|
1448
|
+
# @return [::Google::Longrunning::Operation]
|
1449
|
+
# A result object deserialized from the server's reply
|
1450
|
+
def create_backtest_result request_pb, options = nil
|
1451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1452
|
+
|
1453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_backtest_result_request request_pb
|
1454
|
+
query_string_params = if query_string_params.any?
|
1455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1456
|
+
else
|
1457
|
+
{}
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
response = @client_stub.make_http_request(
|
1461
|
+
verb,
|
1462
|
+
uri: uri,
|
1463
|
+
body: body || "",
|
1464
|
+
params: query_string_params,
|
1465
|
+
method_name: "create_backtest_result",
|
1466
|
+
options: options
|
1467
|
+
)
|
1468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1469
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1470
|
+
catch :response do
|
1471
|
+
yield result, operation if block_given?
|
1472
|
+
result
|
1473
|
+
end
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
##
|
1477
|
+
# Baseline implementation for the update_backtest_result REST call
|
1478
|
+
#
|
1479
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateBacktestResultRequest]
|
1480
|
+
# A request object representing the call parameters. Required.
|
1481
|
+
# @param options [::Gapic::CallOptions]
|
1482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1483
|
+
#
|
1484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1485
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1487
|
+
#
|
1488
|
+
# @return [::Google::Longrunning::Operation]
|
1489
|
+
# A result object deserialized from the server's reply
|
1490
|
+
def update_backtest_result request_pb, options = nil
|
1491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1492
|
+
|
1493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_backtest_result_request request_pb
|
1494
|
+
query_string_params = if query_string_params.any?
|
1495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1496
|
+
else
|
1497
|
+
{}
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
response = @client_stub.make_http_request(
|
1501
|
+
verb,
|
1502
|
+
uri: uri,
|
1503
|
+
body: body || "",
|
1504
|
+
params: query_string_params,
|
1505
|
+
method_name: "update_backtest_result",
|
1506
|
+
options: options
|
1507
|
+
)
|
1508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1509
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1510
|
+
catch :response do
|
1511
|
+
yield result, operation if block_given?
|
1512
|
+
result
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
##
|
1517
|
+
# Baseline implementation for the export_backtest_result_metadata REST call
|
1518
|
+
#
|
1519
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportBacktestResultMetadataRequest]
|
1520
|
+
# A request object representing the call parameters. Required.
|
1521
|
+
# @param options [::Gapic::CallOptions]
|
1522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1523
|
+
#
|
1524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1525
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1527
|
+
#
|
1528
|
+
# @return [::Google::Longrunning::Operation]
|
1529
|
+
# A result object deserialized from the server's reply
|
1530
|
+
def export_backtest_result_metadata request_pb, options = nil
|
1531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1532
|
+
|
1533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_backtest_result_metadata_request request_pb
|
1534
|
+
query_string_params = if query_string_params.any?
|
1535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1536
|
+
else
|
1537
|
+
{}
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
response = @client_stub.make_http_request(
|
1541
|
+
verb,
|
1542
|
+
uri: uri,
|
1543
|
+
body: body || "",
|
1544
|
+
params: query_string_params,
|
1545
|
+
method_name: "export_backtest_result_metadata",
|
1546
|
+
options: options
|
1547
|
+
)
|
1548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1549
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1550
|
+
catch :response do
|
1551
|
+
yield result, operation if block_given?
|
1552
|
+
result
|
1553
|
+
end
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
##
|
1557
|
+
# Baseline implementation for the delete_backtest_result REST call
|
1558
|
+
#
|
1559
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteBacktestResultRequest]
|
1560
|
+
# A request object representing the call parameters. Required.
|
1561
|
+
# @param options [::Gapic::CallOptions]
|
1562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1563
|
+
#
|
1564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1565
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1567
|
+
#
|
1568
|
+
# @return [::Google::Longrunning::Operation]
|
1569
|
+
# A result object deserialized from the server's reply
|
1570
|
+
def delete_backtest_result request_pb, options = nil
|
1571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1572
|
+
|
1573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backtest_result_request request_pb
|
1574
|
+
query_string_params = if query_string_params.any?
|
1575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1576
|
+
else
|
1577
|
+
{}
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
response = @client_stub.make_http_request(
|
1581
|
+
verb,
|
1582
|
+
uri: uri,
|
1583
|
+
body: body || "",
|
1584
|
+
params: query_string_params,
|
1585
|
+
method_name: "delete_backtest_result",
|
1586
|
+
options: options
|
1587
|
+
)
|
1588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1589
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1590
|
+
catch :response do
|
1591
|
+
yield result, operation if block_given?
|
1592
|
+
result
|
1593
|
+
end
|
1594
|
+
end
|
1595
|
+
|
1596
|
+
##
|
1597
|
+
# @private
|
1598
|
+
#
|
1599
|
+
# GRPC transcoding helper method for the list_instances REST call
|
1600
|
+
#
|
1601
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListInstancesRequest]
|
1602
|
+
# A request object representing the call parameters. Required.
|
1603
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1604
|
+
# Uri, Body, Query string parameters
|
1605
|
+
def self.transcode_list_instances_request request_pb
|
1606
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1607
|
+
.with_bindings(
|
1608
|
+
uri_method: :get,
|
1609
|
+
uri_template: "/v1/{parent}/instances",
|
1610
|
+
matches: [
|
1611
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1612
|
+
]
|
1613
|
+
)
|
1614
|
+
transcoder.transcode request_pb
|
1615
|
+
end
|
1616
|
+
|
1617
|
+
##
|
1618
|
+
# @private
|
1619
|
+
#
|
1620
|
+
# GRPC transcoding helper method for the get_instance REST call
|
1621
|
+
#
|
1622
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetInstanceRequest]
|
1623
|
+
# A request object representing the call parameters. Required.
|
1624
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1625
|
+
# Uri, Body, Query string parameters
|
1626
|
+
def self.transcode_get_instance_request request_pb
|
1627
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1628
|
+
.with_bindings(
|
1629
|
+
uri_method: :get,
|
1630
|
+
uri_template: "/v1/{name}",
|
1631
|
+
matches: [
|
1632
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1633
|
+
]
|
1634
|
+
)
|
1635
|
+
transcoder.transcode request_pb
|
1636
|
+
end
|
1637
|
+
|
1638
|
+
##
|
1639
|
+
# @private
|
1640
|
+
#
|
1641
|
+
# GRPC transcoding helper method for the create_instance REST call
|
1642
|
+
#
|
1643
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateInstanceRequest]
|
1644
|
+
# A request object representing the call parameters. Required.
|
1645
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1646
|
+
# Uri, Body, Query string parameters
|
1647
|
+
def self.transcode_create_instance_request request_pb
|
1648
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1649
|
+
.with_bindings(
|
1650
|
+
uri_method: :post,
|
1651
|
+
uri_template: "/v1/{parent}/instances",
|
1652
|
+
body: "instance",
|
1653
|
+
matches: [
|
1654
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1655
|
+
]
|
1656
|
+
)
|
1657
|
+
transcoder.transcode request_pb
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
##
|
1661
|
+
# @private
|
1662
|
+
#
|
1663
|
+
# GRPC transcoding helper method for the update_instance REST call
|
1664
|
+
#
|
1665
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateInstanceRequest]
|
1666
|
+
# A request object representing the call parameters. Required.
|
1667
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1668
|
+
# Uri, Body, Query string parameters
|
1669
|
+
def self.transcode_update_instance_request request_pb
|
1670
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1671
|
+
.with_bindings(
|
1672
|
+
uri_method: :patch,
|
1673
|
+
uri_template: "/v1/{instance.name}",
|
1674
|
+
body: "instance",
|
1675
|
+
matches: [
|
1676
|
+
["instance.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1677
|
+
]
|
1678
|
+
)
|
1679
|
+
transcoder.transcode request_pb
|
1680
|
+
end
|
1681
|
+
|
1682
|
+
##
|
1683
|
+
# @private
|
1684
|
+
#
|
1685
|
+
# GRPC transcoding helper method for the delete_instance REST call
|
1686
|
+
#
|
1687
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteInstanceRequest]
|
1688
|
+
# A request object representing the call parameters. Required.
|
1689
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1690
|
+
# Uri, Body, Query string parameters
|
1691
|
+
def self.transcode_delete_instance_request request_pb
|
1692
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1693
|
+
.with_bindings(
|
1694
|
+
uri_method: :delete,
|
1695
|
+
uri_template: "/v1/{name}",
|
1696
|
+
matches: [
|
1697
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1698
|
+
]
|
1699
|
+
)
|
1700
|
+
transcoder.transcode request_pb
|
1701
|
+
end
|
1702
|
+
|
1703
|
+
##
|
1704
|
+
# @private
|
1705
|
+
#
|
1706
|
+
# GRPC transcoding helper method for the import_registered_parties REST call
|
1707
|
+
#
|
1708
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ImportRegisteredPartiesRequest]
|
1709
|
+
# A request object representing the call parameters. Required.
|
1710
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1711
|
+
# Uri, Body, Query string parameters
|
1712
|
+
def self.transcode_import_registered_parties_request request_pb
|
1713
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1714
|
+
.with_bindings(
|
1715
|
+
uri_method: :post,
|
1716
|
+
uri_template: "/v1/{name}:importRegisteredParties",
|
1717
|
+
body: "*",
|
1718
|
+
matches: [
|
1719
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1720
|
+
]
|
1721
|
+
)
|
1722
|
+
transcoder.transcode request_pb
|
1723
|
+
end
|
1724
|
+
|
1725
|
+
##
|
1726
|
+
# @private
|
1727
|
+
#
|
1728
|
+
# GRPC transcoding helper method for the export_registered_parties REST call
|
1729
|
+
#
|
1730
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportRegisteredPartiesRequest]
|
1731
|
+
# A request object representing the call parameters. Required.
|
1732
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1733
|
+
# Uri, Body, Query string parameters
|
1734
|
+
def self.transcode_export_registered_parties_request request_pb
|
1735
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1736
|
+
.with_bindings(
|
1737
|
+
uri_method: :post,
|
1738
|
+
uri_template: "/v1/{name}:exportRegisteredParties",
|
1739
|
+
body: "*",
|
1740
|
+
matches: [
|
1741
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1742
|
+
]
|
1743
|
+
)
|
1744
|
+
transcoder.transcode request_pb
|
1745
|
+
end
|
1746
|
+
|
1747
|
+
##
|
1748
|
+
# @private
|
1749
|
+
#
|
1750
|
+
# GRPC transcoding helper method for the list_datasets REST call
|
1751
|
+
#
|
1752
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListDatasetsRequest]
|
1753
|
+
# A request object representing the call parameters. Required.
|
1754
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1755
|
+
# Uri, Body, Query string parameters
|
1756
|
+
def self.transcode_list_datasets_request request_pb
|
1757
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1758
|
+
.with_bindings(
|
1759
|
+
uri_method: :get,
|
1760
|
+
uri_template: "/v1/{parent}/datasets",
|
1761
|
+
matches: [
|
1762
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1763
|
+
]
|
1764
|
+
)
|
1765
|
+
transcoder.transcode request_pb
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
##
|
1769
|
+
# @private
|
1770
|
+
#
|
1771
|
+
# GRPC transcoding helper method for the get_dataset REST call
|
1772
|
+
#
|
1773
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetDatasetRequest]
|
1774
|
+
# A request object representing the call parameters. Required.
|
1775
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1776
|
+
# Uri, Body, Query string parameters
|
1777
|
+
def self.transcode_get_dataset_request request_pb
|
1778
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1779
|
+
.with_bindings(
|
1780
|
+
uri_method: :get,
|
1781
|
+
uri_template: "/v1/{name}",
|
1782
|
+
matches: [
|
1783
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/datasets/[^/]+/?$}, false]
|
1784
|
+
]
|
1785
|
+
)
|
1786
|
+
transcoder.transcode request_pb
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
##
|
1790
|
+
# @private
|
1791
|
+
#
|
1792
|
+
# GRPC transcoding helper method for the create_dataset REST call
|
1793
|
+
#
|
1794
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateDatasetRequest]
|
1795
|
+
# A request object representing the call parameters. Required.
|
1796
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1797
|
+
# Uri, Body, Query string parameters
|
1798
|
+
def self.transcode_create_dataset_request request_pb
|
1799
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1800
|
+
.with_bindings(
|
1801
|
+
uri_method: :post,
|
1802
|
+
uri_template: "/v1/{parent}/datasets",
|
1803
|
+
body: "dataset",
|
1804
|
+
matches: [
|
1805
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1806
|
+
]
|
1807
|
+
)
|
1808
|
+
transcoder.transcode request_pb
|
1809
|
+
end
|
1810
|
+
|
1811
|
+
##
|
1812
|
+
# @private
|
1813
|
+
#
|
1814
|
+
# GRPC transcoding helper method for the update_dataset REST call
|
1815
|
+
#
|
1816
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateDatasetRequest]
|
1817
|
+
# A request object representing the call parameters. Required.
|
1818
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1819
|
+
# Uri, Body, Query string parameters
|
1820
|
+
def self.transcode_update_dataset_request request_pb
|
1821
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1822
|
+
.with_bindings(
|
1823
|
+
uri_method: :patch,
|
1824
|
+
uri_template: "/v1/{dataset.name}",
|
1825
|
+
body: "dataset",
|
1826
|
+
matches: [
|
1827
|
+
["dataset.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/datasets/[^/]+/?$}, false]
|
1828
|
+
]
|
1829
|
+
)
|
1830
|
+
transcoder.transcode request_pb
|
1831
|
+
end
|
1832
|
+
|
1833
|
+
##
|
1834
|
+
# @private
|
1835
|
+
#
|
1836
|
+
# GRPC transcoding helper method for the delete_dataset REST call
|
1837
|
+
#
|
1838
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteDatasetRequest]
|
1839
|
+
# A request object representing the call parameters. Required.
|
1840
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1841
|
+
# Uri, Body, Query string parameters
|
1842
|
+
def self.transcode_delete_dataset_request request_pb
|
1843
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1844
|
+
.with_bindings(
|
1845
|
+
uri_method: :delete,
|
1846
|
+
uri_template: "/v1/{name}",
|
1847
|
+
matches: [
|
1848
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/datasets/[^/]+/?$}, false]
|
1849
|
+
]
|
1850
|
+
)
|
1851
|
+
transcoder.transcode request_pb
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
##
|
1855
|
+
# @private
|
1856
|
+
#
|
1857
|
+
# GRPC transcoding helper method for the list_models REST call
|
1858
|
+
#
|
1859
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListModelsRequest]
|
1860
|
+
# A request object representing the call parameters. Required.
|
1861
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1862
|
+
# Uri, Body, Query string parameters
|
1863
|
+
def self.transcode_list_models_request request_pb
|
1864
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1865
|
+
.with_bindings(
|
1866
|
+
uri_method: :get,
|
1867
|
+
uri_template: "/v1/{parent}/models",
|
1868
|
+
matches: [
|
1869
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1870
|
+
]
|
1871
|
+
)
|
1872
|
+
transcoder.transcode request_pb
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
##
|
1876
|
+
# @private
|
1877
|
+
#
|
1878
|
+
# GRPC transcoding helper method for the get_model REST call
|
1879
|
+
#
|
1880
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetModelRequest]
|
1881
|
+
# A request object representing the call parameters. Required.
|
1882
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1883
|
+
# Uri, Body, Query string parameters
|
1884
|
+
def self.transcode_get_model_request request_pb
|
1885
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1886
|
+
.with_bindings(
|
1887
|
+
uri_method: :get,
|
1888
|
+
uri_template: "/v1/{name}",
|
1889
|
+
matches: [
|
1890
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/models/[^/]+/?$}, false]
|
1891
|
+
]
|
1892
|
+
)
|
1893
|
+
transcoder.transcode request_pb
|
1894
|
+
end
|
1895
|
+
|
1896
|
+
##
|
1897
|
+
# @private
|
1898
|
+
#
|
1899
|
+
# GRPC transcoding helper method for the create_model REST call
|
1900
|
+
#
|
1901
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateModelRequest]
|
1902
|
+
# A request object representing the call parameters. Required.
|
1903
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1904
|
+
# Uri, Body, Query string parameters
|
1905
|
+
def self.transcode_create_model_request request_pb
|
1906
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1907
|
+
.with_bindings(
|
1908
|
+
uri_method: :post,
|
1909
|
+
uri_template: "/v1/{parent}/models",
|
1910
|
+
body: "model",
|
1911
|
+
matches: [
|
1912
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1913
|
+
]
|
1914
|
+
)
|
1915
|
+
transcoder.transcode request_pb
|
1916
|
+
end
|
1917
|
+
|
1918
|
+
##
|
1919
|
+
# @private
|
1920
|
+
#
|
1921
|
+
# GRPC transcoding helper method for the update_model REST call
|
1922
|
+
#
|
1923
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateModelRequest]
|
1924
|
+
# A request object representing the call parameters. Required.
|
1925
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1926
|
+
# Uri, Body, Query string parameters
|
1927
|
+
def self.transcode_update_model_request request_pb
|
1928
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1929
|
+
.with_bindings(
|
1930
|
+
uri_method: :patch,
|
1931
|
+
uri_template: "/v1/{model.name}",
|
1932
|
+
body: "model",
|
1933
|
+
matches: [
|
1934
|
+
["model.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/models/[^/]+/?$}, false]
|
1935
|
+
]
|
1936
|
+
)
|
1937
|
+
transcoder.transcode request_pb
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
##
|
1941
|
+
# @private
|
1942
|
+
#
|
1943
|
+
# GRPC transcoding helper method for the export_model_metadata REST call
|
1944
|
+
#
|
1945
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportModelMetadataRequest]
|
1946
|
+
# A request object representing the call parameters. Required.
|
1947
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1948
|
+
# Uri, Body, Query string parameters
|
1949
|
+
def self.transcode_export_model_metadata_request request_pb
|
1950
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1951
|
+
.with_bindings(
|
1952
|
+
uri_method: :post,
|
1953
|
+
uri_template: "/v1/{model}:exportMetadata",
|
1954
|
+
body: "*",
|
1955
|
+
matches: [
|
1956
|
+
["model", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/models/[^/]+/?$}, false]
|
1957
|
+
]
|
1958
|
+
)
|
1959
|
+
transcoder.transcode request_pb
|
1960
|
+
end
|
1961
|
+
|
1962
|
+
##
|
1963
|
+
# @private
|
1964
|
+
#
|
1965
|
+
# GRPC transcoding helper method for the delete_model REST call
|
1966
|
+
#
|
1967
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteModelRequest]
|
1968
|
+
# A request object representing the call parameters. Required.
|
1969
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1970
|
+
# Uri, Body, Query string parameters
|
1971
|
+
def self.transcode_delete_model_request request_pb
|
1972
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1973
|
+
.with_bindings(
|
1974
|
+
uri_method: :delete,
|
1975
|
+
uri_template: "/v1/{name}",
|
1976
|
+
matches: [
|
1977
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/models/[^/]+/?$}, false]
|
1978
|
+
]
|
1979
|
+
)
|
1980
|
+
transcoder.transcode request_pb
|
1981
|
+
end
|
1982
|
+
|
1983
|
+
##
|
1984
|
+
# @private
|
1985
|
+
#
|
1986
|
+
# GRPC transcoding helper method for the list_engine_configs REST call
|
1987
|
+
#
|
1988
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListEngineConfigsRequest]
|
1989
|
+
# A request object representing the call parameters. Required.
|
1990
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1991
|
+
# Uri, Body, Query string parameters
|
1992
|
+
def self.transcode_list_engine_configs_request request_pb
|
1993
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1994
|
+
.with_bindings(
|
1995
|
+
uri_method: :get,
|
1996
|
+
uri_template: "/v1/{parent}/engineConfigs",
|
1997
|
+
matches: [
|
1998
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1999
|
+
]
|
2000
|
+
)
|
2001
|
+
transcoder.transcode request_pb
|
2002
|
+
end
|
2003
|
+
|
2004
|
+
##
|
2005
|
+
# @private
|
2006
|
+
#
|
2007
|
+
# GRPC transcoding helper method for the get_engine_config REST call
|
2008
|
+
#
|
2009
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetEngineConfigRequest]
|
2010
|
+
# A request object representing the call parameters. Required.
|
2011
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2012
|
+
# Uri, Body, Query string parameters
|
2013
|
+
def self.transcode_get_engine_config_request request_pb
|
2014
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2015
|
+
.with_bindings(
|
2016
|
+
uri_method: :get,
|
2017
|
+
uri_template: "/v1/{name}",
|
2018
|
+
matches: [
|
2019
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/engineConfigs/[^/]+/?$}, false]
|
2020
|
+
]
|
2021
|
+
)
|
2022
|
+
transcoder.transcode request_pb
|
2023
|
+
end
|
2024
|
+
|
2025
|
+
##
|
2026
|
+
# @private
|
2027
|
+
#
|
2028
|
+
# GRPC transcoding helper method for the create_engine_config REST call
|
2029
|
+
#
|
2030
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateEngineConfigRequest]
|
2031
|
+
# A request object representing the call parameters. Required.
|
2032
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2033
|
+
# Uri, Body, Query string parameters
|
2034
|
+
def self.transcode_create_engine_config_request request_pb
|
2035
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2036
|
+
.with_bindings(
|
2037
|
+
uri_method: :post,
|
2038
|
+
uri_template: "/v1/{parent}/engineConfigs",
|
2039
|
+
body: "engine_config",
|
2040
|
+
matches: [
|
2041
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
2042
|
+
]
|
2043
|
+
)
|
2044
|
+
transcoder.transcode request_pb
|
2045
|
+
end
|
2046
|
+
|
2047
|
+
##
|
2048
|
+
# @private
|
2049
|
+
#
|
2050
|
+
# GRPC transcoding helper method for the update_engine_config REST call
|
2051
|
+
#
|
2052
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateEngineConfigRequest]
|
2053
|
+
# A request object representing the call parameters. Required.
|
2054
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2055
|
+
# Uri, Body, Query string parameters
|
2056
|
+
def self.transcode_update_engine_config_request request_pb
|
2057
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2058
|
+
.with_bindings(
|
2059
|
+
uri_method: :patch,
|
2060
|
+
uri_template: "/v1/{engine_config.name}",
|
2061
|
+
body: "engine_config",
|
2062
|
+
matches: [
|
2063
|
+
["engine_config.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/engineConfigs/[^/]+/?$}, false]
|
2064
|
+
]
|
2065
|
+
)
|
2066
|
+
transcoder.transcode request_pb
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
##
|
2070
|
+
# @private
|
2071
|
+
#
|
2072
|
+
# GRPC transcoding helper method for the export_engine_config_metadata REST call
|
2073
|
+
#
|
2074
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportEngineConfigMetadataRequest]
|
2075
|
+
# A request object representing the call parameters. Required.
|
2076
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2077
|
+
# Uri, Body, Query string parameters
|
2078
|
+
def self.transcode_export_engine_config_metadata_request request_pb
|
2079
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2080
|
+
.with_bindings(
|
2081
|
+
uri_method: :post,
|
2082
|
+
uri_template: "/v1/{engine_config}:exportMetadata",
|
2083
|
+
body: "*",
|
2084
|
+
matches: [
|
2085
|
+
["engine_config", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/engineConfigs/[^/]+/?$}, false]
|
2086
|
+
]
|
2087
|
+
)
|
2088
|
+
transcoder.transcode request_pb
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
##
|
2092
|
+
# @private
|
2093
|
+
#
|
2094
|
+
# GRPC transcoding helper method for the delete_engine_config REST call
|
2095
|
+
#
|
2096
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteEngineConfigRequest]
|
2097
|
+
# A request object representing the call parameters. Required.
|
2098
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2099
|
+
# Uri, Body, Query string parameters
|
2100
|
+
def self.transcode_delete_engine_config_request request_pb
|
2101
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2102
|
+
.with_bindings(
|
2103
|
+
uri_method: :delete,
|
2104
|
+
uri_template: "/v1/{name}",
|
2105
|
+
matches: [
|
2106
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/engineConfigs/[^/]+/?$}, false]
|
2107
|
+
]
|
2108
|
+
)
|
2109
|
+
transcoder.transcode request_pb
|
2110
|
+
end
|
2111
|
+
|
2112
|
+
##
|
2113
|
+
# @private
|
2114
|
+
#
|
2115
|
+
# GRPC transcoding helper method for the get_engine_version REST call
|
2116
|
+
#
|
2117
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetEngineVersionRequest]
|
2118
|
+
# A request object representing the call parameters. Required.
|
2119
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2120
|
+
# Uri, Body, Query string parameters
|
2121
|
+
def self.transcode_get_engine_version_request request_pb
|
2122
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2123
|
+
.with_bindings(
|
2124
|
+
uri_method: :get,
|
2125
|
+
uri_template: "/v1/{name}",
|
2126
|
+
matches: [
|
2127
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/engineVersions/[^/]+/?$}, false]
|
2128
|
+
]
|
2129
|
+
)
|
2130
|
+
transcoder.transcode request_pb
|
2131
|
+
end
|
2132
|
+
|
2133
|
+
##
|
2134
|
+
# @private
|
2135
|
+
#
|
2136
|
+
# GRPC transcoding helper method for the list_engine_versions REST call
|
2137
|
+
#
|
2138
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListEngineVersionsRequest]
|
2139
|
+
# A request object representing the call parameters. Required.
|
2140
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2141
|
+
# Uri, Body, Query string parameters
|
2142
|
+
def self.transcode_list_engine_versions_request request_pb
|
2143
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2144
|
+
.with_bindings(
|
2145
|
+
uri_method: :get,
|
2146
|
+
uri_template: "/v1/{parent}/engineVersions",
|
2147
|
+
matches: [
|
2148
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
2149
|
+
]
|
2150
|
+
)
|
2151
|
+
transcoder.transcode request_pb
|
2152
|
+
end
|
2153
|
+
|
2154
|
+
##
|
2155
|
+
# @private
|
2156
|
+
#
|
2157
|
+
# GRPC transcoding helper method for the list_prediction_results REST call
|
2158
|
+
#
|
2159
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListPredictionResultsRequest]
|
2160
|
+
# A request object representing the call parameters. Required.
|
2161
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2162
|
+
# Uri, Body, Query string parameters
|
2163
|
+
def self.transcode_list_prediction_results_request request_pb
|
2164
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2165
|
+
.with_bindings(
|
2166
|
+
uri_method: :get,
|
2167
|
+
uri_template: "/v1/{parent}/predictionResults",
|
2168
|
+
matches: [
|
2169
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
2170
|
+
]
|
2171
|
+
)
|
2172
|
+
transcoder.transcode request_pb
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
##
|
2176
|
+
# @private
|
2177
|
+
#
|
2178
|
+
# GRPC transcoding helper method for the get_prediction_result REST call
|
2179
|
+
#
|
2180
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetPredictionResultRequest]
|
2181
|
+
# A request object representing the call parameters. Required.
|
2182
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2183
|
+
# Uri, Body, Query string parameters
|
2184
|
+
def self.transcode_get_prediction_result_request request_pb
|
2185
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2186
|
+
.with_bindings(
|
2187
|
+
uri_method: :get,
|
2188
|
+
uri_template: "/v1/{name}",
|
2189
|
+
matches: [
|
2190
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/predictionResults/[^/]+/?$}, false]
|
2191
|
+
]
|
2192
|
+
)
|
2193
|
+
transcoder.transcode request_pb
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
##
|
2197
|
+
# @private
|
2198
|
+
#
|
2199
|
+
# GRPC transcoding helper method for the create_prediction_result REST call
|
2200
|
+
#
|
2201
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreatePredictionResultRequest]
|
2202
|
+
# A request object representing the call parameters. Required.
|
2203
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2204
|
+
# Uri, Body, Query string parameters
|
2205
|
+
def self.transcode_create_prediction_result_request request_pb
|
2206
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2207
|
+
.with_bindings(
|
2208
|
+
uri_method: :post,
|
2209
|
+
uri_template: "/v1/{parent}/predictionResults",
|
2210
|
+
body: "prediction_result",
|
2211
|
+
matches: [
|
2212
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
2213
|
+
]
|
2214
|
+
)
|
2215
|
+
transcoder.transcode request_pb
|
2216
|
+
end
|
2217
|
+
|
2218
|
+
##
|
2219
|
+
# @private
|
2220
|
+
#
|
2221
|
+
# GRPC transcoding helper method for the update_prediction_result REST call
|
2222
|
+
#
|
2223
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdatePredictionResultRequest]
|
2224
|
+
# A request object representing the call parameters. Required.
|
2225
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2226
|
+
# Uri, Body, Query string parameters
|
2227
|
+
def self.transcode_update_prediction_result_request request_pb
|
2228
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2229
|
+
.with_bindings(
|
2230
|
+
uri_method: :patch,
|
2231
|
+
uri_template: "/v1/{prediction_result.name}",
|
2232
|
+
body: "prediction_result",
|
2233
|
+
matches: [
|
2234
|
+
["prediction_result.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/predictionResults/[^/]+/?$}, false]
|
2235
|
+
]
|
2236
|
+
)
|
2237
|
+
transcoder.transcode request_pb
|
2238
|
+
end
|
2239
|
+
|
2240
|
+
##
|
2241
|
+
# @private
|
2242
|
+
#
|
2243
|
+
# GRPC transcoding helper method for the export_prediction_result_metadata REST call
|
2244
|
+
#
|
2245
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportPredictionResultMetadataRequest]
|
2246
|
+
# A request object representing the call parameters. Required.
|
2247
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2248
|
+
# Uri, Body, Query string parameters
|
2249
|
+
def self.transcode_export_prediction_result_metadata_request request_pb
|
2250
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2251
|
+
.with_bindings(
|
2252
|
+
uri_method: :post,
|
2253
|
+
uri_template: "/v1/{prediction_result}:exportMetadata",
|
2254
|
+
body: "*",
|
2255
|
+
matches: [
|
2256
|
+
["prediction_result", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/predictionResults/[^/]+/?$}, false]
|
2257
|
+
]
|
2258
|
+
)
|
2259
|
+
transcoder.transcode request_pb
|
2260
|
+
end
|
2261
|
+
|
2262
|
+
##
|
2263
|
+
# @private
|
2264
|
+
#
|
2265
|
+
# GRPC transcoding helper method for the delete_prediction_result REST call
|
2266
|
+
#
|
2267
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeletePredictionResultRequest]
|
2268
|
+
# A request object representing the call parameters. Required.
|
2269
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2270
|
+
# Uri, Body, Query string parameters
|
2271
|
+
def self.transcode_delete_prediction_result_request request_pb
|
2272
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2273
|
+
.with_bindings(
|
2274
|
+
uri_method: :delete,
|
2275
|
+
uri_template: "/v1/{name}",
|
2276
|
+
matches: [
|
2277
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/predictionResults/[^/]+/?$}, false]
|
2278
|
+
]
|
2279
|
+
)
|
2280
|
+
transcoder.transcode request_pb
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
##
|
2284
|
+
# @private
|
2285
|
+
#
|
2286
|
+
# GRPC transcoding helper method for the list_backtest_results REST call
|
2287
|
+
#
|
2288
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ListBacktestResultsRequest]
|
2289
|
+
# A request object representing the call parameters. Required.
|
2290
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2291
|
+
# Uri, Body, Query string parameters
|
2292
|
+
def self.transcode_list_backtest_results_request request_pb
|
2293
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2294
|
+
.with_bindings(
|
2295
|
+
uri_method: :get,
|
2296
|
+
uri_template: "/v1/{parent}/backtestResults",
|
2297
|
+
matches: [
|
2298
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
2299
|
+
]
|
2300
|
+
)
|
2301
|
+
transcoder.transcode request_pb
|
2302
|
+
end
|
2303
|
+
|
2304
|
+
##
|
2305
|
+
# @private
|
2306
|
+
#
|
2307
|
+
# GRPC transcoding helper method for the get_backtest_result REST call
|
2308
|
+
#
|
2309
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::GetBacktestResultRequest]
|
2310
|
+
# A request object representing the call parameters. Required.
|
2311
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2312
|
+
# Uri, Body, Query string parameters
|
2313
|
+
def self.transcode_get_backtest_result_request request_pb
|
2314
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2315
|
+
.with_bindings(
|
2316
|
+
uri_method: :get,
|
2317
|
+
uri_template: "/v1/{name}",
|
2318
|
+
matches: [
|
2319
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/backtestResults/[^/]+/?$}, false]
|
2320
|
+
]
|
2321
|
+
)
|
2322
|
+
transcoder.transcode request_pb
|
2323
|
+
end
|
2324
|
+
|
2325
|
+
##
|
2326
|
+
# @private
|
2327
|
+
#
|
2328
|
+
# GRPC transcoding helper method for the create_backtest_result REST call
|
2329
|
+
#
|
2330
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::CreateBacktestResultRequest]
|
2331
|
+
# A request object representing the call parameters. Required.
|
2332
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2333
|
+
# Uri, Body, Query string parameters
|
2334
|
+
def self.transcode_create_backtest_result_request request_pb
|
2335
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2336
|
+
.with_bindings(
|
2337
|
+
uri_method: :post,
|
2338
|
+
uri_template: "/v1/{parent}/backtestResults",
|
2339
|
+
body: "backtest_result",
|
2340
|
+
matches: [
|
2341
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
2342
|
+
]
|
2343
|
+
)
|
2344
|
+
transcoder.transcode request_pb
|
2345
|
+
end
|
2346
|
+
|
2347
|
+
##
|
2348
|
+
# @private
|
2349
|
+
#
|
2350
|
+
# GRPC transcoding helper method for the update_backtest_result REST call
|
2351
|
+
#
|
2352
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::UpdateBacktestResultRequest]
|
2353
|
+
# A request object representing the call parameters. Required.
|
2354
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2355
|
+
# Uri, Body, Query string parameters
|
2356
|
+
def self.transcode_update_backtest_result_request request_pb
|
2357
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2358
|
+
.with_bindings(
|
2359
|
+
uri_method: :patch,
|
2360
|
+
uri_template: "/v1/{backtest_result.name}",
|
2361
|
+
body: "backtest_result",
|
2362
|
+
matches: [
|
2363
|
+
["backtest_result.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/backtestResults/[^/]+/?$}, false]
|
2364
|
+
]
|
2365
|
+
)
|
2366
|
+
transcoder.transcode request_pb
|
2367
|
+
end
|
2368
|
+
|
2369
|
+
##
|
2370
|
+
# @private
|
2371
|
+
#
|
2372
|
+
# GRPC transcoding helper method for the export_backtest_result_metadata REST call
|
2373
|
+
#
|
2374
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::ExportBacktestResultMetadataRequest]
|
2375
|
+
# A request object representing the call parameters. Required.
|
2376
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2377
|
+
# Uri, Body, Query string parameters
|
2378
|
+
def self.transcode_export_backtest_result_metadata_request request_pb
|
2379
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2380
|
+
.with_bindings(
|
2381
|
+
uri_method: :post,
|
2382
|
+
uri_template: "/v1/{backtest_result}:exportMetadata",
|
2383
|
+
body: "*",
|
2384
|
+
matches: [
|
2385
|
+
["backtest_result", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/backtestResults/[^/]+/?$}, false]
|
2386
|
+
]
|
2387
|
+
)
|
2388
|
+
transcoder.transcode request_pb
|
2389
|
+
end
|
2390
|
+
|
2391
|
+
##
|
2392
|
+
# @private
|
2393
|
+
#
|
2394
|
+
# GRPC transcoding helper method for the delete_backtest_result REST call
|
2395
|
+
#
|
2396
|
+
# @param request_pb [::Google::Cloud::FinancialServices::V1::DeleteBacktestResultRequest]
|
2397
|
+
# A request object representing the call parameters. Required.
|
2398
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2399
|
+
# Uri, Body, Query string parameters
|
2400
|
+
def self.transcode_delete_backtest_result_request request_pb
|
2401
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2402
|
+
.with_bindings(
|
2403
|
+
uri_method: :delete,
|
2404
|
+
uri_template: "/v1/{name}",
|
2405
|
+
matches: [
|
2406
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/backtestResults/[^/]+/?$}, false]
|
2407
|
+
]
|
2408
|
+
)
|
2409
|
+
transcoder.transcode request_pb
|
2410
|
+
end
|
2411
|
+
end
|
2412
|
+
end
|
2413
|
+
end
|
2414
|
+
end
|
2415
|
+
end
|
2416
|
+
end
|
2417
|
+
end
|