google-cloud-dialogflow-cx-v3 1.2.0 → 1.4.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/README.md +31 -21
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +44 -12
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +19 -15
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +44 -12
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +50 -38
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +102 -68
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +36 -3
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +36 -3
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +30 -14
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +36 -3
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +36 -3
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +30 -14
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +46 -8
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/operations.rb +19 -15
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +46 -8
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/operations.rb +50 -38
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +70 -44
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +42 -10
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +19 -15
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +42 -10
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +50 -38
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +86 -56
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +36 -8
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +36 -8
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +70 -44
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +43 -11
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +19 -15
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +43 -11
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +50 -38
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +94 -62
- data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/generators/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +46 -8
- data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +19 -15
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +46 -8
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +50 -38
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +70 -44
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +35 -7
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +35 -5
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +47 -26
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +45 -13
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +19 -15
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +45 -13
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +50 -38
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +110 -74
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +38 -8
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +19 -15
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +38 -8
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +50 -38
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +70 -44
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +36 -6
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +54 -32
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +12 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +12 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +4 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +8 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +4 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +12 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +12 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +28 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +4 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +32 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +22 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +18 -0
- data/proto_docs/google/longrunning/operations.rb +23 -14
- data/proto_docs/google/protobuf/struct.rb +12 -0
- metadata +6 -9
@@ -165,15 +165,27 @@ module Google
|
|
165
165
|
endpoint: @config.endpoint,
|
166
166
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
167
167
|
universe_domain: @config.universe_domain,
|
168
|
-
credentials: credentials
|
168
|
+
credentials: credentials,
|
169
|
+
logger: @config.logger
|
169
170
|
)
|
170
171
|
|
172
|
+
@test_cases_stub.logger(stub: true)&.info do |entry|
|
173
|
+
entry.set_system_name
|
174
|
+
entry.set_service
|
175
|
+
entry.message = "Created client for #{entry.service}"
|
176
|
+
entry.set_credentials_fields credentials
|
177
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
178
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
179
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
180
|
+
end
|
181
|
+
|
171
182
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
172
183
|
config.credentials = credentials
|
173
184
|
config.quota_project = @quota_project_id
|
174
185
|
config.endpoint = @test_cases_stub.endpoint
|
175
186
|
config.universe_domain = @test_cases_stub.universe_domain
|
176
187
|
config.bindings_override = @config.bindings_override
|
188
|
+
config.logger = @test_cases_stub.logger if config.respond_to? :logger=
|
177
189
|
end
|
178
190
|
end
|
179
191
|
|
@@ -191,6 +203,15 @@ module Google
|
|
191
203
|
#
|
192
204
|
attr_reader :location_client
|
193
205
|
|
206
|
+
##
|
207
|
+
# The logger used for request/response debug logging.
|
208
|
+
#
|
209
|
+
# @return [Logger]
|
210
|
+
#
|
211
|
+
def logger
|
212
|
+
@test_cases_stub.logger
|
213
|
+
end
|
214
|
+
|
194
215
|
# Service calls
|
195
216
|
|
196
217
|
##
|
@@ -280,7 +301,7 @@ module Google
|
|
280
301
|
@test_cases_stub.list_test_cases request, options do |result, operation|
|
281
302
|
result = ::Gapic::Rest::PagedEnumerable.new @test_cases_stub, :list_test_cases, "test_cases", request, result, options
|
282
303
|
yield result, operation if block_given?
|
283
|
-
|
304
|
+
throw :response, result
|
284
305
|
end
|
285
306
|
rescue ::Gapic::Rest::Error => e
|
286
307
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -363,7 +384,6 @@ module Google
|
|
363
384
|
|
364
385
|
@test_cases_stub.batch_delete_test_cases request, options do |result, operation|
|
365
386
|
yield result, operation if block_given?
|
366
|
-
return result
|
367
387
|
end
|
368
388
|
rescue ::Gapic::Rest::Error => e
|
369
389
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -444,7 +464,6 @@ module Google
|
|
444
464
|
|
445
465
|
@test_cases_stub.get_test_case request, options do |result, operation|
|
446
466
|
yield result, operation if block_given?
|
447
|
-
return result
|
448
467
|
end
|
449
468
|
rescue ::Gapic::Rest::Error => e
|
450
469
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -526,7 +545,6 @@ module Google
|
|
526
545
|
|
527
546
|
@test_cases_stub.create_test_case request, options do |result, operation|
|
528
547
|
yield result, operation if block_given?
|
529
|
-
return result
|
530
548
|
end
|
531
549
|
rescue ::Gapic::Rest::Error => e
|
532
550
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -610,7 +628,6 @@ module Google
|
|
610
628
|
|
611
629
|
@test_cases_stub.update_test_case request, options do |result, operation|
|
612
630
|
yield result, operation if block_given?
|
613
|
-
return result
|
614
631
|
end
|
615
632
|
rescue ::Gapic::Rest::Error => e
|
616
633
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -711,7 +728,7 @@ module Google
|
|
711
728
|
@test_cases_stub.run_test_case request, options do |result, operation|
|
712
729
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
713
730
|
yield result, operation if block_given?
|
714
|
-
|
731
|
+
throw :response, result
|
715
732
|
end
|
716
733
|
rescue ::Gapic::Rest::Error => e
|
717
734
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -814,7 +831,7 @@ module Google
|
|
814
831
|
@test_cases_stub.batch_run_test_cases request, options do |result, operation|
|
815
832
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
816
833
|
yield result, operation if block_given?
|
817
|
-
|
834
|
+
throw :response, result
|
818
835
|
end
|
819
836
|
rescue ::Gapic::Rest::Error => e
|
820
837
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -896,7 +913,6 @@ module Google
|
|
896
913
|
|
897
914
|
@test_cases_stub.calculate_coverage request, options do |result, operation|
|
898
915
|
yield result, operation if block_given?
|
899
|
-
return result
|
900
916
|
end
|
901
917
|
rescue ::Gapic::Rest::Error => e
|
902
918
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -944,8 +960,12 @@ module Google
|
|
944
960
|
# have read permissions for the object. For more information, see
|
945
961
|
# [Dialogflow access
|
946
962
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
963
|
+
#
|
964
|
+
# Note: The following fields are mutually exclusive: `gcs_uri`, `content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
947
965
|
# @param content [::String]
|
948
966
|
# Uncompressed raw byte content for test cases.
|
967
|
+
#
|
968
|
+
# Note: The following fields are mutually exclusive: `content`, `gcs_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
949
969
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
950
970
|
# @yieldparam result [::Gapic::Operation]
|
951
971
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1007,7 +1027,7 @@ module Google
|
|
1007
1027
|
@test_cases_stub.import_test_cases request, options do |result, operation|
|
1008
1028
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1009
1029
|
yield result, operation if block_given?
|
1010
|
-
|
1030
|
+
throw :response, result
|
1011
1031
|
end
|
1012
1032
|
rescue ::Gapic::Rest::Error => e
|
1013
1033
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1130,7 +1150,7 @@ module Google
|
|
1130
1150
|
@test_cases_stub.export_test_cases request, options do |result, operation|
|
1131
1151
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1132
1152
|
yield result, operation if block_given?
|
1133
|
-
|
1153
|
+
throw :response, result
|
1134
1154
|
end
|
1135
1155
|
rescue ::Gapic::Rest::Error => e
|
1136
1156
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1249,7 +1269,7 @@ module Google
|
|
1249
1269
|
@test_cases_stub.list_test_case_results request, options do |result, operation|
|
1250
1270
|
result = ::Gapic::Rest::PagedEnumerable.new @test_cases_stub, :list_test_case_results, "test_case_results", request, result, options
|
1251
1271
|
yield result, operation if block_given?
|
1252
|
-
|
1272
|
+
throw :response, result
|
1253
1273
|
end
|
1254
1274
|
rescue ::Gapic::Rest::Error => e
|
1255
1275
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1330,7 +1350,6 @@ module Google
|
|
1330
1350
|
|
1331
1351
|
@test_cases_stub.get_test_case_result request, options do |result, operation|
|
1332
1352
|
yield result, operation if block_given?
|
1333
|
-
return result
|
1334
1353
|
end
|
1335
1354
|
rescue ::Gapic::Rest::Error => e
|
1336
1355
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1378,6 +1397,13 @@ module Google
|
|
1378
1397
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1379
1398
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1380
1399
|
# * (`nil`) indicating no credentials
|
1400
|
+
#
|
1401
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
1402
|
+
# external source for authentication to Google Cloud, you must validate it before
|
1403
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
1404
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
1405
|
+
# For more information, refer to [Validate credential configurations from external
|
1406
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
1381
1407
|
# @return [::Object]
|
1382
1408
|
# @!attribute [rw] scope
|
1383
1409
|
# The OAuth scopes
|
@@ -1410,6 +1436,11 @@ module Google
|
|
1410
1436
|
# default endpoint URL. The default value of nil uses the environment
|
1411
1437
|
# universe (usually the default "googleapis.com" universe).
|
1412
1438
|
# @return [::String,nil]
|
1439
|
+
# @!attribute [rw] logger
|
1440
|
+
# A custom logger to use for request/response debug logging, or the value
|
1441
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1442
|
+
# explicitly disable logging.
|
1443
|
+
# @return [::Logger,:default,nil]
|
1413
1444
|
#
|
1414
1445
|
class Configuration
|
1415
1446
|
extend ::Gapic::Config
|
@@ -1438,6 +1469,7 @@ module Google
|
|
1438
1469
|
# by the host service.
|
1439
1470
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
1440
1471
|
config_attr :bindings_override, {}, ::Hash, nil
|
1472
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1441
1473
|
|
1442
1474
|
# @private
|
1443
1475
|
def initialize parent_config = nil
|
@@ -116,14 +116,6 @@ module Google
|
|
116
116
|
# Lists operations that match the specified filter in the request. If the
|
117
117
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
118
118
|
#
|
119
|
-
# NOTE: the `name` binding allows API services to override the binding
|
120
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
121
|
-
# override the binding, API services can add a binding such as
|
122
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
123
|
-
# For backwards compatibility, the default name includes the operations
|
124
|
-
# collection id, however overriding users must ensure the name binding
|
125
|
-
# is the parent resource, without the operations collection id.
|
126
|
-
#
|
127
119
|
# @overload list_operations(request, options = nil)
|
128
120
|
# Pass arguments to `list_operations` via a request object, either of type
|
129
121
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -205,7 +197,7 @@ module Google
|
|
205
197
|
@operations_stub.list_operations request, options do |result, operation|
|
206
198
|
result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options
|
207
199
|
yield result, operation if block_given?
|
208
|
-
|
200
|
+
throw :response, result
|
209
201
|
end
|
210
202
|
rescue ::Gapic::Rest::Error => e
|
211
203
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -294,7 +286,7 @@ module Google
|
|
294
286
|
@operations_stub.get_operation request, options do |result, operation|
|
295
287
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
296
288
|
yield result, operation if block_given?
|
297
|
-
|
289
|
+
throw :response, result
|
298
290
|
end
|
299
291
|
rescue ::Gapic::Rest::Error => e
|
300
292
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -376,7 +368,6 @@ module Google
|
|
376
368
|
|
377
369
|
@operations_stub.delete_operation request, options do |result, operation|
|
378
370
|
yield result, operation if block_given?
|
379
|
-
return result
|
380
371
|
end
|
381
372
|
rescue ::Gapic::Rest::Error => e
|
382
373
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -391,8 +382,9 @@ module Google
|
|
391
382
|
# other methods to check whether the cancellation succeeded or whether the
|
392
383
|
# operation completed despite cancellation. On successful cancellation,
|
393
384
|
# the operation is not deleted; instead, it becomes an operation with
|
394
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
395
|
-
# corresponding to
|
385
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
386
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
387
|
+
# `Code.CANCELLED`.
|
396
388
|
#
|
397
389
|
# @overload cancel_operation(request, options = nil)
|
398
390
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -464,7 +456,6 @@ module Google
|
|
464
456
|
|
465
457
|
@operations_stub.cancel_operation request, options do |result, operation|
|
466
458
|
yield result, operation if block_given?
|
467
|
-
return result
|
468
459
|
end
|
469
460
|
rescue ::Gapic::Rest::Error => e
|
470
461
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -512,6 +503,13 @@ module Google
|
|
512
503
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
513
504
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
514
505
|
# * (`nil`) indicating no credentials
|
506
|
+
#
|
507
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
508
|
+
# external source for authentication to Google Cloud, you must validate it before
|
509
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
510
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
511
|
+
# For more information, refer to [Validate credential configurations from external
|
512
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
515
513
|
# @return [::Object]
|
516
514
|
# @!attribute [rw] scope
|
517
515
|
# The OAuth scopes
|
@@ -544,6 +542,11 @@ module Google
|
|
544
542
|
# default endpoint URL. The default value of nil uses the environment
|
545
543
|
# universe (usually the default "googleapis.com" universe).
|
546
544
|
# @return [::String,nil]
|
545
|
+
# @!attribute [rw] logger
|
546
|
+
# A custom logger to use for request/response debug logging, or the value
|
547
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
548
|
+
# explicitly disable logging.
|
549
|
+
# @return [::Logger,:default,nil]
|
547
550
|
#
|
548
551
|
class Configuration
|
549
552
|
extend ::Gapic::Config
|
@@ -565,6 +568,7 @@ module Google
|
|
565
568
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
566
569
|
config_attr :quota_project, nil, ::String, nil
|
567
570
|
config_attr :universe_domain, nil, ::String, nil
|
571
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
568
572
|
|
569
573
|
# @private
|
570
574
|
def initialize parent_config = nil
|
@@ -684,16 +688,18 @@ module Google
|
|
684
688
|
|
685
689
|
response = @client_stub.make_http_request(
|
686
690
|
verb,
|
687
|
-
uri:
|
688
|
-
body:
|
689
|
-
params:
|
691
|
+
uri: uri,
|
692
|
+
body: body || "",
|
693
|
+
params: query_string_params,
|
694
|
+
method_name: "list_operations",
|
690
695
|
options: options
|
691
696
|
)
|
692
697
|
operation = ::Gapic::Rest::TransportOperation.new response
|
693
698
|
result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
|
694
|
-
|
695
|
-
|
696
|
-
|
699
|
+
catch :response do
|
700
|
+
yield result, operation if block_given?
|
701
|
+
result
|
702
|
+
end
|
697
703
|
end
|
698
704
|
|
699
705
|
##
|
@@ -722,16 +728,18 @@ module Google
|
|
722
728
|
|
723
729
|
response = @client_stub.make_http_request(
|
724
730
|
verb,
|
725
|
-
uri:
|
726
|
-
body:
|
727
|
-
params:
|
731
|
+
uri: uri,
|
732
|
+
body: body || "",
|
733
|
+
params: query_string_params,
|
734
|
+
method_name: "get_operation",
|
728
735
|
options: options
|
729
736
|
)
|
730
737
|
operation = ::Gapic::Rest::TransportOperation.new response
|
731
738
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
732
|
-
|
733
|
-
|
734
|
-
|
739
|
+
catch :response do
|
740
|
+
yield result, operation if block_given?
|
741
|
+
result
|
742
|
+
end
|
735
743
|
end
|
736
744
|
|
737
745
|
##
|
@@ -760,16 +768,18 @@ module Google
|
|
760
768
|
|
761
769
|
response = @client_stub.make_http_request(
|
762
770
|
verb,
|
763
|
-
uri:
|
764
|
-
body:
|
765
|
-
params:
|
771
|
+
uri: uri,
|
772
|
+
body: body || "",
|
773
|
+
params: query_string_params,
|
774
|
+
method_name: "delete_operation",
|
766
775
|
options: options
|
767
776
|
)
|
768
777
|
operation = ::Gapic::Rest::TransportOperation.new response
|
769
778
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
770
|
-
|
771
|
-
|
772
|
-
|
779
|
+
catch :response do
|
780
|
+
yield result, operation if block_given?
|
781
|
+
result
|
782
|
+
end
|
773
783
|
end
|
774
784
|
|
775
785
|
##
|
@@ -798,16 +808,18 @@ module Google
|
|
798
808
|
|
799
809
|
response = @client_stub.make_http_request(
|
800
810
|
verb,
|
801
|
-
uri:
|
802
|
-
body:
|
803
|
-
params:
|
811
|
+
uri: uri,
|
812
|
+
body: body || "",
|
813
|
+
params: query_string_params,
|
814
|
+
method_name: "cancel_operation",
|
804
815
|
options: options
|
805
816
|
)
|
806
817
|
operation = ::Gapic::Rest::TransportOperation.new response
|
807
818
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
808
|
-
|
809
|
-
|
810
|
-
|
819
|
+
catch :response do
|
820
|
+
yield result, operation if block_given?
|
821
|
+
result
|
822
|
+
end
|
811
823
|
end
|
812
824
|
|
813
825
|
##
|