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,4403 @@
|
|
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/errors"
|
20
|
+
require "google/cloud/financialservices/v1/service_pb"
|
21
|
+
require "google/cloud/financial_services/v1/aml/rest/service_stub"
|
22
|
+
require "google/cloud/location/rest"
|
23
|
+
|
24
|
+
module Google
|
25
|
+
module Cloud
|
26
|
+
module FinancialServices
|
27
|
+
module V1
|
28
|
+
module AML
|
29
|
+
module Rest
|
30
|
+
##
|
31
|
+
# REST client for the AML service.
|
32
|
+
#
|
33
|
+
# The AML (Anti Money Laundering) service allows users to perform REST
|
34
|
+
# operations on aml.
|
35
|
+
#
|
36
|
+
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
40
|
+
# @private
|
41
|
+
DEFAULT_ENDPOINT_TEMPLATE = "financialservices.$UNIVERSE_DOMAIN$"
|
42
|
+
|
43
|
+
include Paths
|
44
|
+
|
45
|
+
# @private
|
46
|
+
attr_reader :aml_stub
|
47
|
+
|
48
|
+
##
|
49
|
+
# Configure the AML Client class.
|
50
|
+
#
|
51
|
+
# See {::Google::Cloud::FinancialServices::V1::AML::Rest::Client::Configuration}
|
52
|
+
# for a description of the configuration fields.
|
53
|
+
#
|
54
|
+
# @example
|
55
|
+
#
|
56
|
+
# # Modify the configuration for all AML clients
|
57
|
+
# ::Google::Cloud::FinancialServices::V1::AML::Rest::Client.configure do |config|
|
58
|
+
# config.timeout = 10.0
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# @yield [config] Configure the Client client.
|
62
|
+
# @yieldparam config [Client::Configuration]
|
63
|
+
#
|
64
|
+
# @return [Client::Configuration]
|
65
|
+
#
|
66
|
+
def self.configure
|
67
|
+
@configure ||= begin
|
68
|
+
namespace = ["Google", "Cloud", "FinancialServices", "V1"]
|
69
|
+
parent_config = while namespace.any?
|
70
|
+
parent_name = namespace.join "::"
|
71
|
+
parent_const = const_get parent_name
|
72
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
73
|
+
namespace.pop
|
74
|
+
end
|
75
|
+
default_config = Client::Configuration.new parent_config
|
76
|
+
|
77
|
+
default_config.rpcs.list_instances.timeout = 10.0
|
78
|
+
|
79
|
+
default_config.rpcs.get_instance.timeout = 10.0
|
80
|
+
|
81
|
+
default_config.rpcs.create_instance.timeout = 120.0
|
82
|
+
|
83
|
+
default_config.rpcs.update_instance.timeout = 120.0
|
84
|
+
|
85
|
+
default_config.rpcs.delete_instance.timeout = 120.0
|
86
|
+
|
87
|
+
default_config.rpcs.import_registered_parties.timeout = 120.0
|
88
|
+
|
89
|
+
default_config.rpcs.export_registered_parties.timeout = 120.0
|
90
|
+
|
91
|
+
default_config.rpcs.list_datasets.timeout = 10.0
|
92
|
+
|
93
|
+
default_config.rpcs.get_dataset.timeout = 10.0
|
94
|
+
|
95
|
+
default_config.rpcs.create_dataset.timeout = 120.0
|
96
|
+
|
97
|
+
default_config.rpcs.update_dataset.timeout = 120.0
|
98
|
+
|
99
|
+
default_config.rpcs.delete_dataset.timeout = 120.0
|
100
|
+
|
101
|
+
default_config.rpcs.list_models.timeout = 10.0
|
102
|
+
|
103
|
+
default_config.rpcs.get_model.timeout = 10.0
|
104
|
+
|
105
|
+
default_config.rpcs.create_model.timeout = 120.0
|
106
|
+
|
107
|
+
default_config.rpcs.update_model.timeout = 120.0
|
108
|
+
|
109
|
+
default_config.rpcs.export_model_metadata.timeout = 120.0
|
110
|
+
|
111
|
+
default_config.rpcs.delete_model.timeout = 120.0
|
112
|
+
|
113
|
+
default_config.rpcs.list_engine_configs.timeout = 10.0
|
114
|
+
|
115
|
+
default_config.rpcs.get_engine_config.timeout = 10.0
|
116
|
+
|
117
|
+
default_config.rpcs.update_engine_config.timeout = 120.0
|
118
|
+
|
119
|
+
default_config.rpcs.export_engine_config_metadata.timeout = 120.0
|
120
|
+
|
121
|
+
default_config.rpcs.delete_engine_config.timeout = 120.0
|
122
|
+
|
123
|
+
default_config.rpcs.get_engine_version.timeout = 10.0
|
124
|
+
|
125
|
+
default_config.rpcs.list_engine_versions.timeout = 10.0
|
126
|
+
|
127
|
+
default_config.rpcs.list_prediction_results.timeout = 10.0
|
128
|
+
|
129
|
+
default_config.rpcs.get_prediction_result.timeout = 10.0
|
130
|
+
|
131
|
+
default_config.rpcs.create_prediction_result.timeout = 120.0
|
132
|
+
|
133
|
+
default_config.rpcs.update_prediction_result.timeout = 120.0
|
134
|
+
|
135
|
+
default_config.rpcs.export_prediction_result_metadata.timeout = 120.0
|
136
|
+
|
137
|
+
default_config.rpcs.delete_prediction_result.timeout = 120.0
|
138
|
+
|
139
|
+
default_config.rpcs.list_backtest_results.timeout = 10.0
|
140
|
+
|
141
|
+
default_config.rpcs.get_backtest_result.timeout = 10.0
|
142
|
+
|
143
|
+
default_config.rpcs.create_backtest_result.timeout = 120.0
|
144
|
+
|
145
|
+
default_config.rpcs.update_backtest_result.timeout = 120.0
|
146
|
+
|
147
|
+
default_config.rpcs.export_backtest_result_metadata.timeout = 120.0
|
148
|
+
|
149
|
+
default_config.rpcs.delete_backtest_result.timeout = 120.0
|
150
|
+
|
151
|
+
default_config
|
152
|
+
end
|
153
|
+
yield @configure if block_given?
|
154
|
+
@configure
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# Configure the AML Client instance.
|
159
|
+
#
|
160
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
161
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
162
|
+
# should be made on {Client.configure}.
|
163
|
+
#
|
164
|
+
# See {::Google::Cloud::FinancialServices::V1::AML::Rest::Client::Configuration}
|
165
|
+
# for a description of the configuration fields.
|
166
|
+
#
|
167
|
+
# @yield [config] Configure the Client client.
|
168
|
+
# @yieldparam config [Client::Configuration]
|
169
|
+
#
|
170
|
+
# @return [Client::Configuration]
|
171
|
+
#
|
172
|
+
def configure
|
173
|
+
yield @config if block_given?
|
174
|
+
@config
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# The effective universe domain
|
179
|
+
#
|
180
|
+
# @return [String]
|
181
|
+
#
|
182
|
+
def universe_domain
|
183
|
+
@aml_stub.universe_domain
|
184
|
+
end
|
185
|
+
|
186
|
+
##
|
187
|
+
# Create a new AML REST client object.
|
188
|
+
#
|
189
|
+
# @example
|
190
|
+
#
|
191
|
+
# # Create a client using the default configuration
|
192
|
+
# client = ::Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
193
|
+
#
|
194
|
+
# # Create a client using a custom configuration
|
195
|
+
# client = ::Google::Cloud::FinancialServices::V1::AML::Rest::Client.new do |config|
|
196
|
+
# config.timeout = 10.0
|
197
|
+
# end
|
198
|
+
#
|
199
|
+
# @yield [config] Configure the AML client.
|
200
|
+
# @yieldparam config [Client::Configuration]
|
201
|
+
#
|
202
|
+
def initialize
|
203
|
+
# Create the configuration object
|
204
|
+
@config = Configuration.new Client.configure
|
205
|
+
|
206
|
+
# Yield the configuration if needed
|
207
|
+
yield @config if block_given?
|
208
|
+
|
209
|
+
# Create credentials
|
210
|
+
credentials = @config.credentials
|
211
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
212
|
+
# but only if the default endpoint does not have a region prefix.
|
213
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
214
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
215
|
+
!@config.endpoint.split(".").first.include?("-"))
|
216
|
+
credentials ||= Credentials.default scope: @config.scope,
|
217
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
218
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
219
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
220
|
+
end
|
221
|
+
|
222
|
+
@quota_project_id = @config.quota_project
|
223
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
224
|
+
|
225
|
+
@operations_client = ::Google::Cloud::FinancialServices::V1::AML::Rest::Operations.new do |config|
|
226
|
+
config.credentials = credentials
|
227
|
+
config.quota_project = @quota_project_id
|
228
|
+
config.endpoint = @config.endpoint
|
229
|
+
config.universe_domain = @config.universe_domain
|
230
|
+
end
|
231
|
+
|
232
|
+
@aml_stub = ::Google::Cloud::FinancialServices::V1::AML::Rest::ServiceStub.new(
|
233
|
+
endpoint: @config.endpoint,
|
234
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
235
|
+
universe_domain: @config.universe_domain,
|
236
|
+
credentials: credentials,
|
237
|
+
logger: @config.logger
|
238
|
+
)
|
239
|
+
|
240
|
+
@aml_stub.logger(stub: true)&.info do |entry|
|
241
|
+
entry.set_system_name
|
242
|
+
entry.set_service
|
243
|
+
entry.message = "Created client for #{entry.service}"
|
244
|
+
entry.set_credentials_fields credentials
|
245
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
246
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
247
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
248
|
+
end
|
249
|
+
|
250
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
251
|
+
config.credentials = credentials
|
252
|
+
config.quota_project = @quota_project_id
|
253
|
+
config.endpoint = @aml_stub.endpoint
|
254
|
+
config.universe_domain = @aml_stub.universe_domain
|
255
|
+
config.bindings_override = @config.bindings_override
|
256
|
+
config.logger = @aml_stub.logger if config.respond_to? :logger=
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
##
|
261
|
+
# Get the associated client for long-running operations.
|
262
|
+
#
|
263
|
+
# @return [::Google::Cloud::FinancialServices::V1::AML::Rest::Operations]
|
264
|
+
#
|
265
|
+
attr_reader :operations_client
|
266
|
+
|
267
|
+
##
|
268
|
+
# Get the associated client for mix-in of the Locations.
|
269
|
+
#
|
270
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
271
|
+
#
|
272
|
+
attr_reader :location_client
|
273
|
+
|
274
|
+
##
|
275
|
+
# The logger used for request/response debug logging.
|
276
|
+
#
|
277
|
+
# @return [Logger]
|
278
|
+
#
|
279
|
+
def logger
|
280
|
+
@aml_stub.logger
|
281
|
+
end
|
282
|
+
|
283
|
+
# Service calls
|
284
|
+
|
285
|
+
##
|
286
|
+
# Lists instances.
|
287
|
+
#
|
288
|
+
# @overload list_instances(request, options = nil)
|
289
|
+
# Pass arguments to `list_instances` via a request object, either of type
|
290
|
+
# {::Google::Cloud::FinancialServices::V1::ListInstancesRequest} or an equivalent Hash.
|
291
|
+
#
|
292
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ListInstancesRequest, ::Hash]
|
293
|
+
# A request object representing the call parameters. Required. To specify no
|
294
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
295
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
296
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
297
|
+
#
|
298
|
+
# @overload list_instances(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
299
|
+
# Pass arguments to `list_instances` via keyword arguments. Note that at
|
300
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
301
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
302
|
+
#
|
303
|
+
# @param parent [::String]
|
304
|
+
# Required. The parent of the Instance is the location for that Instance.
|
305
|
+
# Every location has exactly one instance.
|
306
|
+
# @param page_size [::Integer]
|
307
|
+
# The number of resources to be included in the response. The response
|
308
|
+
# contains a next_page_token, which can be used to retrieve the next page of
|
309
|
+
# resources.
|
310
|
+
# @param page_token [::String]
|
311
|
+
# In case of paginated results, this is the token that was returned in the
|
312
|
+
# previous ListInstancesResponse. It should be copied here to retrieve the
|
313
|
+
# next page of resources. This will be empty for the first instance of
|
314
|
+
# ListInstancesRequest.
|
315
|
+
# @param filter [::String]
|
316
|
+
# Specify a filter to narrow search results.
|
317
|
+
# @param order_by [::String]
|
318
|
+
# Specify a field to use for ordering.
|
319
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
320
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::Instance>]
|
321
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
322
|
+
#
|
323
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::Instance>]
|
324
|
+
#
|
325
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
326
|
+
#
|
327
|
+
# @example Basic example
|
328
|
+
# require "google/cloud/financial_services/v1"
|
329
|
+
#
|
330
|
+
# # Create a client object. The client can be reused for multiple calls.
|
331
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
332
|
+
#
|
333
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
334
|
+
# request = Google::Cloud::FinancialServices::V1::ListInstancesRequest.new
|
335
|
+
#
|
336
|
+
# # Call the list_instances method.
|
337
|
+
# result = client.list_instances request
|
338
|
+
#
|
339
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
340
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
341
|
+
# result.each do |item|
|
342
|
+
# # Each element is of type ::Google::Cloud::FinancialServices::V1::Instance.
|
343
|
+
# p item
|
344
|
+
# end
|
345
|
+
#
|
346
|
+
def list_instances request, options = nil
|
347
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
348
|
+
|
349
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ListInstancesRequest
|
350
|
+
|
351
|
+
# Converts hash and nil to an options object
|
352
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
353
|
+
|
354
|
+
# Customize the options with defaults
|
355
|
+
call_metadata = @config.rpcs.list_instances.metadata.to_h
|
356
|
+
|
357
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
358
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
359
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
360
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
361
|
+
transports_version_send: [:rest]
|
362
|
+
|
363
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
364
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
365
|
+
|
366
|
+
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
367
|
+
metadata: call_metadata,
|
368
|
+
retry_policy: @config.rpcs.list_instances.retry_policy
|
369
|
+
|
370
|
+
options.apply_defaults timeout: @config.timeout,
|
371
|
+
metadata: @config.metadata,
|
372
|
+
retry_policy: @config.retry_policy
|
373
|
+
|
374
|
+
@aml_stub.list_instances request, options do |result, operation|
|
375
|
+
result = ::Gapic::Rest::PagedEnumerable.new @aml_stub, :list_instances, "instances", request, result, options
|
376
|
+
yield result, operation if block_given?
|
377
|
+
throw :response, result
|
378
|
+
end
|
379
|
+
rescue ::Gapic::Rest::Error => e
|
380
|
+
raise ::Google::Cloud::Error.from_error(e)
|
381
|
+
end
|
382
|
+
|
383
|
+
##
|
384
|
+
# Gets an instance.
|
385
|
+
#
|
386
|
+
# @overload get_instance(request, options = nil)
|
387
|
+
# Pass arguments to `get_instance` via a request object, either of type
|
388
|
+
# {::Google::Cloud::FinancialServices::V1::GetInstanceRequest} or an equivalent Hash.
|
389
|
+
#
|
390
|
+
# @param request [::Google::Cloud::FinancialServices::V1::GetInstanceRequest, ::Hash]
|
391
|
+
# A request object representing the call parameters. Required. To specify no
|
392
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
393
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
394
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
395
|
+
#
|
396
|
+
# @overload get_instance(name: nil)
|
397
|
+
# Pass arguments to `get_instance` via keyword arguments. Note that at
|
398
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
399
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
400
|
+
#
|
401
|
+
# @param name [::String]
|
402
|
+
# Required. The resource name of the Instance.
|
403
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
404
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::Instance]
|
405
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
406
|
+
#
|
407
|
+
# @return [::Google::Cloud::FinancialServices::V1::Instance]
|
408
|
+
#
|
409
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
410
|
+
#
|
411
|
+
# @example Basic example
|
412
|
+
# require "google/cloud/financial_services/v1"
|
413
|
+
#
|
414
|
+
# # Create a client object. The client can be reused for multiple calls.
|
415
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
416
|
+
#
|
417
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
418
|
+
# request = Google::Cloud::FinancialServices::V1::GetInstanceRequest.new
|
419
|
+
#
|
420
|
+
# # Call the get_instance method.
|
421
|
+
# result = client.get_instance request
|
422
|
+
#
|
423
|
+
# # The returned object is of type Google::Cloud::FinancialServices::V1::Instance.
|
424
|
+
# p result
|
425
|
+
#
|
426
|
+
def get_instance request, options = nil
|
427
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
428
|
+
|
429
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::GetInstanceRequest
|
430
|
+
|
431
|
+
# Converts hash and nil to an options object
|
432
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
433
|
+
|
434
|
+
# Customize the options with defaults
|
435
|
+
call_metadata = @config.rpcs.get_instance.metadata.to_h
|
436
|
+
|
437
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
438
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
439
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
440
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
441
|
+
transports_version_send: [:rest]
|
442
|
+
|
443
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
444
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
445
|
+
|
446
|
+
options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
|
447
|
+
metadata: call_metadata,
|
448
|
+
retry_policy: @config.rpcs.get_instance.retry_policy
|
449
|
+
|
450
|
+
options.apply_defaults timeout: @config.timeout,
|
451
|
+
metadata: @config.metadata,
|
452
|
+
retry_policy: @config.retry_policy
|
453
|
+
|
454
|
+
@aml_stub.get_instance request, options do |result, operation|
|
455
|
+
yield result, operation if block_given?
|
456
|
+
end
|
457
|
+
rescue ::Gapic::Rest::Error => e
|
458
|
+
raise ::Google::Cloud::Error.from_error(e)
|
459
|
+
end
|
460
|
+
|
461
|
+
##
|
462
|
+
# Creates an instance.
|
463
|
+
#
|
464
|
+
# @overload create_instance(request, options = nil)
|
465
|
+
# Pass arguments to `create_instance` via a request object, either of type
|
466
|
+
# {::Google::Cloud::FinancialServices::V1::CreateInstanceRequest} or an equivalent Hash.
|
467
|
+
#
|
468
|
+
# @param request [::Google::Cloud::FinancialServices::V1::CreateInstanceRequest, ::Hash]
|
469
|
+
# A request object representing the call parameters. Required. To specify no
|
470
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
471
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
472
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
473
|
+
#
|
474
|
+
# @overload create_instance(parent: nil, instance_id: nil, instance: nil, request_id: nil)
|
475
|
+
# Pass arguments to `create_instance` via keyword arguments. Note that at
|
476
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
477
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
478
|
+
#
|
479
|
+
# @param parent [::String]
|
480
|
+
# Required. The parent of the Instance is the location for that Instance.
|
481
|
+
# Every location has exactly one instance.
|
482
|
+
# @param instance_id [::String]
|
483
|
+
# Required. The resource id of the instance.
|
484
|
+
# @param instance [::Google::Cloud::FinancialServices::V1::Instance, ::Hash]
|
485
|
+
# Required. The instance that will be created.
|
486
|
+
# @param request_id [::String]
|
487
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
488
|
+
# request ID so that if you must retry your request, the server will know to
|
489
|
+
# ignore the request if it has already been completed. The server will
|
490
|
+
# guarantee that for at least 60 minutes since the first request.
|
491
|
+
#
|
492
|
+
# For example, consider a situation where you make an initial request and the
|
493
|
+
# request times out. If you make the request again with the same request
|
494
|
+
# ID, the server can check if original operation with the same request ID
|
495
|
+
# was received, and if so, will ignore the second request. This prevents
|
496
|
+
# clients from accidentally creating duplicate commitments.
|
497
|
+
#
|
498
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
499
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
500
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
501
|
+
# @yieldparam result [::Gapic::Operation]
|
502
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
503
|
+
#
|
504
|
+
# @return [::Gapic::Operation]
|
505
|
+
#
|
506
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
507
|
+
#
|
508
|
+
# @example Basic example
|
509
|
+
# require "google/cloud/financial_services/v1"
|
510
|
+
#
|
511
|
+
# # Create a client object. The client can be reused for multiple calls.
|
512
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
513
|
+
#
|
514
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
515
|
+
# request = Google::Cloud::FinancialServices::V1::CreateInstanceRequest.new
|
516
|
+
#
|
517
|
+
# # Call the create_instance method.
|
518
|
+
# result = client.create_instance request
|
519
|
+
#
|
520
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
521
|
+
# # check the status of an operation, cancel it, or wait for results.
|
522
|
+
# # Here is how to wait for a response.
|
523
|
+
# result.wait_until_done! timeout: 60
|
524
|
+
# if result.response?
|
525
|
+
# p result.response
|
526
|
+
# else
|
527
|
+
# puts "No response received."
|
528
|
+
# end
|
529
|
+
#
|
530
|
+
def create_instance request, options = nil
|
531
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
532
|
+
|
533
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::CreateInstanceRequest
|
534
|
+
|
535
|
+
# Converts hash and nil to an options object
|
536
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
537
|
+
|
538
|
+
# Customize the options with defaults
|
539
|
+
call_metadata = @config.rpcs.create_instance.metadata.to_h
|
540
|
+
|
541
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
542
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
543
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
544
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
545
|
+
transports_version_send: [:rest]
|
546
|
+
|
547
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
548
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
549
|
+
|
550
|
+
options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
|
551
|
+
metadata: call_metadata,
|
552
|
+
retry_policy: @config.rpcs.create_instance.retry_policy
|
553
|
+
|
554
|
+
options.apply_defaults timeout: @config.timeout,
|
555
|
+
metadata: @config.metadata,
|
556
|
+
retry_policy: @config.retry_policy
|
557
|
+
|
558
|
+
@aml_stub.create_instance request, options do |result, operation|
|
559
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
560
|
+
yield result, operation if block_given?
|
561
|
+
throw :response, result
|
562
|
+
end
|
563
|
+
rescue ::Gapic::Rest::Error => e
|
564
|
+
raise ::Google::Cloud::Error.from_error(e)
|
565
|
+
end
|
566
|
+
|
567
|
+
##
|
568
|
+
# Updates the parameters of a single Instance.
|
569
|
+
#
|
570
|
+
# @overload update_instance(request, options = nil)
|
571
|
+
# Pass arguments to `update_instance` via a request object, either of type
|
572
|
+
# {::Google::Cloud::FinancialServices::V1::UpdateInstanceRequest} or an equivalent Hash.
|
573
|
+
#
|
574
|
+
# @param request [::Google::Cloud::FinancialServices::V1::UpdateInstanceRequest, ::Hash]
|
575
|
+
# A request object representing the call parameters. Required. To specify no
|
576
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
577
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
578
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
579
|
+
#
|
580
|
+
# @overload update_instance(update_mask: nil, instance: nil, request_id: nil)
|
581
|
+
# Pass arguments to `update_instance` via keyword arguments. Note that at
|
582
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
583
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
584
|
+
#
|
585
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
586
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
587
|
+
# Instance resource by the update.
|
588
|
+
# The fields specified in the update_mask are relative to the resource, not
|
589
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
590
|
+
# user does not provide a mask then all fields will be overwritten.
|
591
|
+
# @param instance [::Google::Cloud::FinancialServices::V1::Instance, ::Hash]
|
592
|
+
# Required. The new value of the instance fields that will be updated
|
593
|
+
# according to the update_mask
|
594
|
+
# @param request_id [::String]
|
595
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
596
|
+
# request ID so that if you must retry your request, the server will know to
|
597
|
+
# ignore the request if it has already been completed. The server will
|
598
|
+
# guarantee that for at least 60 minutes since the first request.
|
599
|
+
#
|
600
|
+
# For example, consider a situation where you make an initial request and the
|
601
|
+
# request times out. If you make the request again with the same request
|
602
|
+
# ID, the server can check if original operation with the same request ID
|
603
|
+
# was received, and if so, will ignore the second request. This prevents
|
604
|
+
# clients from accidentally creating duplicate commitments.
|
605
|
+
#
|
606
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
607
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
608
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
609
|
+
# @yieldparam result [::Gapic::Operation]
|
610
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
611
|
+
#
|
612
|
+
# @return [::Gapic::Operation]
|
613
|
+
#
|
614
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
615
|
+
#
|
616
|
+
# @example Basic example
|
617
|
+
# require "google/cloud/financial_services/v1"
|
618
|
+
#
|
619
|
+
# # Create a client object. The client can be reused for multiple calls.
|
620
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
621
|
+
#
|
622
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
623
|
+
# request = Google::Cloud::FinancialServices::V1::UpdateInstanceRequest.new
|
624
|
+
#
|
625
|
+
# # Call the update_instance method.
|
626
|
+
# result = client.update_instance request
|
627
|
+
#
|
628
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
629
|
+
# # check the status of an operation, cancel it, or wait for results.
|
630
|
+
# # Here is how to wait for a response.
|
631
|
+
# result.wait_until_done! timeout: 60
|
632
|
+
# if result.response?
|
633
|
+
# p result.response
|
634
|
+
# else
|
635
|
+
# puts "No response received."
|
636
|
+
# end
|
637
|
+
#
|
638
|
+
def update_instance request, options = nil
|
639
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
640
|
+
|
641
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::UpdateInstanceRequest
|
642
|
+
|
643
|
+
# Converts hash and nil to an options object
|
644
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
645
|
+
|
646
|
+
# Customize the options with defaults
|
647
|
+
call_metadata = @config.rpcs.update_instance.metadata.to_h
|
648
|
+
|
649
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
650
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
651
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
652
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
653
|
+
transports_version_send: [:rest]
|
654
|
+
|
655
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
656
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
657
|
+
|
658
|
+
options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
|
659
|
+
metadata: call_metadata,
|
660
|
+
retry_policy: @config.rpcs.update_instance.retry_policy
|
661
|
+
|
662
|
+
options.apply_defaults timeout: @config.timeout,
|
663
|
+
metadata: @config.metadata,
|
664
|
+
retry_policy: @config.retry_policy
|
665
|
+
|
666
|
+
@aml_stub.update_instance request, options do |result, operation|
|
667
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
668
|
+
yield result, operation if block_given?
|
669
|
+
throw :response, result
|
670
|
+
end
|
671
|
+
rescue ::Gapic::Rest::Error => e
|
672
|
+
raise ::Google::Cloud::Error.from_error(e)
|
673
|
+
end
|
674
|
+
|
675
|
+
##
|
676
|
+
# Deletes an instance.
|
677
|
+
#
|
678
|
+
# @overload delete_instance(request, options = nil)
|
679
|
+
# Pass arguments to `delete_instance` via a request object, either of type
|
680
|
+
# {::Google::Cloud::FinancialServices::V1::DeleteInstanceRequest} or an equivalent Hash.
|
681
|
+
#
|
682
|
+
# @param request [::Google::Cloud::FinancialServices::V1::DeleteInstanceRequest, ::Hash]
|
683
|
+
# A request object representing the call parameters. Required. To specify no
|
684
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
685
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
686
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
687
|
+
#
|
688
|
+
# @overload delete_instance(name: nil, request_id: nil)
|
689
|
+
# Pass arguments to `delete_instance` via keyword arguments. Note that at
|
690
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
691
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
692
|
+
#
|
693
|
+
# @param name [::String]
|
694
|
+
# Required. The resource name of the Instance.
|
695
|
+
# @param request_id [::String]
|
696
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
697
|
+
# request ID so that if you must retry your request, the server will know to
|
698
|
+
# ignore the request if it has already been completed. The server will
|
699
|
+
# guarantee that for at least 60 minutes after the first request.
|
700
|
+
#
|
701
|
+
# For example, consider a situation where you make an initial request and the
|
702
|
+
# request times out. If you make the request again with the same request
|
703
|
+
# ID, the server can check if original operation with the same request ID
|
704
|
+
# was received, and if so, will ignore the second request. This prevents
|
705
|
+
# clients from accidentally creating duplicate commitments.
|
706
|
+
#
|
707
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
708
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
709
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
710
|
+
# @yieldparam result [::Gapic::Operation]
|
711
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
712
|
+
#
|
713
|
+
# @return [::Gapic::Operation]
|
714
|
+
#
|
715
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
716
|
+
#
|
717
|
+
# @example Basic example
|
718
|
+
# require "google/cloud/financial_services/v1"
|
719
|
+
#
|
720
|
+
# # Create a client object. The client can be reused for multiple calls.
|
721
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
722
|
+
#
|
723
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
724
|
+
# request = Google::Cloud::FinancialServices::V1::DeleteInstanceRequest.new
|
725
|
+
#
|
726
|
+
# # Call the delete_instance method.
|
727
|
+
# result = client.delete_instance request
|
728
|
+
#
|
729
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
730
|
+
# # check the status of an operation, cancel it, or wait for results.
|
731
|
+
# # Here is how to wait for a response.
|
732
|
+
# result.wait_until_done! timeout: 60
|
733
|
+
# if result.response?
|
734
|
+
# p result.response
|
735
|
+
# else
|
736
|
+
# puts "No response received."
|
737
|
+
# end
|
738
|
+
#
|
739
|
+
def delete_instance request, options = nil
|
740
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
741
|
+
|
742
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::DeleteInstanceRequest
|
743
|
+
|
744
|
+
# Converts hash and nil to an options object
|
745
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
746
|
+
|
747
|
+
# Customize the options with defaults
|
748
|
+
call_metadata = @config.rpcs.delete_instance.metadata.to_h
|
749
|
+
|
750
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
751
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
752
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
753
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
754
|
+
transports_version_send: [:rest]
|
755
|
+
|
756
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
757
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
758
|
+
|
759
|
+
options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
|
760
|
+
metadata: call_metadata,
|
761
|
+
retry_policy: @config.rpcs.delete_instance.retry_policy
|
762
|
+
|
763
|
+
options.apply_defaults timeout: @config.timeout,
|
764
|
+
metadata: @config.metadata,
|
765
|
+
retry_policy: @config.retry_policy
|
766
|
+
|
767
|
+
@aml_stub.delete_instance request, options do |result, operation|
|
768
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
769
|
+
yield result, operation if block_given?
|
770
|
+
throw :response, result
|
771
|
+
end
|
772
|
+
rescue ::Gapic::Rest::Error => e
|
773
|
+
raise ::Google::Cloud::Error.from_error(e)
|
774
|
+
end
|
775
|
+
|
776
|
+
##
|
777
|
+
# Imports the list of registered parties. See
|
778
|
+
# [Create and manage
|
779
|
+
# instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties)
|
780
|
+
# for information on the input schema and response for this method.
|
781
|
+
#
|
782
|
+
# @overload import_registered_parties(request, options = nil)
|
783
|
+
# Pass arguments to `import_registered_parties` via a request object, either of type
|
784
|
+
# {::Google::Cloud::FinancialServices::V1::ImportRegisteredPartiesRequest} or an equivalent Hash.
|
785
|
+
#
|
786
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ImportRegisteredPartiesRequest, ::Hash]
|
787
|
+
# A request object representing the call parameters. Required. To specify no
|
788
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
789
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
790
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
791
|
+
#
|
792
|
+
# @overload import_registered_parties(name: nil, party_tables: nil, mode: nil, validate_only: nil, line_of_business: nil)
|
793
|
+
# Pass arguments to `import_registered_parties` via keyword arguments. Note that at
|
794
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
795
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
796
|
+
#
|
797
|
+
# @param name [::String]
|
798
|
+
# Required. The full path to the Instance resource in this API.
|
799
|
+
# format: `projects/{project}/locations/{location}/instances/{instance}`
|
800
|
+
# @param party_tables [::Array<::String>]
|
801
|
+
# Optional. List of BigQuery tables. Union of tables will be taken if there
|
802
|
+
# is more than one table. VPC-SC restrictions apply. format:
|
803
|
+
# `bq://{project}.{bqDatasetID}.{bqTableID}` Use of `datasets` is preferred
|
804
|
+
# over the latter due to its simplicity and the reduced risk of errors
|
805
|
+
# `party_tables` and `datasets` must not be provided at the
|
806
|
+
# same time
|
807
|
+
# @param mode [::Google::Cloud::FinancialServices::V1::ImportRegisteredPartiesRequest::UpdateMode]
|
808
|
+
# Required. Mode of the request.
|
809
|
+
# @param validate_only [::Boolean]
|
810
|
+
# Optional. If the request will not register the parties, just determine what
|
811
|
+
# would happen.
|
812
|
+
# @param line_of_business [::Google::Cloud::FinancialServices::V1::LineOfBusiness]
|
813
|
+
# Required. LineOfBusiness for the specified registered parties.
|
814
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
815
|
+
# @yieldparam result [::Gapic::Operation]
|
816
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
817
|
+
#
|
818
|
+
# @return [::Gapic::Operation]
|
819
|
+
#
|
820
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
821
|
+
#
|
822
|
+
# @example Basic example
|
823
|
+
# require "google/cloud/financial_services/v1"
|
824
|
+
#
|
825
|
+
# # Create a client object. The client can be reused for multiple calls.
|
826
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
827
|
+
#
|
828
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
829
|
+
# request = Google::Cloud::FinancialServices::V1::ImportRegisteredPartiesRequest.new
|
830
|
+
#
|
831
|
+
# # Call the import_registered_parties method.
|
832
|
+
# result = client.import_registered_parties request
|
833
|
+
#
|
834
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
835
|
+
# # check the status of an operation, cancel it, or wait for results.
|
836
|
+
# # Here is how to wait for a response.
|
837
|
+
# result.wait_until_done! timeout: 60
|
838
|
+
# if result.response?
|
839
|
+
# p result.response
|
840
|
+
# else
|
841
|
+
# puts "No response received."
|
842
|
+
# end
|
843
|
+
#
|
844
|
+
def import_registered_parties request, options = nil
|
845
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
846
|
+
|
847
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ImportRegisteredPartiesRequest
|
848
|
+
|
849
|
+
# Converts hash and nil to an options object
|
850
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
851
|
+
|
852
|
+
# Customize the options with defaults
|
853
|
+
call_metadata = @config.rpcs.import_registered_parties.metadata.to_h
|
854
|
+
|
855
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
856
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
857
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
858
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
859
|
+
transports_version_send: [:rest]
|
860
|
+
|
861
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
862
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
863
|
+
|
864
|
+
options.apply_defaults timeout: @config.rpcs.import_registered_parties.timeout,
|
865
|
+
metadata: call_metadata,
|
866
|
+
retry_policy: @config.rpcs.import_registered_parties.retry_policy
|
867
|
+
|
868
|
+
options.apply_defaults timeout: @config.timeout,
|
869
|
+
metadata: @config.metadata,
|
870
|
+
retry_policy: @config.retry_policy
|
871
|
+
|
872
|
+
@aml_stub.import_registered_parties request, options do |result, operation|
|
873
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
874
|
+
yield result, operation if block_given?
|
875
|
+
throw :response, result
|
876
|
+
end
|
877
|
+
rescue ::Gapic::Rest::Error => e
|
878
|
+
raise ::Google::Cloud::Error.from_error(e)
|
879
|
+
end
|
880
|
+
|
881
|
+
##
|
882
|
+
# Exports the list of registered parties. See
|
883
|
+
# [Create and manage
|
884
|
+
# instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#export-registered-parties)
|
885
|
+
# for information on the output schema for this method.
|
886
|
+
#
|
887
|
+
# @overload export_registered_parties(request, options = nil)
|
888
|
+
# Pass arguments to `export_registered_parties` via a request object, either of type
|
889
|
+
# {::Google::Cloud::FinancialServices::V1::ExportRegisteredPartiesRequest} or an equivalent Hash.
|
890
|
+
#
|
891
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ExportRegisteredPartiesRequest, ::Hash]
|
892
|
+
# A request object representing the call parameters. Required. To specify no
|
893
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
894
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
895
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
896
|
+
#
|
897
|
+
# @overload export_registered_parties(name: nil, dataset: nil, line_of_business: nil)
|
898
|
+
# Pass arguments to `export_registered_parties` via keyword arguments. Note that at
|
899
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
900
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
901
|
+
#
|
902
|
+
# @param name [::String]
|
903
|
+
# Required. The full path to the Instance resource in this API.
|
904
|
+
# format: `projects/{project}/locations/{location}/instances/{instance}`
|
905
|
+
# @param dataset [::Google::Cloud::FinancialServices::V1::BigQueryDestination, ::Hash]
|
906
|
+
# Required. The location to output the RegisteredParties.
|
907
|
+
# @param line_of_business [::Google::Cloud::FinancialServices::V1::LineOfBusiness]
|
908
|
+
# Required. LineOfBusiness to get RegisteredParties from.
|
909
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
910
|
+
# @yieldparam result [::Gapic::Operation]
|
911
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
912
|
+
#
|
913
|
+
# @return [::Gapic::Operation]
|
914
|
+
#
|
915
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
916
|
+
#
|
917
|
+
# @example Basic example
|
918
|
+
# require "google/cloud/financial_services/v1"
|
919
|
+
#
|
920
|
+
# # Create a client object. The client can be reused for multiple calls.
|
921
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
922
|
+
#
|
923
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
924
|
+
# request = Google::Cloud::FinancialServices::V1::ExportRegisteredPartiesRequest.new
|
925
|
+
#
|
926
|
+
# # Call the export_registered_parties method.
|
927
|
+
# result = client.export_registered_parties request
|
928
|
+
#
|
929
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
930
|
+
# # check the status of an operation, cancel it, or wait for results.
|
931
|
+
# # Here is how to wait for a response.
|
932
|
+
# result.wait_until_done! timeout: 60
|
933
|
+
# if result.response?
|
934
|
+
# p result.response
|
935
|
+
# else
|
936
|
+
# puts "No response received."
|
937
|
+
# end
|
938
|
+
#
|
939
|
+
def export_registered_parties request, options = nil
|
940
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
941
|
+
|
942
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ExportRegisteredPartiesRequest
|
943
|
+
|
944
|
+
# Converts hash and nil to an options object
|
945
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
946
|
+
|
947
|
+
# Customize the options with defaults
|
948
|
+
call_metadata = @config.rpcs.export_registered_parties.metadata.to_h
|
949
|
+
|
950
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
951
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
952
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
953
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
954
|
+
transports_version_send: [:rest]
|
955
|
+
|
956
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
957
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
958
|
+
|
959
|
+
options.apply_defaults timeout: @config.rpcs.export_registered_parties.timeout,
|
960
|
+
metadata: call_metadata,
|
961
|
+
retry_policy: @config.rpcs.export_registered_parties.retry_policy
|
962
|
+
|
963
|
+
options.apply_defaults timeout: @config.timeout,
|
964
|
+
metadata: @config.metadata,
|
965
|
+
retry_policy: @config.retry_policy
|
966
|
+
|
967
|
+
@aml_stub.export_registered_parties request, options do |result, operation|
|
968
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
969
|
+
yield result, operation if block_given?
|
970
|
+
throw :response, result
|
971
|
+
end
|
972
|
+
rescue ::Gapic::Rest::Error => e
|
973
|
+
raise ::Google::Cloud::Error.from_error(e)
|
974
|
+
end
|
975
|
+
|
976
|
+
##
|
977
|
+
# Lists datasets.
|
978
|
+
#
|
979
|
+
# @overload list_datasets(request, options = nil)
|
980
|
+
# Pass arguments to `list_datasets` via a request object, either of type
|
981
|
+
# {::Google::Cloud::FinancialServices::V1::ListDatasetsRequest} or an equivalent Hash.
|
982
|
+
#
|
983
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ListDatasetsRequest, ::Hash]
|
984
|
+
# A request object representing the call parameters. Required. To specify no
|
985
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
986
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
987
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
988
|
+
#
|
989
|
+
# @overload list_datasets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
990
|
+
# Pass arguments to `list_datasets` via keyword arguments. Note that at
|
991
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
992
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
993
|
+
#
|
994
|
+
# @param parent [::String]
|
995
|
+
# Required. The parent of the Dataset is the Instance.
|
996
|
+
# @param page_size [::Integer]
|
997
|
+
# The number of resources to be included in the response. The response
|
998
|
+
# contains a next_page_token, which can be used to retrieve the next page of
|
999
|
+
# resources.
|
1000
|
+
# @param page_token [::String]
|
1001
|
+
# In case of paginated results, this is the token that was returned in the
|
1002
|
+
# previous ListDatasetResponse. It should be copied here to retrieve the
|
1003
|
+
# next page of resources. Empty will give the first page of
|
1004
|
+
# ListDatasetRequest, and the last page will return an empty page_token.
|
1005
|
+
# @param filter [::String]
|
1006
|
+
# Specify a filter to narrow search results.
|
1007
|
+
# @param order_by [::String]
|
1008
|
+
# Specify a field to use for ordering.
|
1009
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1010
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::Dataset>]
|
1011
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1012
|
+
#
|
1013
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::Dataset>]
|
1014
|
+
#
|
1015
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1016
|
+
#
|
1017
|
+
# @example Basic example
|
1018
|
+
# require "google/cloud/financial_services/v1"
|
1019
|
+
#
|
1020
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1021
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1022
|
+
#
|
1023
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1024
|
+
# request = Google::Cloud::FinancialServices::V1::ListDatasetsRequest.new
|
1025
|
+
#
|
1026
|
+
# # Call the list_datasets method.
|
1027
|
+
# result = client.list_datasets request
|
1028
|
+
#
|
1029
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1030
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1031
|
+
# result.each do |item|
|
1032
|
+
# # Each element is of type ::Google::Cloud::FinancialServices::V1::Dataset.
|
1033
|
+
# p item
|
1034
|
+
# end
|
1035
|
+
#
|
1036
|
+
def list_datasets request, options = nil
|
1037
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1038
|
+
|
1039
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ListDatasetsRequest
|
1040
|
+
|
1041
|
+
# Converts hash and nil to an options object
|
1042
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1043
|
+
|
1044
|
+
# Customize the options with defaults
|
1045
|
+
call_metadata = @config.rpcs.list_datasets.metadata.to_h
|
1046
|
+
|
1047
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1048
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1049
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1050
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1051
|
+
transports_version_send: [:rest]
|
1052
|
+
|
1053
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1054
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1055
|
+
|
1056
|
+
options.apply_defaults timeout: @config.rpcs.list_datasets.timeout,
|
1057
|
+
metadata: call_metadata,
|
1058
|
+
retry_policy: @config.rpcs.list_datasets.retry_policy
|
1059
|
+
|
1060
|
+
options.apply_defaults timeout: @config.timeout,
|
1061
|
+
metadata: @config.metadata,
|
1062
|
+
retry_policy: @config.retry_policy
|
1063
|
+
|
1064
|
+
@aml_stub.list_datasets request, options do |result, operation|
|
1065
|
+
result = ::Gapic::Rest::PagedEnumerable.new @aml_stub, :list_datasets, "datasets", request, result, options
|
1066
|
+
yield result, operation if block_given?
|
1067
|
+
throw :response, result
|
1068
|
+
end
|
1069
|
+
rescue ::Gapic::Rest::Error => e
|
1070
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
##
|
1074
|
+
# Gets a dataset.
|
1075
|
+
#
|
1076
|
+
# @overload get_dataset(request, options = nil)
|
1077
|
+
# Pass arguments to `get_dataset` via a request object, either of type
|
1078
|
+
# {::Google::Cloud::FinancialServices::V1::GetDatasetRequest} or an equivalent Hash.
|
1079
|
+
#
|
1080
|
+
# @param request [::Google::Cloud::FinancialServices::V1::GetDatasetRequest, ::Hash]
|
1081
|
+
# A request object representing the call parameters. Required. To specify no
|
1082
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1083
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1084
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1085
|
+
#
|
1086
|
+
# @overload get_dataset(name: nil)
|
1087
|
+
# Pass arguments to `get_dataset` via keyword arguments. Note that at
|
1088
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1089
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1090
|
+
#
|
1091
|
+
# @param name [::String]
|
1092
|
+
# Required. The resource name of the Dataset
|
1093
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1094
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::Dataset]
|
1095
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1096
|
+
#
|
1097
|
+
# @return [::Google::Cloud::FinancialServices::V1::Dataset]
|
1098
|
+
#
|
1099
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1100
|
+
#
|
1101
|
+
# @example Basic example
|
1102
|
+
# require "google/cloud/financial_services/v1"
|
1103
|
+
#
|
1104
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1105
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1106
|
+
#
|
1107
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1108
|
+
# request = Google::Cloud::FinancialServices::V1::GetDatasetRequest.new
|
1109
|
+
#
|
1110
|
+
# # Call the get_dataset method.
|
1111
|
+
# result = client.get_dataset request
|
1112
|
+
#
|
1113
|
+
# # The returned object is of type Google::Cloud::FinancialServices::V1::Dataset.
|
1114
|
+
# p result
|
1115
|
+
#
|
1116
|
+
def get_dataset request, options = nil
|
1117
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1118
|
+
|
1119
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::GetDatasetRequest
|
1120
|
+
|
1121
|
+
# Converts hash and nil to an options object
|
1122
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1123
|
+
|
1124
|
+
# Customize the options with defaults
|
1125
|
+
call_metadata = @config.rpcs.get_dataset.metadata.to_h
|
1126
|
+
|
1127
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1128
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1129
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1130
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1131
|
+
transports_version_send: [:rest]
|
1132
|
+
|
1133
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1134
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1135
|
+
|
1136
|
+
options.apply_defaults timeout: @config.rpcs.get_dataset.timeout,
|
1137
|
+
metadata: call_metadata,
|
1138
|
+
retry_policy: @config.rpcs.get_dataset.retry_policy
|
1139
|
+
|
1140
|
+
options.apply_defaults timeout: @config.timeout,
|
1141
|
+
metadata: @config.metadata,
|
1142
|
+
retry_policy: @config.retry_policy
|
1143
|
+
|
1144
|
+
@aml_stub.get_dataset request, options do |result, operation|
|
1145
|
+
yield result, operation if block_given?
|
1146
|
+
end
|
1147
|
+
rescue ::Gapic::Rest::Error => e
|
1148
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
##
|
1152
|
+
# Creates a dataset.
|
1153
|
+
#
|
1154
|
+
# @overload create_dataset(request, options = nil)
|
1155
|
+
# Pass arguments to `create_dataset` via a request object, either of type
|
1156
|
+
# {::Google::Cloud::FinancialServices::V1::CreateDatasetRequest} or an equivalent Hash.
|
1157
|
+
#
|
1158
|
+
# @param request [::Google::Cloud::FinancialServices::V1::CreateDatasetRequest, ::Hash]
|
1159
|
+
# A request object representing the call parameters. Required. To specify no
|
1160
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1161
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1163
|
+
#
|
1164
|
+
# @overload create_dataset(parent: nil, dataset_id: nil, dataset: nil, request_id: nil)
|
1165
|
+
# Pass arguments to `create_dataset` via keyword arguments. Note that at
|
1166
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1167
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1168
|
+
#
|
1169
|
+
# @param parent [::String]
|
1170
|
+
# Required. The parent of the Dataset is the Instance.
|
1171
|
+
# @param dataset_id [::String]
|
1172
|
+
# Required. The resource id of the dataset
|
1173
|
+
# @param dataset [::Google::Cloud::FinancialServices::V1::Dataset, ::Hash]
|
1174
|
+
# Required. The dataset that will be created.
|
1175
|
+
# @param request_id [::String]
|
1176
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1177
|
+
# request ID so that if you must retry your request, the server will know to
|
1178
|
+
# ignore the request if it has already been completed. The server will
|
1179
|
+
# guarantee that for at least 60 minutes since the first request.
|
1180
|
+
#
|
1181
|
+
# For example, consider a situation where you make an initial request and the
|
1182
|
+
# request times out. If you make the request again with the same request
|
1183
|
+
# ID, the server can check if original operation with the same request ID
|
1184
|
+
# was received, and if so, will ignore the second request. This prevents
|
1185
|
+
# clients from accidentally creating duplicate commitments.
|
1186
|
+
#
|
1187
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1188
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1189
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1190
|
+
# @yieldparam result [::Gapic::Operation]
|
1191
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1192
|
+
#
|
1193
|
+
# @return [::Gapic::Operation]
|
1194
|
+
#
|
1195
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1196
|
+
#
|
1197
|
+
# @example Basic example
|
1198
|
+
# require "google/cloud/financial_services/v1"
|
1199
|
+
#
|
1200
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1201
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1202
|
+
#
|
1203
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1204
|
+
# request = Google::Cloud::FinancialServices::V1::CreateDatasetRequest.new
|
1205
|
+
#
|
1206
|
+
# # Call the create_dataset method.
|
1207
|
+
# result = client.create_dataset request
|
1208
|
+
#
|
1209
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1210
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1211
|
+
# # Here is how to wait for a response.
|
1212
|
+
# result.wait_until_done! timeout: 60
|
1213
|
+
# if result.response?
|
1214
|
+
# p result.response
|
1215
|
+
# else
|
1216
|
+
# puts "No response received."
|
1217
|
+
# end
|
1218
|
+
#
|
1219
|
+
def create_dataset request, options = nil
|
1220
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1221
|
+
|
1222
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::CreateDatasetRequest
|
1223
|
+
|
1224
|
+
# Converts hash and nil to an options object
|
1225
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1226
|
+
|
1227
|
+
# Customize the options with defaults
|
1228
|
+
call_metadata = @config.rpcs.create_dataset.metadata.to_h
|
1229
|
+
|
1230
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1231
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1232
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1233
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1234
|
+
transports_version_send: [:rest]
|
1235
|
+
|
1236
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1237
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1238
|
+
|
1239
|
+
options.apply_defaults timeout: @config.rpcs.create_dataset.timeout,
|
1240
|
+
metadata: call_metadata,
|
1241
|
+
retry_policy: @config.rpcs.create_dataset.retry_policy
|
1242
|
+
|
1243
|
+
options.apply_defaults timeout: @config.timeout,
|
1244
|
+
metadata: @config.metadata,
|
1245
|
+
retry_policy: @config.retry_policy
|
1246
|
+
|
1247
|
+
@aml_stub.create_dataset request, options do |result, operation|
|
1248
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1249
|
+
yield result, operation if block_given?
|
1250
|
+
throw :response, result
|
1251
|
+
end
|
1252
|
+
rescue ::Gapic::Rest::Error => e
|
1253
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
##
|
1257
|
+
# Updates the parameters of a single Dataset.
|
1258
|
+
#
|
1259
|
+
# @overload update_dataset(request, options = nil)
|
1260
|
+
# Pass arguments to `update_dataset` via a request object, either of type
|
1261
|
+
# {::Google::Cloud::FinancialServices::V1::UpdateDatasetRequest} or an equivalent Hash.
|
1262
|
+
#
|
1263
|
+
# @param request [::Google::Cloud::FinancialServices::V1::UpdateDatasetRequest, ::Hash]
|
1264
|
+
# A request object representing the call parameters. Required. To specify no
|
1265
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1266
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1267
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1268
|
+
#
|
1269
|
+
# @overload update_dataset(update_mask: nil, dataset: nil, request_id: nil)
|
1270
|
+
# Pass arguments to `update_dataset` via keyword arguments. Note that at
|
1271
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1272
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1273
|
+
#
|
1274
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1275
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1276
|
+
# Dataset resource by the update.
|
1277
|
+
# The fields specified in the update_mask are relative to the resource, not
|
1278
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
1279
|
+
# user does not provide a mask then all fields will be overwritten.
|
1280
|
+
# @param dataset [::Google::Cloud::FinancialServices::V1::Dataset, ::Hash]
|
1281
|
+
# Required. The new value of the dataset fields that will be updated
|
1282
|
+
# according to the update_mask.
|
1283
|
+
# @param request_id [::String]
|
1284
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1285
|
+
# request ID so that if you must retry your request, the server will know to
|
1286
|
+
# ignore the request if it has already been completed. The server will
|
1287
|
+
# guarantee that for at least 60 minutes since the first request.
|
1288
|
+
#
|
1289
|
+
# For example, consider a situation where you make an initial request and the
|
1290
|
+
# request times out. If you make the request again with the same request
|
1291
|
+
# ID, the server can check if original operation with the same request ID
|
1292
|
+
# was received, and if so, will ignore the second request. This prevents
|
1293
|
+
# clients from accidentally creating duplicate commitments.
|
1294
|
+
#
|
1295
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1296
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1297
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1298
|
+
# @yieldparam result [::Gapic::Operation]
|
1299
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1300
|
+
#
|
1301
|
+
# @return [::Gapic::Operation]
|
1302
|
+
#
|
1303
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1304
|
+
#
|
1305
|
+
# @example Basic example
|
1306
|
+
# require "google/cloud/financial_services/v1"
|
1307
|
+
#
|
1308
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1309
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1310
|
+
#
|
1311
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1312
|
+
# request = Google::Cloud::FinancialServices::V1::UpdateDatasetRequest.new
|
1313
|
+
#
|
1314
|
+
# # Call the update_dataset method.
|
1315
|
+
# result = client.update_dataset request
|
1316
|
+
#
|
1317
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1318
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1319
|
+
# # Here is how to wait for a response.
|
1320
|
+
# result.wait_until_done! timeout: 60
|
1321
|
+
# if result.response?
|
1322
|
+
# p result.response
|
1323
|
+
# else
|
1324
|
+
# puts "No response received."
|
1325
|
+
# end
|
1326
|
+
#
|
1327
|
+
def update_dataset request, options = nil
|
1328
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1329
|
+
|
1330
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::UpdateDatasetRequest
|
1331
|
+
|
1332
|
+
# Converts hash and nil to an options object
|
1333
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1334
|
+
|
1335
|
+
# Customize the options with defaults
|
1336
|
+
call_metadata = @config.rpcs.update_dataset.metadata.to_h
|
1337
|
+
|
1338
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1339
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1340
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1341
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1342
|
+
transports_version_send: [:rest]
|
1343
|
+
|
1344
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1345
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1346
|
+
|
1347
|
+
options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
|
1348
|
+
metadata: call_metadata,
|
1349
|
+
retry_policy: @config.rpcs.update_dataset.retry_policy
|
1350
|
+
|
1351
|
+
options.apply_defaults timeout: @config.timeout,
|
1352
|
+
metadata: @config.metadata,
|
1353
|
+
retry_policy: @config.retry_policy
|
1354
|
+
|
1355
|
+
@aml_stub.update_dataset request, options do |result, operation|
|
1356
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1357
|
+
yield result, operation if block_given?
|
1358
|
+
throw :response, result
|
1359
|
+
end
|
1360
|
+
rescue ::Gapic::Rest::Error => e
|
1361
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
##
|
1365
|
+
# Deletes a dataset.
|
1366
|
+
#
|
1367
|
+
# @overload delete_dataset(request, options = nil)
|
1368
|
+
# Pass arguments to `delete_dataset` via a request object, either of type
|
1369
|
+
# {::Google::Cloud::FinancialServices::V1::DeleteDatasetRequest} or an equivalent Hash.
|
1370
|
+
#
|
1371
|
+
# @param request [::Google::Cloud::FinancialServices::V1::DeleteDatasetRequest, ::Hash]
|
1372
|
+
# A request object representing the call parameters. Required. To specify no
|
1373
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1374
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1375
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1376
|
+
#
|
1377
|
+
# @overload delete_dataset(name: nil, request_id: nil)
|
1378
|
+
# Pass arguments to `delete_dataset` via keyword arguments. Note that at
|
1379
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1380
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1381
|
+
#
|
1382
|
+
# @param name [::String]
|
1383
|
+
# Required. The resource name of the Dataset.
|
1384
|
+
# @param request_id [::String]
|
1385
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1386
|
+
# request ID so that if you must retry your request, the server will know to
|
1387
|
+
# ignore the request if it has already been completed. The server will
|
1388
|
+
# guarantee that for at least 60 minutes after the first request.
|
1389
|
+
#
|
1390
|
+
# For example, consider a situation where you make an initial request and the
|
1391
|
+
# request times out. If you make the request again with the same request
|
1392
|
+
# ID, the server can check if original operation with the same request ID
|
1393
|
+
# was received, and if so, will ignore the second request. This prevents
|
1394
|
+
# clients from accidentally creating duplicate commitments.
|
1395
|
+
#
|
1396
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1397
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1398
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1399
|
+
# @yieldparam result [::Gapic::Operation]
|
1400
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1401
|
+
#
|
1402
|
+
# @return [::Gapic::Operation]
|
1403
|
+
#
|
1404
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1405
|
+
#
|
1406
|
+
# @example Basic example
|
1407
|
+
# require "google/cloud/financial_services/v1"
|
1408
|
+
#
|
1409
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1410
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1411
|
+
#
|
1412
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1413
|
+
# request = Google::Cloud::FinancialServices::V1::DeleteDatasetRequest.new
|
1414
|
+
#
|
1415
|
+
# # Call the delete_dataset method.
|
1416
|
+
# result = client.delete_dataset request
|
1417
|
+
#
|
1418
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1419
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1420
|
+
# # Here is how to wait for a response.
|
1421
|
+
# result.wait_until_done! timeout: 60
|
1422
|
+
# if result.response?
|
1423
|
+
# p result.response
|
1424
|
+
# else
|
1425
|
+
# puts "No response received."
|
1426
|
+
# end
|
1427
|
+
#
|
1428
|
+
def delete_dataset request, options = nil
|
1429
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1430
|
+
|
1431
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::DeleteDatasetRequest
|
1432
|
+
|
1433
|
+
# Converts hash and nil to an options object
|
1434
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1435
|
+
|
1436
|
+
# Customize the options with defaults
|
1437
|
+
call_metadata = @config.rpcs.delete_dataset.metadata.to_h
|
1438
|
+
|
1439
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1440
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1441
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1442
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1443
|
+
transports_version_send: [:rest]
|
1444
|
+
|
1445
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1446
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1447
|
+
|
1448
|
+
options.apply_defaults timeout: @config.rpcs.delete_dataset.timeout,
|
1449
|
+
metadata: call_metadata,
|
1450
|
+
retry_policy: @config.rpcs.delete_dataset.retry_policy
|
1451
|
+
|
1452
|
+
options.apply_defaults timeout: @config.timeout,
|
1453
|
+
metadata: @config.metadata,
|
1454
|
+
retry_policy: @config.retry_policy
|
1455
|
+
|
1456
|
+
@aml_stub.delete_dataset request, options do |result, operation|
|
1457
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1458
|
+
yield result, operation if block_given?
|
1459
|
+
throw :response, result
|
1460
|
+
end
|
1461
|
+
rescue ::Gapic::Rest::Error => e
|
1462
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1463
|
+
end
|
1464
|
+
|
1465
|
+
##
|
1466
|
+
# Lists models.
|
1467
|
+
#
|
1468
|
+
# @overload list_models(request, options = nil)
|
1469
|
+
# Pass arguments to `list_models` via a request object, either of type
|
1470
|
+
# {::Google::Cloud::FinancialServices::V1::ListModelsRequest} or an equivalent Hash.
|
1471
|
+
#
|
1472
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ListModelsRequest, ::Hash]
|
1473
|
+
# A request object representing the call parameters. Required. To specify no
|
1474
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1475
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1476
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1477
|
+
#
|
1478
|
+
# @overload list_models(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
1479
|
+
# Pass arguments to `list_models` via keyword arguments. Note that at
|
1480
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1481
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1482
|
+
#
|
1483
|
+
# @param parent [::String]
|
1484
|
+
# Required. The parent of the Model is the Instance.
|
1485
|
+
# @param page_size [::Integer]
|
1486
|
+
# The number of resources to be included in the response. The response
|
1487
|
+
# contains a next_page_token, which can be used to retrieve the next page of
|
1488
|
+
# resources.
|
1489
|
+
# @param page_token [::String]
|
1490
|
+
# In case of paginated results, this is the token that was returned in the
|
1491
|
+
# previous ListModelsResponse. It should be copied here to retrieve the next
|
1492
|
+
# page of resources. Empty will give the first page of ListModelsRequest, and
|
1493
|
+
# the last page will return an empty page_token.
|
1494
|
+
# @param filter [::String]
|
1495
|
+
# Specify a filter to narrow search results.
|
1496
|
+
# @param order_by [::String]
|
1497
|
+
# Specify a field to use for ordering.
|
1498
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1499
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::Model>]
|
1500
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1501
|
+
#
|
1502
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::Model>]
|
1503
|
+
#
|
1504
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1505
|
+
#
|
1506
|
+
# @example Basic example
|
1507
|
+
# require "google/cloud/financial_services/v1"
|
1508
|
+
#
|
1509
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1510
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1511
|
+
#
|
1512
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1513
|
+
# request = Google::Cloud::FinancialServices::V1::ListModelsRequest.new
|
1514
|
+
#
|
1515
|
+
# # Call the list_models method.
|
1516
|
+
# result = client.list_models request
|
1517
|
+
#
|
1518
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1519
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1520
|
+
# result.each do |item|
|
1521
|
+
# # Each element is of type ::Google::Cloud::FinancialServices::V1::Model.
|
1522
|
+
# p item
|
1523
|
+
# end
|
1524
|
+
#
|
1525
|
+
def list_models request, options = nil
|
1526
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1527
|
+
|
1528
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ListModelsRequest
|
1529
|
+
|
1530
|
+
# Converts hash and nil to an options object
|
1531
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1532
|
+
|
1533
|
+
# Customize the options with defaults
|
1534
|
+
call_metadata = @config.rpcs.list_models.metadata.to_h
|
1535
|
+
|
1536
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1537
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1538
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1539
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1540
|
+
transports_version_send: [:rest]
|
1541
|
+
|
1542
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1543
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1544
|
+
|
1545
|
+
options.apply_defaults timeout: @config.rpcs.list_models.timeout,
|
1546
|
+
metadata: call_metadata,
|
1547
|
+
retry_policy: @config.rpcs.list_models.retry_policy
|
1548
|
+
|
1549
|
+
options.apply_defaults timeout: @config.timeout,
|
1550
|
+
metadata: @config.metadata,
|
1551
|
+
retry_policy: @config.retry_policy
|
1552
|
+
|
1553
|
+
@aml_stub.list_models request, options do |result, operation|
|
1554
|
+
result = ::Gapic::Rest::PagedEnumerable.new @aml_stub, :list_models, "models", request, result, options
|
1555
|
+
yield result, operation if block_given?
|
1556
|
+
throw :response, result
|
1557
|
+
end
|
1558
|
+
rescue ::Gapic::Rest::Error => e
|
1559
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1560
|
+
end
|
1561
|
+
|
1562
|
+
##
|
1563
|
+
# Gets a model.
|
1564
|
+
#
|
1565
|
+
# @overload get_model(request, options = nil)
|
1566
|
+
# Pass arguments to `get_model` via a request object, either of type
|
1567
|
+
# {::Google::Cloud::FinancialServices::V1::GetModelRequest} or an equivalent Hash.
|
1568
|
+
#
|
1569
|
+
# @param request [::Google::Cloud::FinancialServices::V1::GetModelRequest, ::Hash]
|
1570
|
+
# A request object representing the call parameters. Required. To specify no
|
1571
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1572
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1573
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1574
|
+
#
|
1575
|
+
# @overload get_model(name: nil)
|
1576
|
+
# Pass arguments to `get_model` via keyword arguments. Note that at
|
1577
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1578
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1579
|
+
#
|
1580
|
+
# @param name [::String]
|
1581
|
+
# Required. The resource name of the Model
|
1582
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1583
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::Model]
|
1584
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1585
|
+
#
|
1586
|
+
# @return [::Google::Cloud::FinancialServices::V1::Model]
|
1587
|
+
#
|
1588
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1589
|
+
#
|
1590
|
+
# @example Basic example
|
1591
|
+
# require "google/cloud/financial_services/v1"
|
1592
|
+
#
|
1593
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1594
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1595
|
+
#
|
1596
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1597
|
+
# request = Google::Cloud::FinancialServices::V1::GetModelRequest.new
|
1598
|
+
#
|
1599
|
+
# # Call the get_model method.
|
1600
|
+
# result = client.get_model request
|
1601
|
+
#
|
1602
|
+
# # The returned object is of type Google::Cloud::FinancialServices::V1::Model.
|
1603
|
+
# p result
|
1604
|
+
#
|
1605
|
+
def get_model request, options = nil
|
1606
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1607
|
+
|
1608
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::GetModelRequest
|
1609
|
+
|
1610
|
+
# Converts hash and nil to an options object
|
1611
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1612
|
+
|
1613
|
+
# Customize the options with defaults
|
1614
|
+
call_metadata = @config.rpcs.get_model.metadata.to_h
|
1615
|
+
|
1616
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1617
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1618
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1619
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1620
|
+
transports_version_send: [:rest]
|
1621
|
+
|
1622
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1623
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1624
|
+
|
1625
|
+
options.apply_defaults timeout: @config.rpcs.get_model.timeout,
|
1626
|
+
metadata: call_metadata,
|
1627
|
+
retry_policy: @config.rpcs.get_model.retry_policy
|
1628
|
+
|
1629
|
+
options.apply_defaults timeout: @config.timeout,
|
1630
|
+
metadata: @config.metadata,
|
1631
|
+
retry_policy: @config.retry_policy
|
1632
|
+
|
1633
|
+
@aml_stub.get_model request, options do |result, operation|
|
1634
|
+
yield result, operation if block_given?
|
1635
|
+
end
|
1636
|
+
rescue ::Gapic::Rest::Error => e
|
1637
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1638
|
+
end
|
1639
|
+
|
1640
|
+
##
|
1641
|
+
# Creates a model.
|
1642
|
+
#
|
1643
|
+
# @overload create_model(request, options = nil)
|
1644
|
+
# Pass arguments to `create_model` via a request object, either of type
|
1645
|
+
# {::Google::Cloud::FinancialServices::V1::CreateModelRequest} or an equivalent Hash.
|
1646
|
+
#
|
1647
|
+
# @param request [::Google::Cloud::FinancialServices::V1::CreateModelRequest, ::Hash]
|
1648
|
+
# A request object representing the call parameters. Required. To specify no
|
1649
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1650
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1651
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1652
|
+
#
|
1653
|
+
# @overload create_model(parent: nil, model_id: nil, model: nil, request_id: nil)
|
1654
|
+
# Pass arguments to `create_model` via keyword arguments. Note that at
|
1655
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1656
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1657
|
+
#
|
1658
|
+
# @param parent [::String]
|
1659
|
+
# Required. The parent of the Model is the Instance.
|
1660
|
+
# @param model_id [::String]
|
1661
|
+
# Required. The resource id of the Model
|
1662
|
+
# @param model [::Google::Cloud::FinancialServices::V1::Model, ::Hash]
|
1663
|
+
# Required. The Model that will be created.
|
1664
|
+
# @param request_id [::String]
|
1665
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1666
|
+
# request ID so that if you must retry your request, the server will know to
|
1667
|
+
# ignore the request if it has already been completed. The server will
|
1668
|
+
# guarantee that for at least 60 minutes since the first request.
|
1669
|
+
#
|
1670
|
+
# For example, consider a situation where you make an initial request and the
|
1671
|
+
# request times out. If you make the request again with the same request
|
1672
|
+
# ID, the server can check if original operation with the same request ID
|
1673
|
+
# was received, and if so, will ignore the second request. This prevents
|
1674
|
+
# clients from accidentally creating duplicate commitments.
|
1675
|
+
#
|
1676
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1677
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1678
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1679
|
+
# @yieldparam result [::Gapic::Operation]
|
1680
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1681
|
+
#
|
1682
|
+
# @return [::Gapic::Operation]
|
1683
|
+
#
|
1684
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1685
|
+
#
|
1686
|
+
# @example Basic example
|
1687
|
+
# require "google/cloud/financial_services/v1"
|
1688
|
+
#
|
1689
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1690
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1691
|
+
#
|
1692
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1693
|
+
# request = Google::Cloud::FinancialServices::V1::CreateModelRequest.new
|
1694
|
+
#
|
1695
|
+
# # Call the create_model method.
|
1696
|
+
# result = client.create_model request
|
1697
|
+
#
|
1698
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1699
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1700
|
+
# # Here is how to wait for a response.
|
1701
|
+
# result.wait_until_done! timeout: 60
|
1702
|
+
# if result.response?
|
1703
|
+
# p result.response
|
1704
|
+
# else
|
1705
|
+
# puts "No response received."
|
1706
|
+
# end
|
1707
|
+
#
|
1708
|
+
def create_model request, options = nil
|
1709
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1710
|
+
|
1711
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::CreateModelRequest
|
1712
|
+
|
1713
|
+
# Converts hash and nil to an options object
|
1714
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1715
|
+
|
1716
|
+
# Customize the options with defaults
|
1717
|
+
call_metadata = @config.rpcs.create_model.metadata.to_h
|
1718
|
+
|
1719
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1720
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1721
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1722
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1723
|
+
transports_version_send: [:rest]
|
1724
|
+
|
1725
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1726
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1727
|
+
|
1728
|
+
options.apply_defaults timeout: @config.rpcs.create_model.timeout,
|
1729
|
+
metadata: call_metadata,
|
1730
|
+
retry_policy: @config.rpcs.create_model.retry_policy
|
1731
|
+
|
1732
|
+
options.apply_defaults timeout: @config.timeout,
|
1733
|
+
metadata: @config.metadata,
|
1734
|
+
retry_policy: @config.retry_policy
|
1735
|
+
|
1736
|
+
@aml_stub.create_model request, options do |result, operation|
|
1737
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1738
|
+
yield result, operation if block_given?
|
1739
|
+
throw :response, result
|
1740
|
+
end
|
1741
|
+
rescue ::Gapic::Rest::Error => e
|
1742
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1743
|
+
end
|
1744
|
+
|
1745
|
+
##
|
1746
|
+
# Updates the parameters of a single Model.
|
1747
|
+
#
|
1748
|
+
# @overload update_model(request, options = nil)
|
1749
|
+
# Pass arguments to `update_model` via a request object, either of type
|
1750
|
+
# {::Google::Cloud::FinancialServices::V1::UpdateModelRequest} or an equivalent Hash.
|
1751
|
+
#
|
1752
|
+
# @param request [::Google::Cloud::FinancialServices::V1::UpdateModelRequest, ::Hash]
|
1753
|
+
# A request object representing the call parameters. Required. To specify no
|
1754
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1755
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1756
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1757
|
+
#
|
1758
|
+
# @overload update_model(update_mask: nil, model: nil, request_id: nil)
|
1759
|
+
# Pass arguments to `update_model` via keyword arguments. Note that at
|
1760
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1761
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1762
|
+
#
|
1763
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1764
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1765
|
+
# Model resource by the update.
|
1766
|
+
# The fields specified in the update_mask are relative to the resource, not
|
1767
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
1768
|
+
# user does not provide a mask then all fields will be overwritten.
|
1769
|
+
# @param model [::Google::Cloud::FinancialServices::V1::Model, ::Hash]
|
1770
|
+
# Required. The new value of the Model fields that will be updated according
|
1771
|
+
# to the update_mask.
|
1772
|
+
# @param request_id [::String]
|
1773
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1774
|
+
# request ID so that if you must retry your request, the server will know to
|
1775
|
+
# ignore the request if it has already been completed. The server will
|
1776
|
+
# guarantee that for at least 60 minutes since the first request.
|
1777
|
+
#
|
1778
|
+
# For example, consider a situation where you make an initial request and the
|
1779
|
+
# request times out. If you make the request again with the same request
|
1780
|
+
# ID, the server can check if original operation with the same request ID
|
1781
|
+
# was received, and if so, will ignore the second request. This prevents
|
1782
|
+
# clients from accidentally creating duplicate commitments.
|
1783
|
+
#
|
1784
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1785
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1786
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1787
|
+
# @yieldparam result [::Gapic::Operation]
|
1788
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1789
|
+
#
|
1790
|
+
# @return [::Gapic::Operation]
|
1791
|
+
#
|
1792
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1793
|
+
#
|
1794
|
+
# @example Basic example
|
1795
|
+
# require "google/cloud/financial_services/v1"
|
1796
|
+
#
|
1797
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1798
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1799
|
+
#
|
1800
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1801
|
+
# request = Google::Cloud::FinancialServices::V1::UpdateModelRequest.new
|
1802
|
+
#
|
1803
|
+
# # Call the update_model method.
|
1804
|
+
# result = client.update_model request
|
1805
|
+
#
|
1806
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1807
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1808
|
+
# # Here is how to wait for a response.
|
1809
|
+
# result.wait_until_done! timeout: 60
|
1810
|
+
# if result.response?
|
1811
|
+
# p result.response
|
1812
|
+
# else
|
1813
|
+
# puts "No response received."
|
1814
|
+
# end
|
1815
|
+
#
|
1816
|
+
def update_model request, options = nil
|
1817
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1818
|
+
|
1819
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::UpdateModelRequest
|
1820
|
+
|
1821
|
+
# Converts hash and nil to an options object
|
1822
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1823
|
+
|
1824
|
+
# Customize the options with defaults
|
1825
|
+
call_metadata = @config.rpcs.update_model.metadata.to_h
|
1826
|
+
|
1827
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1828
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1829
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1830
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1831
|
+
transports_version_send: [:rest]
|
1832
|
+
|
1833
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1834
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1835
|
+
|
1836
|
+
options.apply_defaults timeout: @config.rpcs.update_model.timeout,
|
1837
|
+
metadata: call_metadata,
|
1838
|
+
retry_policy: @config.rpcs.update_model.retry_policy
|
1839
|
+
|
1840
|
+
options.apply_defaults timeout: @config.timeout,
|
1841
|
+
metadata: @config.metadata,
|
1842
|
+
retry_policy: @config.retry_policy
|
1843
|
+
|
1844
|
+
@aml_stub.update_model request, options do |result, operation|
|
1845
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1846
|
+
yield result, operation if block_given?
|
1847
|
+
throw :response, result
|
1848
|
+
end
|
1849
|
+
rescue ::Gapic::Rest::Error => e
|
1850
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1851
|
+
end
|
1852
|
+
|
1853
|
+
##
|
1854
|
+
# Export governance information for a Model resource. For
|
1855
|
+
# information on the exported fields, see
|
1856
|
+
# [AML output data
|
1857
|
+
# model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#model).
|
1858
|
+
#
|
1859
|
+
# @overload export_model_metadata(request, options = nil)
|
1860
|
+
# Pass arguments to `export_model_metadata` via a request object, either of type
|
1861
|
+
# {::Google::Cloud::FinancialServices::V1::ExportModelMetadataRequest} or an equivalent Hash.
|
1862
|
+
#
|
1863
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ExportModelMetadataRequest, ::Hash]
|
1864
|
+
# A request object representing the call parameters. Required. To specify no
|
1865
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1866
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1867
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1868
|
+
#
|
1869
|
+
# @overload export_model_metadata(model: nil, structured_metadata_destination: nil)
|
1870
|
+
# Pass arguments to `export_model_metadata` via keyword arguments. Note that at
|
1871
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1872
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1873
|
+
#
|
1874
|
+
# @param model [::String]
|
1875
|
+
# Required. The resource name of the Model.
|
1876
|
+
# @param structured_metadata_destination [::Google::Cloud::FinancialServices::V1::BigQueryDestination, ::Hash]
|
1877
|
+
# Required. BigQuery output where the metadata will be written.
|
1878
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1879
|
+
# @yieldparam result [::Gapic::Operation]
|
1880
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1881
|
+
#
|
1882
|
+
# @return [::Gapic::Operation]
|
1883
|
+
#
|
1884
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1885
|
+
#
|
1886
|
+
# @example Basic example
|
1887
|
+
# require "google/cloud/financial_services/v1"
|
1888
|
+
#
|
1889
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1890
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1891
|
+
#
|
1892
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1893
|
+
# request = Google::Cloud::FinancialServices::V1::ExportModelMetadataRequest.new
|
1894
|
+
#
|
1895
|
+
# # Call the export_model_metadata method.
|
1896
|
+
# result = client.export_model_metadata request
|
1897
|
+
#
|
1898
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1899
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1900
|
+
# # Here is how to wait for a response.
|
1901
|
+
# result.wait_until_done! timeout: 60
|
1902
|
+
# if result.response?
|
1903
|
+
# p result.response
|
1904
|
+
# else
|
1905
|
+
# puts "No response received."
|
1906
|
+
# end
|
1907
|
+
#
|
1908
|
+
def export_model_metadata request, options = nil
|
1909
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1910
|
+
|
1911
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ExportModelMetadataRequest
|
1912
|
+
|
1913
|
+
# Converts hash and nil to an options object
|
1914
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1915
|
+
|
1916
|
+
# Customize the options with defaults
|
1917
|
+
call_metadata = @config.rpcs.export_model_metadata.metadata.to_h
|
1918
|
+
|
1919
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1920
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1921
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1922
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
1923
|
+
transports_version_send: [:rest]
|
1924
|
+
|
1925
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1926
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1927
|
+
|
1928
|
+
options.apply_defaults timeout: @config.rpcs.export_model_metadata.timeout,
|
1929
|
+
metadata: call_metadata,
|
1930
|
+
retry_policy: @config.rpcs.export_model_metadata.retry_policy
|
1931
|
+
|
1932
|
+
options.apply_defaults timeout: @config.timeout,
|
1933
|
+
metadata: @config.metadata,
|
1934
|
+
retry_policy: @config.retry_policy
|
1935
|
+
|
1936
|
+
@aml_stub.export_model_metadata request, options do |result, operation|
|
1937
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1938
|
+
yield result, operation if block_given?
|
1939
|
+
throw :response, result
|
1940
|
+
end
|
1941
|
+
rescue ::Gapic::Rest::Error => e
|
1942
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
##
|
1946
|
+
# Deletes a model.
|
1947
|
+
#
|
1948
|
+
# @overload delete_model(request, options = nil)
|
1949
|
+
# Pass arguments to `delete_model` via a request object, either of type
|
1950
|
+
# {::Google::Cloud::FinancialServices::V1::DeleteModelRequest} or an equivalent Hash.
|
1951
|
+
#
|
1952
|
+
# @param request [::Google::Cloud::FinancialServices::V1::DeleteModelRequest, ::Hash]
|
1953
|
+
# A request object representing the call parameters. Required. To specify no
|
1954
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1955
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1956
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1957
|
+
#
|
1958
|
+
# @overload delete_model(name: nil, request_id: nil)
|
1959
|
+
# Pass arguments to `delete_model` via keyword arguments. Note that at
|
1960
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1961
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1962
|
+
#
|
1963
|
+
# @param name [::String]
|
1964
|
+
# Required. The resource name of the Model.
|
1965
|
+
# @param request_id [::String]
|
1966
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1967
|
+
# request ID so that if you must retry your request, the server will know to
|
1968
|
+
# ignore the request if it has already been completed. The server will
|
1969
|
+
# guarantee that for at least 60 minutes after the first request.
|
1970
|
+
#
|
1971
|
+
# For example, consider a situation where you make an initial request and the
|
1972
|
+
# request times out. If you make the request again with the same request
|
1973
|
+
# ID, the server can check if original operation with the same request ID
|
1974
|
+
# was received, and if so, will ignore the second request. This prevents
|
1975
|
+
# clients from accidentally creating duplicate commitments.
|
1976
|
+
#
|
1977
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1978
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1979
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1980
|
+
# @yieldparam result [::Gapic::Operation]
|
1981
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1982
|
+
#
|
1983
|
+
# @return [::Gapic::Operation]
|
1984
|
+
#
|
1985
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1986
|
+
#
|
1987
|
+
# @example Basic example
|
1988
|
+
# require "google/cloud/financial_services/v1"
|
1989
|
+
#
|
1990
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1991
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
1992
|
+
#
|
1993
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1994
|
+
# request = Google::Cloud::FinancialServices::V1::DeleteModelRequest.new
|
1995
|
+
#
|
1996
|
+
# # Call the delete_model method.
|
1997
|
+
# result = client.delete_model request
|
1998
|
+
#
|
1999
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2000
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2001
|
+
# # Here is how to wait for a response.
|
2002
|
+
# result.wait_until_done! timeout: 60
|
2003
|
+
# if result.response?
|
2004
|
+
# p result.response
|
2005
|
+
# else
|
2006
|
+
# puts "No response received."
|
2007
|
+
# end
|
2008
|
+
#
|
2009
|
+
def delete_model request, options = nil
|
2010
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2011
|
+
|
2012
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::DeleteModelRequest
|
2013
|
+
|
2014
|
+
# Converts hash and nil to an options object
|
2015
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2016
|
+
|
2017
|
+
# Customize the options with defaults
|
2018
|
+
call_metadata = @config.rpcs.delete_model.metadata.to_h
|
2019
|
+
|
2020
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2021
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2022
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2023
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2024
|
+
transports_version_send: [:rest]
|
2025
|
+
|
2026
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2027
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2028
|
+
|
2029
|
+
options.apply_defaults timeout: @config.rpcs.delete_model.timeout,
|
2030
|
+
metadata: call_metadata,
|
2031
|
+
retry_policy: @config.rpcs.delete_model.retry_policy
|
2032
|
+
|
2033
|
+
options.apply_defaults timeout: @config.timeout,
|
2034
|
+
metadata: @config.metadata,
|
2035
|
+
retry_policy: @config.retry_policy
|
2036
|
+
|
2037
|
+
@aml_stub.delete_model request, options do |result, operation|
|
2038
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2039
|
+
yield result, operation if block_given?
|
2040
|
+
throw :response, result
|
2041
|
+
end
|
2042
|
+
rescue ::Gapic::Rest::Error => e
|
2043
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2044
|
+
end
|
2045
|
+
|
2046
|
+
##
|
2047
|
+
# Lists engine configs.
|
2048
|
+
#
|
2049
|
+
# @overload list_engine_configs(request, options = nil)
|
2050
|
+
# Pass arguments to `list_engine_configs` via a request object, either of type
|
2051
|
+
# {::Google::Cloud::FinancialServices::V1::ListEngineConfigsRequest} or an equivalent Hash.
|
2052
|
+
#
|
2053
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ListEngineConfigsRequest, ::Hash]
|
2054
|
+
# A request object representing the call parameters. Required. To specify no
|
2055
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2056
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2057
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2058
|
+
#
|
2059
|
+
# @overload list_engine_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
2060
|
+
# Pass arguments to `list_engine_configs` via keyword arguments. Note that at
|
2061
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2062
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2063
|
+
#
|
2064
|
+
# @param parent [::String]
|
2065
|
+
# Required. The parent of the EngineConfig is the Instance.
|
2066
|
+
# @param page_size [::Integer]
|
2067
|
+
# The number of resources to be included in the response. The response
|
2068
|
+
# contains a next_page_token, which can be used to retrieve the next page of
|
2069
|
+
# resources.
|
2070
|
+
# @param page_token [::String]
|
2071
|
+
# In case of paginated results, this is the token that was returned in the
|
2072
|
+
# previous ListEngineConfigsResponse. It should be copied here to retrieve
|
2073
|
+
# the next page of resources. Empty will give the first page of
|
2074
|
+
# ListEngineConfigsRequest, and the last page will return an empty
|
2075
|
+
# page_token.
|
2076
|
+
# @param filter [::String]
|
2077
|
+
# Specify a filter to narrow search results.
|
2078
|
+
# @param order_by [::String]
|
2079
|
+
# Specify a field to use for ordering.
|
2080
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2081
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::EngineConfig>]
|
2082
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2083
|
+
#
|
2084
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::EngineConfig>]
|
2085
|
+
#
|
2086
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2087
|
+
#
|
2088
|
+
# @example Basic example
|
2089
|
+
# require "google/cloud/financial_services/v1"
|
2090
|
+
#
|
2091
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2092
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2093
|
+
#
|
2094
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2095
|
+
# request = Google::Cloud::FinancialServices::V1::ListEngineConfigsRequest.new
|
2096
|
+
#
|
2097
|
+
# # Call the list_engine_configs method.
|
2098
|
+
# result = client.list_engine_configs request
|
2099
|
+
#
|
2100
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2101
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2102
|
+
# result.each do |item|
|
2103
|
+
# # Each element is of type ::Google::Cloud::FinancialServices::V1::EngineConfig.
|
2104
|
+
# p item
|
2105
|
+
# end
|
2106
|
+
#
|
2107
|
+
def list_engine_configs request, options = nil
|
2108
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2109
|
+
|
2110
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ListEngineConfigsRequest
|
2111
|
+
|
2112
|
+
# Converts hash and nil to an options object
|
2113
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2114
|
+
|
2115
|
+
# Customize the options with defaults
|
2116
|
+
call_metadata = @config.rpcs.list_engine_configs.metadata.to_h
|
2117
|
+
|
2118
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2119
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2120
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2121
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2122
|
+
transports_version_send: [:rest]
|
2123
|
+
|
2124
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2125
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2126
|
+
|
2127
|
+
options.apply_defaults timeout: @config.rpcs.list_engine_configs.timeout,
|
2128
|
+
metadata: call_metadata,
|
2129
|
+
retry_policy: @config.rpcs.list_engine_configs.retry_policy
|
2130
|
+
|
2131
|
+
options.apply_defaults timeout: @config.timeout,
|
2132
|
+
metadata: @config.metadata,
|
2133
|
+
retry_policy: @config.retry_policy
|
2134
|
+
|
2135
|
+
@aml_stub.list_engine_configs request, options do |result, operation|
|
2136
|
+
result = ::Gapic::Rest::PagedEnumerable.new @aml_stub, :list_engine_configs, "engine_configs", request, result, options
|
2137
|
+
yield result, operation if block_given?
|
2138
|
+
throw :response, result
|
2139
|
+
end
|
2140
|
+
rescue ::Gapic::Rest::Error => e
|
2141
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2142
|
+
end
|
2143
|
+
|
2144
|
+
##
|
2145
|
+
# Gets an engine config.
|
2146
|
+
#
|
2147
|
+
# @overload get_engine_config(request, options = nil)
|
2148
|
+
# Pass arguments to `get_engine_config` via a request object, either of type
|
2149
|
+
# {::Google::Cloud::FinancialServices::V1::GetEngineConfigRequest} or an equivalent Hash.
|
2150
|
+
#
|
2151
|
+
# @param request [::Google::Cloud::FinancialServices::V1::GetEngineConfigRequest, ::Hash]
|
2152
|
+
# A request object representing the call parameters. Required. To specify no
|
2153
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2154
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2155
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2156
|
+
#
|
2157
|
+
# @overload get_engine_config(name: nil)
|
2158
|
+
# Pass arguments to `get_engine_config` via keyword arguments. Note that at
|
2159
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2160
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2161
|
+
#
|
2162
|
+
# @param name [::String]
|
2163
|
+
# Required. The resource name of the EngineConfig
|
2164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2165
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::EngineConfig]
|
2166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2167
|
+
#
|
2168
|
+
# @return [::Google::Cloud::FinancialServices::V1::EngineConfig]
|
2169
|
+
#
|
2170
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2171
|
+
#
|
2172
|
+
# @example Basic example
|
2173
|
+
# require "google/cloud/financial_services/v1"
|
2174
|
+
#
|
2175
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2176
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2177
|
+
#
|
2178
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2179
|
+
# request = Google::Cloud::FinancialServices::V1::GetEngineConfigRequest.new
|
2180
|
+
#
|
2181
|
+
# # Call the get_engine_config method.
|
2182
|
+
# result = client.get_engine_config request
|
2183
|
+
#
|
2184
|
+
# # The returned object is of type Google::Cloud::FinancialServices::V1::EngineConfig.
|
2185
|
+
# p result
|
2186
|
+
#
|
2187
|
+
def get_engine_config request, options = nil
|
2188
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2189
|
+
|
2190
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::GetEngineConfigRequest
|
2191
|
+
|
2192
|
+
# Converts hash and nil to an options object
|
2193
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2194
|
+
|
2195
|
+
# Customize the options with defaults
|
2196
|
+
call_metadata = @config.rpcs.get_engine_config.metadata.to_h
|
2197
|
+
|
2198
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2199
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2200
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2201
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2202
|
+
transports_version_send: [:rest]
|
2203
|
+
|
2204
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2205
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2206
|
+
|
2207
|
+
options.apply_defaults timeout: @config.rpcs.get_engine_config.timeout,
|
2208
|
+
metadata: call_metadata,
|
2209
|
+
retry_policy: @config.rpcs.get_engine_config.retry_policy
|
2210
|
+
|
2211
|
+
options.apply_defaults timeout: @config.timeout,
|
2212
|
+
metadata: @config.metadata,
|
2213
|
+
retry_policy: @config.retry_policy
|
2214
|
+
|
2215
|
+
@aml_stub.get_engine_config request, options do |result, operation|
|
2216
|
+
yield result, operation if block_given?
|
2217
|
+
end
|
2218
|
+
rescue ::Gapic::Rest::Error => e
|
2219
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2220
|
+
end
|
2221
|
+
|
2222
|
+
##
|
2223
|
+
# Creates an engine config.
|
2224
|
+
#
|
2225
|
+
# @overload create_engine_config(request, options = nil)
|
2226
|
+
# Pass arguments to `create_engine_config` via a request object, either of type
|
2227
|
+
# {::Google::Cloud::FinancialServices::V1::CreateEngineConfigRequest} or an equivalent Hash.
|
2228
|
+
#
|
2229
|
+
# @param request [::Google::Cloud::FinancialServices::V1::CreateEngineConfigRequest, ::Hash]
|
2230
|
+
# A request object representing the call parameters. Required. To specify no
|
2231
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2232
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2233
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2234
|
+
#
|
2235
|
+
# @overload create_engine_config(parent: nil, engine_config_id: nil, engine_config: nil, request_id: nil)
|
2236
|
+
# Pass arguments to `create_engine_config` via keyword arguments. Note that at
|
2237
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2238
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2239
|
+
#
|
2240
|
+
# @param parent [::String]
|
2241
|
+
# Required. The parent of the EngineConfig is the Instance.
|
2242
|
+
# @param engine_config_id [::String]
|
2243
|
+
# Required. The resource id of the EngineConfig
|
2244
|
+
# @param engine_config [::Google::Cloud::FinancialServices::V1::EngineConfig, ::Hash]
|
2245
|
+
# Required. The EngineConfig that will be created.
|
2246
|
+
# @param request_id [::String]
|
2247
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2248
|
+
# request ID so that if you must retry your request, the server will know to
|
2249
|
+
# ignore the request if it has already been completed. The server will
|
2250
|
+
# guarantee that for at least 60 minutes since the first request.
|
2251
|
+
#
|
2252
|
+
# For example, consider a situation where you make an initial request and the
|
2253
|
+
# request times out. If you make the request again with the same request
|
2254
|
+
# ID, the server can check if original operation with the same request ID
|
2255
|
+
# was received, and if so, will ignore the second request. This prevents
|
2256
|
+
# clients from accidentally creating duplicate commitments.
|
2257
|
+
#
|
2258
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2259
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2260
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2261
|
+
# @yieldparam result [::Gapic::Operation]
|
2262
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2263
|
+
#
|
2264
|
+
# @return [::Gapic::Operation]
|
2265
|
+
#
|
2266
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2267
|
+
#
|
2268
|
+
# @example Basic example
|
2269
|
+
# require "google/cloud/financial_services/v1"
|
2270
|
+
#
|
2271
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2272
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2273
|
+
#
|
2274
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2275
|
+
# request = Google::Cloud::FinancialServices::V1::CreateEngineConfigRequest.new
|
2276
|
+
#
|
2277
|
+
# # Call the create_engine_config method.
|
2278
|
+
# result = client.create_engine_config request
|
2279
|
+
#
|
2280
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2281
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2282
|
+
# # Here is how to wait for a response.
|
2283
|
+
# result.wait_until_done! timeout: 60
|
2284
|
+
# if result.response?
|
2285
|
+
# p result.response
|
2286
|
+
# else
|
2287
|
+
# puts "No response received."
|
2288
|
+
# end
|
2289
|
+
#
|
2290
|
+
def create_engine_config request, options = nil
|
2291
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2292
|
+
|
2293
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::CreateEngineConfigRequest
|
2294
|
+
|
2295
|
+
# Converts hash and nil to an options object
|
2296
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2297
|
+
|
2298
|
+
# Customize the options with defaults
|
2299
|
+
call_metadata = @config.rpcs.create_engine_config.metadata.to_h
|
2300
|
+
|
2301
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2302
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2303
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2304
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2305
|
+
transports_version_send: [:rest]
|
2306
|
+
|
2307
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2308
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2309
|
+
|
2310
|
+
options.apply_defaults timeout: @config.rpcs.create_engine_config.timeout,
|
2311
|
+
metadata: call_metadata,
|
2312
|
+
retry_policy: @config.rpcs.create_engine_config.retry_policy
|
2313
|
+
|
2314
|
+
options.apply_defaults timeout: @config.timeout,
|
2315
|
+
metadata: @config.metadata,
|
2316
|
+
retry_policy: @config.retry_policy
|
2317
|
+
|
2318
|
+
@aml_stub.create_engine_config request, options do |result, operation|
|
2319
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2320
|
+
yield result, operation if block_given?
|
2321
|
+
throw :response, result
|
2322
|
+
end
|
2323
|
+
rescue ::Gapic::Rest::Error => e
|
2324
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2325
|
+
end
|
2326
|
+
|
2327
|
+
##
|
2328
|
+
# Updates the parameters of a single EngineConfig.
|
2329
|
+
#
|
2330
|
+
# @overload update_engine_config(request, options = nil)
|
2331
|
+
# Pass arguments to `update_engine_config` via a request object, either of type
|
2332
|
+
# {::Google::Cloud::FinancialServices::V1::UpdateEngineConfigRequest} or an equivalent Hash.
|
2333
|
+
#
|
2334
|
+
# @param request [::Google::Cloud::FinancialServices::V1::UpdateEngineConfigRequest, ::Hash]
|
2335
|
+
# A request object representing the call parameters. Required. To specify no
|
2336
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2337
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2338
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2339
|
+
#
|
2340
|
+
# @overload update_engine_config(update_mask: nil, engine_config: nil, request_id: nil)
|
2341
|
+
# Pass arguments to `update_engine_config` via keyword arguments. Note that at
|
2342
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2343
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2344
|
+
#
|
2345
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2346
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
2347
|
+
# EngineConfig resource by the update.
|
2348
|
+
# The fields specified in the update_mask are relative to the resource, not
|
2349
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
2350
|
+
# user does not provide a mask then all fields will be overwritten.
|
2351
|
+
# @param engine_config [::Google::Cloud::FinancialServices::V1::EngineConfig, ::Hash]
|
2352
|
+
# Required. The new value of the EngineConfig fields that will be updated
|
2353
|
+
# according to the update_mask.
|
2354
|
+
# @param request_id [::String]
|
2355
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2356
|
+
# request ID so that if you must retry your request, the server will know to
|
2357
|
+
# ignore the request if it has already been completed. The server will
|
2358
|
+
# guarantee that for at least 60 minutes since the first request.
|
2359
|
+
#
|
2360
|
+
# For example, consider a situation where you make an initial request and the
|
2361
|
+
# request times out. If you make the request again with the same request
|
2362
|
+
# ID, the server can check if original operation with the same request ID
|
2363
|
+
# was received, and if so, will ignore the second request. This prevents
|
2364
|
+
# clients from accidentally creating duplicate commitments.
|
2365
|
+
#
|
2366
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2367
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2368
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2369
|
+
# @yieldparam result [::Gapic::Operation]
|
2370
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2371
|
+
#
|
2372
|
+
# @return [::Gapic::Operation]
|
2373
|
+
#
|
2374
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2375
|
+
#
|
2376
|
+
# @example Basic example
|
2377
|
+
# require "google/cloud/financial_services/v1"
|
2378
|
+
#
|
2379
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2380
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2381
|
+
#
|
2382
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2383
|
+
# request = Google::Cloud::FinancialServices::V1::UpdateEngineConfigRequest.new
|
2384
|
+
#
|
2385
|
+
# # Call the update_engine_config method.
|
2386
|
+
# result = client.update_engine_config request
|
2387
|
+
#
|
2388
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2389
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2390
|
+
# # Here is how to wait for a response.
|
2391
|
+
# result.wait_until_done! timeout: 60
|
2392
|
+
# if result.response?
|
2393
|
+
# p result.response
|
2394
|
+
# else
|
2395
|
+
# puts "No response received."
|
2396
|
+
# end
|
2397
|
+
#
|
2398
|
+
def update_engine_config request, options = nil
|
2399
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2400
|
+
|
2401
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::UpdateEngineConfigRequest
|
2402
|
+
|
2403
|
+
# Converts hash and nil to an options object
|
2404
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2405
|
+
|
2406
|
+
# Customize the options with defaults
|
2407
|
+
call_metadata = @config.rpcs.update_engine_config.metadata.to_h
|
2408
|
+
|
2409
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2410
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2411
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2412
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2413
|
+
transports_version_send: [:rest]
|
2414
|
+
|
2415
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2416
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2417
|
+
|
2418
|
+
options.apply_defaults timeout: @config.rpcs.update_engine_config.timeout,
|
2419
|
+
metadata: call_metadata,
|
2420
|
+
retry_policy: @config.rpcs.update_engine_config.retry_policy
|
2421
|
+
|
2422
|
+
options.apply_defaults timeout: @config.timeout,
|
2423
|
+
metadata: @config.metadata,
|
2424
|
+
retry_policy: @config.retry_policy
|
2425
|
+
|
2426
|
+
@aml_stub.update_engine_config request, options do |result, operation|
|
2427
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2428
|
+
yield result, operation if block_given?
|
2429
|
+
throw :response, result
|
2430
|
+
end
|
2431
|
+
rescue ::Gapic::Rest::Error => e
|
2432
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2433
|
+
end
|
2434
|
+
|
2435
|
+
##
|
2436
|
+
# Export governance information for an EngineConfig resource. For
|
2437
|
+
# information on the exported fields, see
|
2438
|
+
# [AML output data
|
2439
|
+
# model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#engine-config).
|
2440
|
+
#
|
2441
|
+
# @overload export_engine_config_metadata(request, options = nil)
|
2442
|
+
# Pass arguments to `export_engine_config_metadata` via a request object, either of type
|
2443
|
+
# {::Google::Cloud::FinancialServices::V1::ExportEngineConfigMetadataRequest} or an equivalent Hash.
|
2444
|
+
#
|
2445
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ExportEngineConfigMetadataRequest, ::Hash]
|
2446
|
+
# A request object representing the call parameters. Required. To specify no
|
2447
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2448
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2449
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2450
|
+
#
|
2451
|
+
# @overload export_engine_config_metadata(engine_config: nil, structured_metadata_destination: nil)
|
2452
|
+
# Pass arguments to `export_engine_config_metadata` via keyword arguments. Note that at
|
2453
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2454
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2455
|
+
#
|
2456
|
+
# @param engine_config [::String]
|
2457
|
+
# Required. The resource name of the EngineConfig.
|
2458
|
+
# @param structured_metadata_destination [::Google::Cloud::FinancialServices::V1::BigQueryDestination, ::Hash]
|
2459
|
+
# Required. BigQuery output where the metadata will be written.
|
2460
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2461
|
+
# @yieldparam result [::Gapic::Operation]
|
2462
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2463
|
+
#
|
2464
|
+
# @return [::Gapic::Operation]
|
2465
|
+
#
|
2466
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2467
|
+
#
|
2468
|
+
# @example Basic example
|
2469
|
+
# require "google/cloud/financial_services/v1"
|
2470
|
+
#
|
2471
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2472
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2473
|
+
#
|
2474
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2475
|
+
# request = Google::Cloud::FinancialServices::V1::ExportEngineConfigMetadataRequest.new
|
2476
|
+
#
|
2477
|
+
# # Call the export_engine_config_metadata method.
|
2478
|
+
# result = client.export_engine_config_metadata request
|
2479
|
+
#
|
2480
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2481
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2482
|
+
# # Here is how to wait for a response.
|
2483
|
+
# result.wait_until_done! timeout: 60
|
2484
|
+
# if result.response?
|
2485
|
+
# p result.response
|
2486
|
+
# else
|
2487
|
+
# puts "No response received."
|
2488
|
+
# end
|
2489
|
+
#
|
2490
|
+
def export_engine_config_metadata request, options = nil
|
2491
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2492
|
+
|
2493
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ExportEngineConfigMetadataRequest
|
2494
|
+
|
2495
|
+
# Converts hash and nil to an options object
|
2496
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2497
|
+
|
2498
|
+
# Customize the options with defaults
|
2499
|
+
call_metadata = @config.rpcs.export_engine_config_metadata.metadata.to_h
|
2500
|
+
|
2501
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2502
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2503
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2504
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2505
|
+
transports_version_send: [:rest]
|
2506
|
+
|
2507
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2508
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2509
|
+
|
2510
|
+
options.apply_defaults timeout: @config.rpcs.export_engine_config_metadata.timeout,
|
2511
|
+
metadata: call_metadata,
|
2512
|
+
retry_policy: @config.rpcs.export_engine_config_metadata.retry_policy
|
2513
|
+
|
2514
|
+
options.apply_defaults timeout: @config.timeout,
|
2515
|
+
metadata: @config.metadata,
|
2516
|
+
retry_policy: @config.retry_policy
|
2517
|
+
|
2518
|
+
@aml_stub.export_engine_config_metadata request, options do |result, operation|
|
2519
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2520
|
+
yield result, operation if block_given?
|
2521
|
+
throw :response, result
|
2522
|
+
end
|
2523
|
+
rescue ::Gapic::Rest::Error => e
|
2524
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2525
|
+
end
|
2526
|
+
|
2527
|
+
##
|
2528
|
+
# Deletes an engine config.
|
2529
|
+
#
|
2530
|
+
# @overload delete_engine_config(request, options = nil)
|
2531
|
+
# Pass arguments to `delete_engine_config` via a request object, either of type
|
2532
|
+
# {::Google::Cloud::FinancialServices::V1::DeleteEngineConfigRequest} or an equivalent Hash.
|
2533
|
+
#
|
2534
|
+
# @param request [::Google::Cloud::FinancialServices::V1::DeleteEngineConfigRequest, ::Hash]
|
2535
|
+
# A request object representing the call parameters. Required. To specify no
|
2536
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2537
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2538
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2539
|
+
#
|
2540
|
+
# @overload delete_engine_config(name: nil, request_id: nil)
|
2541
|
+
# Pass arguments to `delete_engine_config` via keyword arguments. Note that at
|
2542
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2543
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2544
|
+
#
|
2545
|
+
# @param name [::String]
|
2546
|
+
# Required. The resource name of the EngineConfig.
|
2547
|
+
# @param request_id [::String]
|
2548
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2549
|
+
# request ID so that if you must retry your request, the server will know to
|
2550
|
+
# ignore the request if it has already been completed. The server will
|
2551
|
+
# guarantee that for at least 60 minutes after the first request.
|
2552
|
+
#
|
2553
|
+
# For example, consider a situation where you make an initial request and the
|
2554
|
+
# request times out. If you make the request again with the same request
|
2555
|
+
# ID, the server can check if original operation with the same request ID
|
2556
|
+
# was received, and if so, will ignore the second request. This prevents
|
2557
|
+
# clients from accidentally creating duplicate commitments.
|
2558
|
+
#
|
2559
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2560
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2561
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2562
|
+
# @yieldparam result [::Gapic::Operation]
|
2563
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2564
|
+
#
|
2565
|
+
# @return [::Gapic::Operation]
|
2566
|
+
#
|
2567
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2568
|
+
#
|
2569
|
+
# @example Basic example
|
2570
|
+
# require "google/cloud/financial_services/v1"
|
2571
|
+
#
|
2572
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2573
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2574
|
+
#
|
2575
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2576
|
+
# request = Google::Cloud::FinancialServices::V1::DeleteEngineConfigRequest.new
|
2577
|
+
#
|
2578
|
+
# # Call the delete_engine_config method.
|
2579
|
+
# result = client.delete_engine_config request
|
2580
|
+
#
|
2581
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2582
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2583
|
+
# # Here is how to wait for a response.
|
2584
|
+
# result.wait_until_done! timeout: 60
|
2585
|
+
# if result.response?
|
2586
|
+
# p result.response
|
2587
|
+
# else
|
2588
|
+
# puts "No response received."
|
2589
|
+
# end
|
2590
|
+
#
|
2591
|
+
def delete_engine_config request, options = nil
|
2592
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2593
|
+
|
2594
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::DeleteEngineConfigRequest
|
2595
|
+
|
2596
|
+
# Converts hash and nil to an options object
|
2597
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2598
|
+
|
2599
|
+
# Customize the options with defaults
|
2600
|
+
call_metadata = @config.rpcs.delete_engine_config.metadata.to_h
|
2601
|
+
|
2602
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2603
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2604
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2605
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2606
|
+
transports_version_send: [:rest]
|
2607
|
+
|
2608
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2609
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2610
|
+
|
2611
|
+
options.apply_defaults timeout: @config.rpcs.delete_engine_config.timeout,
|
2612
|
+
metadata: call_metadata,
|
2613
|
+
retry_policy: @config.rpcs.delete_engine_config.retry_policy
|
2614
|
+
|
2615
|
+
options.apply_defaults timeout: @config.timeout,
|
2616
|
+
metadata: @config.metadata,
|
2617
|
+
retry_policy: @config.retry_policy
|
2618
|
+
|
2619
|
+
@aml_stub.delete_engine_config request, options do |result, operation|
|
2620
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2621
|
+
yield result, operation if block_given?
|
2622
|
+
throw :response, result
|
2623
|
+
end
|
2624
|
+
rescue ::Gapic::Rest::Error => e
|
2625
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2626
|
+
end
|
2627
|
+
|
2628
|
+
##
|
2629
|
+
# Gets a single EngineVersion.
|
2630
|
+
#
|
2631
|
+
# @overload get_engine_version(request, options = nil)
|
2632
|
+
# Pass arguments to `get_engine_version` via a request object, either of type
|
2633
|
+
# {::Google::Cloud::FinancialServices::V1::GetEngineVersionRequest} or an equivalent Hash.
|
2634
|
+
#
|
2635
|
+
# @param request [::Google::Cloud::FinancialServices::V1::GetEngineVersionRequest, ::Hash]
|
2636
|
+
# A request object representing the call parameters. Required. To specify no
|
2637
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2638
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2639
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2640
|
+
#
|
2641
|
+
# @overload get_engine_version(name: nil)
|
2642
|
+
# Pass arguments to `get_engine_version` via keyword arguments. Note that at
|
2643
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2644
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2645
|
+
#
|
2646
|
+
# @param name [::String]
|
2647
|
+
# Required. The resource name of the EngineVersion
|
2648
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2649
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::EngineVersion]
|
2650
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2651
|
+
#
|
2652
|
+
# @return [::Google::Cloud::FinancialServices::V1::EngineVersion]
|
2653
|
+
#
|
2654
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2655
|
+
#
|
2656
|
+
# @example Basic example
|
2657
|
+
# require "google/cloud/financial_services/v1"
|
2658
|
+
#
|
2659
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2660
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2661
|
+
#
|
2662
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2663
|
+
# request = Google::Cloud::FinancialServices::V1::GetEngineVersionRequest.new
|
2664
|
+
#
|
2665
|
+
# # Call the get_engine_version method.
|
2666
|
+
# result = client.get_engine_version request
|
2667
|
+
#
|
2668
|
+
# # The returned object is of type Google::Cloud::FinancialServices::V1::EngineVersion.
|
2669
|
+
# p result
|
2670
|
+
#
|
2671
|
+
def get_engine_version request, options = nil
|
2672
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2673
|
+
|
2674
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::GetEngineVersionRequest
|
2675
|
+
|
2676
|
+
# Converts hash and nil to an options object
|
2677
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2678
|
+
|
2679
|
+
# Customize the options with defaults
|
2680
|
+
call_metadata = @config.rpcs.get_engine_version.metadata.to_h
|
2681
|
+
|
2682
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2683
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2684
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2685
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2686
|
+
transports_version_send: [:rest]
|
2687
|
+
|
2688
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2689
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2690
|
+
|
2691
|
+
options.apply_defaults timeout: @config.rpcs.get_engine_version.timeout,
|
2692
|
+
metadata: call_metadata,
|
2693
|
+
retry_policy: @config.rpcs.get_engine_version.retry_policy
|
2694
|
+
|
2695
|
+
options.apply_defaults timeout: @config.timeout,
|
2696
|
+
metadata: @config.metadata,
|
2697
|
+
retry_policy: @config.retry_policy
|
2698
|
+
|
2699
|
+
@aml_stub.get_engine_version request, options do |result, operation|
|
2700
|
+
yield result, operation if block_given?
|
2701
|
+
end
|
2702
|
+
rescue ::Gapic::Rest::Error => e
|
2703
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2704
|
+
end
|
2705
|
+
|
2706
|
+
##
|
2707
|
+
# Lists EngineVersions for given location.
|
2708
|
+
#
|
2709
|
+
# @overload list_engine_versions(request, options = nil)
|
2710
|
+
# Pass arguments to `list_engine_versions` via a request object, either of type
|
2711
|
+
# {::Google::Cloud::FinancialServices::V1::ListEngineVersionsRequest} or an equivalent Hash.
|
2712
|
+
#
|
2713
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ListEngineVersionsRequest, ::Hash]
|
2714
|
+
# A request object representing the call parameters. Required. To specify no
|
2715
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2716
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2717
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2718
|
+
#
|
2719
|
+
# @overload list_engine_versions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
2720
|
+
# Pass arguments to `list_engine_versions` via keyword arguments. Note that at
|
2721
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2722
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2723
|
+
#
|
2724
|
+
# @param parent [::String]
|
2725
|
+
# Required. The parent of the EngineVersion is the Instance.
|
2726
|
+
# @param page_size [::Integer]
|
2727
|
+
# Optional. The number of resources to be included in the response. The
|
2728
|
+
# response contains a next_page_token, which can be used to retrieve the next
|
2729
|
+
# page of resources.
|
2730
|
+
# @param page_token [::String]
|
2731
|
+
# Optional. In case of paginated results, this is the token that was returned
|
2732
|
+
# in the previous ListEngineVersionsResponse. It should be copied here to
|
2733
|
+
# retrieve the next page of resources. Empty will give the first page of
|
2734
|
+
# ListEngineVersionsRequest, and the last page will return an empty
|
2735
|
+
# page_token.
|
2736
|
+
# @param filter [::String]
|
2737
|
+
# Optional. Specify a filter to narrow search results.
|
2738
|
+
# If empty or unset will default to "state!=DEPRECATED",
|
2739
|
+
# to view deprecated versions use "state:*" or any other filter.
|
2740
|
+
# @param order_by [::String]
|
2741
|
+
# Optional. Specify a field to use for ordering.
|
2742
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2743
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::EngineVersion>]
|
2744
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2745
|
+
#
|
2746
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::EngineVersion>]
|
2747
|
+
#
|
2748
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2749
|
+
#
|
2750
|
+
# @example Basic example
|
2751
|
+
# require "google/cloud/financial_services/v1"
|
2752
|
+
#
|
2753
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2754
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2755
|
+
#
|
2756
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2757
|
+
# request = Google::Cloud::FinancialServices::V1::ListEngineVersionsRequest.new
|
2758
|
+
#
|
2759
|
+
# # Call the list_engine_versions method.
|
2760
|
+
# result = client.list_engine_versions request
|
2761
|
+
#
|
2762
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2763
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2764
|
+
# result.each do |item|
|
2765
|
+
# # Each element is of type ::Google::Cloud::FinancialServices::V1::EngineVersion.
|
2766
|
+
# p item
|
2767
|
+
# end
|
2768
|
+
#
|
2769
|
+
def list_engine_versions request, options = nil
|
2770
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2771
|
+
|
2772
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ListEngineVersionsRequest
|
2773
|
+
|
2774
|
+
# Converts hash and nil to an options object
|
2775
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2776
|
+
|
2777
|
+
# Customize the options with defaults
|
2778
|
+
call_metadata = @config.rpcs.list_engine_versions.metadata.to_h
|
2779
|
+
|
2780
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2781
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2782
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2783
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2784
|
+
transports_version_send: [:rest]
|
2785
|
+
|
2786
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2787
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2788
|
+
|
2789
|
+
options.apply_defaults timeout: @config.rpcs.list_engine_versions.timeout,
|
2790
|
+
metadata: call_metadata,
|
2791
|
+
retry_policy: @config.rpcs.list_engine_versions.retry_policy
|
2792
|
+
|
2793
|
+
options.apply_defaults timeout: @config.timeout,
|
2794
|
+
metadata: @config.metadata,
|
2795
|
+
retry_policy: @config.retry_policy
|
2796
|
+
|
2797
|
+
@aml_stub.list_engine_versions request, options do |result, operation|
|
2798
|
+
result = ::Gapic::Rest::PagedEnumerable.new @aml_stub, :list_engine_versions, "engine_versions", request, result, options
|
2799
|
+
yield result, operation if block_given?
|
2800
|
+
throw :response, result
|
2801
|
+
end
|
2802
|
+
rescue ::Gapic::Rest::Error => e
|
2803
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2804
|
+
end
|
2805
|
+
|
2806
|
+
##
|
2807
|
+
# List PredictionResults.
|
2808
|
+
#
|
2809
|
+
# @overload list_prediction_results(request, options = nil)
|
2810
|
+
# Pass arguments to `list_prediction_results` via a request object, either of type
|
2811
|
+
# {::Google::Cloud::FinancialServices::V1::ListPredictionResultsRequest} or an equivalent Hash.
|
2812
|
+
#
|
2813
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ListPredictionResultsRequest, ::Hash]
|
2814
|
+
# A request object representing the call parameters. Required. To specify no
|
2815
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2816
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2817
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2818
|
+
#
|
2819
|
+
# @overload list_prediction_results(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
2820
|
+
# Pass arguments to `list_prediction_results` via keyword arguments. Note that at
|
2821
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2822
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2823
|
+
#
|
2824
|
+
# @param parent [::String]
|
2825
|
+
# Required. The parent of the PredictionResult is the Instance.
|
2826
|
+
# @param page_size [::Integer]
|
2827
|
+
# The number of resources to be included in the response. The response
|
2828
|
+
# contains a next_page_token, which can be used to retrieve the next page of
|
2829
|
+
# resources.
|
2830
|
+
# @param page_token [::String]
|
2831
|
+
# In case of paginated results, this is the token that was returned in the
|
2832
|
+
# previous ListPredictionResultsResponse. It should be copied here to
|
2833
|
+
# retrieve the next page of resources. Empty will give the first page of
|
2834
|
+
# ListPredictionResultsRequest, and the last page will return an empty
|
2835
|
+
# page_token.
|
2836
|
+
# @param filter [::String]
|
2837
|
+
# Specify a filter to narrow search results.
|
2838
|
+
# @param order_by [::String]
|
2839
|
+
# Specify a field to use for ordering.
|
2840
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2841
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::PredictionResult>]
|
2842
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2843
|
+
#
|
2844
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::PredictionResult>]
|
2845
|
+
#
|
2846
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2847
|
+
#
|
2848
|
+
# @example Basic example
|
2849
|
+
# require "google/cloud/financial_services/v1"
|
2850
|
+
#
|
2851
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2852
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2853
|
+
#
|
2854
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2855
|
+
# request = Google::Cloud::FinancialServices::V1::ListPredictionResultsRequest.new
|
2856
|
+
#
|
2857
|
+
# # Call the list_prediction_results method.
|
2858
|
+
# result = client.list_prediction_results request
|
2859
|
+
#
|
2860
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2861
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2862
|
+
# result.each do |item|
|
2863
|
+
# # Each element is of type ::Google::Cloud::FinancialServices::V1::PredictionResult.
|
2864
|
+
# p item
|
2865
|
+
# end
|
2866
|
+
#
|
2867
|
+
def list_prediction_results request, options = nil
|
2868
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2869
|
+
|
2870
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ListPredictionResultsRequest
|
2871
|
+
|
2872
|
+
# Converts hash and nil to an options object
|
2873
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2874
|
+
|
2875
|
+
# Customize the options with defaults
|
2876
|
+
call_metadata = @config.rpcs.list_prediction_results.metadata.to_h
|
2877
|
+
|
2878
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2879
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2880
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2881
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2882
|
+
transports_version_send: [:rest]
|
2883
|
+
|
2884
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2885
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2886
|
+
|
2887
|
+
options.apply_defaults timeout: @config.rpcs.list_prediction_results.timeout,
|
2888
|
+
metadata: call_metadata,
|
2889
|
+
retry_policy: @config.rpcs.list_prediction_results.retry_policy
|
2890
|
+
|
2891
|
+
options.apply_defaults timeout: @config.timeout,
|
2892
|
+
metadata: @config.metadata,
|
2893
|
+
retry_policy: @config.retry_policy
|
2894
|
+
|
2895
|
+
@aml_stub.list_prediction_results request, options do |result, operation|
|
2896
|
+
result = ::Gapic::Rest::PagedEnumerable.new @aml_stub, :list_prediction_results, "prediction_results", request, result, options
|
2897
|
+
yield result, operation if block_given?
|
2898
|
+
throw :response, result
|
2899
|
+
end
|
2900
|
+
rescue ::Gapic::Rest::Error => e
|
2901
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2902
|
+
end
|
2903
|
+
|
2904
|
+
##
|
2905
|
+
# Gets a PredictionResult.
|
2906
|
+
#
|
2907
|
+
# @overload get_prediction_result(request, options = nil)
|
2908
|
+
# Pass arguments to `get_prediction_result` via a request object, either of type
|
2909
|
+
# {::Google::Cloud::FinancialServices::V1::GetPredictionResultRequest} or an equivalent Hash.
|
2910
|
+
#
|
2911
|
+
# @param request [::Google::Cloud::FinancialServices::V1::GetPredictionResultRequest, ::Hash]
|
2912
|
+
# A request object representing the call parameters. Required. To specify no
|
2913
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2914
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2915
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2916
|
+
#
|
2917
|
+
# @overload get_prediction_result(name: nil)
|
2918
|
+
# Pass arguments to `get_prediction_result` via keyword arguments. Note that at
|
2919
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2920
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2921
|
+
#
|
2922
|
+
# @param name [::String]
|
2923
|
+
# Required. The resource name of the PredictionResult
|
2924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2925
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::PredictionResult]
|
2926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2927
|
+
#
|
2928
|
+
# @return [::Google::Cloud::FinancialServices::V1::PredictionResult]
|
2929
|
+
#
|
2930
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2931
|
+
#
|
2932
|
+
# @example Basic example
|
2933
|
+
# require "google/cloud/financial_services/v1"
|
2934
|
+
#
|
2935
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2936
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
2937
|
+
#
|
2938
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2939
|
+
# request = Google::Cloud::FinancialServices::V1::GetPredictionResultRequest.new
|
2940
|
+
#
|
2941
|
+
# # Call the get_prediction_result method.
|
2942
|
+
# result = client.get_prediction_result request
|
2943
|
+
#
|
2944
|
+
# # The returned object is of type Google::Cloud::FinancialServices::V1::PredictionResult.
|
2945
|
+
# p result
|
2946
|
+
#
|
2947
|
+
def get_prediction_result request, options = nil
|
2948
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2949
|
+
|
2950
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::GetPredictionResultRequest
|
2951
|
+
|
2952
|
+
# Converts hash and nil to an options object
|
2953
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2954
|
+
|
2955
|
+
# Customize the options with defaults
|
2956
|
+
call_metadata = @config.rpcs.get_prediction_result.metadata.to_h
|
2957
|
+
|
2958
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2959
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2960
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2961
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
2962
|
+
transports_version_send: [:rest]
|
2963
|
+
|
2964
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2965
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2966
|
+
|
2967
|
+
options.apply_defaults timeout: @config.rpcs.get_prediction_result.timeout,
|
2968
|
+
metadata: call_metadata,
|
2969
|
+
retry_policy: @config.rpcs.get_prediction_result.retry_policy
|
2970
|
+
|
2971
|
+
options.apply_defaults timeout: @config.timeout,
|
2972
|
+
metadata: @config.metadata,
|
2973
|
+
retry_policy: @config.retry_policy
|
2974
|
+
|
2975
|
+
@aml_stub.get_prediction_result request, options do |result, operation|
|
2976
|
+
yield result, operation if block_given?
|
2977
|
+
end
|
2978
|
+
rescue ::Gapic::Rest::Error => e
|
2979
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2980
|
+
end
|
2981
|
+
|
2982
|
+
##
|
2983
|
+
# Create a PredictionResult.
|
2984
|
+
#
|
2985
|
+
# @overload create_prediction_result(request, options = nil)
|
2986
|
+
# Pass arguments to `create_prediction_result` via a request object, either of type
|
2987
|
+
# {::Google::Cloud::FinancialServices::V1::CreatePredictionResultRequest} or an equivalent Hash.
|
2988
|
+
#
|
2989
|
+
# @param request [::Google::Cloud::FinancialServices::V1::CreatePredictionResultRequest, ::Hash]
|
2990
|
+
# A request object representing the call parameters. Required. To specify no
|
2991
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2992
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2993
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2994
|
+
#
|
2995
|
+
# @overload create_prediction_result(parent: nil, prediction_result_id: nil, prediction_result: nil, request_id: nil)
|
2996
|
+
# Pass arguments to `create_prediction_result` via keyword arguments. Note that at
|
2997
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2998
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2999
|
+
#
|
3000
|
+
# @param parent [::String]
|
3001
|
+
# Required. The parent of the PredictionResult is the Instance.
|
3002
|
+
# @param prediction_result_id [::String]
|
3003
|
+
# Required. The resource id of the PredictionResult
|
3004
|
+
# @param prediction_result [::Google::Cloud::FinancialServices::V1::PredictionResult, ::Hash]
|
3005
|
+
# Required. The PredictionResult that will be created.
|
3006
|
+
# @param request_id [::String]
|
3007
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
3008
|
+
# request ID so that if you must retry your request, the server will know to
|
3009
|
+
# ignore the request if it has already been completed. The server will
|
3010
|
+
# guarantee that for at least 60 minutes since the first request.
|
3011
|
+
#
|
3012
|
+
# For example, consider a situation where you make an initial request and the
|
3013
|
+
# request times out. If you make the request again with the same request
|
3014
|
+
# ID, the server can check if original operation with the same request ID
|
3015
|
+
# was received, and if so, will ignore the second request. This prevents
|
3016
|
+
# clients from accidentally creating duplicate commitments.
|
3017
|
+
#
|
3018
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3019
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3020
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3021
|
+
# @yieldparam result [::Gapic::Operation]
|
3022
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3023
|
+
#
|
3024
|
+
# @return [::Gapic::Operation]
|
3025
|
+
#
|
3026
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3027
|
+
#
|
3028
|
+
# @example Basic example
|
3029
|
+
# require "google/cloud/financial_services/v1"
|
3030
|
+
#
|
3031
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3032
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3033
|
+
#
|
3034
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3035
|
+
# request = Google::Cloud::FinancialServices::V1::CreatePredictionResultRequest.new
|
3036
|
+
#
|
3037
|
+
# # Call the create_prediction_result method.
|
3038
|
+
# result = client.create_prediction_result request
|
3039
|
+
#
|
3040
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3041
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3042
|
+
# # Here is how to wait for a response.
|
3043
|
+
# result.wait_until_done! timeout: 60
|
3044
|
+
# if result.response?
|
3045
|
+
# p result.response
|
3046
|
+
# else
|
3047
|
+
# puts "No response received."
|
3048
|
+
# end
|
3049
|
+
#
|
3050
|
+
def create_prediction_result request, options = nil
|
3051
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3052
|
+
|
3053
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::CreatePredictionResultRequest
|
3054
|
+
|
3055
|
+
# Converts hash and nil to an options object
|
3056
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3057
|
+
|
3058
|
+
# Customize the options with defaults
|
3059
|
+
call_metadata = @config.rpcs.create_prediction_result.metadata.to_h
|
3060
|
+
|
3061
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3062
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3063
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3064
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3065
|
+
transports_version_send: [:rest]
|
3066
|
+
|
3067
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3068
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3069
|
+
|
3070
|
+
options.apply_defaults timeout: @config.rpcs.create_prediction_result.timeout,
|
3071
|
+
metadata: call_metadata,
|
3072
|
+
retry_policy: @config.rpcs.create_prediction_result.retry_policy
|
3073
|
+
|
3074
|
+
options.apply_defaults timeout: @config.timeout,
|
3075
|
+
metadata: @config.metadata,
|
3076
|
+
retry_policy: @config.retry_policy
|
3077
|
+
|
3078
|
+
@aml_stub.create_prediction_result request, options do |result, operation|
|
3079
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3080
|
+
yield result, operation if block_given?
|
3081
|
+
throw :response, result
|
3082
|
+
end
|
3083
|
+
rescue ::Gapic::Rest::Error => e
|
3084
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3085
|
+
end
|
3086
|
+
|
3087
|
+
##
|
3088
|
+
# Updates the parameters of a single PredictionResult.
|
3089
|
+
#
|
3090
|
+
# @overload update_prediction_result(request, options = nil)
|
3091
|
+
# Pass arguments to `update_prediction_result` via a request object, either of type
|
3092
|
+
# {::Google::Cloud::FinancialServices::V1::UpdatePredictionResultRequest} or an equivalent Hash.
|
3093
|
+
#
|
3094
|
+
# @param request [::Google::Cloud::FinancialServices::V1::UpdatePredictionResultRequest, ::Hash]
|
3095
|
+
# A request object representing the call parameters. Required. To specify no
|
3096
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3097
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3098
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3099
|
+
#
|
3100
|
+
# @overload update_prediction_result(update_mask: nil, prediction_result: nil, request_id: nil)
|
3101
|
+
# Pass arguments to `update_prediction_result` via keyword arguments. Note that at
|
3102
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3103
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3104
|
+
#
|
3105
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3106
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
3107
|
+
# PredictionResult resource by the update.
|
3108
|
+
# The fields specified in the update_mask are relative to the resource, not
|
3109
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
3110
|
+
# user does not provide a mask then all fields will be overwritten.
|
3111
|
+
# @param prediction_result [::Google::Cloud::FinancialServices::V1::PredictionResult, ::Hash]
|
3112
|
+
# Required. The new value of the PredictionResult fields that will be updated
|
3113
|
+
# according to the update_mask.
|
3114
|
+
# @param request_id [::String]
|
3115
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
3116
|
+
# request ID so that if you must retry your request, the server will know to
|
3117
|
+
# ignore the request if it has already been completed. The server will
|
3118
|
+
# guarantee that for at least 60 minutes since the first request.
|
3119
|
+
#
|
3120
|
+
# For example, consider a situation where you make an initial request and the
|
3121
|
+
# request times out. If you make the request again with the same request
|
3122
|
+
# ID, the server can check if original operation with the same request ID
|
3123
|
+
# was received, and if so, will ignore the second request. This prevents
|
3124
|
+
# clients from accidentally creating duplicate commitments.
|
3125
|
+
#
|
3126
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3127
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3128
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3129
|
+
# @yieldparam result [::Gapic::Operation]
|
3130
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3131
|
+
#
|
3132
|
+
# @return [::Gapic::Operation]
|
3133
|
+
#
|
3134
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3135
|
+
#
|
3136
|
+
# @example Basic example
|
3137
|
+
# require "google/cloud/financial_services/v1"
|
3138
|
+
#
|
3139
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3140
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3141
|
+
#
|
3142
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3143
|
+
# request = Google::Cloud::FinancialServices::V1::UpdatePredictionResultRequest.new
|
3144
|
+
#
|
3145
|
+
# # Call the update_prediction_result method.
|
3146
|
+
# result = client.update_prediction_result request
|
3147
|
+
#
|
3148
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3149
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3150
|
+
# # Here is how to wait for a response.
|
3151
|
+
# result.wait_until_done! timeout: 60
|
3152
|
+
# if result.response?
|
3153
|
+
# p result.response
|
3154
|
+
# else
|
3155
|
+
# puts "No response received."
|
3156
|
+
# end
|
3157
|
+
#
|
3158
|
+
def update_prediction_result request, options = nil
|
3159
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3160
|
+
|
3161
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::UpdatePredictionResultRequest
|
3162
|
+
|
3163
|
+
# Converts hash and nil to an options object
|
3164
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3165
|
+
|
3166
|
+
# Customize the options with defaults
|
3167
|
+
call_metadata = @config.rpcs.update_prediction_result.metadata.to_h
|
3168
|
+
|
3169
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3170
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3171
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3172
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3173
|
+
transports_version_send: [:rest]
|
3174
|
+
|
3175
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3176
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3177
|
+
|
3178
|
+
options.apply_defaults timeout: @config.rpcs.update_prediction_result.timeout,
|
3179
|
+
metadata: call_metadata,
|
3180
|
+
retry_policy: @config.rpcs.update_prediction_result.retry_policy
|
3181
|
+
|
3182
|
+
options.apply_defaults timeout: @config.timeout,
|
3183
|
+
metadata: @config.metadata,
|
3184
|
+
retry_policy: @config.retry_policy
|
3185
|
+
|
3186
|
+
@aml_stub.update_prediction_result request, options do |result, operation|
|
3187
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3188
|
+
yield result, operation if block_given?
|
3189
|
+
throw :response, result
|
3190
|
+
end
|
3191
|
+
rescue ::Gapic::Rest::Error => e
|
3192
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3193
|
+
end
|
3194
|
+
|
3195
|
+
##
|
3196
|
+
# Export governance information for a PredictionResult resource. For
|
3197
|
+
# information on the exported fields, see
|
3198
|
+
# [AML output data
|
3199
|
+
# model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#prediction-results).
|
3200
|
+
#
|
3201
|
+
# @overload export_prediction_result_metadata(request, options = nil)
|
3202
|
+
# Pass arguments to `export_prediction_result_metadata` via a request object, either of type
|
3203
|
+
# {::Google::Cloud::FinancialServices::V1::ExportPredictionResultMetadataRequest} or an equivalent Hash.
|
3204
|
+
#
|
3205
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ExportPredictionResultMetadataRequest, ::Hash]
|
3206
|
+
# A request object representing the call parameters. Required. To specify no
|
3207
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3208
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3209
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3210
|
+
#
|
3211
|
+
# @overload export_prediction_result_metadata(prediction_result: nil, structured_metadata_destination: nil)
|
3212
|
+
# Pass arguments to `export_prediction_result_metadata` via keyword arguments. Note that at
|
3213
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3214
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3215
|
+
#
|
3216
|
+
# @param prediction_result [::String]
|
3217
|
+
# Required. The resource name of the PredictionResult.
|
3218
|
+
# @param structured_metadata_destination [::Google::Cloud::FinancialServices::V1::BigQueryDestination, ::Hash]
|
3219
|
+
# Required. BigQuery output where the metadata will be written.
|
3220
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3221
|
+
# @yieldparam result [::Gapic::Operation]
|
3222
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3223
|
+
#
|
3224
|
+
# @return [::Gapic::Operation]
|
3225
|
+
#
|
3226
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3227
|
+
#
|
3228
|
+
# @example Basic example
|
3229
|
+
# require "google/cloud/financial_services/v1"
|
3230
|
+
#
|
3231
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3232
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3233
|
+
#
|
3234
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3235
|
+
# request = Google::Cloud::FinancialServices::V1::ExportPredictionResultMetadataRequest.new
|
3236
|
+
#
|
3237
|
+
# # Call the export_prediction_result_metadata method.
|
3238
|
+
# result = client.export_prediction_result_metadata request
|
3239
|
+
#
|
3240
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3241
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3242
|
+
# # Here is how to wait for a response.
|
3243
|
+
# result.wait_until_done! timeout: 60
|
3244
|
+
# if result.response?
|
3245
|
+
# p result.response
|
3246
|
+
# else
|
3247
|
+
# puts "No response received."
|
3248
|
+
# end
|
3249
|
+
#
|
3250
|
+
def export_prediction_result_metadata request, options = nil
|
3251
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3252
|
+
|
3253
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ExportPredictionResultMetadataRequest
|
3254
|
+
|
3255
|
+
# Converts hash and nil to an options object
|
3256
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3257
|
+
|
3258
|
+
# Customize the options with defaults
|
3259
|
+
call_metadata = @config.rpcs.export_prediction_result_metadata.metadata.to_h
|
3260
|
+
|
3261
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3262
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3263
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3264
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3265
|
+
transports_version_send: [:rest]
|
3266
|
+
|
3267
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3268
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3269
|
+
|
3270
|
+
options.apply_defaults timeout: @config.rpcs.export_prediction_result_metadata.timeout,
|
3271
|
+
metadata: call_metadata,
|
3272
|
+
retry_policy: @config.rpcs.export_prediction_result_metadata.retry_policy
|
3273
|
+
|
3274
|
+
options.apply_defaults timeout: @config.timeout,
|
3275
|
+
metadata: @config.metadata,
|
3276
|
+
retry_policy: @config.retry_policy
|
3277
|
+
|
3278
|
+
@aml_stub.export_prediction_result_metadata request, options do |result, operation|
|
3279
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3280
|
+
yield result, operation if block_given?
|
3281
|
+
throw :response, result
|
3282
|
+
end
|
3283
|
+
rescue ::Gapic::Rest::Error => e
|
3284
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3285
|
+
end
|
3286
|
+
|
3287
|
+
##
|
3288
|
+
# Deletes a PredictionResult.
|
3289
|
+
#
|
3290
|
+
# @overload delete_prediction_result(request, options = nil)
|
3291
|
+
# Pass arguments to `delete_prediction_result` via a request object, either of type
|
3292
|
+
# {::Google::Cloud::FinancialServices::V1::DeletePredictionResultRequest} or an equivalent Hash.
|
3293
|
+
#
|
3294
|
+
# @param request [::Google::Cloud::FinancialServices::V1::DeletePredictionResultRequest, ::Hash]
|
3295
|
+
# A request object representing the call parameters. Required. To specify no
|
3296
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3297
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3298
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3299
|
+
#
|
3300
|
+
# @overload delete_prediction_result(name: nil, request_id: nil)
|
3301
|
+
# Pass arguments to `delete_prediction_result` via keyword arguments. Note that at
|
3302
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3303
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3304
|
+
#
|
3305
|
+
# @param name [::String]
|
3306
|
+
# Required. The resource name of the PredictionResult.
|
3307
|
+
# @param request_id [::String]
|
3308
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
3309
|
+
# request ID so that if you must retry your request, the server will know to
|
3310
|
+
# ignore the request if it has already been completed. The server will
|
3311
|
+
# guarantee that for at least 60 minutes after the first request.
|
3312
|
+
#
|
3313
|
+
# For example, consider a situation where you make an initial request and the
|
3314
|
+
# request times out. If you make the request again with the same request
|
3315
|
+
# ID, the server can check if original operation with the same request ID
|
3316
|
+
# was received, and if so, will ignore the second request. This prevents
|
3317
|
+
# clients from accidentally creating duplicate commitments.
|
3318
|
+
#
|
3319
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3320
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3321
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3322
|
+
# @yieldparam result [::Gapic::Operation]
|
3323
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3324
|
+
#
|
3325
|
+
# @return [::Gapic::Operation]
|
3326
|
+
#
|
3327
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3328
|
+
#
|
3329
|
+
# @example Basic example
|
3330
|
+
# require "google/cloud/financial_services/v1"
|
3331
|
+
#
|
3332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3333
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3334
|
+
#
|
3335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3336
|
+
# request = Google::Cloud::FinancialServices::V1::DeletePredictionResultRequest.new
|
3337
|
+
#
|
3338
|
+
# # Call the delete_prediction_result method.
|
3339
|
+
# result = client.delete_prediction_result request
|
3340
|
+
#
|
3341
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3342
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3343
|
+
# # Here is how to wait for a response.
|
3344
|
+
# result.wait_until_done! timeout: 60
|
3345
|
+
# if result.response?
|
3346
|
+
# p result.response
|
3347
|
+
# else
|
3348
|
+
# puts "No response received."
|
3349
|
+
# end
|
3350
|
+
#
|
3351
|
+
def delete_prediction_result request, options = nil
|
3352
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3353
|
+
|
3354
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::DeletePredictionResultRequest
|
3355
|
+
|
3356
|
+
# Converts hash and nil to an options object
|
3357
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3358
|
+
|
3359
|
+
# Customize the options with defaults
|
3360
|
+
call_metadata = @config.rpcs.delete_prediction_result.metadata.to_h
|
3361
|
+
|
3362
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3363
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3364
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3365
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3366
|
+
transports_version_send: [:rest]
|
3367
|
+
|
3368
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3369
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3370
|
+
|
3371
|
+
options.apply_defaults timeout: @config.rpcs.delete_prediction_result.timeout,
|
3372
|
+
metadata: call_metadata,
|
3373
|
+
retry_policy: @config.rpcs.delete_prediction_result.retry_policy
|
3374
|
+
|
3375
|
+
options.apply_defaults timeout: @config.timeout,
|
3376
|
+
metadata: @config.metadata,
|
3377
|
+
retry_policy: @config.retry_policy
|
3378
|
+
|
3379
|
+
@aml_stub.delete_prediction_result request, options do |result, operation|
|
3380
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3381
|
+
yield result, operation if block_given?
|
3382
|
+
throw :response, result
|
3383
|
+
end
|
3384
|
+
rescue ::Gapic::Rest::Error => e
|
3385
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3386
|
+
end
|
3387
|
+
|
3388
|
+
##
|
3389
|
+
# List BacktestResults.
|
3390
|
+
#
|
3391
|
+
# @overload list_backtest_results(request, options = nil)
|
3392
|
+
# Pass arguments to `list_backtest_results` via a request object, either of type
|
3393
|
+
# {::Google::Cloud::FinancialServices::V1::ListBacktestResultsRequest} or an equivalent Hash.
|
3394
|
+
#
|
3395
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ListBacktestResultsRequest, ::Hash]
|
3396
|
+
# A request object representing the call parameters. Required. To specify no
|
3397
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3398
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3399
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3400
|
+
#
|
3401
|
+
# @overload list_backtest_results(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
3402
|
+
# Pass arguments to `list_backtest_results` via keyword arguments. Note that at
|
3403
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3404
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3405
|
+
#
|
3406
|
+
# @param parent [::String]
|
3407
|
+
# Required. The parent of the BacktestResult is the Instance.
|
3408
|
+
# @param page_size [::Integer]
|
3409
|
+
# The number of resources to be included in the response. The response
|
3410
|
+
# contains a next_page_token, which can be used to retrieve the next page of
|
3411
|
+
# resources.
|
3412
|
+
# @param page_token [::String]
|
3413
|
+
# In case of paginated results, this is the token that was returned in the
|
3414
|
+
# previous ListBacktestResultsResponse. It should be copied here to
|
3415
|
+
# retrieve the next page of resources. Empty will give the first page of
|
3416
|
+
# ListBacktestResultsRequest, and the last page will return an empty
|
3417
|
+
# page_token.
|
3418
|
+
# @param filter [::String]
|
3419
|
+
# Specify a filter to narrow search results.
|
3420
|
+
# @param order_by [::String]
|
3421
|
+
# Specify a field to use for ordering.
|
3422
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3423
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::BacktestResult>]
|
3424
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3425
|
+
#
|
3426
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::FinancialServices::V1::BacktestResult>]
|
3427
|
+
#
|
3428
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3429
|
+
#
|
3430
|
+
# @example Basic example
|
3431
|
+
# require "google/cloud/financial_services/v1"
|
3432
|
+
#
|
3433
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3434
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3435
|
+
#
|
3436
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3437
|
+
# request = Google::Cloud::FinancialServices::V1::ListBacktestResultsRequest.new
|
3438
|
+
#
|
3439
|
+
# # Call the list_backtest_results method.
|
3440
|
+
# result = client.list_backtest_results request
|
3441
|
+
#
|
3442
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3443
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3444
|
+
# result.each do |item|
|
3445
|
+
# # Each element is of type ::Google::Cloud::FinancialServices::V1::BacktestResult.
|
3446
|
+
# p item
|
3447
|
+
# end
|
3448
|
+
#
|
3449
|
+
def list_backtest_results request, options = nil
|
3450
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3451
|
+
|
3452
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ListBacktestResultsRequest
|
3453
|
+
|
3454
|
+
# Converts hash and nil to an options object
|
3455
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3456
|
+
|
3457
|
+
# Customize the options with defaults
|
3458
|
+
call_metadata = @config.rpcs.list_backtest_results.metadata.to_h
|
3459
|
+
|
3460
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3461
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3462
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3463
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3464
|
+
transports_version_send: [:rest]
|
3465
|
+
|
3466
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3467
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3468
|
+
|
3469
|
+
options.apply_defaults timeout: @config.rpcs.list_backtest_results.timeout,
|
3470
|
+
metadata: call_metadata,
|
3471
|
+
retry_policy: @config.rpcs.list_backtest_results.retry_policy
|
3472
|
+
|
3473
|
+
options.apply_defaults timeout: @config.timeout,
|
3474
|
+
metadata: @config.metadata,
|
3475
|
+
retry_policy: @config.retry_policy
|
3476
|
+
|
3477
|
+
@aml_stub.list_backtest_results request, options do |result, operation|
|
3478
|
+
result = ::Gapic::Rest::PagedEnumerable.new @aml_stub, :list_backtest_results, "backtest_results", request, result, options
|
3479
|
+
yield result, operation if block_given?
|
3480
|
+
throw :response, result
|
3481
|
+
end
|
3482
|
+
rescue ::Gapic::Rest::Error => e
|
3483
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3484
|
+
end
|
3485
|
+
|
3486
|
+
##
|
3487
|
+
# Gets a BacktestResult.
|
3488
|
+
#
|
3489
|
+
# @overload get_backtest_result(request, options = nil)
|
3490
|
+
# Pass arguments to `get_backtest_result` via a request object, either of type
|
3491
|
+
# {::Google::Cloud::FinancialServices::V1::GetBacktestResultRequest} or an equivalent Hash.
|
3492
|
+
#
|
3493
|
+
# @param request [::Google::Cloud::FinancialServices::V1::GetBacktestResultRequest, ::Hash]
|
3494
|
+
# A request object representing the call parameters. Required. To specify no
|
3495
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3496
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3497
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3498
|
+
#
|
3499
|
+
# @overload get_backtest_result(name: nil)
|
3500
|
+
# Pass arguments to `get_backtest_result` via keyword arguments. Note that at
|
3501
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3502
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3503
|
+
#
|
3504
|
+
# @param name [::String]
|
3505
|
+
# Required. The resource name of the BacktestResult
|
3506
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3507
|
+
# @yieldparam result [::Google::Cloud::FinancialServices::V1::BacktestResult]
|
3508
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3509
|
+
#
|
3510
|
+
# @return [::Google::Cloud::FinancialServices::V1::BacktestResult]
|
3511
|
+
#
|
3512
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3513
|
+
#
|
3514
|
+
# @example Basic example
|
3515
|
+
# require "google/cloud/financial_services/v1"
|
3516
|
+
#
|
3517
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3518
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3519
|
+
#
|
3520
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3521
|
+
# request = Google::Cloud::FinancialServices::V1::GetBacktestResultRequest.new
|
3522
|
+
#
|
3523
|
+
# # Call the get_backtest_result method.
|
3524
|
+
# result = client.get_backtest_result request
|
3525
|
+
#
|
3526
|
+
# # The returned object is of type Google::Cloud::FinancialServices::V1::BacktestResult.
|
3527
|
+
# p result
|
3528
|
+
#
|
3529
|
+
def get_backtest_result request, options = nil
|
3530
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3531
|
+
|
3532
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::GetBacktestResultRequest
|
3533
|
+
|
3534
|
+
# Converts hash and nil to an options object
|
3535
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3536
|
+
|
3537
|
+
# Customize the options with defaults
|
3538
|
+
call_metadata = @config.rpcs.get_backtest_result.metadata.to_h
|
3539
|
+
|
3540
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3541
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3542
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3543
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3544
|
+
transports_version_send: [:rest]
|
3545
|
+
|
3546
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3547
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3548
|
+
|
3549
|
+
options.apply_defaults timeout: @config.rpcs.get_backtest_result.timeout,
|
3550
|
+
metadata: call_metadata,
|
3551
|
+
retry_policy: @config.rpcs.get_backtest_result.retry_policy
|
3552
|
+
|
3553
|
+
options.apply_defaults timeout: @config.timeout,
|
3554
|
+
metadata: @config.metadata,
|
3555
|
+
retry_policy: @config.retry_policy
|
3556
|
+
|
3557
|
+
@aml_stub.get_backtest_result request, options do |result, operation|
|
3558
|
+
yield result, operation if block_given?
|
3559
|
+
end
|
3560
|
+
rescue ::Gapic::Rest::Error => e
|
3561
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3562
|
+
end
|
3563
|
+
|
3564
|
+
##
|
3565
|
+
# Create a BacktestResult.
|
3566
|
+
#
|
3567
|
+
# @overload create_backtest_result(request, options = nil)
|
3568
|
+
# Pass arguments to `create_backtest_result` via a request object, either of type
|
3569
|
+
# {::Google::Cloud::FinancialServices::V1::CreateBacktestResultRequest} or an equivalent Hash.
|
3570
|
+
#
|
3571
|
+
# @param request [::Google::Cloud::FinancialServices::V1::CreateBacktestResultRequest, ::Hash]
|
3572
|
+
# A request object representing the call parameters. Required. To specify no
|
3573
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3574
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3575
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3576
|
+
#
|
3577
|
+
# @overload create_backtest_result(parent: nil, backtest_result_id: nil, backtest_result: nil, request_id: nil)
|
3578
|
+
# Pass arguments to `create_backtest_result` via keyword arguments. Note that at
|
3579
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3580
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3581
|
+
#
|
3582
|
+
# @param parent [::String]
|
3583
|
+
# Required. The parent of the BacktestResult is the Instance.
|
3584
|
+
# @param backtest_result_id [::String]
|
3585
|
+
# Required. The resource id of the BacktestResult
|
3586
|
+
# @param backtest_result [::Google::Cloud::FinancialServices::V1::BacktestResult, ::Hash]
|
3587
|
+
# Required. The BacktestResult that will be created.
|
3588
|
+
# @param request_id [::String]
|
3589
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
3590
|
+
# request ID so that if you must retry your request, the server will know to
|
3591
|
+
# ignore the request if it has already been completed. The server will
|
3592
|
+
# guarantee that for at least 60 minutes since the first request.
|
3593
|
+
#
|
3594
|
+
# For example, consider a situation where you make an initial request and the
|
3595
|
+
# request times out. If you make the request again with the same request
|
3596
|
+
# ID, the server can check if original operation with the same request ID
|
3597
|
+
# was received, and if so, will ignore the second request. This prevents
|
3598
|
+
# clients from accidentally creating duplicate commitments.
|
3599
|
+
#
|
3600
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3601
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3602
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3603
|
+
# @yieldparam result [::Gapic::Operation]
|
3604
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3605
|
+
#
|
3606
|
+
# @return [::Gapic::Operation]
|
3607
|
+
#
|
3608
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3609
|
+
#
|
3610
|
+
# @example Basic example
|
3611
|
+
# require "google/cloud/financial_services/v1"
|
3612
|
+
#
|
3613
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3614
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3615
|
+
#
|
3616
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3617
|
+
# request = Google::Cloud::FinancialServices::V1::CreateBacktestResultRequest.new
|
3618
|
+
#
|
3619
|
+
# # Call the create_backtest_result method.
|
3620
|
+
# result = client.create_backtest_result request
|
3621
|
+
#
|
3622
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3623
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3624
|
+
# # Here is how to wait for a response.
|
3625
|
+
# result.wait_until_done! timeout: 60
|
3626
|
+
# if result.response?
|
3627
|
+
# p result.response
|
3628
|
+
# else
|
3629
|
+
# puts "No response received."
|
3630
|
+
# end
|
3631
|
+
#
|
3632
|
+
def create_backtest_result request, options = nil
|
3633
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3634
|
+
|
3635
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::CreateBacktestResultRequest
|
3636
|
+
|
3637
|
+
# Converts hash and nil to an options object
|
3638
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3639
|
+
|
3640
|
+
# Customize the options with defaults
|
3641
|
+
call_metadata = @config.rpcs.create_backtest_result.metadata.to_h
|
3642
|
+
|
3643
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3644
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3645
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3646
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3647
|
+
transports_version_send: [:rest]
|
3648
|
+
|
3649
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3650
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3651
|
+
|
3652
|
+
options.apply_defaults timeout: @config.rpcs.create_backtest_result.timeout,
|
3653
|
+
metadata: call_metadata,
|
3654
|
+
retry_policy: @config.rpcs.create_backtest_result.retry_policy
|
3655
|
+
|
3656
|
+
options.apply_defaults timeout: @config.timeout,
|
3657
|
+
metadata: @config.metadata,
|
3658
|
+
retry_policy: @config.retry_policy
|
3659
|
+
|
3660
|
+
@aml_stub.create_backtest_result request, options do |result, operation|
|
3661
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3662
|
+
yield result, operation if block_given?
|
3663
|
+
throw :response, result
|
3664
|
+
end
|
3665
|
+
rescue ::Gapic::Rest::Error => e
|
3666
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3667
|
+
end
|
3668
|
+
|
3669
|
+
##
|
3670
|
+
# Updates the parameters of a single BacktestResult.
|
3671
|
+
#
|
3672
|
+
# @overload update_backtest_result(request, options = nil)
|
3673
|
+
# Pass arguments to `update_backtest_result` via a request object, either of type
|
3674
|
+
# {::Google::Cloud::FinancialServices::V1::UpdateBacktestResultRequest} or an equivalent Hash.
|
3675
|
+
#
|
3676
|
+
# @param request [::Google::Cloud::FinancialServices::V1::UpdateBacktestResultRequest, ::Hash]
|
3677
|
+
# A request object representing the call parameters. Required. To specify no
|
3678
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3679
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3680
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3681
|
+
#
|
3682
|
+
# @overload update_backtest_result(update_mask: nil, backtest_result: nil, request_id: nil)
|
3683
|
+
# Pass arguments to `update_backtest_result` via keyword arguments. Note that at
|
3684
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3685
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3686
|
+
#
|
3687
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3688
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
3689
|
+
# BacktestResult resource by the update.
|
3690
|
+
# The fields specified in the update_mask are relative to the resource, not
|
3691
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
3692
|
+
# user does not provide a mask then all fields will be overwritten.
|
3693
|
+
# @param backtest_result [::Google::Cloud::FinancialServices::V1::BacktestResult, ::Hash]
|
3694
|
+
# Required. The new value of the BacktestResult fields that will be updated
|
3695
|
+
# according to the update_mask.
|
3696
|
+
# @param request_id [::String]
|
3697
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
3698
|
+
# request ID so that if you must retry your request, the server will know to
|
3699
|
+
# ignore the request if it has already been completed. The server will
|
3700
|
+
# guarantee that for at least 60 minutes since the first request.
|
3701
|
+
#
|
3702
|
+
# For example, consider a situation where you make an initial request and the
|
3703
|
+
# request times out. If you make the request again with the same request
|
3704
|
+
# ID, the server can check if original operation with the same request ID
|
3705
|
+
# was received, and if so, will ignore the second request. This prevents
|
3706
|
+
# clients from accidentally creating duplicate commitments.
|
3707
|
+
#
|
3708
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3709
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3710
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3711
|
+
# @yieldparam result [::Gapic::Operation]
|
3712
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3713
|
+
#
|
3714
|
+
# @return [::Gapic::Operation]
|
3715
|
+
#
|
3716
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3717
|
+
#
|
3718
|
+
# @example Basic example
|
3719
|
+
# require "google/cloud/financial_services/v1"
|
3720
|
+
#
|
3721
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3722
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3723
|
+
#
|
3724
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3725
|
+
# request = Google::Cloud::FinancialServices::V1::UpdateBacktestResultRequest.new
|
3726
|
+
#
|
3727
|
+
# # Call the update_backtest_result method.
|
3728
|
+
# result = client.update_backtest_result request
|
3729
|
+
#
|
3730
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3731
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3732
|
+
# # Here is how to wait for a response.
|
3733
|
+
# result.wait_until_done! timeout: 60
|
3734
|
+
# if result.response?
|
3735
|
+
# p result.response
|
3736
|
+
# else
|
3737
|
+
# puts "No response received."
|
3738
|
+
# end
|
3739
|
+
#
|
3740
|
+
def update_backtest_result request, options = nil
|
3741
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3742
|
+
|
3743
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::UpdateBacktestResultRequest
|
3744
|
+
|
3745
|
+
# Converts hash and nil to an options object
|
3746
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3747
|
+
|
3748
|
+
# Customize the options with defaults
|
3749
|
+
call_metadata = @config.rpcs.update_backtest_result.metadata.to_h
|
3750
|
+
|
3751
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3752
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3753
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3754
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3755
|
+
transports_version_send: [:rest]
|
3756
|
+
|
3757
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3758
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3759
|
+
|
3760
|
+
options.apply_defaults timeout: @config.rpcs.update_backtest_result.timeout,
|
3761
|
+
metadata: call_metadata,
|
3762
|
+
retry_policy: @config.rpcs.update_backtest_result.retry_policy
|
3763
|
+
|
3764
|
+
options.apply_defaults timeout: @config.timeout,
|
3765
|
+
metadata: @config.metadata,
|
3766
|
+
retry_policy: @config.retry_policy
|
3767
|
+
|
3768
|
+
@aml_stub.update_backtest_result request, options do |result, operation|
|
3769
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3770
|
+
yield result, operation if block_given?
|
3771
|
+
throw :response, result
|
3772
|
+
end
|
3773
|
+
rescue ::Gapic::Rest::Error => e
|
3774
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3775
|
+
end
|
3776
|
+
|
3777
|
+
##
|
3778
|
+
# Export governance information for a BacktestResult resource. For
|
3779
|
+
# information on the exported fields, see
|
3780
|
+
# [AML output data
|
3781
|
+
# model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#backtest-results).
|
3782
|
+
#
|
3783
|
+
# @overload export_backtest_result_metadata(request, options = nil)
|
3784
|
+
# Pass arguments to `export_backtest_result_metadata` via a request object, either of type
|
3785
|
+
# {::Google::Cloud::FinancialServices::V1::ExportBacktestResultMetadataRequest} or an equivalent Hash.
|
3786
|
+
#
|
3787
|
+
# @param request [::Google::Cloud::FinancialServices::V1::ExportBacktestResultMetadataRequest, ::Hash]
|
3788
|
+
# A request object representing the call parameters. Required. To specify no
|
3789
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3790
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3791
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3792
|
+
#
|
3793
|
+
# @overload export_backtest_result_metadata(backtest_result: nil, structured_metadata_destination: nil)
|
3794
|
+
# Pass arguments to `export_backtest_result_metadata` via keyword arguments. Note that at
|
3795
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3796
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3797
|
+
#
|
3798
|
+
# @param backtest_result [::String]
|
3799
|
+
# Required. The resource name of the BacktestResult.
|
3800
|
+
# @param structured_metadata_destination [::Google::Cloud::FinancialServices::V1::BigQueryDestination, ::Hash]
|
3801
|
+
# Required. BigQuery output where the metadata will be written.
|
3802
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3803
|
+
# @yieldparam result [::Gapic::Operation]
|
3804
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3805
|
+
#
|
3806
|
+
# @return [::Gapic::Operation]
|
3807
|
+
#
|
3808
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3809
|
+
#
|
3810
|
+
# @example Basic example
|
3811
|
+
# require "google/cloud/financial_services/v1"
|
3812
|
+
#
|
3813
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3814
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3815
|
+
#
|
3816
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3817
|
+
# request = Google::Cloud::FinancialServices::V1::ExportBacktestResultMetadataRequest.new
|
3818
|
+
#
|
3819
|
+
# # Call the export_backtest_result_metadata method.
|
3820
|
+
# result = client.export_backtest_result_metadata request
|
3821
|
+
#
|
3822
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3823
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3824
|
+
# # Here is how to wait for a response.
|
3825
|
+
# result.wait_until_done! timeout: 60
|
3826
|
+
# if result.response?
|
3827
|
+
# p result.response
|
3828
|
+
# else
|
3829
|
+
# puts "No response received."
|
3830
|
+
# end
|
3831
|
+
#
|
3832
|
+
def export_backtest_result_metadata request, options = nil
|
3833
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3834
|
+
|
3835
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::ExportBacktestResultMetadataRequest
|
3836
|
+
|
3837
|
+
# Converts hash and nil to an options object
|
3838
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3839
|
+
|
3840
|
+
# Customize the options with defaults
|
3841
|
+
call_metadata = @config.rpcs.export_backtest_result_metadata.metadata.to_h
|
3842
|
+
|
3843
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3844
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3845
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3846
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3847
|
+
transports_version_send: [:rest]
|
3848
|
+
|
3849
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3850
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3851
|
+
|
3852
|
+
options.apply_defaults timeout: @config.rpcs.export_backtest_result_metadata.timeout,
|
3853
|
+
metadata: call_metadata,
|
3854
|
+
retry_policy: @config.rpcs.export_backtest_result_metadata.retry_policy
|
3855
|
+
|
3856
|
+
options.apply_defaults timeout: @config.timeout,
|
3857
|
+
metadata: @config.metadata,
|
3858
|
+
retry_policy: @config.retry_policy
|
3859
|
+
|
3860
|
+
@aml_stub.export_backtest_result_metadata request, options do |result, operation|
|
3861
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3862
|
+
yield result, operation if block_given?
|
3863
|
+
throw :response, result
|
3864
|
+
end
|
3865
|
+
rescue ::Gapic::Rest::Error => e
|
3866
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3867
|
+
end
|
3868
|
+
|
3869
|
+
##
|
3870
|
+
# Deletes a BacktestResult.
|
3871
|
+
#
|
3872
|
+
# @overload delete_backtest_result(request, options = nil)
|
3873
|
+
# Pass arguments to `delete_backtest_result` via a request object, either of type
|
3874
|
+
# {::Google::Cloud::FinancialServices::V1::DeleteBacktestResultRequest} or an equivalent Hash.
|
3875
|
+
#
|
3876
|
+
# @param request [::Google::Cloud::FinancialServices::V1::DeleteBacktestResultRequest, ::Hash]
|
3877
|
+
# A request object representing the call parameters. Required. To specify no
|
3878
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3879
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3880
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3881
|
+
#
|
3882
|
+
# @overload delete_backtest_result(name: nil, request_id: nil)
|
3883
|
+
# Pass arguments to `delete_backtest_result` via keyword arguments. Note that at
|
3884
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3885
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3886
|
+
#
|
3887
|
+
# @param name [::String]
|
3888
|
+
# Required. The resource name of the BacktestResult.
|
3889
|
+
# @param request_id [::String]
|
3890
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
3891
|
+
# request ID so that if you must retry your request, the server will know to
|
3892
|
+
# ignore the request if it has already been completed. The server will
|
3893
|
+
# guarantee that for at least 60 minutes after the first request.
|
3894
|
+
#
|
3895
|
+
# For example, consider a situation where you make an initial request and the
|
3896
|
+
# request times out. If you make the request again with the same request
|
3897
|
+
# ID, the server can check if original operation with the same request ID
|
3898
|
+
# was received, and if so, will ignore the second request. This prevents
|
3899
|
+
# clients from accidentally creating duplicate commitments.
|
3900
|
+
#
|
3901
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3902
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3903
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3904
|
+
# @yieldparam result [::Gapic::Operation]
|
3905
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3906
|
+
#
|
3907
|
+
# @return [::Gapic::Operation]
|
3908
|
+
#
|
3909
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3910
|
+
#
|
3911
|
+
# @example Basic example
|
3912
|
+
# require "google/cloud/financial_services/v1"
|
3913
|
+
#
|
3914
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3915
|
+
# client = Google::Cloud::FinancialServices::V1::AML::Rest::Client.new
|
3916
|
+
#
|
3917
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3918
|
+
# request = Google::Cloud::FinancialServices::V1::DeleteBacktestResultRequest.new
|
3919
|
+
#
|
3920
|
+
# # Call the delete_backtest_result method.
|
3921
|
+
# result = client.delete_backtest_result request
|
3922
|
+
#
|
3923
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3924
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3925
|
+
# # Here is how to wait for a response.
|
3926
|
+
# result.wait_until_done! timeout: 60
|
3927
|
+
# if result.response?
|
3928
|
+
# p result.response
|
3929
|
+
# else
|
3930
|
+
# puts "No response received."
|
3931
|
+
# end
|
3932
|
+
#
|
3933
|
+
def delete_backtest_result request, options = nil
|
3934
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3935
|
+
|
3936
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::FinancialServices::V1::DeleteBacktestResultRequest
|
3937
|
+
|
3938
|
+
# Converts hash and nil to an options object
|
3939
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3940
|
+
|
3941
|
+
# Customize the options with defaults
|
3942
|
+
call_metadata = @config.rpcs.delete_backtest_result.metadata.to_h
|
3943
|
+
|
3944
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3945
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3946
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3947
|
+
gapic_version: ::Google::Cloud::FinancialServices::V1::VERSION,
|
3948
|
+
transports_version_send: [:rest]
|
3949
|
+
|
3950
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3951
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3952
|
+
|
3953
|
+
options.apply_defaults timeout: @config.rpcs.delete_backtest_result.timeout,
|
3954
|
+
metadata: call_metadata,
|
3955
|
+
retry_policy: @config.rpcs.delete_backtest_result.retry_policy
|
3956
|
+
|
3957
|
+
options.apply_defaults timeout: @config.timeout,
|
3958
|
+
metadata: @config.metadata,
|
3959
|
+
retry_policy: @config.retry_policy
|
3960
|
+
|
3961
|
+
@aml_stub.delete_backtest_result request, options do |result, operation|
|
3962
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3963
|
+
yield result, operation if block_given?
|
3964
|
+
throw :response, result
|
3965
|
+
end
|
3966
|
+
rescue ::Gapic::Rest::Error => e
|
3967
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3968
|
+
end
|
3969
|
+
|
3970
|
+
##
|
3971
|
+
# Configuration class for the AML REST API.
|
3972
|
+
#
|
3973
|
+
# This class represents the configuration for AML REST,
|
3974
|
+
# providing control over timeouts, retry behavior, logging, transport
|
3975
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
3976
|
+
# applied individually to specific RPCs. See
|
3977
|
+
# {::Google::Cloud::FinancialServices::V1::AML::Rest::Client::Configuration::Rpcs}
|
3978
|
+
# for a list of RPCs that can be configured independently.
|
3979
|
+
#
|
3980
|
+
# Configuration can be applied globally to all clients, or to a single client
|
3981
|
+
# on construction.
|
3982
|
+
#
|
3983
|
+
# @example
|
3984
|
+
#
|
3985
|
+
# # Modify the global config, setting the timeout for
|
3986
|
+
# # list_instances to 20 seconds,
|
3987
|
+
# # and all remaining timeouts to 10 seconds.
|
3988
|
+
# ::Google::Cloud::FinancialServices::V1::AML::Rest::Client.configure do |config|
|
3989
|
+
# config.timeout = 10.0
|
3990
|
+
# config.rpcs.list_instances.timeout = 20.0
|
3991
|
+
# end
|
3992
|
+
#
|
3993
|
+
# # Apply the above configuration only to a new client.
|
3994
|
+
# client = ::Google::Cloud::FinancialServices::V1::AML::Rest::Client.new do |config|
|
3995
|
+
# config.timeout = 10.0
|
3996
|
+
# config.rpcs.list_instances.timeout = 20.0
|
3997
|
+
# end
|
3998
|
+
#
|
3999
|
+
# @!attribute [rw] endpoint
|
4000
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
4001
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
4002
|
+
# @return [::String,nil]
|
4003
|
+
# @!attribute [rw] credentials
|
4004
|
+
# Credentials to send with calls. You may provide any of the following types:
|
4005
|
+
# * (`String`) The path to a service account key file in JSON format
|
4006
|
+
# * (`Hash`) A service account key as a Hash
|
4007
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
4008
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
4009
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
4010
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
4011
|
+
# * (`nil`) indicating no credentials
|
4012
|
+
#
|
4013
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
4014
|
+
# external source for authentication to Google Cloud, you must validate it before
|
4015
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
4016
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
4017
|
+
# For more information, refer to [Validate credential configurations from external
|
4018
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
4019
|
+
# @return [::Object]
|
4020
|
+
# @!attribute [rw] scope
|
4021
|
+
# The OAuth scopes
|
4022
|
+
# @return [::Array<::String>]
|
4023
|
+
# @!attribute [rw] lib_name
|
4024
|
+
# The library name as recorded in instrumentation and logging
|
4025
|
+
# @return [::String]
|
4026
|
+
# @!attribute [rw] lib_version
|
4027
|
+
# The library version as recorded in instrumentation and logging
|
4028
|
+
# @return [::String]
|
4029
|
+
# @!attribute [rw] timeout
|
4030
|
+
# The call timeout in seconds.
|
4031
|
+
# @return [::Numeric]
|
4032
|
+
# @!attribute [rw] metadata
|
4033
|
+
# Additional headers to be sent with the call.
|
4034
|
+
# @return [::Hash{::Symbol=>::String}]
|
4035
|
+
# @!attribute [rw] retry_policy
|
4036
|
+
# The retry policy. The value is a hash with the following keys:
|
4037
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
4038
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
4039
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
4040
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
4041
|
+
# trigger a retry.
|
4042
|
+
# @return [::Hash]
|
4043
|
+
# @!attribute [rw] quota_project
|
4044
|
+
# A separate project against which to charge quota.
|
4045
|
+
# @return [::String]
|
4046
|
+
# @!attribute [rw] universe_domain
|
4047
|
+
# The universe domain within which to make requests. This determines the
|
4048
|
+
# default endpoint URL. The default value of nil uses the environment
|
4049
|
+
# universe (usually the default "googleapis.com" universe).
|
4050
|
+
# @return [::String,nil]
|
4051
|
+
# @!attribute [rw] logger
|
4052
|
+
# A custom logger to use for request/response debug logging, or the value
|
4053
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
4054
|
+
# explicitly disable logging.
|
4055
|
+
# @return [::Logger,:default,nil]
|
4056
|
+
#
|
4057
|
+
class Configuration
|
4058
|
+
extend ::Gapic::Config
|
4059
|
+
|
4060
|
+
# @private
|
4061
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
4062
|
+
DEFAULT_ENDPOINT = "financialservices.googleapis.com"
|
4063
|
+
|
4064
|
+
config_attr :endpoint, nil, ::String, nil
|
4065
|
+
config_attr :credentials, nil do |value|
|
4066
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
4067
|
+
allowed.any? { |klass| klass === value }
|
4068
|
+
end
|
4069
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
4070
|
+
config_attr :lib_name, nil, ::String, nil
|
4071
|
+
config_attr :lib_version, nil, ::String, nil
|
4072
|
+
config_attr :timeout, nil, ::Numeric, nil
|
4073
|
+
config_attr :metadata, nil, ::Hash, nil
|
4074
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4075
|
+
config_attr :quota_project, nil, ::String, nil
|
4076
|
+
config_attr :universe_domain, nil, ::String, nil
|
4077
|
+
|
4078
|
+
# @private
|
4079
|
+
# Overrides for http bindings for the RPCs of this service
|
4080
|
+
# are only used when this service is used as mixin, and only
|
4081
|
+
# by the host service.
|
4082
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
4083
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
4084
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4085
|
+
|
4086
|
+
# @private
|
4087
|
+
def initialize parent_config = nil
|
4088
|
+
@parent_config = parent_config unless parent_config.nil?
|
4089
|
+
|
4090
|
+
yield self if block_given?
|
4091
|
+
end
|
4092
|
+
|
4093
|
+
##
|
4094
|
+
# Configurations for individual RPCs
|
4095
|
+
# @return [Rpcs]
|
4096
|
+
#
|
4097
|
+
def rpcs
|
4098
|
+
@rpcs ||= begin
|
4099
|
+
parent_rpcs = nil
|
4100
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
4101
|
+
Rpcs.new parent_rpcs
|
4102
|
+
end
|
4103
|
+
end
|
4104
|
+
|
4105
|
+
##
|
4106
|
+
# Configuration RPC class for the AML API.
|
4107
|
+
#
|
4108
|
+
# Includes fields providing the configuration for each RPC in this service.
|
4109
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
4110
|
+
# the following configuration fields:
|
4111
|
+
#
|
4112
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
4113
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
4114
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
4115
|
+
# include the following keys:
|
4116
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
4117
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
4118
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
4119
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
4120
|
+
# trigger a retry.
|
4121
|
+
#
|
4122
|
+
class Rpcs
|
4123
|
+
##
|
4124
|
+
# RPC-specific configuration for `list_instances`
|
4125
|
+
# @return [::Gapic::Config::Method]
|
4126
|
+
#
|
4127
|
+
attr_reader :list_instances
|
4128
|
+
##
|
4129
|
+
# RPC-specific configuration for `get_instance`
|
4130
|
+
# @return [::Gapic::Config::Method]
|
4131
|
+
#
|
4132
|
+
attr_reader :get_instance
|
4133
|
+
##
|
4134
|
+
# RPC-specific configuration for `create_instance`
|
4135
|
+
# @return [::Gapic::Config::Method]
|
4136
|
+
#
|
4137
|
+
attr_reader :create_instance
|
4138
|
+
##
|
4139
|
+
# RPC-specific configuration for `update_instance`
|
4140
|
+
# @return [::Gapic::Config::Method]
|
4141
|
+
#
|
4142
|
+
attr_reader :update_instance
|
4143
|
+
##
|
4144
|
+
# RPC-specific configuration for `delete_instance`
|
4145
|
+
# @return [::Gapic::Config::Method]
|
4146
|
+
#
|
4147
|
+
attr_reader :delete_instance
|
4148
|
+
##
|
4149
|
+
# RPC-specific configuration for `import_registered_parties`
|
4150
|
+
# @return [::Gapic::Config::Method]
|
4151
|
+
#
|
4152
|
+
attr_reader :import_registered_parties
|
4153
|
+
##
|
4154
|
+
# RPC-specific configuration for `export_registered_parties`
|
4155
|
+
# @return [::Gapic::Config::Method]
|
4156
|
+
#
|
4157
|
+
attr_reader :export_registered_parties
|
4158
|
+
##
|
4159
|
+
# RPC-specific configuration for `list_datasets`
|
4160
|
+
# @return [::Gapic::Config::Method]
|
4161
|
+
#
|
4162
|
+
attr_reader :list_datasets
|
4163
|
+
##
|
4164
|
+
# RPC-specific configuration for `get_dataset`
|
4165
|
+
# @return [::Gapic::Config::Method]
|
4166
|
+
#
|
4167
|
+
attr_reader :get_dataset
|
4168
|
+
##
|
4169
|
+
# RPC-specific configuration for `create_dataset`
|
4170
|
+
# @return [::Gapic::Config::Method]
|
4171
|
+
#
|
4172
|
+
attr_reader :create_dataset
|
4173
|
+
##
|
4174
|
+
# RPC-specific configuration for `update_dataset`
|
4175
|
+
# @return [::Gapic::Config::Method]
|
4176
|
+
#
|
4177
|
+
attr_reader :update_dataset
|
4178
|
+
##
|
4179
|
+
# RPC-specific configuration for `delete_dataset`
|
4180
|
+
# @return [::Gapic::Config::Method]
|
4181
|
+
#
|
4182
|
+
attr_reader :delete_dataset
|
4183
|
+
##
|
4184
|
+
# RPC-specific configuration for `list_models`
|
4185
|
+
# @return [::Gapic::Config::Method]
|
4186
|
+
#
|
4187
|
+
attr_reader :list_models
|
4188
|
+
##
|
4189
|
+
# RPC-specific configuration for `get_model`
|
4190
|
+
# @return [::Gapic::Config::Method]
|
4191
|
+
#
|
4192
|
+
attr_reader :get_model
|
4193
|
+
##
|
4194
|
+
# RPC-specific configuration for `create_model`
|
4195
|
+
# @return [::Gapic::Config::Method]
|
4196
|
+
#
|
4197
|
+
attr_reader :create_model
|
4198
|
+
##
|
4199
|
+
# RPC-specific configuration for `update_model`
|
4200
|
+
# @return [::Gapic::Config::Method]
|
4201
|
+
#
|
4202
|
+
attr_reader :update_model
|
4203
|
+
##
|
4204
|
+
# RPC-specific configuration for `export_model_metadata`
|
4205
|
+
# @return [::Gapic::Config::Method]
|
4206
|
+
#
|
4207
|
+
attr_reader :export_model_metadata
|
4208
|
+
##
|
4209
|
+
# RPC-specific configuration for `delete_model`
|
4210
|
+
# @return [::Gapic::Config::Method]
|
4211
|
+
#
|
4212
|
+
attr_reader :delete_model
|
4213
|
+
##
|
4214
|
+
# RPC-specific configuration for `list_engine_configs`
|
4215
|
+
# @return [::Gapic::Config::Method]
|
4216
|
+
#
|
4217
|
+
attr_reader :list_engine_configs
|
4218
|
+
##
|
4219
|
+
# RPC-specific configuration for `get_engine_config`
|
4220
|
+
# @return [::Gapic::Config::Method]
|
4221
|
+
#
|
4222
|
+
attr_reader :get_engine_config
|
4223
|
+
##
|
4224
|
+
# RPC-specific configuration for `create_engine_config`
|
4225
|
+
# @return [::Gapic::Config::Method]
|
4226
|
+
#
|
4227
|
+
attr_reader :create_engine_config
|
4228
|
+
##
|
4229
|
+
# RPC-specific configuration for `update_engine_config`
|
4230
|
+
# @return [::Gapic::Config::Method]
|
4231
|
+
#
|
4232
|
+
attr_reader :update_engine_config
|
4233
|
+
##
|
4234
|
+
# RPC-specific configuration for `export_engine_config_metadata`
|
4235
|
+
# @return [::Gapic::Config::Method]
|
4236
|
+
#
|
4237
|
+
attr_reader :export_engine_config_metadata
|
4238
|
+
##
|
4239
|
+
# RPC-specific configuration for `delete_engine_config`
|
4240
|
+
# @return [::Gapic::Config::Method]
|
4241
|
+
#
|
4242
|
+
attr_reader :delete_engine_config
|
4243
|
+
##
|
4244
|
+
# RPC-specific configuration for `get_engine_version`
|
4245
|
+
# @return [::Gapic::Config::Method]
|
4246
|
+
#
|
4247
|
+
attr_reader :get_engine_version
|
4248
|
+
##
|
4249
|
+
# RPC-specific configuration for `list_engine_versions`
|
4250
|
+
# @return [::Gapic::Config::Method]
|
4251
|
+
#
|
4252
|
+
attr_reader :list_engine_versions
|
4253
|
+
##
|
4254
|
+
# RPC-specific configuration for `list_prediction_results`
|
4255
|
+
# @return [::Gapic::Config::Method]
|
4256
|
+
#
|
4257
|
+
attr_reader :list_prediction_results
|
4258
|
+
##
|
4259
|
+
# RPC-specific configuration for `get_prediction_result`
|
4260
|
+
# @return [::Gapic::Config::Method]
|
4261
|
+
#
|
4262
|
+
attr_reader :get_prediction_result
|
4263
|
+
##
|
4264
|
+
# RPC-specific configuration for `create_prediction_result`
|
4265
|
+
# @return [::Gapic::Config::Method]
|
4266
|
+
#
|
4267
|
+
attr_reader :create_prediction_result
|
4268
|
+
##
|
4269
|
+
# RPC-specific configuration for `update_prediction_result`
|
4270
|
+
# @return [::Gapic::Config::Method]
|
4271
|
+
#
|
4272
|
+
attr_reader :update_prediction_result
|
4273
|
+
##
|
4274
|
+
# RPC-specific configuration for `export_prediction_result_metadata`
|
4275
|
+
# @return [::Gapic::Config::Method]
|
4276
|
+
#
|
4277
|
+
attr_reader :export_prediction_result_metadata
|
4278
|
+
##
|
4279
|
+
# RPC-specific configuration for `delete_prediction_result`
|
4280
|
+
# @return [::Gapic::Config::Method]
|
4281
|
+
#
|
4282
|
+
attr_reader :delete_prediction_result
|
4283
|
+
##
|
4284
|
+
# RPC-specific configuration for `list_backtest_results`
|
4285
|
+
# @return [::Gapic::Config::Method]
|
4286
|
+
#
|
4287
|
+
attr_reader :list_backtest_results
|
4288
|
+
##
|
4289
|
+
# RPC-specific configuration for `get_backtest_result`
|
4290
|
+
# @return [::Gapic::Config::Method]
|
4291
|
+
#
|
4292
|
+
attr_reader :get_backtest_result
|
4293
|
+
##
|
4294
|
+
# RPC-specific configuration for `create_backtest_result`
|
4295
|
+
# @return [::Gapic::Config::Method]
|
4296
|
+
#
|
4297
|
+
attr_reader :create_backtest_result
|
4298
|
+
##
|
4299
|
+
# RPC-specific configuration for `update_backtest_result`
|
4300
|
+
# @return [::Gapic::Config::Method]
|
4301
|
+
#
|
4302
|
+
attr_reader :update_backtest_result
|
4303
|
+
##
|
4304
|
+
# RPC-specific configuration for `export_backtest_result_metadata`
|
4305
|
+
# @return [::Gapic::Config::Method]
|
4306
|
+
#
|
4307
|
+
attr_reader :export_backtest_result_metadata
|
4308
|
+
##
|
4309
|
+
# RPC-specific configuration for `delete_backtest_result`
|
4310
|
+
# @return [::Gapic::Config::Method]
|
4311
|
+
#
|
4312
|
+
attr_reader :delete_backtest_result
|
4313
|
+
|
4314
|
+
# @private
|
4315
|
+
def initialize parent_rpcs = nil
|
4316
|
+
list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
|
4317
|
+
@list_instances = ::Gapic::Config::Method.new list_instances_config
|
4318
|
+
get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
|
4319
|
+
@get_instance = ::Gapic::Config::Method.new get_instance_config
|
4320
|
+
create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
|
4321
|
+
@create_instance = ::Gapic::Config::Method.new create_instance_config
|
4322
|
+
update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
|
4323
|
+
@update_instance = ::Gapic::Config::Method.new update_instance_config
|
4324
|
+
delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
|
4325
|
+
@delete_instance = ::Gapic::Config::Method.new delete_instance_config
|
4326
|
+
import_registered_parties_config = parent_rpcs.import_registered_parties if parent_rpcs.respond_to? :import_registered_parties
|
4327
|
+
@import_registered_parties = ::Gapic::Config::Method.new import_registered_parties_config
|
4328
|
+
export_registered_parties_config = parent_rpcs.export_registered_parties if parent_rpcs.respond_to? :export_registered_parties
|
4329
|
+
@export_registered_parties = ::Gapic::Config::Method.new export_registered_parties_config
|
4330
|
+
list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
|
4331
|
+
@list_datasets = ::Gapic::Config::Method.new list_datasets_config
|
4332
|
+
get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
|
4333
|
+
@get_dataset = ::Gapic::Config::Method.new get_dataset_config
|
4334
|
+
create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
|
4335
|
+
@create_dataset = ::Gapic::Config::Method.new create_dataset_config
|
4336
|
+
update_dataset_config = parent_rpcs.update_dataset if parent_rpcs.respond_to? :update_dataset
|
4337
|
+
@update_dataset = ::Gapic::Config::Method.new update_dataset_config
|
4338
|
+
delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
|
4339
|
+
@delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
|
4340
|
+
list_models_config = parent_rpcs.list_models if parent_rpcs.respond_to? :list_models
|
4341
|
+
@list_models = ::Gapic::Config::Method.new list_models_config
|
4342
|
+
get_model_config = parent_rpcs.get_model if parent_rpcs.respond_to? :get_model
|
4343
|
+
@get_model = ::Gapic::Config::Method.new get_model_config
|
4344
|
+
create_model_config = parent_rpcs.create_model if parent_rpcs.respond_to? :create_model
|
4345
|
+
@create_model = ::Gapic::Config::Method.new create_model_config
|
4346
|
+
update_model_config = parent_rpcs.update_model if parent_rpcs.respond_to? :update_model
|
4347
|
+
@update_model = ::Gapic::Config::Method.new update_model_config
|
4348
|
+
export_model_metadata_config = parent_rpcs.export_model_metadata if parent_rpcs.respond_to? :export_model_metadata
|
4349
|
+
@export_model_metadata = ::Gapic::Config::Method.new export_model_metadata_config
|
4350
|
+
delete_model_config = parent_rpcs.delete_model if parent_rpcs.respond_to? :delete_model
|
4351
|
+
@delete_model = ::Gapic::Config::Method.new delete_model_config
|
4352
|
+
list_engine_configs_config = parent_rpcs.list_engine_configs if parent_rpcs.respond_to? :list_engine_configs
|
4353
|
+
@list_engine_configs = ::Gapic::Config::Method.new list_engine_configs_config
|
4354
|
+
get_engine_config_config = parent_rpcs.get_engine_config if parent_rpcs.respond_to? :get_engine_config
|
4355
|
+
@get_engine_config = ::Gapic::Config::Method.new get_engine_config_config
|
4356
|
+
create_engine_config_config = parent_rpcs.create_engine_config if parent_rpcs.respond_to? :create_engine_config
|
4357
|
+
@create_engine_config = ::Gapic::Config::Method.new create_engine_config_config
|
4358
|
+
update_engine_config_config = parent_rpcs.update_engine_config if parent_rpcs.respond_to? :update_engine_config
|
4359
|
+
@update_engine_config = ::Gapic::Config::Method.new update_engine_config_config
|
4360
|
+
export_engine_config_metadata_config = parent_rpcs.export_engine_config_metadata if parent_rpcs.respond_to? :export_engine_config_metadata
|
4361
|
+
@export_engine_config_metadata = ::Gapic::Config::Method.new export_engine_config_metadata_config
|
4362
|
+
delete_engine_config_config = parent_rpcs.delete_engine_config if parent_rpcs.respond_to? :delete_engine_config
|
4363
|
+
@delete_engine_config = ::Gapic::Config::Method.new delete_engine_config_config
|
4364
|
+
get_engine_version_config = parent_rpcs.get_engine_version if parent_rpcs.respond_to? :get_engine_version
|
4365
|
+
@get_engine_version = ::Gapic::Config::Method.new get_engine_version_config
|
4366
|
+
list_engine_versions_config = parent_rpcs.list_engine_versions if parent_rpcs.respond_to? :list_engine_versions
|
4367
|
+
@list_engine_versions = ::Gapic::Config::Method.new list_engine_versions_config
|
4368
|
+
list_prediction_results_config = parent_rpcs.list_prediction_results if parent_rpcs.respond_to? :list_prediction_results
|
4369
|
+
@list_prediction_results = ::Gapic::Config::Method.new list_prediction_results_config
|
4370
|
+
get_prediction_result_config = parent_rpcs.get_prediction_result if parent_rpcs.respond_to? :get_prediction_result
|
4371
|
+
@get_prediction_result = ::Gapic::Config::Method.new get_prediction_result_config
|
4372
|
+
create_prediction_result_config = parent_rpcs.create_prediction_result if parent_rpcs.respond_to? :create_prediction_result
|
4373
|
+
@create_prediction_result = ::Gapic::Config::Method.new create_prediction_result_config
|
4374
|
+
update_prediction_result_config = parent_rpcs.update_prediction_result if parent_rpcs.respond_to? :update_prediction_result
|
4375
|
+
@update_prediction_result = ::Gapic::Config::Method.new update_prediction_result_config
|
4376
|
+
export_prediction_result_metadata_config = parent_rpcs.export_prediction_result_metadata if parent_rpcs.respond_to? :export_prediction_result_metadata
|
4377
|
+
@export_prediction_result_metadata = ::Gapic::Config::Method.new export_prediction_result_metadata_config
|
4378
|
+
delete_prediction_result_config = parent_rpcs.delete_prediction_result if parent_rpcs.respond_to? :delete_prediction_result
|
4379
|
+
@delete_prediction_result = ::Gapic::Config::Method.new delete_prediction_result_config
|
4380
|
+
list_backtest_results_config = parent_rpcs.list_backtest_results if parent_rpcs.respond_to? :list_backtest_results
|
4381
|
+
@list_backtest_results = ::Gapic::Config::Method.new list_backtest_results_config
|
4382
|
+
get_backtest_result_config = parent_rpcs.get_backtest_result if parent_rpcs.respond_to? :get_backtest_result
|
4383
|
+
@get_backtest_result = ::Gapic::Config::Method.new get_backtest_result_config
|
4384
|
+
create_backtest_result_config = parent_rpcs.create_backtest_result if parent_rpcs.respond_to? :create_backtest_result
|
4385
|
+
@create_backtest_result = ::Gapic::Config::Method.new create_backtest_result_config
|
4386
|
+
update_backtest_result_config = parent_rpcs.update_backtest_result if parent_rpcs.respond_to? :update_backtest_result
|
4387
|
+
@update_backtest_result = ::Gapic::Config::Method.new update_backtest_result_config
|
4388
|
+
export_backtest_result_metadata_config = parent_rpcs.export_backtest_result_metadata if parent_rpcs.respond_to? :export_backtest_result_metadata
|
4389
|
+
@export_backtest_result_metadata = ::Gapic::Config::Method.new export_backtest_result_metadata_config
|
4390
|
+
delete_backtest_result_config = parent_rpcs.delete_backtest_result if parent_rpcs.respond_to? :delete_backtest_result
|
4391
|
+
@delete_backtest_result = ::Gapic::Config::Method.new delete_backtest_result_config
|
4392
|
+
|
4393
|
+
yield self if block_given?
|
4394
|
+
end
|
4395
|
+
end
|
4396
|
+
end
|
4397
|
+
end
|
4398
|
+
end
|
4399
|
+
end
|
4400
|
+
end
|
4401
|
+
end
|
4402
|
+
end
|
4403
|
+
end
|