Class: Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::ServiceStub
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::ServiceStub
- Defined in:
- lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb
Overview
REST service stub for the DatabaseAdmin service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Instance Method Summary collapse
-
#copy_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the copy_backup REST call.
-
#create_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_backup REST call.
-
#create_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_database REST call.
-
#delete_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Protobuf::Empty
Baseline implementation for the delete_backup REST call.
-
#drop_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Protobuf::Empty
Baseline implementation for the drop_database REST call.
-
#get_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::Backup
Baseline implementation for the get_backup REST call.
-
#get_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::Database
Baseline implementation for the get_database REST call.
-
#get_database_ddl(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlResponse
Baseline implementation for the get_database_ddl REST call.
-
#get_iam_policy(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Iam::V1::Policy
Baseline implementation for the get_iam_policy REST call.
-
#initialize(endpoint:, credentials:) ⇒ ServiceStub
constructor
A new instance of ServiceStub.
-
#list_backup_operations(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsResponse
Baseline implementation for the list_backup_operations REST call.
-
#list_backups(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupsResponse
Baseline implementation for the list_backups REST call.
-
#list_database_operations(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsResponse
Baseline implementation for the list_database_operations REST call.
-
#list_database_roles(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseRolesResponse
Baseline implementation for the list_database_roles REST call.
-
#list_databases(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse
Baseline implementation for the list_databases REST call.
-
#restore_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the restore_database REST call.
-
#set_iam_policy(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Iam::V1::Policy
Baseline implementation for the set_iam_policy REST call.
-
#test_iam_permissions(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Iam::V1::TestIamPermissionsResponse
Baseline implementation for the test_iam_permissions REST call.
-
#update_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::Backup
Baseline implementation for the update_backup REST call.
-
#update_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_database REST call.
-
#update_database_ddl(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_database_ddl REST call.
Constructor Details
#initialize(endpoint:, credentials:) ⇒ ServiceStub
Returns a new instance of ServiceStub.
35 36 37 38 39 40 41 42 43 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 35 def initialize endpoint:, credentials: # These require statements are intentionally placed here to initialize # the REST modules only when it's required. require "gapic/rest" @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: true, raise_faraday_errors: false end |
Instance Method Details
#copy_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the copy_backup REST call
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 477 def copy_backup request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_copy_backup_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#create_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_backup REST call
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 439 def create_backup request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#create_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_database REST call
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 97 def create_database request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_database_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#delete_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Protobuf::Empty
Baseline implementation for the delete_backup REST call
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 591 def delete_backup request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#drop_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Protobuf::Empty
Baseline implementation for the drop_database REST call
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 249 def drop_database request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_drop_database_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::Backup
Baseline implementation for the get_backup REST call
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 515 def get_backup request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::Backup.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::Database
Baseline implementation for the get_database REST call
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 135 def get_database request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_database_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::Database.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_database_ddl(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlResponse
Baseline implementation for the get_database_ddl REST call
287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 287 def get_database_ddl request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_database_ddl_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_iam_policy(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Iam::V1::Policy
Baseline implementation for the get_iam_policy REST call
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 363 def get_iam_policy request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_backup_operations(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsResponse
Baseline implementation for the list_backup_operations REST call
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 743 def list_backup_operations request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_operations_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_backups(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupsResponse
Baseline implementation for the list_backups REST call
629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 629 def list_backups request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_database_operations(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsResponse
Baseline implementation for the list_database_operations REST call
705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 705 def list_database_operations request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_database_operations_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_database_roles(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseRolesResponse
Baseline implementation for the list_database_roles REST call
781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 781 def list_database_roles request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_database_roles_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseRolesResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_databases(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse
Baseline implementation for the list_databases REST call
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 59 def list_databases request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_databases_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#restore_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the restore_database REST call
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 667 def restore_database request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_restore_database_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#set_iam_policy(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Iam::V1::Policy
Baseline implementation for the set_iam_policy REST call
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 325 def set_iam_policy request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#test_iam_permissions(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Iam::V1::TestIamPermissionsResponse
Baseline implementation for the test_iam_permissions REST call
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 401 def request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub. request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#update_backup(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::Backup
Baseline implementation for the update_backup REST call
553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 553 def update_backup request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Spanner::Admin::Database::V1::Backup.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#update_database(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_database REST call
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 173 def update_database request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_database_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#update_database_ddl(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_database_ddl REST call
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb', line 211 def update_database_ddl request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_database_ddl_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |