google-cloud-cloud_dms-v1 0.2.0 → 0.3.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/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb +2317 -204
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/operations.rb +14 -16
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/paths.rb +55 -0
- data/lib/google/cloud/cloud_dms/v1/data_migration_service.rb +1 -1
- data/lib/google/cloud/cloud_dms/v1/version.rb +1 -1
- data/lib/google/cloud/cloud_dms/v1.rb +2 -2
- data/lib/google/cloud/clouddms/v1/clouddms_pb.rb +168 -0
- data/lib/google/cloud/clouddms/v1/clouddms_resources_pb.rb +149 -1
- data/lib/google/cloud/clouddms/v1/clouddms_services_pb.rb +54 -1
- data/lib/google/cloud/clouddms/v1/conversionworkspace_resources_pb.rb +252 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/clouddms/v1/clouddms.rb +545 -35
- data/proto_docs/google/cloud/clouddms/v1/clouddms_resources.rb +505 -38
- data/proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb +663 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +53 -8
| @@ -18,6 +18,8 @@ | |
| 18 18 |  | 
| 19 19 | 
             
            require "google/cloud/errors"
         | 
| 20 20 | 
             
            require "google/cloud/clouddms/v1/clouddms_pb"
         | 
| 21 | 
            +
            require "google/cloud/location"
         | 
| 22 | 
            +
            require "google/iam/v1"
         | 
| 21 23 |  | 
| 22 24 | 
             
            module Google
         | 
| 23 25 | 
             
              module Cloud
         | 
| @@ -103,6 +105,44 @@ module Google | |
| 103 105 |  | 
| 104 106 | 
             
                            default_config.rpcs.delete_connection_profile.timeout = 60.0
         | 
| 105 107 |  | 
| 108 | 
            +
                            default_config.rpcs.create_private_connection.timeout = 60.0
         | 
| 109 | 
            +
             | 
| 110 | 
            +
                            default_config.rpcs.get_private_connection.timeout = 60.0
         | 
| 111 | 
            +
             | 
| 112 | 
            +
                            default_config.rpcs.list_private_connections.timeout = 60.0
         | 
| 113 | 
            +
             | 
| 114 | 
            +
                            default_config.rpcs.delete_private_connection.timeout = 60.0
         | 
| 115 | 
            +
             | 
| 116 | 
            +
                            default_config.rpcs.get_conversion_workspace.timeout = 60.0
         | 
| 117 | 
            +
             | 
| 118 | 
            +
                            default_config.rpcs.list_conversion_workspaces.timeout = 60.0
         | 
| 119 | 
            +
             | 
| 120 | 
            +
                            default_config.rpcs.create_conversion_workspace.timeout = 60.0
         | 
| 121 | 
            +
             | 
| 122 | 
            +
                            default_config.rpcs.update_conversion_workspace.timeout = 60.0
         | 
| 123 | 
            +
             | 
| 124 | 
            +
                            default_config.rpcs.delete_conversion_workspace.timeout = 60.0
         | 
| 125 | 
            +
             | 
| 126 | 
            +
                            default_config.rpcs.seed_conversion_workspace.timeout = 60.0
         | 
| 127 | 
            +
             | 
| 128 | 
            +
                            default_config.rpcs.import_mapping_rules.timeout = 60.0
         | 
| 129 | 
            +
             | 
| 130 | 
            +
                            default_config.rpcs.convert_conversion_workspace.timeout = 60.0
         | 
| 131 | 
            +
             | 
| 132 | 
            +
                            default_config.rpcs.commit_conversion_workspace.timeout = 60.0
         | 
| 133 | 
            +
             | 
| 134 | 
            +
                            default_config.rpcs.rollback_conversion_workspace.timeout = 60.0
         | 
| 135 | 
            +
             | 
| 136 | 
            +
                            default_config.rpcs.apply_conversion_workspace.timeout = 60.0
         | 
| 137 | 
            +
             | 
| 138 | 
            +
                            default_config.rpcs.describe_database_entities.timeout = 60.0
         | 
| 139 | 
            +
             | 
| 140 | 
            +
                            default_config.rpcs.search_background_jobs.timeout = 60.0
         | 
| 141 | 
            +
             | 
| 142 | 
            +
                            default_config.rpcs.describe_conversion_workspace_revisions.timeout = 60.0
         | 
| 143 | 
            +
             | 
| 144 | 
            +
                            default_config.rpcs.fetch_static_ips.timeout = 60.0
         | 
| 145 | 
            +
             | 
| 106 146 | 
             
                            default_config
         | 
| 107 147 | 
             
                          end
         | 
| 108 148 | 
             
                          yield @configure if block_given?
         | 
| @@ -178,6 +218,18 @@ module Google | |
| 178 218 | 
             
                            config.endpoint = @config.endpoint
         | 
| 179 219 | 
             
                          end
         | 
| 180 220 |  | 
| 221 | 
            +
                          @location_client = Google::Cloud::Location::Locations::Client.new do |config|
         | 
| 222 | 
            +
                            config.credentials = credentials
         | 
| 223 | 
            +
                            config.quota_project = @quota_project_id
         | 
| 224 | 
            +
                            config.endpoint = @config.endpoint
         | 
| 225 | 
            +
                          end
         | 
| 226 | 
            +
             | 
| 227 | 
            +
                          @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
         | 
| 228 | 
            +
                            config.credentials = credentials
         | 
| 229 | 
            +
                            config.quota_project = @quota_project_id
         | 
| 230 | 
            +
                            config.endpoint = @config.endpoint
         | 
| 231 | 
            +
                          end
         | 
| 232 | 
            +
             | 
| 181 233 | 
             
                          @data_migration_service_stub = ::Gapic::ServiceStub.new(
         | 
| 182 234 | 
             
                            ::Google::Cloud::CloudDMS::V1::DataMigrationService::Stub,
         | 
| 183 235 | 
             
                            credentials:  credentials,
         | 
| @@ -194,6 +246,20 @@ module Google | |
| 194 246 | 
             
                        #
         | 
| 195 247 | 
             
                        attr_reader :operations_client
         | 
| 196 248 |  | 
| 249 | 
            +
                        ##
         | 
| 250 | 
            +
                        # Get the associated client for mix-in of the Locations.
         | 
| 251 | 
            +
                        #
         | 
| 252 | 
            +
                        # @return [Google::Cloud::Location::Locations::Client]
         | 
| 253 | 
            +
                        #
         | 
| 254 | 
            +
                        attr_reader :location_client
         | 
| 255 | 
            +
             | 
| 256 | 
            +
                        ##
         | 
| 257 | 
            +
                        # Get the associated client for mix-in of the IAMPolicy.
         | 
| 258 | 
            +
                        #
         | 
| 259 | 
            +
                        # @return [Google::Iam::V1::IAMPolicy::Client]
         | 
| 260 | 
            +
                        #
         | 
| 261 | 
            +
                        attr_reader :iam_policy_client
         | 
| 262 | 
            +
             | 
| 197 263 | 
             
                        # Service calls
         | 
| 198 264 |  | 
| 199 265 | 
             
                        ##
         | 
| @@ -215,11 +281,11 @@ module Google | |
| 215 281 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 216 282 | 
             
                        #
         | 
| 217 283 | 
             
                        #   @param parent [::String]
         | 
| 218 | 
            -
                        #     Required. The parent | 
| 284 | 
            +
                        #     Required. The parent which owns this collection of migrationJobs.
         | 
| 219 285 | 
             
                        #   @param page_size [::Integer]
         | 
| 220 286 | 
             
                        #     The maximum number of migration jobs to return. The service may return
         | 
| 221 287 | 
             
                        #     fewer than this value. If unspecified, at most 50 migration jobs will be
         | 
| 222 | 
            -
                        #     returned. The maximum value is 1000; values above 1000  | 
| 288 | 
            +
                        #     returned. The maximum value is 1000; values above 1000 are coerced to
         | 
| 223 289 | 
             
                        #     1000.
         | 
| 224 290 | 
             
                        #   @param page_token [::String]
         | 
| 225 291 | 
             
                        #     The nextPageToken value received in the previous call to
         | 
| @@ -261,13 +327,11 @@ module Google | |
| 261 327 | 
             
                        #   # Call the list_migration_jobs method.
         | 
| 262 328 | 
             
                        #   result = client.list_migration_jobs request
         | 
| 263 329 | 
             
                        #
         | 
| 264 | 
            -
                        #   # The returned object is of type Gapic::PagedEnumerable. You can
         | 
| 265 | 
            -
                        #   #  | 
| 266 | 
            -
                        #    | 
| 267 | 
            -
                        #   # methods are also available for managing paging directly.
         | 
| 268 | 
            -
                        #   result.each do |response|
         | 
| 330 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 331 | 
            +
                        #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 332 | 
            +
                        #   result.each do |item|
         | 
| 269 333 | 
             
                        #     # Each element is of type ::Google::Cloud::CloudDMS::V1::MigrationJob.
         | 
| 270 | 
            -
                        #     p  | 
| 334 | 
            +
                        #     p item
         | 
| 271 335 | 
             
                        #   end
         | 
| 272 336 | 
             
                        #
         | 
| 273 337 | 
             
                        def list_migration_jobs request, options = nil
         | 
| @@ -416,7 +480,7 @@ module Google | |
| 416 480 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 417 481 | 
             
                        #
         | 
| 418 482 | 
             
                        #   @param parent [::String]
         | 
| 419 | 
            -
                        #     Required. The parent | 
| 483 | 
            +
                        #     Required. The parent which owns this collection of migration jobs.
         | 
| 420 484 | 
             
                        #   @param migration_job_id [::String]
         | 
| 421 485 | 
             
                        #     Required. The ID of the instance to create.
         | 
| 422 486 | 
             
                        #   @param migration_job [::Google::Cloud::CloudDMS::V1::MigrationJob, ::Hash]
         | 
| @@ -424,12 +488,12 @@ module Google | |
| 424 488 | 
             
                        #     job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
         | 
| 425 489 | 
             
                        #     object.
         | 
| 426 490 | 
             
                        #   @param request_id [::String]
         | 
| 427 | 
            -
                        #     A unique  | 
| 428 | 
            -
                        #     requests with the same  | 
| 491 | 
            +
                        #     A unique ID used to identify the request. If the server receives two
         | 
| 492 | 
            +
                        #     requests with the same ID, then the second request is ignored.
         | 
| 429 493 | 
             
                        #
         | 
| 430 494 | 
             
                        #     It is recommended to always set this value to a UUID.
         | 
| 431 495 | 
             
                        #
         | 
| 432 | 
            -
                        #     The  | 
| 496 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 433 497 | 
             
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 434 498 | 
             
                        #
         | 
| 435 499 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| @@ -452,14 +516,14 @@ module Google | |
| 452 516 | 
             
                        #   # Call the create_migration_job method.
         | 
| 453 517 | 
             
                        #   result = client.create_migration_job request
         | 
| 454 518 | 
             
                        #
         | 
| 455 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 456 | 
            -
                        #   #  | 
| 457 | 
            -
                        #   #  | 
| 519 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 520 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 521 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 458 522 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 459 523 | 
             
                        #   if result.response?
         | 
| 460 524 | 
             
                        #     p result.response
         | 
| 461 525 | 
             
                        #   else
         | 
| 462 | 
            -
                        #     puts " | 
| 526 | 
            +
                        #     puts "No response received."
         | 
| 463 527 | 
             
                        #   end
         | 
| 464 528 | 
             
                        #
         | 
| 465 529 | 
             
                        def create_migration_job request, options = nil
         | 
| @@ -523,17 +587,17 @@ module Google | |
| 523 587 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 524 588 | 
             
                        #
         | 
| 525 589 | 
             
                        #   @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
         | 
| 526 | 
            -
                        #     Required. Field mask is used to specify the fields to be overwritten  | 
| 527 | 
            -
                        #      | 
| 590 | 
            +
                        #     Required. Field mask is used to specify the fields to be overwritten by the
         | 
| 591 | 
            +
                        #     update in the conversion workspace resource.
         | 
| 528 592 | 
             
                        #   @param migration_job [::Google::Cloud::CloudDMS::V1::MigrationJob, ::Hash]
         | 
| 529 593 | 
             
                        #     Required. The migration job parameters to update.
         | 
| 530 594 | 
             
                        #   @param request_id [::String]
         | 
| 531 | 
            -
                        #     A unique  | 
| 532 | 
            -
                        #     requests with the same  | 
| 595 | 
            +
                        #     A unique ID used to identify the request. If the server receives two
         | 
| 596 | 
            +
                        #     requests with the same ID, then the second request is ignored.
         | 
| 533 597 | 
             
                        #
         | 
| 534 598 | 
             
                        #     It is recommended to always set this value to a UUID.
         | 
| 535 599 | 
             
                        #
         | 
| 536 | 
            -
                        #     The  | 
| 600 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 537 601 | 
             
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 538 602 | 
             
                        #
         | 
| 539 603 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| @@ -556,14 +620,14 @@ module Google | |
| 556 620 | 
             
                        #   # Call the update_migration_job method.
         | 
| 557 621 | 
             
                        #   result = client.update_migration_job request
         | 
| 558 622 | 
             
                        #
         | 
| 559 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 560 | 
            -
                        #   #  | 
| 561 | 
            -
                        #   #  | 
| 623 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 624 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 625 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 562 626 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 563 627 | 
             
                        #   if result.response?
         | 
| 564 628 | 
             
                        #     p result.response
         | 
| 565 629 | 
             
                        #   else
         | 
| 566 | 
            -
                        #     puts " | 
| 630 | 
            +
                        #     puts "No response received."
         | 
| 567 631 | 
             
                        #   end
         | 
| 568 632 | 
             
                        #
         | 
| 569 633 | 
             
                        def update_migration_job request, options = nil
         | 
| @@ -629,12 +693,12 @@ module Google | |
| 629 693 | 
             
                        #   @param name [::String]
         | 
| 630 694 | 
             
                        #     Required. Name of the migration job resource to delete.
         | 
| 631 695 | 
             
                        #   @param request_id [::String]
         | 
| 632 | 
            -
                        #     A unique  | 
| 633 | 
            -
                        #     requests with the same  | 
| 696 | 
            +
                        #     A unique ID used to identify the request. If the server receives two
         | 
| 697 | 
            +
                        #     requests with the same ID, then the second request is ignored.
         | 
| 634 698 | 
             
                        #
         | 
| 635 699 | 
             
                        #     It is recommended to always set this value to a UUID.
         | 
| 636 700 | 
             
                        #
         | 
| 637 | 
            -
                        #     The  | 
| 701 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 638 702 | 
             
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 639 703 | 
             
                        #   @param force [::Boolean]
         | 
| 640 704 | 
             
                        #     The destination CloudSQL connection profile is always deleted with the
         | 
| @@ -661,14 +725,14 @@ module Google | |
| 661 725 | 
             
                        #   # Call the delete_migration_job method.
         | 
| 662 726 | 
             
                        #   result = client.delete_migration_job request
         | 
| 663 727 | 
             
                        #
         | 
| 664 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 665 | 
            -
                        #   #  | 
| 666 | 
            -
                        #   #  | 
| 728 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 729 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 730 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 667 731 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 668 732 | 
             
                        #   if result.response?
         | 
| 669 733 | 
             
                        #     p result.response
         | 
| 670 734 | 
             
                        #   else
         | 
| 671 | 
            -
                        #     puts " | 
| 735 | 
            +
                        #     puts "No response received."
         | 
| 672 736 | 
             
                        #   end
         | 
| 673 737 | 
             
                        #
         | 
| 674 738 | 
             
                        def delete_migration_job request, options = nil
         | 
| @@ -754,14 +818,14 @@ module Google | |
| 754 818 | 
             
                        #   # Call the start_migration_job method.
         | 
| 755 819 | 
             
                        #   result = client.start_migration_job request
         | 
| 756 820 | 
             
                        #
         | 
| 757 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 758 | 
            -
                        #   #  | 
| 759 | 
            -
                        #   #  | 
| 821 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 822 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 823 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 760 824 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 761 825 | 
             
                        #   if result.response?
         | 
| 762 826 | 
             
                        #     p result.response
         | 
| 763 827 | 
             
                        #   else
         | 
| 764 | 
            -
                        #     puts " | 
| 828 | 
            +
                        #     puts "No response received."
         | 
| 765 829 | 
             
                        #   end
         | 
| 766 830 | 
             
                        #
         | 
| 767 831 | 
             
                        def start_migration_job request, options = nil
         | 
| @@ -847,14 +911,14 @@ module Google | |
| 847 911 | 
             
                        #   # Call the stop_migration_job method.
         | 
| 848 912 | 
             
                        #   result = client.stop_migration_job request
         | 
| 849 913 | 
             
                        #
         | 
| 850 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 851 | 
            -
                        #   #  | 
| 852 | 
            -
                        #   #  | 
| 914 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 915 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 916 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 853 917 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 854 918 | 
             
                        #   if result.response?
         | 
| 855 919 | 
             
                        #     p result.response
         | 
| 856 920 | 
             
                        #   else
         | 
| 857 | 
            -
                        #     puts " | 
| 921 | 
            +
                        #     puts "No response received."
         | 
| 858 922 | 
             
                        #   end
         | 
| 859 923 | 
             
                        #
         | 
| 860 924 | 
             
                        def stop_migration_job request, options = nil
         | 
| @@ -941,14 +1005,14 @@ module Google | |
| 941 1005 | 
             
                        #   # Call the resume_migration_job method.
         | 
| 942 1006 | 
             
                        #   result = client.resume_migration_job request
         | 
| 943 1007 | 
             
                        #
         | 
| 944 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 945 | 
            -
                        #   #  | 
| 946 | 
            -
                        #   #  | 
| 1008 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 1009 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 1010 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 947 1011 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 948 1012 | 
             
                        #   if result.response?
         | 
| 949 1013 | 
             
                        #     p result.response
         | 
| 950 1014 | 
             
                        #   else
         | 
| 951 | 
            -
                        #     puts " | 
| 1015 | 
            +
                        #     puts "No response received."
         | 
| 952 1016 | 
             
                        #   end
         | 
| 953 1017 | 
             
                        #
         | 
| 954 1018 | 
             
                        def resume_migration_job request, options = nil
         | 
| @@ -1035,14 +1099,14 @@ module Google | |
| 1035 1099 | 
             
                        #   # Call the promote_migration_job method.
         | 
| 1036 1100 | 
             
                        #   result = client.promote_migration_job request
         | 
| 1037 1101 | 
             
                        #
         | 
| 1038 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 1039 | 
            -
                        #   #  | 
| 1040 | 
            -
                        #   #  | 
| 1102 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 1103 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 1104 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 1041 1105 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 1042 1106 | 
             
                        #   if result.response?
         | 
| 1043 1107 | 
             
                        #     p result.response
         | 
| 1044 1108 | 
             
                        #   else
         | 
| 1045 | 
            -
                        #     puts " | 
| 1109 | 
            +
                        #     puts "No response received."
         | 
| 1046 1110 | 
             
                        #   end
         | 
| 1047 1111 | 
             
                        #
         | 
| 1048 1112 | 
             
                        def promote_migration_job request, options = nil
         | 
| @@ -1129,14 +1193,14 @@ module Google | |
| 1129 1193 | 
             
                        #   # Call the verify_migration_job method.
         | 
| 1130 1194 | 
             
                        #   result = client.verify_migration_job request
         | 
| 1131 1195 | 
             
                        #
         | 
| 1132 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 1133 | 
            -
                        #   #  | 
| 1134 | 
            -
                        #   #  | 
| 1196 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 1197 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 1198 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 1135 1199 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 1136 1200 | 
             
                        #   if result.response?
         | 
| 1137 1201 | 
             
                        #     p result.response
         | 
| 1138 1202 | 
             
                        #   else
         | 
| 1139 | 
            -
                        #     puts " | 
| 1203 | 
            +
                        #     puts "No response received."
         | 
| 1140 1204 | 
             
                        #   end
         | 
| 1141 1205 | 
             
                        #
         | 
| 1142 1206 | 
             
                        def verify_migration_job request, options = nil
         | 
| @@ -1224,14 +1288,14 @@ module Google | |
| 1224 1288 | 
             
                        #   # Call the restart_migration_job method.
         | 
| 1225 1289 | 
             
                        #   result = client.restart_migration_job request
         | 
| 1226 1290 | 
             
                        #
         | 
| 1227 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 1228 | 
            -
                        #   #  | 
| 1229 | 
            -
                        #   #  | 
| 1291 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 1292 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 1293 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 1230 1294 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 1231 1295 | 
             
                        #   if result.response?
         | 
| 1232 1296 | 
             
                        #     p result.response
         | 
| 1233 1297 | 
             
                        #   else
         | 
| 1234 | 
            -
                        #     puts " | 
| 1298 | 
            +
                        #     puts "No response received."
         | 
| 1235 1299 | 
             
                        #   end
         | 
| 1236 1300 | 
             
                        #
         | 
| 1237 1301 | 
             
                        def restart_migration_job request, options = nil
         | 
| @@ -1304,7 +1368,7 @@ module Google | |
| 1304 1368 | 
             
                        #   @param vm_selection_config [::Google::Cloud::CloudDMS::V1::VmSelectionConfig, ::Hash]
         | 
| 1305 1369 | 
             
                        #     The VM selection configuration
         | 
| 1306 1370 | 
             
                        #   @param vm_port [::Integer]
         | 
| 1307 | 
            -
                        #     The port that will be open on the bastion host
         | 
| 1371 | 
            +
                        #     The port that will be open on the bastion host.
         | 
| 1308 1372 | 
             
                        #
         | 
| 1309 1373 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 1310 1374 | 
             
                        # @yieldparam response [::Google::Cloud::CloudDMS::V1::SshScript]
         | 
| @@ -1371,7 +1435,8 @@ module Google | |
| 1371 1435 | 
             
                        end
         | 
| 1372 1436 |  | 
| 1373 1437 | 
             
                        ##
         | 
| 1374 | 
            -
                        #  | 
| 1438 | 
            +
                        # Retrieves a list of all connection profiles in a given project and
         | 
| 1439 | 
            +
                        # location.
         | 
| 1375 1440 | 
             
                        #
         | 
| 1376 1441 | 
             
                        # @overload list_connection_profiles(request, options = nil)
         | 
| 1377 1442 | 
             
                        #   Pass arguments to `list_connection_profiles` via a request object, either of type
         | 
| @@ -1389,11 +1454,11 @@ module Google | |
| 1389 1454 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 1390 1455 | 
             
                        #
         | 
| 1391 1456 | 
             
                        #   @param parent [::String]
         | 
| 1392 | 
            -
                        #     Required. The parent | 
| 1457 | 
            +
                        #     Required. The parent which owns this collection of connection profiles.
         | 
| 1393 1458 | 
             
                        #   @param page_size [::Integer]
         | 
| 1394 1459 | 
             
                        #     The maximum number of connection profiles to return. The service may return
         | 
| 1395 1460 | 
             
                        #     fewer than this value. If unspecified, at most 50 connection profiles will
         | 
| 1396 | 
            -
                        #     be returned. The maximum value is 1000; values above 1000  | 
| 1461 | 
            +
                        #     be returned. The maximum value is 1000; values above 1000 are coerced
         | 
| 1397 1462 | 
             
                        #     to 1000.
         | 
| 1398 1463 | 
             
                        #   @param page_token [::String]
         | 
| 1399 1464 | 
             
                        #     A page token, received from a previous `ListConnectionProfiles` call.
         | 
| @@ -1412,7 +1477,7 @@ module Google | |
| 1412 1477 | 
             
                        #     = %lt;my_username%gt;** to list all connection profiles configured to
         | 
| 1413 1478 | 
             
                        #     connect with a specific username.
         | 
| 1414 1479 | 
             
                        #   @param order_by [::String]
         | 
| 1415 | 
            -
                        #      | 
| 1480 | 
            +
                        #     A comma-separated list of fields to order results according to.
         | 
| 1416 1481 | 
             
                        #
         | 
| 1417 1482 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 1418 1483 | 
             
                        # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CloudDMS::V1::ConnectionProfile>]
         | 
| @@ -1434,13 +1499,11 @@ module Google | |
| 1434 1499 | 
             
                        #   # Call the list_connection_profiles method.
         | 
| 1435 1500 | 
             
                        #   result = client.list_connection_profiles request
         | 
| 1436 1501 | 
             
                        #
         | 
| 1437 | 
            -
                        #   # The returned object is of type Gapic::PagedEnumerable. You can
         | 
| 1438 | 
            -
                        #   #  | 
| 1439 | 
            -
                        #    | 
| 1440 | 
            -
                        #   # methods are also available for managing paging directly.
         | 
| 1441 | 
            -
                        #   result.each do |response|
         | 
| 1502 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 1503 | 
            +
                        #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 1504 | 
            +
                        #   result.each do |item|
         | 
| 1442 1505 | 
             
                        #     # Each element is of type ::Google::Cloud::CloudDMS::V1::ConnectionProfile.
         | 
| 1443 | 
            -
                        #     p  | 
| 1506 | 
            +
                        #     p item
         | 
| 1444 1507 | 
             
                        #   end
         | 
| 1445 1508 | 
             
                        #
         | 
| 1446 1509 | 
             
                        def list_connection_profiles request, options = nil
         | 
| @@ -1583,25 +1646,33 @@ module Google | |
| 1583 1646 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 1584 1647 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 1585 1648 | 
             
                        #
         | 
| 1586 | 
            -
                        # @overload create_connection_profile(parent: nil, connection_profile_id: nil, connection_profile: nil, request_id: nil)
         | 
| 1649 | 
            +
                        # @overload create_connection_profile(parent: nil, connection_profile_id: nil, connection_profile: nil, request_id: nil, validate_only: nil, skip_validation: nil)
         | 
| 1587 1650 | 
             
                        #   Pass arguments to `create_connection_profile` via keyword arguments. Note that at
         | 
| 1588 1651 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1589 1652 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 1590 1653 | 
             
                        #
         | 
| 1591 1654 | 
             
                        #   @param parent [::String]
         | 
| 1592 | 
            -
                        #     Required. The parent | 
| 1655 | 
            +
                        #     Required. The parent which owns this collection of connection profiles.
         | 
| 1593 1656 | 
             
                        #   @param connection_profile_id [::String]
         | 
| 1594 1657 | 
             
                        #     Required. The connection profile identifier.
         | 
| 1595 1658 | 
             
                        #   @param connection_profile [::Google::Cloud::CloudDMS::V1::ConnectionProfile, ::Hash]
         | 
| 1596 1659 | 
             
                        #     Required. The create request body including the connection profile data
         | 
| 1597 1660 | 
             
                        #   @param request_id [::String]
         | 
| 1598 | 
            -
                        #     A unique  | 
| 1599 | 
            -
                        #     requests with the same  | 
| 1661 | 
            +
                        #     Optional. A unique ID used to identify the request. If the server receives
         | 
| 1662 | 
            +
                        #     two requests with the same ID, then the second request is ignored.
         | 
| 1600 1663 | 
             
                        #
         | 
| 1601 1664 | 
             
                        #     It is recommended to always set this value to a UUID.
         | 
| 1602 1665 | 
             
                        #
         | 
| 1603 | 
            -
                        #     The  | 
| 1666 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 1604 1667 | 
             
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 1668 | 
            +
                        #   @param validate_only [::Boolean]
         | 
| 1669 | 
            +
                        #     Optional. Only validate the connection profile, but don't create any
         | 
| 1670 | 
            +
                        #     resources. The default is false. Only supported for Oracle connection
         | 
| 1671 | 
            +
                        #     profiles.
         | 
| 1672 | 
            +
                        #   @param skip_validation [::Boolean]
         | 
| 1673 | 
            +
                        #     Optional. Create the connection profile without validating it.
         | 
| 1674 | 
            +
                        #     The default is false.
         | 
| 1675 | 
            +
                        #     Only supported for Oracle connection profiles.
         | 
| 1605 1676 | 
             
                        #
         | 
| 1606 1677 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 1607 1678 | 
             
                        # @yieldparam response [::Gapic::Operation]
         | 
| @@ -1623,14 +1694,14 @@ module Google | |
| 1623 1694 | 
             
                        #   # Call the create_connection_profile method.
         | 
| 1624 1695 | 
             
                        #   result = client.create_connection_profile request
         | 
| 1625 1696 | 
             
                        #
         | 
| 1626 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 1627 | 
            -
                        #   #  | 
| 1628 | 
            -
                        #   #  | 
| 1697 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 1698 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 1699 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 1629 1700 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 1630 1701 | 
             
                        #   if result.response?
         | 
| 1631 1702 | 
             
                        #     p result.response
         | 
| 1632 1703 | 
             
                        #   else
         | 
| 1633 | 
            -
                        #     puts " | 
| 1704 | 
            +
                        #     puts "No response received."
         | 
| 1634 1705 | 
             
                        #   end
         | 
| 1635 1706 | 
             
                        #
         | 
| 1636 1707 | 
             
                        def create_connection_profile request, options = nil
         | 
| @@ -1688,24 +1759,32 @@ module Google | |
| 1688 1759 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 1689 1760 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 1690 1761 | 
             
                        #
         | 
| 1691 | 
            -
                        # @overload update_connection_profile(update_mask: nil, connection_profile: nil, request_id: nil)
         | 
| 1762 | 
            +
                        # @overload update_connection_profile(update_mask: nil, connection_profile: nil, request_id: nil, validate_only: nil, skip_validation: nil)
         | 
| 1692 1763 | 
             
                        #   Pass arguments to `update_connection_profile` via keyword arguments. Note that at
         | 
| 1693 1764 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1694 1765 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 1695 1766 | 
             
                        #
         | 
| 1696 1767 | 
             
                        #   @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
         | 
| 1697 | 
            -
                        #     Required. Field mask is used to specify the fields to be overwritten  | 
| 1698 | 
            -
                        #      | 
| 1768 | 
            +
                        #     Required. Field mask is used to specify the fields to be overwritten by the
         | 
| 1769 | 
            +
                        #     update in the conversion workspace resource.
         | 
| 1699 1770 | 
             
                        #   @param connection_profile [::Google::Cloud::CloudDMS::V1::ConnectionProfile, ::Hash]
         | 
| 1700 1771 | 
             
                        #     Required. The connection profile parameters to update.
         | 
| 1701 1772 | 
             
                        #   @param request_id [::String]
         | 
| 1702 | 
            -
                        #     A unique  | 
| 1703 | 
            -
                        #     requests with the same  | 
| 1773 | 
            +
                        #     Optional. A unique ID used to identify the request. If the server receives
         | 
| 1774 | 
            +
                        #     two requests with the same ID, then the second request is ignored.
         | 
| 1704 1775 | 
             
                        #
         | 
| 1705 1776 | 
             
                        #     It is recommended to always set this value to a UUID.
         | 
| 1706 1777 | 
             
                        #
         | 
| 1707 | 
            -
                        #     The  | 
| 1778 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 1708 1779 | 
             
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 1780 | 
            +
                        #   @param validate_only [::Boolean]
         | 
| 1781 | 
            +
                        #     Optional. Only validate the connection profile, but don't update any
         | 
| 1782 | 
            +
                        #     resources. The default is false. Only supported for Oracle connection
         | 
| 1783 | 
            +
                        #     profiles.
         | 
| 1784 | 
            +
                        #   @param skip_validation [::Boolean]
         | 
| 1785 | 
            +
                        #     Optional. Update the connection profile without validating it.
         | 
| 1786 | 
            +
                        #     The default is false.
         | 
| 1787 | 
            +
                        #     Only supported for Oracle connection profiles.
         | 
| 1709 1788 | 
             
                        #
         | 
| 1710 1789 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 1711 1790 | 
             
                        # @yieldparam response [::Gapic::Operation]
         | 
| @@ -1727,14 +1806,14 @@ module Google | |
| 1727 1806 | 
             
                        #   # Call the update_connection_profile method.
         | 
| 1728 1807 | 
             
                        #   result = client.update_connection_profile request
         | 
| 1729 1808 | 
             
                        #
         | 
| 1730 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 1731 | 
            -
                        #   #  | 
| 1732 | 
            -
                        #   #  | 
| 1809 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 1810 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 1811 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 1733 1812 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 1734 1813 | 
             
                        #   if result.response?
         | 
| 1735 1814 | 
             
                        #     p result.response
         | 
| 1736 1815 | 
             
                        #   else
         | 
| 1737 | 
            -
                        #     puts " | 
| 1816 | 
            +
                        #     puts "No response received."
         | 
| 1738 1817 | 
             
                        #   end
         | 
| 1739 1818 | 
             
                        #
         | 
| 1740 1819 | 
             
                        def update_connection_profile request, options = nil
         | 
| @@ -1802,12 +1881,12 @@ module Google | |
| 1802 1881 | 
             
                        #   @param name [::String]
         | 
| 1803 1882 | 
             
                        #     Required. Name of the connection profile resource to delete.
         | 
| 1804 1883 | 
             
                        #   @param request_id [::String]
         | 
| 1805 | 
            -
                        #     A unique  | 
| 1806 | 
            -
                        #     requests with the same  | 
| 1884 | 
            +
                        #     A unique ID used to identify the request. If the server receives two
         | 
| 1885 | 
            +
                        #     requests with the same ID, then the second request is ignored.
         | 
| 1807 1886 | 
             
                        #
         | 
| 1808 1887 | 
             
                        #     It is recommended to always set this value to a UUID.
         | 
| 1809 1888 | 
             
                        #
         | 
| 1810 | 
            -
                        #     The  | 
| 1889 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 1811 1890 | 
             
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 1812 1891 | 
             
                        #   @param force [::Boolean]
         | 
| 1813 1892 | 
             
                        #     In case of force delete, the CloudSQL replica database is also deleted
         | 
| @@ -1833,14 +1912,14 @@ module Google | |
| 1833 1912 | 
             
                        #   # Call the delete_connection_profile method.
         | 
| 1834 1913 | 
             
                        #   result = client.delete_connection_profile request
         | 
| 1835 1914 | 
             
                        #
         | 
| 1836 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 1837 | 
            -
                        #   #  | 
| 1838 | 
            -
                        #   #  | 
| 1915 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 1916 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 1917 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 1839 1918 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 1840 1919 | 
             
                        #   if result.response?
         | 
| 1841 1920 | 
             
                        #     p result.response
         | 
| 1842 1921 | 
             
                        #   else
         | 
| 1843 | 
            -
                        #     puts " | 
| 1922 | 
            +
                        #     puts "No response received."
         | 
| 1844 1923 | 
             
                        #   end
         | 
| 1845 1924 | 
             
                        #
         | 
| 1846 1925 | 
             
                        def delete_connection_profile request, options = nil
         | 
| @@ -1886,132 +1965,2033 @@ module Google | |
| 1886 1965 | 
             
                        end
         | 
| 1887 1966 |  | 
| 1888 1967 | 
             
                        ##
         | 
| 1889 | 
            -
                        #  | 
| 1968 | 
            +
                        # Creates a new private connection in a given project and location.
         | 
| 1890 1969 | 
             
                        #
         | 
| 1891 | 
            -
                        #  | 
| 1892 | 
            -
                        #  | 
| 1893 | 
            -
                        #  | 
| 1894 | 
            -
                        # applied individually to specific RPCs. See
         | 
| 1895 | 
            -
                        # {::Google::Cloud::CloudDMS::V1::DataMigrationService::Client::Configuration::Rpcs}
         | 
| 1896 | 
            -
                        # for a list of RPCs that can be configured independently.
         | 
| 1970 | 
            +
                        # @overload create_private_connection(request, options = nil)
         | 
| 1971 | 
            +
                        #   Pass arguments to `create_private_connection` via a request object, either of type
         | 
| 1972 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::CreatePrivateConnectionRequest} or an equivalent Hash.
         | 
| 1897 1973 | 
             
                        #
         | 
| 1898 | 
            -
                        #  | 
| 1899 | 
            -
                        #  | 
| 1974 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::CreatePrivateConnectionRequest, ::Hash]
         | 
| 1975 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 1976 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 1977 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 1978 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 1900 1979 | 
             
                        #
         | 
| 1901 | 
            -
                        # @ | 
| 1980 | 
            +
                        # @overload create_private_connection(parent: nil, private_connection_id: nil, private_connection: nil, request_id: nil, skip_validation: nil)
         | 
| 1981 | 
            +
                        #   Pass arguments to `create_private_connection` via keyword arguments. Note that at
         | 
| 1982 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1983 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 1902 1984 | 
             
                        #
         | 
| 1903 | 
            -
                        #    | 
| 1904 | 
            -
                        # | 
| 1905 | 
            -
                        #    | 
| 1906 | 
            -
                        # | 
| 1907 | 
            -
                        # | 
| 1908 | 
            -
                        #      | 
| 1909 | 
            -
                        #    | 
| 1985 | 
            +
                        #   @param parent [::String]
         | 
| 1986 | 
            +
                        #     Required. The parent that owns the collection of PrivateConnections.
         | 
| 1987 | 
            +
                        #   @param private_connection_id [::String]
         | 
| 1988 | 
            +
                        #     Required. The private connection identifier.
         | 
| 1989 | 
            +
                        #   @param private_connection [::Google::Cloud::CloudDMS::V1::PrivateConnection, ::Hash]
         | 
| 1990 | 
            +
                        #     Required. The private connection resource to create.
         | 
| 1991 | 
            +
                        #   @param request_id [::String]
         | 
| 1992 | 
            +
                        #     Optional. A unique ID used to identify the request. If the server receives
         | 
| 1993 | 
            +
                        #     two requests with the same ID, then the second request is ignored.
         | 
| 1910 1994 | 
             
                        #
         | 
| 1911 | 
            -
                        # | 
| 1912 | 
            -
                        #   client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new do |config|
         | 
| 1913 | 
            -
                        #     config.timeout = 10.0
         | 
| 1914 | 
            -
                        #     config.rpcs.list_migration_jobs.timeout = 20.0
         | 
| 1915 | 
            -
                        #   end
         | 
| 1995 | 
            +
                        #     It is recommended to always set this value to a UUID.
         | 
| 1916 1996 | 
             
                        #
         | 
| 1917 | 
            -
                        #  | 
| 1918 | 
            -
                        # | 
| 1919 | 
            -
                        #    | 
| 1920 | 
            -
                        # | 
| 1921 | 
            -
                        # @!attribute [rw] credentials
         | 
| 1922 | 
            -
                        #   Credentials to send with calls. You may provide any of the following types:
         | 
| 1923 | 
            -
                        #    *  (`String`) The path to a service account key file in JSON format
         | 
| 1924 | 
            -
                        #    *  (`Hash`) A service account key as a Hash
         | 
| 1925 | 
            -
                        #    *  (`Google::Auth::Credentials`) A googleauth credentials object
         | 
| 1926 | 
            -
                        #       (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
         | 
| 1927 | 
            -
                        #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         | 
| 1928 | 
            -
                        #       (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
         | 
| 1929 | 
            -
                        #    *  (`GRPC::Core::Channel`) a gRPC channel with included credentials
         | 
| 1930 | 
            -
                        #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 1931 | 
            -
                        #    *  (`nil`) indicating no credentials
         | 
| 1932 | 
            -
                        #   @return [::Object]
         | 
| 1933 | 
            -
                        # @!attribute [rw] scope
         | 
| 1934 | 
            -
                        #   The OAuth scopes
         | 
| 1935 | 
            -
                        #   @return [::Array<::String>]
         | 
| 1936 | 
            -
                        # @!attribute [rw] lib_name
         | 
| 1937 | 
            -
                        #   The library name as recorded in instrumentation and logging
         | 
| 1938 | 
            -
                        #   @return [::String]
         | 
| 1939 | 
            -
                        # @!attribute [rw] lib_version
         | 
| 1940 | 
            -
                        #   The library version as recorded in instrumentation and logging
         | 
| 1941 | 
            -
                        #   @return [::String]
         | 
| 1942 | 
            -
                        # @!attribute [rw] channel_args
         | 
| 1943 | 
            -
                        #   Extra parameters passed to the gRPC channel. Note: this is ignored if a
         | 
| 1944 | 
            -
                        #   `GRPC::Core::Channel` object is provided as the credential.
         | 
| 1945 | 
            -
                        #   @return [::Hash]
         | 
| 1946 | 
            -
                        # @!attribute [rw] interceptors
         | 
| 1947 | 
            -
                        #   An array of interceptors that are run before calls are executed.
         | 
| 1948 | 
            -
                        #   @return [::Array<::GRPC::ClientInterceptor>]
         | 
| 1949 | 
            -
                        # @!attribute [rw] timeout
         | 
| 1950 | 
            -
                        #   The call timeout in seconds.
         | 
| 1951 | 
            -
                        #   @return [::Numeric]
         | 
| 1952 | 
            -
                        # @!attribute [rw] metadata
         | 
| 1953 | 
            -
                        #   Additional gRPC headers to be sent with the call.
         | 
| 1954 | 
            -
                        #   @return [::Hash{::Symbol=>::String}]
         | 
| 1955 | 
            -
                        # @!attribute [rw] retry_policy
         | 
| 1956 | 
            -
                        #   The retry policy. The value is a hash with the following keys:
         | 
| 1957 | 
            -
                        #    *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
         | 
| 1958 | 
            -
                        #    *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
         | 
| 1959 | 
            -
                        #    *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
         | 
| 1960 | 
            -
                        #    *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
         | 
| 1961 | 
            -
                        #       trigger a retry.
         | 
| 1962 | 
            -
                        #   @return [::Hash]
         | 
| 1963 | 
            -
                        # @!attribute [rw] quota_project
         | 
| 1964 | 
            -
                        #   A separate project against which to charge quota.
         | 
| 1965 | 
            -
                        #   @return [::String]
         | 
| 1997 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 1998 | 
            +
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 1999 | 
            +
                        #   @param skip_validation [::Boolean]
         | 
| 2000 | 
            +
                        #     Optional. If set to true, will skip validations.
         | 
| 1966 2001 | 
             
                        #
         | 
| 1967 | 
            -
                         | 
| 1968 | 
            -
             | 
| 2002 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2003 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 2004 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2005 | 
            +
                        #
         | 
| 2006 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 2007 | 
            +
                        #
         | 
| 2008 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2009 | 
            +
                        #
         | 
| 2010 | 
            +
                        # @example Basic example
         | 
| 2011 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2012 | 
            +
                        #
         | 
| 2013 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2014 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2015 | 
            +
                        #
         | 
| 2016 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2017 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::CreatePrivateConnectionRequest.new
         | 
| 2018 | 
            +
                        #
         | 
| 2019 | 
            +
                        #   # Call the create_private_connection method.
         | 
| 2020 | 
            +
                        #   result = client.create_private_connection request
         | 
| 2021 | 
            +
                        #
         | 
| 2022 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 2023 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 2024 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 2025 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 2026 | 
            +
                        #   if result.response?
         | 
| 2027 | 
            +
                        #     p result.response
         | 
| 2028 | 
            +
                        #   else
         | 
| 2029 | 
            +
                        #     puts "No response received."
         | 
| 2030 | 
            +
                        #   end
         | 
| 2031 | 
            +
                        #
         | 
| 2032 | 
            +
                        def create_private_connection request, options = nil
         | 
| 2033 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 1969 2034 |  | 
| 1970 | 
            -
                           | 
| 1971 | 
            -
             | 
| 1972 | 
            -
             | 
| 1973 | 
            -
             | 
| 1974 | 
            -
             | 
| 2035 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::CreatePrivateConnectionRequest
         | 
| 2036 | 
            +
             | 
| 2037 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2038 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2039 | 
            +
             | 
| 2040 | 
            +
                          # Customize the options with defaults
         | 
| 2041 | 
            +
                          metadata = @config.rpcs.create_private_connection.metadata.to_h
         | 
| 2042 | 
            +
             | 
| 2043 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2044 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2045 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2046 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2047 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2048 | 
            +
             | 
| 2049 | 
            +
                          header_params = {}
         | 
| 2050 | 
            +
                          if request.parent
         | 
| 2051 | 
            +
                            header_params["parent"] = request.parent
         | 
| 1975 2052 | 
             
                          end
         | 
| 1976 | 
            -
                          config_attr :scope,         nil, ::String, ::Array, nil
         | 
| 1977 | 
            -
                          config_attr :lib_name,      nil, ::String, nil
         | 
| 1978 | 
            -
                          config_attr :lib_version,   nil, ::String, nil
         | 
| 1979 | 
            -
                          config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
         | 
| 1980 | 
            -
                          config_attr :interceptors,  nil, ::Array, nil
         | 
| 1981 | 
            -
                          config_attr :timeout,       nil, ::Numeric, nil
         | 
| 1982 | 
            -
                          config_attr :metadata,      nil, ::Hash, nil
         | 
| 1983 | 
            -
                          config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
         | 
| 1984 | 
            -
                          config_attr :quota_project, nil, ::String, nil
         | 
| 1985 2053 |  | 
| 1986 | 
            -
                          #  | 
| 1987 | 
            -
                           | 
| 1988 | 
            -
                            @parent_config = parent_config unless parent_config.nil?
         | 
| 2054 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2055 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 1989 2056 |  | 
| 1990 | 
            -
             | 
| 2057 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.create_private_connection.timeout,
         | 
| 2058 | 
            +
                                                 metadata:     metadata,
         | 
| 2059 | 
            +
                                                 retry_policy: @config.rpcs.create_private_connection.retry_policy
         | 
| 2060 | 
            +
             | 
| 2061 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2062 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2063 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2064 | 
            +
             | 
| 2065 | 
            +
                          @data_migration_service_stub.call_rpc :create_private_connection, request, options: options do |response, operation|
         | 
| 2066 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 2067 | 
            +
                            yield response, operation if block_given?
         | 
| 2068 | 
            +
                            return response
         | 
| 1991 2069 | 
             
                          end
         | 
| 2070 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2071 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2072 | 
            +
                        end
         | 
| 1992 2073 |  | 
| 1993 | 
            -
             | 
| 1994 | 
            -
             | 
| 1995 | 
            -
             | 
| 1996 | 
            -
             | 
| 1997 | 
            -
             | 
| 1998 | 
            -
             | 
| 1999 | 
            -
             | 
| 2000 | 
            -
             | 
| 2001 | 
            -
             | 
| 2002 | 
            -
             | 
| 2074 | 
            +
                        ##
         | 
| 2075 | 
            +
                        # Gets details of a single private connection.
         | 
| 2076 | 
            +
                        #
         | 
| 2077 | 
            +
                        # @overload get_private_connection(request, options = nil)
         | 
| 2078 | 
            +
                        #   Pass arguments to `get_private_connection` via a request object, either of type
         | 
| 2079 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::GetPrivateConnectionRequest} or an equivalent Hash.
         | 
| 2080 | 
            +
                        #
         | 
| 2081 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::GetPrivateConnectionRequest, ::Hash]
         | 
| 2082 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2083 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2084 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2085 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2086 | 
            +
                        #
         | 
| 2087 | 
            +
                        # @overload get_private_connection(name: nil)
         | 
| 2088 | 
            +
                        #   Pass arguments to `get_private_connection` via keyword arguments. Note that at
         | 
| 2089 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2090 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2091 | 
            +
                        #
         | 
| 2092 | 
            +
                        #   @param name [::String]
         | 
| 2093 | 
            +
                        #     Required. The name of the private connection to get.
         | 
| 2094 | 
            +
                        #
         | 
| 2095 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2096 | 
            +
                        # @yieldparam response [::Google::Cloud::CloudDMS::V1::PrivateConnection]
         | 
| 2097 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2098 | 
            +
                        #
         | 
| 2099 | 
            +
                        # @return [::Google::Cloud::CloudDMS::V1::PrivateConnection]
         | 
| 2100 | 
            +
                        #
         | 
| 2101 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2102 | 
            +
                        #
         | 
| 2103 | 
            +
                        # @example Basic example
         | 
| 2104 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2105 | 
            +
                        #
         | 
| 2106 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2107 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2108 | 
            +
                        #
         | 
| 2109 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2110 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::GetPrivateConnectionRequest.new
         | 
| 2111 | 
            +
                        #
         | 
| 2112 | 
            +
                        #   # Call the get_private_connection method.
         | 
| 2113 | 
            +
                        #   result = client.get_private_connection request
         | 
| 2114 | 
            +
                        #
         | 
| 2115 | 
            +
                        #   # The returned object is of type Google::Cloud::CloudDMS::V1::PrivateConnection.
         | 
| 2116 | 
            +
                        #   p result
         | 
| 2117 | 
            +
                        #
         | 
| 2118 | 
            +
                        def get_private_connection request, options = nil
         | 
| 2119 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2120 | 
            +
             | 
| 2121 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::GetPrivateConnectionRequest
         | 
| 2122 | 
            +
             | 
| 2123 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2124 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2125 | 
            +
             | 
| 2126 | 
            +
                          # Customize the options with defaults
         | 
| 2127 | 
            +
                          metadata = @config.rpcs.get_private_connection.metadata.to_h
         | 
| 2128 | 
            +
             | 
| 2129 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2130 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2131 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2132 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2133 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2134 | 
            +
             | 
| 2135 | 
            +
                          header_params = {}
         | 
| 2136 | 
            +
                          if request.name
         | 
| 2137 | 
            +
                            header_params["name"] = request.name
         | 
| 2003 2138 | 
             
                          end
         | 
| 2004 2139 |  | 
| 2005 | 
            -
                           | 
| 2006 | 
            -
                           | 
| 2007 | 
            -
             | 
| 2008 | 
            -
                           | 
| 2009 | 
            -
             | 
| 2010 | 
            -
             | 
| 2011 | 
            -
             | 
| 2012 | 
            -
                           | 
| 2013 | 
            -
             | 
| 2014 | 
            -
             | 
| 2140 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2141 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2142 | 
            +
             | 
| 2143 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.get_private_connection.timeout,
         | 
| 2144 | 
            +
                                                 metadata:     metadata,
         | 
| 2145 | 
            +
                                                 retry_policy: @config.rpcs.get_private_connection.retry_policy
         | 
| 2146 | 
            +
             | 
| 2147 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2148 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2149 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2150 | 
            +
             | 
| 2151 | 
            +
                          @data_migration_service_stub.call_rpc :get_private_connection, request, options: options do |response, operation|
         | 
| 2152 | 
            +
                            yield response, operation if block_given?
         | 
| 2153 | 
            +
                            return response
         | 
| 2154 | 
            +
                          end
         | 
| 2155 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2156 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2157 | 
            +
                        end
         | 
| 2158 | 
            +
             | 
| 2159 | 
            +
                        ##
         | 
| 2160 | 
            +
                        # Retrieves a list of private connections in a given project and location.
         | 
| 2161 | 
            +
                        #
         | 
| 2162 | 
            +
                        # @overload list_private_connections(request, options = nil)
         | 
| 2163 | 
            +
                        #   Pass arguments to `list_private_connections` via a request object, either of type
         | 
| 2164 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::ListPrivateConnectionsRequest} or an equivalent Hash.
         | 
| 2165 | 
            +
                        #
         | 
| 2166 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::ListPrivateConnectionsRequest, ::Hash]
         | 
| 2167 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2168 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2169 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2170 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2171 | 
            +
                        #
         | 
| 2172 | 
            +
                        # @overload list_private_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
         | 
| 2173 | 
            +
                        #   Pass arguments to `list_private_connections` via keyword arguments. Note that at
         | 
| 2174 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2175 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2176 | 
            +
                        #
         | 
| 2177 | 
            +
                        #   @param parent [::String]
         | 
| 2178 | 
            +
                        #     Required. The parent that owns the collection of private connections.
         | 
| 2179 | 
            +
                        #   @param page_size [::Integer]
         | 
| 2180 | 
            +
                        #     Maximum number of private connections to return.
         | 
| 2181 | 
            +
                        #     If unspecified, at most 50 private connections that are returned.
         | 
| 2182 | 
            +
                        #     The maximum value is 1000; values above 1000 are coerced to 1000.
         | 
| 2183 | 
            +
                        #   @param page_token [::String]
         | 
| 2184 | 
            +
                        #     Page token received from a previous `ListPrivateConnections` call.
         | 
| 2185 | 
            +
                        #     Provide this to retrieve the subsequent page.
         | 
| 2186 | 
            +
                        #
         | 
| 2187 | 
            +
                        #     When paginating, all other parameters provided to
         | 
| 2188 | 
            +
                        #     `ListPrivateConnections` must match the call that provided the page
         | 
| 2189 | 
            +
                        #     token.
         | 
| 2190 | 
            +
                        #   @param filter [::String]
         | 
| 2191 | 
            +
                        #     A filter expression that filters private connections listed in the
         | 
| 2192 | 
            +
                        #     response. The expression must specify the field name, a comparison
         | 
| 2193 | 
            +
                        #     operator, and the value that you want to use for filtering. The value must
         | 
| 2194 | 
            +
                        #     be a string, a number, or a boolean. The comparison operator must be either
         | 
| 2195 | 
            +
                        #     =, !=, >, or <. For example, list private connections created this year by
         | 
| 2196 | 
            +
                        #     specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
         | 
| 2197 | 
            +
                        #   @param order_by [::String]
         | 
| 2198 | 
            +
                        #     Order by fields for the result.
         | 
| 2199 | 
            +
                        #
         | 
| 2200 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2201 | 
            +
                        # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CloudDMS::V1::PrivateConnection>]
         | 
| 2202 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2203 | 
            +
                        #
         | 
| 2204 | 
            +
                        # @return [::Gapic::PagedEnumerable<::Google::Cloud::CloudDMS::V1::PrivateConnection>]
         | 
| 2205 | 
            +
                        #
         | 
| 2206 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2207 | 
            +
                        #
         | 
| 2208 | 
            +
                        # @example Basic example
         | 
| 2209 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2210 | 
            +
                        #
         | 
| 2211 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2212 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2213 | 
            +
                        #
         | 
| 2214 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2215 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::ListPrivateConnectionsRequest.new
         | 
| 2216 | 
            +
                        #
         | 
| 2217 | 
            +
                        #   # Call the list_private_connections method.
         | 
| 2218 | 
            +
                        #   result = client.list_private_connections request
         | 
| 2219 | 
            +
                        #
         | 
| 2220 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 2221 | 
            +
                        #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 2222 | 
            +
                        #   result.each do |item|
         | 
| 2223 | 
            +
                        #     # Each element is of type ::Google::Cloud::CloudDMS::V1::PrivateConnection.
         | 
| 2224 | 
            +
                        #     p item
         | 
| 2225 | 
            +
                        #   end
         | 
| 2226 | 
            +
                        #
         | 
| 2227 | 
            +
                        def list_private_connections request, options = nil
         | 
| 2228 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2229 | 
            +
             | 
| 2230 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::ListPrivateConnectionsRequest
         | 
| 2231 | 
            +
             | 
| 2232 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2233 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2234 | 
            +
             | 
| 2235 | 
            +
                          # Customize the options with defaults
         | 
| 2236 | 
            +
                          metadata = @config.rpcs.list_private_connections.metadata.to_h
         | 
| 2237 | 
            +
             | 
| 2238 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2239 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2240 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2241 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2242 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2243 | 
            +
             | 
| 2244 | 
            +
                          header_params = {}
         | 
| 2245 | 
            +
                          if request.parent
         | 
| 2246 | 
            +
                            header_params["parent"] = request.parent
         | 
| 2247 | 
            +
                          end
         | 
| 2248 | 
            +
             | 
| 2249 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2250 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2251 | 
            +
             | 
| 2252 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.list_private_connections.timeout,
         | 
| 2253 | 
            +
                                                 metadata:     metadata,
         | 
| 2254 | 
            +
                                                 retry_policy: @config.rpcs.list_private_connections.retry_policy
         | 
| 2255 | 
            +
             | 
| 2256 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2257 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2258 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2259 | 
            +
             | 
| 2260 | 
            +
                          @data_migration_service_stub.call_rpc :list_private_connections, request, options: options do |response, operation|
         | 
| 2261 | 
            +
                            response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :list_private_connections, request, response, operation, options
         | 
| 2262 | 
            +
                            yield response, operation if block_given?
         | 
| 2263 | 
            +
                            return response
         | 
| 2264 | 
            +
                          end
         | 
| 2265 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2266 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2267 | 
            +
                        end
         | 
| 2268 | 
            +
             | 
| 2269 | 
            +
                        ##
         | 
| 2270 | 
            +
                        # Deletes a single Database Migration Service private connection.
         | 
| 2271 | 
            +
                        #
         | 
| 2272 | 
            +
                        # @overload delete_private_connection(request, options = nil)
         | 
| 2273 | 
            +
                        #   Pass arguments to `delete_private_connection` via a request object, either of type
         | 
| 2274 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::DeletePrivateConnectionRequest} or an equivalent Hash.
         | 
| 2275 | 
            +
                        #
         | 
| 2276 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::DeletePrivateConnectionRequest, ::Hash]
         | 
| 2277 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2278 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2279 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2280 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2281 | 
            +
                        #
         | 
| 2282 | 
            +
                        # @overload delete_private_connection(name: nil, request_id: nil)
         | 
| 2283 | 
            +
                        #   Pass arguments to `delete_private_connection` via keyword arguments. Note that at
         | 
| 2284 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2285 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2286 | 
            +
                        #
         | 
| 2287 | 
            +
                        #   @param name [::String]
         | 
| 2288 | 
            +
                        #     Required. The name of the private connection to delete.
         | 
| 2289 | 
            +
                        #   @param request_id [::String]
         | 
| 2290 | 
            +
                        #     Optional. A unique ID used to identify the request. If the server receives
         | 
| 2291 | 
            +
                        #     two requests with the same ID, then the second request is ignored.
         | 
| 2292 | 
            +
                        #
         | 
| 2293 | 
            +
                        #     It is recommended to always set this value to a UUID.
         | 
| 2294 | 
            +
                        #
         | 
| 2295 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 2296 | 
            +
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 2297 | 
            +
                        #
         | 
| 2298 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2299 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 2300 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2301 | 
            +
                        #
         | 
| 2302 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 2303 | 
            +
                        #
         | 
| 2304 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2305 | 
            +
                        #
         | 
| 2306 | 
            +
                        # @example Basic example
         | 
| 2307 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2308 | 
            +
                        #
         | 
| 2309 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2310 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2311 | 
            +
                        #
         | 
| 2312 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2313 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::DeletePrivateConnectionRequest.new
         | 
| 2314 | 
            +
                        #
         | 
| 2315 | 
            +
                        #   # Call the delete_private_connection method.
         | 
| 2316 | 
            +
                        #   result = client.delete_private_connection request
         | 
| 2317 | 
            +
                        #
         | 
| 2318 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 2319 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 2320 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 2321 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 2322 | 
            +
                        #   if result.response?
         | 
| 2323 | 
            +
                        #     p result.response
         | 
| 2324 | 
            +
                        #   else
         | 
| 2325 | 
            +
                        #     puts "No response received."
         | 
| 2326 | 
            +
                        #   end
         | 
| 2327 | 
            +
                        #
         | 
| 2328 | 
            +
                        def delete_private_connection request, options = nil
         | 
| 2329 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2330 | 
            +
             | 
| 2331 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::DeletePrivateConnectionRequest
         | 
| 2332 | 
            +
             | 
| 2333 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2334 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2335 | 
            +
             | 
| 2336 | 
            +
                          # Customize the options with defaults
         | 
| 2337 | 
            +
                          metadata = @config.rpcs.delete_private_connection.metadata.to_h
         | 
| 2338 | 
            +
             | 
| 2339 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2340 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2341 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2342 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2343 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2344 | 
            +
             | 
| 2345 | 
            +
                          header_params = {}
         | 
| 2346 | 
            +
                          if request.name
         | 
| 2347 | 
            +
                            header_params["name"] = request.name
         | 
| 2348 | 
            +
                          end
         | 
| 2349 | 
            +
             | 
| 2350 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2351 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2352 | 
            +
             | 
| 2353 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.delete_private_connection.timeout,
         | 
| 2354 | 
            +
                                                 metadata:     metadata,
         | 
| 2355 | 
            +
                                                 retry_policy: @config.rpcs.delete_private_connection.retry_policy
         | 
| 2356 | 
            +
             | 
| 2357 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2358 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2359 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2360 | 
            +
             | 
| 2361 | 
            +
                          @data_migration_service_stub.call_rpc :delete_private_connection, request, options: options do |response, operation|
         | 
| 2362 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 2363 | 
            +
                            yield response, operation if block_given?
         | 
| 2364 | 
            +
                            return response
         | 
| 2365 | 
            +
                          end
         | 
| 2366 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2367 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2368 | 
            +
                        end
         | 
| 2369 | 
            +
             | 
| 2370 | 
            +
                        ##
         | 
| 2371 | 
            +
                        # Gets details of a single conversion workspace.
         | 
| 2372 | 
            +
                        #
         | 
| 2373 | 
            +
                        # @overload get_conversion_workspace(request, options = nil)
         | 
| 2374 | 
            +
                        #   Pass arguments to `get_conversion_workspace` via a request object, either of type
         | 
| 2375 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::GetConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 2376 | 
            +
                        #
         | 
| 2377 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::GetConversionWorkspaceRequest, ::Hash]
         | 
| 2378 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2379 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2380 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2381 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2382 | 
            +
                        #
         | 
| 2383 | 
            +
                        # @overload get_conversion_workspace(name: nil)
         | 
| 2384 | 
            +
                        #   Pass arguments to `get_conversion_workspace` via keyword arguments. Note that at
         | 
| 2385 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2386 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2387 | 
            +
                        #
         | 
| 2388 | 
            +
                        #   @param name [::String]
         | 
| 2389 | 
            +
                        #     Required. Name of the conversion workspace resource to get.
         | 
| 2390 | 
            +
                        #
         | 
| 2391 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2392 | 
            +
                        # @yieldparam response [::Google::Cloud::CloudDMS::V1::ConversionWorkspace]
         | 
| 2393 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2394 | 
            +
                        #
         | 
| 2395 | 
            +
                        # @return [::Google::Cloud::CloudDMS::V1::ConversionWorkspace]
         | 
| 2396 | 
            +
                        #
         | 
| 2397 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2398 | 
            +
                        #
         | 
| 2399 | 
            +
                        # @example Basic example
         | 
| 2400 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2401 | 
            +
                        #
         | 
| 2402 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2403 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2404 | 
            +
                        #
         | 
| 2405 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2406 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::GetConversionWorkspaceRequest.new
         | 
| 2407 | 
            +
                        #
         | 
| 2408 | 
            +
                        #   # Call the get_conversion_workspace method.
         | 
| 2409 | 
            +
                        #   result = client.get_conversion_workspace request
         | 
| 2410 | 
            +
                        #
         | 
| 2411 | 
            +
                        #   # The returned object is of type Google::Cloud::CloudDMS::V1::ConversionWorkspace.
         | 
| 2412 | 
            +
                        #   p result
         | 
| 2413 | 
            +
                        #
         | 
| 2414 | 
            +
                        def get_conversion_workspace request, options = nil
         | 
| 2415 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2416 | 
            +
             | 
| 2417 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::GetConversionWorkspaceRequest
         | 
| 2418 | 
            +
             | 
| 2419 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2420 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2421 | 
            +
             | 
| 2422 | 
            +
                          # Customize the options with defaults
         | 
| 2423 | 
            +
                          metadata = @config.rpcs.get_conversion_workspace.metadata.to_h
         | 
| 2424 | 
            +
             | 
| 2425 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2426 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2427 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2428 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2429 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2430 | 
            +
             | 
| 2431 | 
            +
                          header_params = {}
         | 
| 2432 | 
            +
                          if request.name
         | 
| 2433 | 
            +
                            header_params["name"] = request.name
         | 
| 2434 | 
            +
                          end
         | 
| 2435 | 
            +
             | 
| 2436 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2437 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2438 | 
            +
             | 
| 2439 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.get_conversion_workspace.timeout,
         | 
| 2440 | 
            +
                                                 metadata:     metadata,
         | 
| 2441 | 
            +
                                                 retry_policy: @config.rpcs.get_conversion_workspace.retry_policy
         | 
| 2442 | 
            +
             | 
| 2443 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2444 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2445 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2446 | 
            +
             | 
| 2447 | 
            +
                          @data_migration_service_stub.call_rpc :get_conversion_workspace, request, options: options do |response, operation|
         | 
| 2448 | 
            +
                            yield response, operation if block_given?
         | 
| 2449 | 
            +
                            return response
         | 
| 2450 | 
            +
                          end
         | 
| 2451 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2452 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2453 | 
            +
                        end
         | 
| 2454 | 
            +
             | 
| 2455 | 
            +
                        ##
         | 
| 2456 | 
            +
                        # Lists conversion workspaces in a given project and location.
         | 
| 2457 | 
            +
                        #
         | 
| 2458 | 
            +
                        # @overload list_conversion_workspaces(request, options = nil)
         | 
| 2459 | 
            +
                        #   Pass arguments to `list_conversion_workspaces` via a request object, either of type
         | 
| 2460 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::ListConversionWorkspacesRequest} or an equivalent Hash.
         | 
| 2461 | 
            +
                        #
         | 
| 2462 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::ListConversionWorkspacesRequest, ::Hash]
         | 
| 2463 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2464 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2465 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2466 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2467 | 
            +
                        #
         | 
| 2468 | 
            +
                        # @overload list_conversion_workspaces(parent: nil, page_size: nil, page_token: nil, filter: nil)
         | 
| 2469 | 
            +
                        #   Pass arguments to `list_conversion_workspaces` via keyword arguments. Note that at
         | 
| 2470 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2471 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2472 | 
            +
                        #
         | 
| 2473 | 
            +
                        #   @param parent [::String]
         | 
| 2474 | 
            +
                        #     Required. The parent which owns this collection of conversion workspaces.
         | 
| 2475 | 
            +
                        #   @param page_size [::Integer]
         | 
| 2476 | 
            +
                        #     The maximum number of conversion workspaces to return. The service may
         | 
| 2477 | 
            +
                        #     return fewer than this value. If unspecified, at most 50 sets are returned.
         | 
| 2478 | 
            +
                        #   @param page_token [::String]
         | 
| 2479 | 
            +
                        #     The nextPageToken value received in the previous call to
         | 
| 2480 | 
            +
                        #     conversionWorkspaces.list, used in the subsequent request to retrieve the
         | 
| 2481 | 
            +
                        #     next page of results. On first call this should be left blank. When
         | 
| 2482 | 
            +
                        #     paginating, all other parameters provided to conversionWorkspaces.list must
         | 
| 2483 | 
            +
                        #     match the call that provided the page token.
         | 
| 2484 | 
            +
                        #   @param filter [::String]
         | 
| 2485 | 
            +
                        #     A filter expression that filters conversion workspaces listed in the
         | 
| 2486 | 
            +
                        #     response. The expression must specify the field name, a comparison
         | 
| 2487 | 
            +
                        #     operator, and the value that you want to use for filtering. The value must
         | 
| 2488 | 
            +
                        #     be a string, a number, or a boolean. The comparison operator must be either
         | 
| 2489 | 
            +
                        #     =, !=, >, or <. For example, list conversion workspaces created this year
         | 
| 2490 | 
            +
                        #     by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
         | 
| 2491 | 
            +
                        #     also filter nested fields. For example, you could specify
         | 
| 2492 | 
            +
                        #     **source.version = "12.c.1"** to select all conversion workspaces with
         | 
| 2493 | 
            +
                        #     source database version equal to 12.c.1.
         | 
| 2494 | 
            +
                        #
         | 
| 2495 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2496 | 
            +
                        # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CloudDMS::V1::ConversionWorkspace>]
         | 
| 2497 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2498 | 
            +
                        #
         | 
| 2499 | 
            +
                        # @return [::Gapic::PagedEnumerable<::Google::Cloud::CloudDMS::V1::ConversionWorkspace>]
         | 
| 2500 | 
            +
                        #
         | 
| 2501 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2502 | 
            +
                        #
         | 
| 2503 | 
            +
                        # @example Basic example
         | 
| 2504 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2505 | 
            +
                        #
         | 
| 2506 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2507 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2508 | 
            +
                        #
         | 
| 2509 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2510 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::ListConversionWorkspacesRequest.new
         | 
| 2511 | 
            +
                        #
         | 
| 2512 | 
            +
                        #   # Call the list_conversion_workspaces method.
         | 
| 2513 | 
            +
                        #   result = client.list_conversion_workspaces request
         | 
| 2514 | 
            +
                        #
         | 
| 2515 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 2516 | 
            +
                        #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 2517 | 
            +
                        #   result.each do |item|
         | 
| 2518 | 
            +
                        #     # Each element is of type ::Google::Cloud::CloudDMS::V1::ConversionWorkspace.
         | 
| 2519 | 
            +
                        #     p item
         | 
| 2520 | 
            +
                        #   end
         | 
| 2521 | 
            +
                        #
         | 
| 2522 | 
            +
                        def list_conversion_workspaces request, options = nil
         | 
| 2523 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2524 | 
            +
             | 
| 2525 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::ListConversionWorkspacesRequest
         | 
| 2526 | 
            +
             | 
| 2527 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2528 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2529 | 
            +
             | 
| 2530 | 
            +
                          # Customize the options with defaults
         | 
| 2531 | 
            +
                          metadata = @config.rpcs.list_conversion_workspaces.metadata.to_h
         | 
| 2532 | 
            +
             | 
| 2533 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2534 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2535 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2536 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2537 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2538 | 
            +
             | 
| 2539 | 
            +
                          header_params = {}
         | 
| 2540 | 
            +
                          if request.parent
         | 
| 2541 | 
            +
                            header_params["parent"] = request.parent
         | 
| 2542 | 
            +
                          end
         | 
| 2543 | 
            +
             | 
| 2544 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2545 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2546 | 
            +
             | 
| 2547 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.list_conversion_workspaces.timeout,
         | 
| 2548 | 
            +
                                                 metadata:     metadata,
         | 
| 2549 | 
            +
                                                 retry_policy: @config.rpcs.list_conversion_workspaces.retry_policy
         | 
| 2550 | 
            +
             | 
| 2551 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2552 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2553 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2554 | 
            +
             | 
| 2555 | 
            +
                          @data_migration_service_stub.call_rpc :list_conversion_workspaces, request, options: options do |response, operation|
         | 
| 2556 | 
            +
                            response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :list_conversion_workspaces, request, response, operation, options
         | 
| 2557 | 
            +
                            yield response, operation if block_given?
         | 
| 2558 | 
            +
                            return response
         | 
| 2559 | 
            +
                          end
         | 
| 2560 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2561 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2562 | 
            +
                        end
         | 
| 2563 | 
            +
             | 
| 2564 | 
            +
                        ##
         | 
| 2565 | 
            +
                        # Creates a new conversion workspace in a given project and location.
         | 
| 2566 | 
            +
                        #
         | 
| 2567 | 
            +
                        # @overload create_conversion_workspace(request, options = nil)
         | 
| 2568 | 
            +
                        #   Pass arguments to `create_conversion_workspace` via a request object, either of type
         | 
| 2569 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::CreateConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 2570 | 
            +
                        #
         | 
| 2571 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::CreateConversionWorkspaceRequest, ::Hash]
         | 
| 2572 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2573 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2574 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2575 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2576 | 
            +
                        #
         | 
| 2577 | 
            +
                        # @overload create_conversion_workspace(parent: nil, conversion_workspace_id: nil, conversion_workspace: nil, request_id: nil)
         | 
| 2578 | 
            +
                        #   Pass arguments to `create_conversion_workspace` via keyword arguments. Note that at
         | 
| 2579 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2580 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2581 | 
            +
                        #
         | 
| 2582 | 
            +
                        #   @param parent [::String]
         | 
| 2583 | 
            +
                        #     Required. The parent which owns this collection of conversion workspaces.
         | 
| 2584 | 
            +
                        #   @param conversion_workspace_id [::String]
         | 
| 2585 | 
            +
                        #     Required. The ID of the conversion workspace to create.
         | 
| 2586 | 
            +
                        #   @param conversion_workspace [::Google::Cloud::CloudDMS::V1::ConversionWorkspace, ::Hash]
         | 
| 2587 | 
            +
                        #     Required. Represents a conversion workspace object.
         | 
| 2588 | 
            +
                        #   @param request_id [::String]
         | 
| 2589 | 
            +
                        #     A unique ID used to identify the request. If the server receives two
         | 
| 2590 | 
            +
                        #     requests with the same ID, then the second request is ignored.
         | 
| 2591 | 
            +
                        #
         | 
| 2592 | 
            +
                        #     It is recommended to always set this value to a UUID.
         | 
| 2593 | 
            +
                        #
         | 
| 2594 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 2595 | 
            +
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 2596 | 
            +
                        #
         | 
| 2597 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2598 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 2599 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2600 | 
            +
                        #
         | 
| 2601 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 2602 | 
            +
                        #
         | 
| 2603 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2604 | 
            +
                        #
         | 
| 2605 | 
            +
                        # @example Basic example
         | 
| 2606 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2607 | 
            +
                        #
         | 
| 2608 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2609 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2610 | 
            +
                        #
         | 
| 2611 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2612 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::CreateConversionWorkspaceRequest.new
         | 
| 2613 | 
            +
                        #
         | 
| 2614 | 
            +
                        #   # Call the create_conversion_workspace method.
         | 
| 2615 | 
            +
                        #   result = client.create_conversion_workspace request
         | 
| 2616 | 
            +
                        #
         | 
| 2617 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 2618 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 2619 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 2620 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 2621 | 
            +
                        #   if result.response?
         | 
| 2622 | 
            +
                        #     p result.response
         | 
| 2623 | 
            +
                        #   else
         | 
| 2624 | 
            +
                        #     puts "No response received."
         | 
| 2625 | 
            +
                        #   end
         | 
| 2626 | 
            +
                        #
         | 
| 2627 | 
            +
                        def create_conversion_workspace request, options = nil
         | 
| 2628 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2629 | 
            +
             | 
| 2630 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::CreateConversionWorkspaceRequest
         | 
| 2631 | 
            +
             | 
| 2632 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2633 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2634 | 
            +
             | 
| 2635 | 
            +
                          # Customize the options with defaults
         | 
| 2636 | 
            +
                          metadata = @config.rpcs.create_conversion_workspace.metadata.to_h
         | 
| 2637 | 
            +
             | 
| 2638 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2639 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2640 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2641 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2642 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2643 | 
            +
             | 
| 2644 | 
            +
                          header_params = {}
         | 
| 2645 | 
            +
                          if request.parent
         | 
| 2646 | 
            +
                            header_params["parent"] = request.parent
         | 
| 2647 | 
            +
                          end
         | 
| 2648 | 
            +
             | 
| 2649 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2650 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2651 | 
            +
             | 
| 2652 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.create_conversion_workspace.timeout,
         | 
| 2653 | 
            +
                                                 metadata:     metadata,
         | 
| 2654 | 
            +
                                                 retry_policy: @config.rpcs.create_conversion_workspace.retry_policy
         | 
| 2655 | 
            +
             | 
| 2656 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2657 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2658 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2659 | 
            +
             | 
| 2660 | 
            +
                          @data_migration_service_stub.call_rpc :create_conversion_workspace, request, options: options do |response, operation|
         | 
| 2661 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 2662 | 
            +
                            yield response, operation if block_given?
         | 
| 2663 | 
            +
                            return response
         | 
| 2664 | 
            +
                          end
         | 
| 2665 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2666 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2667 | 
            +
                        end
         | 
| 2668 | 
            +
             | 
| 2669 | 
            +
                        ##
         | 
| 2670 | 
            +
                        # Updates the parameters of a single conversion workspace.
         | 
| 2671 | 
            +
                        #
         | 
| 2672 | 
            +
                        # @overload update_conversion_workspace(request, options = nil)
         | 
| 2673 | 
            +
                        #   Pass arguments to `update_conversion_workspace` via a request object, either of type
         | 
| 2674 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::UpdateConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 2675 | 
            +
                        #
         | 
| 2676 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::UpdateConversionWorkspaceRequest, ::Hash]
         | 
| 2677 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2678 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2679 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2680 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2681 | 
            +
                        #
         | 
| 2682 | 
            +
                        # @overload update_conversion_workspace(update_mask: nil, conversion_workspace: nil, request_id: nil)
         | 
| 2683 | 
            +
                        #   Pass arguments to `update_conversion_workspace` via keyword arguments. Note that at
         | 
| 2684 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2685 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2686 | 
            +
                        #
         | 
| 2687 | 
            +
                        #   @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
         | 
| 2688 | 
            +
                        #     Required. Field mask is used to specify the fields to be overwritten by the
         | 
| 2689 | 
            +
                        #     update in the conversion workspace resource.
         | 
| 2690 | 
            +
                        #   @param conversion_workspace [::Google::Cloud::CloudDMS::V1::ConversionWorkspace, ::Hash]
         | 
| 2691 | 
            +
                        #     Required. The conversion workspace parameters to update.
         | 
| 2692 | 
            +
                        #   @param request_id [::String]
         | 
| 2693 | 
            +
                        #     A unique ID used to identify the request. If the server receives two
         | 
| 2694 | 
            +
                        #     requests with the same ID, then the second request is ignored.
         | 
| 2695 | 
            +
                        #
         | 
| 2696 | 
            +
                        #     It is recommended to always set this value to a UUID.
         | 
| 2697 | 
            +
                        #
         | 
| 2698 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 2699 | 
            +
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 2700 | 
            +
                        #
         | 
| 2701 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2702 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 2703 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2704 | 
            +
                        #
         | 
| 2705 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 2706 | 
            +
                        #
         | 
| 2707 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2708 | 
            +
                        #
         | 
| 2709 | 
            +
                        # @example Basic example
         | 
| 2710 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2711 | 
            +
                        #
         | 
| 2712 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2713 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2714 | 
            +
                        #
         | 
| 2715 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2716 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::UpdateConversionWorkspaceRequest.new
         | 
| 2717 | 
            +
                        #
         | 
| 2718 | 
            +
                        #   # Call the update_conversion_workspace method.
         | 
| 2719 | 
            +
                        #   result = client.update_conversion_workspace request
         | 
| 2720 | 
            +
                        #
         | 
| 2721 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 2722 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 2723 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 2724 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 2725 | 
            +
                        #   if result.response?
         | 
| 2726 | 
            +
                        #     p result.response
         | 
| 2727 | 
            +
                        #   else
         | 
| 2728 | 
            +
                        #     puts "No response received."
         | 
| 2729 | 
            +
                        #   end
         | 
| 2730 | 
            +
                        #
         | 
| 2731 | 
            +
                        def update_conversion_workspace request, options = nil
         | 
| 2732 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2733 | 
            +
             | 
| 2734 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::UpdateConversionWorkspaceRequest
         | 
| 2735 | 
            +
             | 
| 2736 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2737 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2738 | 
            +
             | 
| 2739 | 
            +
                          # Customize the options with defaults
         | 
| 2740 | 
            +
                          metadata = @config.rpcs.update_conversion_workspace.metadata.to_h
         | 
| 2741 | 
            +
             | 
| 2742 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2743 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2744 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2745 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2746 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2747 | 
            +
             | 
| 2748 | 
            +
                          header_params = {}
         | 
| 2749 | 
            +
                          if request.conversion_workspace&.name
         | 
| 2750 | 
            +
                            header_params["conversion_workspace.name"] = request.conversion_workspace.name
         | 
| 2751 | 
            +
                          end
         | 
| 2752 | 
            +
             | 
| 2753 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2754 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2755 | 
            +
             | 
| 2756 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.update_conversion_workspace.timeout,
         | 
| 2757 | 
            +
                                                 metadata:     metadata,
         | 
| 2758 | 
            +
                                                 retry_policy: @config.rpcs.update_conversion_workspace.retry_policy
         | 
| 2759 | 
            +
             | 
| 2760 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2761 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2762 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2763 | 
            +
             | 
| 2764 | 
            +
                          @data_migration_service_stub.call_rpc :update_conversion_workspace, request, options: options do |response, operation|
         | 
| 2765 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 2766 | 
            +
                            yield response, operation if block_given?
         | 
| 2767 | 
            +
                            return response
         | 
| 2768 | 
            +
                          end
         | 
| 2769 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2770 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2771 | 
            +
                        end
         | 
| 2772 | 
            +
             | 
| 2773 | 
            +
                        ##
         | 
| 2774 | 
            +
                        # Deletes a single conversion workspace.
         | 
| 2775 | 
            +
                        #
         | 
| 2776 | 
            +
                        # @overload delete_conversion_workspace(request, options = nil)
         | 
| 2777 | 
            +
                        #   Pass arguments to `delete_conversion_workspace` via a request object, either of type
         | 
| 2778 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::DeleteConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 2779 | 
            +
                        #
         | 
| 2780 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::DeleteConversionWorkspaceRequest, ::Hash]
         | 
| 2781 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2782 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2783 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2784 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2785 | 
            +
                        #
         | 
| 2786 | 
            +
                        # @overload delete_conversion_workspace(name: nil, request_id: nil)
         | 
| 2787 | 
            +
                        #   Pass arguments to `delete_conversion_workspace` via keyword arguments. Note that at
         | 
| 2788 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2789 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2790 | 
            +
                        #
         | 
| 2791 | 
            +
                        #   @param name [::String]
         | 
| 2792 | 
            +
                        #     Required. Name of the conversion workspace resource to delete.
         | 
| 2793 | 
            +
                        #   @param request_id [::String]
         | 
| 2794 | 
            +
                        #     A unique ID used to identify the request. If the server receives two
         | 
| 2795 | 
            +
                        #     requests with the same ID, then the second request is ignored.
         | 
| 2796 | 
            +
                        #
         | 
| 2797 | 
            +
                        #     It is recommended to always set this value to a UUID.
         | 
| 2798 | 
            +
                        #
         | 
| 2799 | 
            +
                        #     The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
         | 
| 2800 | 
            +
                        #     (_), and hyphens (-). The maximum length is 40 characters.
         | 
| 2801 | 
            +
                        #
         | 
| 2802 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2803 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 2804 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2805 | 
            +
                        #
         | 
| 2806 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 2807 | 
            +
                        #
         | 
| 2808 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2809 | 
            +
                        #
         | 
| 2810 | 
            +
                        # @example Basic example
         | 
| 2811 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2812 | 
            +
                        #
         | 
| 2813 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2814 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2815 | 
            +
                        #
         | 
| 2816 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2817 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::DeleteConversionWorkspaceRequest.new
         | 
| 2818 | 
            +
                        #
         | 
| 2819 | 
            +
                        #   # Call the delete_conversion_workspace method.
         | 
| 2820 | 
            +
                        #   result = client.delete_conversion_workspace request
         | 
| 2821 | 
            +
                        #
         | 
| 2822 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 2823 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 2824 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 2825 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 2826 | 
            +
                        #   if result.response?
         | 
| 2827 | 
            +
                        #     p result.response
         | 
| 2828 | 
            +
                        #   else
         | 
| 2829 | 
            +
                        #     puts "No response received."
         | 
| 2830 | 
            +
                        #   end
         | 
| 2831 | 
            +
                        #
         | 
| 2832 | 
            +
                        def delete_conversion_workspace request, options = nil
         | 
| 2833 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2834 | 
            +
             | 
| 2835 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::DeleteConversionWorkspaceRequest
         | 
| 2836 | 
            +
             | 
| 2837 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2838 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2839 | 
            +
             | 
| 2840 | 
            +
                          # Customize the options with defaults
         | 
| 2841 | 
            +
                          metadata = @config.rpcs.delete_conversion_workspace.metadata.to_h
         | 
| 2842 | 
            +
             | 
| 2843 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2844 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2845 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2846 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2847 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2848 | 
            +
             | 
| 2849 | 
            +
                          header_params = {}
         | 
| 2850 | 
            +
                          if request.name
         | 
| 2851 | 
            +
                            header_params["name"] = request.name
         | 
| 2852 | 
            +
                          end
         | 
| 2853 | 
            +
             | 
| 2854 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2855 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2856 | 
            +
             | 
| 2857 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.delete_conversion_workspace.timeout,
         | 
| 2858 | 
            +
                                                 metadata:     metadata,
         | 
| 2859 | 
            +
                                                 retry_policy: @config.rpcs.delete_conversion_workspace.retry_policy
         | 
| 2860 | 
            +
             | 
| 2861 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2862 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2863 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2864 | 
            +
             | 
| 2865 | 
            +
                          @data_migration_service_stub.call_rpc :delete_conversion_workspace, request, options: options do |response, operation|
         | 
| 2866 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 2867 | 
            +
                            yield response, operation if block_given?
         | 
| 2868 | 
            +
                            return response
         | 
| 2869 | 
            +
                          end
         | 
| 2870 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2871 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2872 | 
            +
                        end
         | 
| 2873 | 
            +
             | 
| 2874 | 
            +
                        ##
         | 
| 2875 | 
            +
                        # Imports a snapshot of the source database into the
         | 
| 2876 | 
            +
                        # conversion workspace.
         | 
| 2877 | 
            +
                        #
         | 
| 2878 | 
            +
                        # @overload seed_conversion_workspace(request, options = nil)
         | 
| 2879 | 
            +
                        #   Pass arguments to `seed_conversion_workspace` via a request object, either of type
         | 
| 2880 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::SeedConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 2881 | 
            +
                        #
         | 
| 2882 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::SeedConversionWorkspaceRequest, ::Hash]
         | 
| 2883 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2884 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2885 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2886 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2887 | 
            +
                        #
         | 
| 2888 | 
            +
                        # @overload seed_conversion_workspace(name: nil, auto_commit: nil, source_connection_profile: nil, destination_connection_profile: nil)
         | 
| 2889 | 
            +
                        #   Pass arguments to `seed_conversion_workspace` via keyword arguments. Note that at
         | 
| 2890 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2891 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2892 | 
            +
                        #
         | 
| 2893 | 
            +
                        #   @param name [::String]
         | 
| 2894 | 
            +
                        #     Name of the conversion workspace resource to seed with new database
         | 
| 2895 | 
            +
                        #     structure, in the form of:
         | 
| 2896 | 
            +
                        #     projects/\\{project}/locations/\\{location}/conversionWorkspaces/\\{conversion_workspace}.
         | 
| 2897 | 
            +
                        #   @param auto_commit [::Boolean]
         | 
| 2898 | 
            +
                        #     Should the conversion workspace be committed automatically after the
         | 
| 2899 | 
            +
                        #     seed operation.
         | 
| 2900 | 
            +
                        #   @param source_connection_profile [::String]
         | 
| 2901 | 
            +
                        #     Fully qualified (Uri) name of the source connection profile.
         | 
| 2902 | 
            +
                        #   @param destination_connection_profile [::String]
         | 
| 2903 | 
            +
                        #     Fully qualified (Uri) name of the destination connection profile.
         | 
| 2904 | 
            +
                        #
         | 
| 2905 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 2906 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 2907 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 2908 | 
            +
                        #
         | 
| 2909 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 2910 | 
            +
                        #
         | 
| 2911 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 2912 | 
            +
                        #
         | 
| 2913 | 
            +
                        # @example Basic example
         | 
| 2914 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 2915 | 
            +
                        #
         | 
| 2916 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 2917 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 2918 | 
            +
                        #
         | 
| 2919 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 2920 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::SeedConversionWorkspaceRequest.new
         | 
| 2921 | 
            +
                        #
         | 
| 2922 | 
            +
                        #   # Call the seed_conversion_workspace method.
         | 
| 2923 | 
            +
                        #   result = client.seed_conversion_workspace request
         | 
| 2924 | 
            +
                        #
         | 
| 2925 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 2926 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 2927 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 2928 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 2929 | 
            +
                        #   if result.response?
         | 
| 2930 | 
            +
                        #     p result.response
         | 
| 2931 | 
            +
                        #   else
         | 
| 2932 | 
            +
                        #     puts "No response received."
         | 
| 2933 | 
            +
                        #   end
         | 
| 2934 | 
            +
                        #
         | 
| 2935 | 
            +
                        def seed_conversion_workspace request, options = nil
         | 
| 2936 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 2937 | 
            +
             | 
| 2938 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::SeedConversionWorkspaceRequest
         | 
| 2939 | 
            +
             | 
| 2940 | 
            +
                          # Converts hash and nil to an options object
         | 
| 2941 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 2942 | 
            +
             | 
| 2943 | 
            +
                          # Customize the options with defaults
         | 
| 2944 | 
            +
                          metadata = @config.rpcs.seed_conversion_workspace.metadata.to_h
         | 
| 2945 | 
            +
             | 
| 2946 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 2947 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 2948 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 2949 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 2950 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 2951 | 
            +
             | 
| 2952 | 
            +
                          header_params = {}
         | 
| 2953 | 
            +
                          if request.name
         | 
| 2954 | 
            +
                            header_params["name"] = request.name
         | 
| 2955 | 
            +
                          end
         | 
| 2956 | 
            +
             | 
| 2957 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 2958 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 2959 | 
            +
             | 
| 2960 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.seed_conversion_workspace.timeout,
         | 
| 2961 | 
            +
                                                 metadata:     metadata,
         | 
| 2962 | 
            +
                                                 retry_policy: @config.rpcs.seed_conversion_workspace.retry_policy
         | 
| 2963 | 
            +
             | 
| 2964 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 2965 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 2966 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 2967 | 
            +
             | 
| 2968 | 
            +
                          @data_migration_service_stub.call_rpc :seed_conversion_workspace, request, options: options do |response, operation|
         | 
| 2969 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 2970 | 
            +
                            yield response, operation if block_given?
         | 
| 2971 | 
            +
                            return response
         | 
| 2972 | 
            +
                          end
         | 
| 2973 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 2974 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 2975 | 
            +
                        end
         | 
| 2976 | 
            +
             | 
| 2977 | 
            +
                        ##
         | 
| 2978 | 
            +
                        # Imports the mapping rules for a given conversion workspace.
         | 
| 2979 | 
            +
                        # Supports various formats of external rules files.
         | 
| 2980 | 
            +
                        #
         | 
| 2981 | 
            +
                        # @overload import_mapping_rules(request, options = nil)
         | 
| 2982 | 
            +
                        #   Pass arguments to `import_mapping_rules` via a request object, either of type
         | 
| 2983 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::ImportMappingRulesRequest} or an equivalent Hash.
         | 
| 2984 | 
            +
                        #
         | 
| 2985 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::ImportMappingRulesRequest, ::Hash]
         | 
| 2986 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 2987 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 2988 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 2989 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 2990 | 
            +
                        #
         | 
| 2991 | 
            +
                        # @overload import_mapping_rules(parent: nil, rules_format: nil, rules_files: nil, auto_commit: nil)
         | 
| 2992 | 
            +
                        #   Pass arguments to `import_mapping_rules` via keyword arguments. Note that at
         | 
| 2993 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 2994 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 2995 | 
            +
                        #
         | 
| 2996 | 
            +
                        #   @param parent [::String]
         | 
| 2997 | 
            +
                        #     Required. Name of the conversion workspace resource to import the rules to
         | 
| 2998 | 
            +
                        #     in the form of:
         | 
| 2999 | 
            +
                        #     projects/\\{project}/locations/\\{location}/conversionWorkspaces/\\{conversion_workspace}.
         | 
| 3000 | 
            +
                        #   @param rules_format [::Google::Cloud::CloudDMS::V1::ImportRulesFileFormat]
         | 
| 3001 | 
            +
                        #     The format of the rules content file.
         | 
| 3002 | 
            +
                        #   @param rules_files [::Array<::Google::Cloud::CloudDMS::V1::ImportMappingRulesRequest::RulesFile, ::Hash>]
         | 
| 3003 | 
            +
                        #     One or more rules files.
         | 
| 3004 | 
            +
                        #   @param auto_commit [::Boolean]
         | 
| 3005 | 
            +
                        #     Should the conversion workspace be committed automatically after the
         | 
| 3006 | 
            +
                        #     import operation.
         | 
| 3007 | 
            +
                        #
         | 
| 3008 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3009 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 3010 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3011 | 
            +
                        #
         | 
| 3012 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 3013 | 
            +
                        #
         | 
| 3014 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3015 | 
            +
                        #
         | 
| 3016 | 
            +
                        # @example Basic example
         | 
| 3017 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3018 | 
            +
                        #
         | 
| 3019 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3020 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3021 | 
            +
                        #
         | 
| 3022 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3023 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::ImportMappingRulesRequest.new
         | 
| 3024 | 
            +
                        #
         | 
| 3025 | 
            +
                        #   # Call the import_mapping_rules method.
         | 
| 3026 | 
            +
                        #   result = client.import_mapping_rules request
         | 
| 3027 | 
            +
                        #
         | 
| 3028 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 3029 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 3030 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 3031 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 3032 | 
            +
                        #   if result.response?
         | 
| 3033 | 
            +
                        #     p result.response
         | 
| 3034 | 
            +
                        #   else
         | 
| 3035 | 
            +
                        #     puts "No response received."
         | 
| 3036 | 
            +
                        #   end
         | 
| 3037 | 
            +
                        #
         | 
| 3038 | 
            +
                        def import_mapping_rules request, options = nil
         | 
| 3039 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3040 | 
            +
             | 
| 3041 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::ImportMappingRulesRequest
         | 
| 3042 | 
            +
             | 
| 3043 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3044 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3045 | 
            +
             | 
| 3046 | 
            +
                          # Customize the options with defaults
         | 
| 3047 | 
            +
                          metadata = @config.rpcs.import_mapping_rules.metadata.to_h
         | 
| 3048 | 
            +
             | 
| 3049 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3050 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3051 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3052 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3053 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3054 | 
            +
             | 
| 3055 | 
            +
                          header_params = {}
         | 
| 3056 | 
            +
                          if request.parent
         | 
| 3057 | 
            +
                            header_params["parent"] = request.parent
         | 
| 3058 | 
            +
                          end
         | 
| 3059 | 
            +
             | 
| 3060 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3061 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3062 | 
            +
             | 
| 3063 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.import_mapping_rules.timeout,
         | 
| 3064 | 
            +
                                                 metadata:     metadata,
         | 
| 3065 | 
            +
                                                 retry_policy: @config.rpcs.import_mapping_rules.retry_policy
         | 
| 3066 | 
            +
             | 
| 3067 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3068 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3069 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3070 | 
            +
             | 
| 3071 | 
            +
                          @data_migration_service_stub.call_rpc :import_mapping_rules, request, options: options do |response, operation|
         | 
| 3072 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 3073 | 
            +
                            yield response, operation if block_given?
         | 
| 3074 | 
            +
                            return response
         | 
| 3075 | 
            +
                          end
         | 
| 3076 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3077 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3078 | 
            +
                        end
         | 
| 3079 | 
            +
             | 
| 3080 | 
            +
                        ##
         | 
| 3081 | 
            +
                        # Creates a draft tree schema for the destination database.
         | 
| 3082 | 
            +
                        #
         | 
| 3083 | 
            +
                        # @overload convert_conversion_workspace(request, options = nil)
         | 
| 3084 | 
            +
                        #   Pass arguments to `convert_conversion_workspace` via a request object, either of type
         | 
| 3085 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::ConvertConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 3086 | 
            +
                        #
         | 
| 3087 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::ConvertConversionWorkspaceRequest, ::Hash]
         | 
| 3088 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 3089 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 3090 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 3091 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 3092 | 
            +
                        #
         | 
| 3093 | 
            +
                        # @overload convert_conversion_workspace(name: nil, auto_commit: nil, filter: nil)
         | 
| 3094 | 
            +
                        #   Pass arguments to `convert_conversion_workspace` via keyword arguments. Note that at
         | 
| 3095 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 3096 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 3097 | 
            +
                        #
         | 
| 3098 | 
            +
                        #   @param name [::String]
         | 
| 3099 | 
            +
                        #     Name of the conversion workspace resource to convert in the form of:
         | 
| 3100 | 
            +
                        #     projects/\\{project}/locations/\\{location}/conversionWorkspaces/\\{conversion_workspace}.
         | 
| 3101 | 
            +
                        #   @param auto_commit [::Boolean]
         | 
| 3102 | 
            +
                        #     Specifies whether the conversion workspace is to be committed automatically
         | 
| 3103 | 
            +
                        #     after the conversion.
         | 
| 3104 | 
            +
                        #   @param filter [::String]
         | 
| 3105 | 
            +
                        #     Filter the entities to convert. Leaving this field empty will convert all
         | 
| 3106 | 
            +
                        #     of the entities. Supports Google AIP-160 style filtering.
         | 
| 3107 | 
            +
                        #
         | 
| 3108 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3109 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 3110 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3111 | 
            +
                        #
         | 
| 3112 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 3113 | 
            +
                        #
         | 
| 3114 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3115 | 
            +
                        #
         | 
| 3116 | 
            +
                        # @example Basic example
         | 
| 3117 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3118 | 
            +
                        #
         | 
| 3119 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3120 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3121 | 
            +
                        #
         | 
| 3122 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3123 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::ConvertConversionWorkspaceRequest.new
         | 
| 3124 | 
            +
                        #
         | 
| 3125 | 
            +
                        #   # Call the convert_conversion_workspace method.
         | 
| 3126 | 
            +
                        #   result = client.convert_conversion_workspace request
         | 
| 3127 | 
            +
                        #
         | 
| 3128 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 3129 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 3130 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 3131 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 3132 | 
            +
                        #   if result.response?
         | 
| 3133 | 
            +
                        #     p result.response
         | 
| 3134 | 
            +
                        #   else
         | 
| 3135 | 
            +
                        #     puts "No response received."
         | 
| 3136 | 
            +
                        #   end
         | 
| 3137 | 
            +
                        #
         | 
| 3138 | 
            +
                        def convert_conversion_workspace request, options = nil
         | 
| 3139 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3140 | 
            +
             | 
| 3141 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::ConvertConversionWorkspaceRequest
         | 
| 3142 | 
            +
             | 
| 3143 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3144 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3145 | 
            +
             | 
| 3146 | 
            +
                          # Customize the options with defaults
         | 
| 3147 | 
            +
                          metadata = @config.rpcs.convert_conversion_workspace.metadata.to_h
         | 
| 3148 | 
            +
             | 
| 3149 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3150 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3151 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3152 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3153 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3154 | 
            +
             | 
| 3155 | 
            +
                          header_params = {}
         | 
| 3156 | 
            +
                          if request.name
         | 
| 3157 | 
            +
                            header_params["name"] = request.name
         | 
| 3158 | 
            +
                          end
         | 
| 3159 | 
            +
             | 
| 3160 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3161 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3162 | 
            +
             | 
| 3163 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.convert_conversion_workspace.timeout,
         | 
| 3164 | 
            +
                                                 metadata:     metadata,
         | 
| 3165 | 
            +
                                                 retry_policy: @config.rpcs.convert_conversion_workspace.retry_policy
         | 
| 3166 | 
            +
             | 
| 3167 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3168 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3169 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3170 | 
            +
             | 
| 3171 | 
            +
                          @data_migration_service_stub.call_rpc :convert_conversion_workspace, request, options: options do |response, operation|
         | 
| 3172 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 3173 | 
            +
                            yield response, operation if block_given?
         | 
| 3174 | 
            +
                            return response
         | 
| 3175 | 
            +
                          end
         | 
| 3176 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3177 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3178 | 
            +
                        end
         | 
| 3179 | 
            +
             | 
| 3180 | 
            +
                        ##
         | 
| 3181 | 
            +
                        # Marks all the data in the conversion workspace as committed.
         | 
| 3182 | 
            +
                        #
         | 
| 3183 | 
            +
                        # @overload commit_conversion_workspace(request, options = nil)
         | 
| 3184 | 
            +
                        #   Pass arguments to `commit_conversion_workspace` via a request object, either of type
         | 
| 3185 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::CommitConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 3186 | 
            +
                        #
         | 
| 3187 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::CommitConversionWorkspaceRequest, ::Hash]
         | 
| 3188 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 3189 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 3190 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 3191 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 3192 | 
            +
                        #
         | 
| 3193 | 
            +
                        # @overload commit_conversion_workspace(name: nil, commit_name: nil)
         | 
| 3194 | 
            +
                        #   Pass arguments to `commit_conversion_workspace` via keyword arguments. Note that at
         | 
| 3195 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 3196 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 3197 | 
            +
                        #
         | 
| 3198 | 
            +
                        #   @param name [::String]
         | 
| 3199 | 
            +
                        #     Required. Name of the conversion workspace resource to commit.
         | 
| 3200 | 
            +
                        #   @param commit_name [::String]
         | 
| 3201 | 
            +
                        #     Optional. Optional name of the commit.
         | 
| 3202 | 
            +
                        #
         | 
| 3203 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3204 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 3205 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3206 | 
            +
                        #
         | 
| 3207 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 3208 | 
            +
                        #
         | 
| 3209 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3210 | 
            +
                        #
         | 
| 3211 | 
            +
                        # @example Basic example
         | 
| 3212 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3213 | 
            +
                        #
         | 
| 3214 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3215 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3216 | 
            +
                        #
         | 
| 3217 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3218 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::CommitConversionWorkspaceRequest.new
         | 
| 3219 | 
            +
                        #
         | 
| 3220 | 
            +
                        #   # Call the commit_conversion_workspace method.
         | 
| 3221 | 
            +
                        #   result = client.commit_conversion_workspace request
         | 
| 3222 | 
            +
                        #
         | 
| 3223 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 3224 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 3225 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 3226 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 3227 | 
            +
                        #   if result.response?
         | 
| 3228 | 
            +
                        #     p result.response
         | 
| 3229 | 
            +
                        #   else
         | 
| 3230 | 
            +
                        #     puts "No response received."
         | 
| 3231 | 
            +
                        #   end
         | 
| 3232 | 
            +
                        #
         | 
| 3233 | 
            +
                        def commit_conversion_workspace request, options = nil
         | 
| 3234 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3235 | 
            +
             | 
| 3236 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::CommitConversionWorkspaceRequest
         | 
| 3237 | 
            +
             | 
| 3238 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3239 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3240 | 
            +
             | 
| 3241 | 
            +
                          # Customize the options with defaults
         | 
| 3242 | 
            +
                          metadata = @config.rpcs.commit_conversion_workspace.metadata.to_h
         | 
| 3243 | 
            +
             | 
| 3244 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3245 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3246 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3247 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3248 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3249 | 
            +
             | 
| 3250 | 
            +
                          header_params = {}
         | 
| 3251 | 
            +
                          if request.name
         | 
| 3252 | 
            +
                            header_params["name"] = request.name
         | 
| 3253 | 
            +
                          end
         | 
| 3254 | 
            +
             | 
| 3255 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3256 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3257 | 
            +
             | 
| 3258 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.commit_conversion_workspace.timeout,
         | 
| 3259 | 
            +
                                                 metadata:     metadata,
         | 
| 3260 | 
            +
                                                 retry_policy: @config.rpcs.commit_conversion_workspace.retry_policy
         | 
| 3261 | 
            +
             | 
| 3262 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3263 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3264 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3265 | 
            +
             | 
| 3266 | 
            +
                          @data_migration_service_stub.call_rpc :commit_conversion_workspace, request, options: options do |response, operation|
         | 
| 3267 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 3268 | 
            +
                            yield response, operation if block_given?
         | 
| 3269 | 
            +
                            return response
         | 
| 3270 | 
            +
                          end
         | 
| 3271 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3272 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3273 | 
            +
                        end
         | 
| 3274 | 
            +
             | 
| 3275 | 
            +
                        ##
         | 
| 3276 | 
            +
                        # Rolls back a conversion workspace to the last committed snapshot.
         | 
| 3277 | 
            +
                        #
         | 
| 3278 | 
            +
                        # @overload rollback_conversion_workspace(request, options = nil)
         | 
| 3279 | 
            +
                        #   Pass arguments to `rollback_conversion_workspace` via a request object, either of type
         | 
| 3280 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::RollbackConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 3281 | 
            +
                        #
         | 
| 3282 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::RollbackConversionWorkspaceRequest, ::Hash]
         | 
| 3283 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 3284 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 3285 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 3286 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 3287 | 
            +
                        #
         | 
| 3288 | 
            +
                        # @overload rollback_conversion_workspace(name: nil)
         | 
| 3289 | 
            +
                        #   Pass arguments to `rollback_conversion_workspace` via keyword arguments. Note that at
         | 
| 3290 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 3291 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 3292 | 
            +
                        #
         | 
| 3293 | 
            +
                        #   @param name [::String]
         | 
| 3294 | 
            +
                        #     Required. Name of the conversion workspace resource to roll back to.
         | 
| 3295 | 
            +
                        #
         | 
| 3296 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3297 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 3298 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3299 | 
            +
                        #
         | 
| 3300 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 3301 | 
            +
                        #
         | 
| 3302 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3303 | 
            +
                        #
         | 
| 3304 | 
            +
                        # @example Basic example
         | 
| 3305 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3306 | 
            +
                        #
         | 
| 3307 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3308 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3309 | 
            +
                        #
         | 
| 3310 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3311 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::RollbackConversionWorkspaceRequest.new
         | 
| 3312 | 
            +
                        #
         | 
| 3313 | 
            +
                        #   # Call the rollback_conversion_workspace method.
         | 
| 3314 | 
            +
                        #   result = client.rollback_conversion_workspace request
         | 
| 3315 | 
            +
                        #
         | 
| 3316 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 3317 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 3318 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 3319 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 3320 | 
            +
                        #   if result.response?
         | 
| 3321 | 
            +
                        #     p result.response
         | 
| 3322 | 
            +
                        #   else
         | 
| 3323 | 
            +
                        #     puts "No response received."
         | 
| 3324 | 
            +
                        #   end
         | 
| 3325 | 
            +
                        #
         | 
| 3326 | 
            +
                        def rollback_conversion_workspace request, options = nil
         | 
| 3327 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3328 | 
            +
             | 
| 3329 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::RollbackConversionWorkspaceRequest
         | 
| 3330 | 
            +
             | 
| 3331 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3332 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3333 | 
            +
             | 
| 3334 | 
            +
                          # Customize the options with defaults
         | 
| 3335 | 
            +
                          metadata = @config.rpcs.rollback_conversion_workspace.metadata.to_h
         | 
| 3336 | 
            +
             | 
| 3337 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3338 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3339 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3340 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3341 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3342 | 
            +
             | 
| 3343 | 
            +
                          header_params = {}
         | 
| 3344 | 
            +
                          if request.name
         | 
| 3345 | 
            +
                            header_params["name"] = request.name
         | 
| 3346 | 
            +
                          end
         | 
| 3347 | 
            +
             | 
| 3348 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3349 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3350 | 
            +
             | 
| 3351 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.rollback_conversion_workspace.timeout,
         | 
| 3352 | 
            +
                                                 metadata:     metadata,
         | 
| 3353 | 
            +
                                                 retry_policy: @config.rpcs.rollback_conversion_workspace.retry_policy
         | 
| 3354 | 
            +
             | 
| 3355 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3356 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3357 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3358 | 
            +
             | 
| 3359 | 
            +
                          @data_migration_service_stub.call_rpc :rollback_conversion_workspace, request, options: options do |response, operation|
         | 
| 3360 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 3361 | 
            +
                            yield response, operation if block_given?
         | 
| 3362 | 
            +
                            return response
         | 
| 3363 | 
            +
                          end
         | 
| 3364 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3365 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3366 | 
            +
                        end
         | 
| 3367 | 
            +
             | 
| 3368 | 
            +
                        ##
         | 
| 3369 | 
            +
                        # Applies draft tree onto a specific destination database.
         | 
| 3370 | 
            +
                        #
         | 
| 3371 | 
            +
                        # @overload apply_conversion_workspace(request, options = nil)
         | 
| 3372 | 
            +
                        #   Pass arguments to `apply_conversion_workspace` via a request object, either of type
         | 
| 3373 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::ApplyConversionWorkspaceRequest} or an equivalent Hash.
         | 
| 3374 | 
            +
                        #
         | 
| 3375 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::ApplyConversionWorkspaceRequest, ::Hash]
         | 
| 3376 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 3377 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 3378 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 3379 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 3380 | 
            +
                        #
         | 
| 3381 | 
            +
                        # @overload apply_conversion_workspace(name: nil, filter: nil, connection_profile: nil)
         | 
| 3382 | 
            +
                        #   Pass arguments to `apply_conversion_workspace` via keyword arguments. Note that at
         | 
| 3383 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 3384 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 3385 | 
            +
                        #
         | 
| 3386 | 
            +
                        #   @param name [::String]
         | 
| 3387 | 
            +
                        #     Required. The name of the conversion workspace resource for which to apply
         | 
| 3388 | 
            +
                        #     the draft tree. Must be in the form of:
         | 
| 3389 | 
            +
                        #      projects/\\{project}/locations/\\{location}/conversionWorkspaces/\\{conversion_workspace}.
         | 
| 3390 | 
            +
                        #   @param filter [::String]
         | 
| 3391 | 
            +
                        #     Filter which entities to apply. Leaving this field empty will apply all of
         | 
| 3392 | 
            +
                        #     the entities. Supports Google AIP 160 based filtering.
         | 
| 3393 | 
            +
                        #   @param connection_profile [::String]
         | 
| 3394 | 
            +
                        #     Fully qualified (Uri) name of the destination connection profile.
         | 
| 3395 | 
            +
                        #
         | 
| 3396 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3397 | 
            +
                        # @yieldparam response [::Gapic::Operation]
         | 
| 3398 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3399 | 
            +
                        #
         | 
| 3400 | 
            +
                        # @return [::Gapic::Operation]
         | 
| 3401 | 
            +
                        #
         | 
| 3402 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3403 | 
            +
                        #
         | 
| 3404 | 
            +
                        # @example Basic example
         | 
| 3405 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3406 | 
            +
                        #
         | 
| 3407 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3408 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3409 | 
            +
                        #
         | 
| 3410 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3411 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::ApplyConversionWorkspaceRequest.new
         | 
| 3412 | 
            +
                        #
         | 
| 3413 | 
            +
                        #   # Call the apply_conversion_workspace method.
         | 
| 3414 | 
            +
                        #   result = client.apply_conversion_workspace request
         | 
| 3415 | 
            +
                        #
         | 
| 3416 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 3417 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 3418 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 3419 | 
            +
                        #   result.wait_until_done! timeout: 60
         | 
| 3420 | 
            +
                        #   if result.response?
         | 
| 3421 | 
            +
                        #     p result.response
         | 
| 3422 | 
            +
                        #   else
         | 
| 3423 | 
            +
                        #     puts "No response received."
         | 
| 3424 | 
            +
                        #   end
         | 
| 3425 | 
            +
                        #
         | 
| 3426 | 
            +
                        def apply_conversion_workspace request, options = nil
         | 
| 3427 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3428 | 
            +
             | 
| 3429 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::ApplyConversionWorkspaceRequest
         | 
| 3430 | 
            +
             | 
| 3431 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3432 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3433 | 
            +
             | 
| 3434 | 
            +
                          # Customize the options with defaults
         | 
| 3435 | 
            +
                          metadata = @config.rpcs.apply_conversion_workspace.metadata.to_h
         | 
| 3436 | 
            +
             | 
| 3437 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3438 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3439 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3440 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3441 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3442 | 
            +
             | 
| 3443 | 
            +
                          header_params = {}
         | 
| 3444 | 
            +
                          if request.name
         | 
| 3445 | 
            +
                            header_params["name"] = request.name
         | 
| 3446 | 
            +
                          end
         | 
| 3447 | 
            +
             | 
| 3448 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3449 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3450 | 
            +
             | 
| 3451 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.apply_conversion_workspace.timeout,
         | 
| 3452 | 
            +
                                                 metadata:     metadata,
         | 
| 3453 | 
            +
                                                 retry_policy: @config.rpcs.apply_conversion_workspace.retry_policy
         | 
| 3454 | 
            +
             | 
| 3455 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3456 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3457 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3458 | 
            +
             | 
| 3459 | 
            +
                          @data_migration_service_stub.call_rpc :apply_conversion_workspace, request, options: options do |response, operation|
         | 
| 3460 | 
            +
                            response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 3461 | 
            +
                            yield response, operation if block_given?
         | 
| 3462 | 
            +
                            return response
         | 
| 3463 | 
            +
                          end
         | 
| 3464 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3465 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3466 | 
            +
                        end
         | 
| 3467 | 
            +
             | 
| 3468 | 
            +
                        ##
         | 
| 3469 | 
            +
                        # Describes the database entities tree for a specific conversion workspace
         | 
| 3470 | 
            +
                        # and a specific tree type.
         | 
| 3471 | 
            +
                        #
         | 
| 3472 | 
            +
                        # Database entities are not resources like conversion workspaces or mapping
         | 
| 3473 | 
            +
                        # rules, and they can't be created, updated or deleted. Instead, they are
         | 
| 3474 | 
            +
                        # simple data objects describing the structure of the client database.
         | 
| 3475 | 
            +
                        #
         | 
| 3476 | 
            +
                        # @overload describe_database_entities(request, options = nil)
         | 
| 3477 | 
            +
                        #   Pass arguments to `describe_database_entities` via a request object, either of type
         | 
| 3478 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::DescribeDatabaseEntitiesRequest} or an equivalent Hash.
         | 
| 3479 | 
            +
                        #
         | 
| 3480 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::DescribeDatabaseEntitiesRequest, ::Hash]
         | 
| 3481 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 3482 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 3483 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 3484 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 3485 | 
            +
                        #
         | 
| 3486 | 
            +
                        # @overload describe_database_entities(conversion_workspace: nil, page_size: nil, page_token: nil, tree: nil, uncommitted: nil, commit_id: nil, filter: nil)
         | 
| 3487 | 
            +
                        #   Pass arguments to `describe_database_entities` via keyword arguments. Note that at
         | 
| 3488 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 3489 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 3490 | 
            +
                        #
         | 
| 3491 | 
            +
                        #   @param conversion_workspace [::String]
         | 
| 3492 | 
            +
                        #     Required. Name of the conversion workspace resource whose database entities
         | 
| 3493 | 
            +
                        #     are described. Must be in the form of:
         | 
| 3494 | 
            +
                        #     projects/\\{project}/locations/\\{location}/conversionWorkspaces/\\{conversion_workspace}.
         | 
| 3495 | 
            +
                        #   @param page_size [::Integer]
         | 
| 3496 | 
            +
                        #     The maximum number of entities to return. The service may return
         | 
| 3497 | 
            +
                        #     fewer entities than the value specifies.
         | 
| 3498 | 
            +
                        #   @param page_token [::String]
         | 
| 3499 | 
            +
                        #     The nextPageToken value received in the previous call to
         | 
| 3500 | 
            +
                        #     conversionWorkspace.describeDatabaseEntities, used in the subsequent
         | 
| 3501 | 
            +
                        #     request to retrieve the next page of results. On first call this should be
         | 
| 3502 | 
            +
                        #     left blank. When paginating, all other parameters provided to
         | 
| 3503 | 
            +
                        #     conversionWorkspace.describeDatabaseEntities must match the call that
         | 
| 3504 | 
            +
                        #     provided the page token.
         | 
| 3505 | 
            +
                        #   @param tree [::Google::Cloud::CloudDMS::V1::DescribeDatabaseEntitiesRequest::DBTreeType]
         | 
| 3506 | 
            +
                        #     The tree to fetch.
         | 
| 3507 | 
            +
                        #   @param uncommitted [::Boolean]
         | 
| 3508 | 
            +
                        #     Whether to retrieve the latest committed version of the entities or the
         | 
| 3509 | 
            +
                        #     latest version. This field is ignored if a specific commit_id is specified.
         | 
| 3510 | 
            +
                        #   @param commit_id [::String]
         | 
| 3511 | 
            +
                        #     Request a specific commit ID. If not specified, the entities from the
         | 
| 3512 | 
            +
                        #     latest commit are returned.
         | 
| 3513 | 
            +
                        #   @param filter [::String]
         | 
| 3514 | 
            +
                        #     Filter the returned entities based on AIP-160 standard.
         | 
| 3515 | 
            +
                        #
         | 
| 3516 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3517 | 
            +
                        # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CloudDMS::V1::DatabaseEntity>]
         | 
| 3518 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3519 | 
            +
                        #
         | 
| 3520 | 
            +
                        # @return [::Gapic::PagedEnumerable<::Google::Cloud::CloudDMS::V1::DatabaseEntity>]
         | 
| 3521 | 
            +
                        #
         | 
| 3522 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3523 | 
            +
                        #
         | 
| 3524 | 
            +
                        # @example Basic example
         | 
| 3525 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3526 | 
            +
                        #
         | 
| 3527 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3528 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3529 | 
            +
                        #
         | 
| 3530 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3531 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::DescribeDatabaseEntitiesRequest.new
         | 
| 3532 | 
            +
                        #
         | 
| 3533 | 
            +
                        #   # Call the describe_database_entities method.
         | 
| 3534 | 
            +
                        #   result = client.describe_database_entities request
         | 
| 3535 | 
            +
                        #
         | 
| 3536 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 3537 | 
            +
                        #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 3538 | 
            +
                        #   result.each do |item|
         | 
| 3539 | 
            +
                        #     # Each element is of type ::Google::Cloud::CloudDMS::V1::DatabaseEntity.
         | 
| 3540 | 
            +
                        #     p item
         | 
| 3541 | 
            +
                        #   end
         | 
| 3542 | 
            +
                        #
         | 
| 3543 | 
            +
                        def describe_database_entities request, options = nil
         | 
| 3544 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3545 | 
            +
             | 
| 3546 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::DescribeDatabaseEntitiesRequest
         | 
| 3547 | 
            +
             | 
| 3548 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3549 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3550 | 
            +
             | 
| 3551 | 
            +
                          # Customize the options with defaults
         | 
| 3552 | 
            +
                          metadata = @config.rpcs.describe_database_entities.metadata.to_h
         | 
| 3553 | 
            +
             | 
| 3554 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3555 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3556 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3557 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3558 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3559 | 
            +
             | 
| 3560 | 
            +
                          header_params = {}
         | 
| 3561 | 
            +
                          if request.conversion_workspace
         | 
| 3562 | 
            +
                            header_params["conversion_workspace"] = request.conversion_workspace
         | 
| 3563 | 
            +
                          end
         | 
| 3564 | 
            +
             | 
| 3565 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3566 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3567 | 
            +
             | 
| 3568 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.describe_database_entities.timeout,
         | 
| 3569 | 
            +
                                                 metadata:     metadata,
         | 
| 3570 | 
            +
                                                 retry_policy: @config.rpcs.describe_database_entities.retry_policy
         | 
| 3571 | 
            +
             | 
| 3572 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3573 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3574 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3575 | 
            +
             | 
| 3576 | 
            +
                          @data_migration_service_stub.call_rpc :describe_database_entities, request, options: options do |response, operation|
         | 
| 3577 | 
            +
                            response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :describe_database_entities, request, response, operation, options
         | 
| 3578 | 
            +
                            yield response, operation if block_given?
         | 
| 3579 | 
            +
                            return response
         | 
| 3580 | 
            +
                          end
         | 
| 3581 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3582 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3583 | 
            +
                        end
         | 
| 3584 | 
            +
             | 
| 3585 | 
            +
                        ##
         | 
| 3586 | 
            +
                        # Searches/lists the background jobs for a specific
         | 
| 3587 | 
            +
                        # conversion workspace.
         | 
| 3588 | 
            +
                        #
         | 
| 3589 | 
            +
                        # The background jobs are not resources like conversion workspaces or
         | 
| 3590 | 
            +
                        # mapping rules, and they can't be created, updated or deleted.
         | 
| 3591 | 
            +
                        # Instead, they are a way to expose the data plane jobs log.
         | 
| 3592 | 
            +
                        #
         | 
| 3593 | 
            +
                        # @overload search_background_jobs(request, options = nil)
         | 
| 3594 | 
            +
                        #   Pass arguments to `search_background_jobs` via a request object, either of type
         | 
| 3595 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::SearchBackgroundJobsRequest} or an equivalent Hash.
         | 
| 3596 | 
            +
                        #
         | 
| 3597 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::SearchBackgroundJobsRequest, ::Hash]
         | 
| 3598 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 3599 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 3600 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 3601 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 3602 | 
            +
                        #
         | 
| 3603 | 
            +
                        # @overload search_background_jobs(conversion_workspace: nil, return_most_recent_per_job_type: nil, max_size: nil, completed_until_time: nil)
         | 
| 3604 | 
            +
                        #   Pass arguments to `search_background_jobs` via keyword arguments. Note that at
         | 
| 3605 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 3606 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 3607 | 
            +
                        #
         | 
| 3608 | 
            +
                        #   @param conversion_workspace [::String]
         | 
| 3609 | 
            +
                        #     Required. Name of the conversion workspace resource whose jobs are listed,
         | 
| 3610 | 
            +
                        #     in the form of:
         | 
| 3611 | 
            +
                        #     projects/\\{project}/locations/\\{location}/conversionWorkspaces/\\{conversion_workspace}.
         | 
| 3612 | 
            +
                        #   @param return_most_recent_per_job_type [::Boolean]
         | 
| 3613 | 
            +
                        #     Optional. Whether or not to return just the most recent job per job type,
         | 
| 3614 | 
            +
                        #   @param max_size [::Integer]
         | 
| 3615 | 
            +
                        #     Optional. The maximum number of jobs to return. The service may return
         | 
| 3616 | 
            +
                        #     fewer than this value. If unspecified, at most 100 jobs are
         | 
| 3617 | 
            +
                        #     returned. The maximum value is 100; values above 100 are coerced to
         | 
| 3618 | 
            +
                        #     100.
         | 
| 3619 | 
            +
                        #   @param completed_until_time [::Google::Protobuf::Timestamp, ::Hash]
         | 
| 3620 | 
            +
                        #     Optional. If provided, only returns jobs that completed until (not
         | 
| 3621 | 
            +
                        #     including) the given timestamp.
         | 
| 3622 | 
            +
                        #
         | 
| 3623 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3624 | 
            +
                        # @yieldparam response [::Google::Cloud::CloudDMS::V1::SearchBackgroundJobsResponse]
         | 
| 3625 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3626 | 
            +
                        #
         | 
| 3627 | 
            +
                        # @return [::Google::Cloud::CloudDMS::V1::SearchBackgroundJobsResponse]
         | 
| 3628 | 
            +
                        #
         | 
| 3629 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3630 | 
            +
                        #
         | 
| 3631 | 
            +
                        # @example Basic example
         | 
| 3632 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3633 | 
            +
                        #
         | 
| 3634 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3635 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3636 | 
            +
                        #
         | 
| 3637 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3638 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::SearchBackgroundJobsRequest.new
         | 
| 3639 | 
            +
                        #
         | 
| 3640 | 
            +
                        #   # Call the search_background_jobs method.
         | 
| 3641 | 
            +
                        #   result = client.search_background_jobs request
         | 
| 3642 | 
            +
                        #
         | 
| 3643 | 
            +
                        #   # The returned object is of type Google::Cloud::CloudDMS::V1::SearchBackgroundJobsResponse.
         | 
| 3644 | 
            +
                        #   p result
         | 
| 3645 | 
            +
                        #
         | 
| 3646 | 
            +
                        def search_background_jobs request, options = nil
         | 
| 3647 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3648 | 
            +
             | 
| 3649 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::SearchBackgroundJobsRequest
         | 
| 3650 | 
            +
             | 
| 3651 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3652 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3653 | 
            +
             | 
| 3654 | 
            +
                          # Customize the options with defaults
         | 
| 3655 | 
            +
                          metadata = @config.rpcs.search_background_jobs.metadata.to_h
         | 
| 3656 | 
            +
             | 
| 3657 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3658 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3659 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3660 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3661 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3662 | 
            +
             | 
| 3663 | 
            +
                          header_params = {}
         | 
| 3664 | 
            +
                          if request.conversion_workspace
         | 
| 3665 | 
            +
                            header_params["conversion_workspace"] = request.conversion_workspace
         | 
| 3666 | 
            +
                          end
         | 
| 3667 | 
            +
             | 
| 3668 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3669 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3670 | 
            +
             | 
| 3671 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.search_background_jobs.timeout,
         | 
| 3672 | 
            +
                                                 metadata:     metadata,
         | 
| 3673 | 
            +
                                                 retry_policy: @config.rpcs.search_background_jobs.retry_policy
         | 
| 3674 | 
            +
             | 
| 3675 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3676 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3677 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3678 | 
            +
             | 
| 3679 | 
            +
                          @data_migration_service_stub.call_rpc :search_background_jobs, request, options: options do |response, operation|
         | 
| 3680 | 
            +
                            yield response, operation if block_given?
         | 
| 3681 | 
            +
                            return response
         | 
| 3682 | 
            +
                          end
         | 
| 3683 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3684 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3685 | 
            +
                        end
         | 
| 3686 | 
            +
             | 
| 3687 | 
            +
                        ##
         | 
| 3688 | 
            +
                        # Retrieves a list of committed revisions of a specific conversion
         | 
| 3689 | 
            +
                        # workspace.
         | 
| 3690 | 
            +
                        #
         | 
| 3691 | 
            +
                        # @overload describe_conversion_workspace_revisions(request, options = nil)
         | 
| 3692 | 
            +
                        #   Pass arguments to `describe_conversion_workspace_revisions` via a request object, either of type
         | 
| 3693 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::DescribeConversionWorkspaceRevisionsRequest} or an equivalent Hash.
         | 
| 3694 | 
            +
                        #
         | 
| 3695 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::DescribeConversionWorkspaceRevisionsRequest, ::Hash]
         | 
| 3696 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 3697 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 3698 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 3699 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 3700 | 
            +
                        #
         | 
| 3701 | 
            +
                        # @overload describe_conversion_workspace_revisions(conversion_workspace: nil, commit_id: nil)
         | 
| 3702 | 
            +
                        #   Pass arguments to `describe_conversion_workspace_revisions` via keyword arguments. Note that at
         | 
| 3703 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 3704 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 3705 | 
            +
                        #
         | 
| 3706 | 
            +
                        #   @param conversion_workspace [::String]
         | 
| 3707 | 
            +
                        #     Required. Name of the conversion workspace resource whose revisions are
         | 
| 3708 | 
            +
                        #     listed. Must be in the form of:
         | 
| 3709 | 
            +
                        #     projects/\\{project}/locations/\\{location}/conversionWorkspaces/\\{conversion_workspace}.
         | 
| 3710 | 
            +
                        #   @param commit_id [::String]
         | 
| 3711 | 
            +
                        #     Optional. Optional filter to request a specific commit ID.
         | 
| 3712 | 
            +
                        #
         | 
| 3713 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3714 | 
            +
                        # @yieldparam response [::Google::Cloud::CloudDMS::V1::DescribeConversionWorkspaceRevisionsResponse]
         | 
| 3715 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3716 | 
            +
                        #
         | 
| 3717 | 
            +
                        # @return [::Google::Cloud::CloudDMS::V1::DescribeConversionWorkspaceRevisionsResponse]
         | 
| 3718 | 
            +
                        #
         | 
| 3719 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3720 | 
            +
                        #
         | 
| 3721 | 
            +
                        # @example Basic example
         | 
| 3722 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3723 | 
            +
                        #
         | 
| 3724 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3725 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3726 | 
            +
                        #
         | 
| 3727 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3728 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::DescribeConversionWorkspaceRevisionsRequest.new
         | 
| 3729 | 
            +
                        #
         | 
| 3730 | 
            +
                        #   # Call the describe_conversion_workspace_revisions method.
         | 
| 3731 | 
            +
                        #   result = client.describe_conversion_workspace_revisions request
         | 
| 3732 | 
            +
                        #
         | 
| 3733 | 
            +
                        #   # The returned object is of type Google::Cloud::CloudDMS::V1::DescribeConversionWorkspaceRevisionsResponse.
         | 
| 3734 | 
            +
                        #   p result
         | 
| 3735 | 
            +
                        #
         | 
| 3736 | 
            +
                        def describe_conversion_workspace_revisions request, options = nil
         | 
| 3737 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3738 | 
            +
             | 
| 3739 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::DescribeConversionWorkspaceRevisionsRequest
         | 
| 3740 | 
            +
             | 
| 3741 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3742 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3743 | 
            +
             | 
| 3744 | 
            +
                          # Customize the options with defaults
         | 
| 3745 | 
            +
                          metadata = @config.rpcs.describe_conversion_workspace_revisions.metadata.to_h
         | 
| 3746 | 
            +
             | 
| 3747 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3748 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3749 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3750 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3751 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3752 | 
            +
             | 
| 3753 | 
            +
                          header_params = {}
         | 
| 3754 | 
            +
                          if request.conversion_workspace
         | 
| 3755 | 
            +
                            header_params["conversion_workspace"] = request.conversion_workspace
         | 
| 3756 | 
            +
                          end
         | 
| 3757 | 
            +
             | 
| 3758 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3759 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3760 | 
            +
             | 
| 3761 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.describe_conversion_workspace_revisions.timeout,
         | 
| 3762 | 
            +
                                                 metadata:     metadata,
         | 
| 3763 | 
            +
                                                 retry_policy: @config.rpcs.describe_conversion_workspace_revisions.retry_policy
         | 
| 3764 | 
            +
             | 
| 3765 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3766 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3767 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3768 | 
            +
             | 
| 3769 | 
            +
                          @data_migration_service_stub.call_rpc :describe_conversion_workspace_revisions, request, options: options do |response, operation|
         | 
| 3770 | 
            +
                            yield response, operation if block_given?
         | 
| 3771 | 
            +
                            return response
         | 
| 3772 | 
            +
                          end
         | 
| 3773 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3774 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3775 | 
            +
                        end
         | 
| 3776 | 
            +
             | 
| 3777 | 
            +
                        ##
         | 
| 3778 | 
            +
                        # Fetches a set of static IP addresses that need to be allowlisted by the
         | 
| 3779 | 
            +
                        # customer when using the static-IP connectivity method.
         | 
| 3780 | 
            +
                        #
         | 
| 3781 | 
            +
                        # @overload fetch_static_ips(request, options = nil)
         | 
| 3782 | 
            +
                        #   Pass arguments to `fetch_static_ips` via a request object, either of type
         | 
| 3783 | 
            +
                        #   {::Google::Cloud::CloudDMS::V1::FetchStaticIpsRequest} or an equivalent Hash.
         | 
| 3784 | 
            +
                        #
         | 
| 3785 | 
            +
                        #   @param request [::Google::Cloud::CloudDMS::V1::FetchStaticIpsRequest, ::Hash]
         | 
| 3786 | 
            +
                        #     A request object representing the call parameters. Required. To specify no
         | 
| 3787 | 
            +
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 3788 | 
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 3789 | 
            +
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 3790 | 
            +
                        #
         | 
| 3791 | 
            +
                        # @overload fetch_static_ips(name: nil, page_size: nil, page_token: nil)
         | 
| 3792 | 
            +
                        #   Pass arguments to `fetch_static_ips` via keyword arguments. Note that at
         | 
| 3793 | 
            +
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 3794 | 
            +
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 3795 | 
            +
                        #
         | 
| 3796 | 
            +
                        #   @param name [::String]
         | 
| 3797 | 
            +
                        #     Required. The resource name for the location for which static IPs should be
         | 
| 3798 | 
            +
                        #     returned. Must be in the format `projects/*/locations/*`.
         | 
| 3799 | 
            +
                        #   @param page_size [::Integer]
         | 
| 3800 | 
            +
                        #     Maximum number of IPs to return.
         | 
| 3801 | 
            +
                        #   @param page_token [::String]
         | 
| 3802 | 
            +
                        #     A page token, received from a previous `FetchStaticIps` call.
         | 
| 3803 | 
            +
                        #
         | 
| 3804 | 
            +
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 3805 | 
            +
                        # @yieldparam response [::Google::Cloud::CloudDMS::V1::FetchStaticIpsResponse]
         | 
| 3806 | 
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         | 
| 3807 | 
            +
                        #
         | 
| 3808 | 
            +
                        # @return [::Google::Cloud::CloudDMS::V1::FetchStaticIpsResponse]
         | 
| 3809 | 
            +
                        #
         | 
| 3810 | 
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 3811 | 
            +
                        #
         | 
| 3812 | 
            +
                        # @example Basic example
         | 
| 3813 | 
            +
                        #   require "google/cloud/cloud_dms/v1"
         | 
| 3814 | 
            +
                        #
         | 
| 3815 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 3816 | 
            +
                        #   client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
         | 
| 3817 | 
            +
                        #
         | 
| 3818 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 3819 | 
            +
                        #   request = Google::Cloud::CloudDMS::V1::FetchStaticIpsRequest.new
         | 
| 3820 | 
            +
                        #
         | 
| 3821 | 
            +
                        #   # Call the fetch_static_ips method.
         | 
| 3822 | 
            +
                        #   result = client.fetch_static_ips request
         | 
| 3823 | 
            +
                        #
         | 
| 3824 | 
            +
                        #   # The returned object is of type Google::Cloud::CloudDMS::V1::FetchStaticIpsResponse.
         | 
| 3825 | 
            +
                        #   p result
         | 
| 3826 | 
            +
                        #
         | 
| 3827 | 
            +
                        def fetch_static_ips request, options = nil
         | 
| 3828 | 
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 3829 | 
            +
             | 
| 3830 | 
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudDMS::V1::FetchStaticIpsRequest
         | 
| 3831 | 
            +
             | 
| 3832 | 
            +
                          # Converts hash and nil to an options object
         | 
| 3833 | 
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 3834 | 
            +
             | 
| 3835 | 
            +
                          # Customize the options with defaults
         | 
| 3836 | 
            +
                          metadata = @config.rpcs.fetch_static_ips.metadata.to_h
         | 
| 3837 | 
            +
             | 
| 3838 | 
            +
                          # Set x-goog-api-client and x-goog-user-project headers
         | 
| 3839 | 
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 3840 | 
            +
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 3841 | 
            +
                            gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
         | 
| 3842 | 
            +
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 3843 | 
            +
             | 
| 3844 | 
            +
                          header_params = {}
         | 
| 3845 | 
            +
                          if request.name
         | 
| 3846 | 
            +
                            header_params["name"] = request.name
         | 
| 3847 | 
            +
                          end
         | 
| 3848 | 
            +
             | 
| 3849 | 
            +
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 3850 | 
            +
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 3851 | 
            +
             | 
| 3852 | 
            +
                          options.apply_defaults timeout:      @config.rpcs.fetch_static_ips.timeout,
         | 
| 3853 | 
            +
                                                 metadata:     metadata,
         | 
| 3854 | 
            +
                                                 retry_policy: @config.rpcs.fetch_static_ips.retry_policy
         | 
| 3855 | 
            +
             | 
| 3856 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 3857 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 3858 | 
            +
                                                 retry_policy: @config.retry_policy
         | 
| 3859 | 
            +
             | 
| 3860 | 
            +
                          @data_migration_service_stub.call_rpc :fetch_static_ips, request, options: options do |response, operation|
         | 
| 3861 | 
            +
                            yield response, operation if block_given?
         | 
| 3862 | 
            +
                            return response
         | 
| 3863 | 
            +
                          end
         | 
| 3864 | 
            +
                        rescue ::GRPC::BadStatus => e
         | 
| 3865 | 
            +
                          raise ::Google::Cloud::Error.from_error(e)
         | 
| 3866 | 
            +
                        end
         | 
| 3867 | 
            +
             | 
| 3868 | 
            +
                        ##
         | 
| 3869 | 
            +
                        # Configuration class for the DataMigrationService API.
         | 
| 3870 | 
            +
                        #
         | 
| 3871 | 
            +
                        # This class represents the configuration for DataMigrationService,
         | 
| 3872 | 
            +
                        # providing control over timeouts, retry behavior, logging, transport
         | 
| 3873 | 
            +
                        # parameters, and other low-level controls. Certain parameters can also be
         | 
| 3874 | 
            +
                        # applied individually to specific RPCs. See
         | 
| 3875 | 
            +
                        # {::Google::Cloud::CloudDMS::V1::DataMigrationService::Client::Configuration::Rpcs}
         | 
| 3876 | 
            +
                        # for a list of RPCs that can be configured independently.
         | 
| 3877 | 
            +
                        #
         | 
| 3878 | 
            +
                        # Configuration can be applied globally to all clients, or to a single client
         | 
| 3879 | 
            +
                        # on construction.
         | 
| 3880 | 
            +
                        #
         | 
| 3881 | 
            +
                        # @example
         | 
| 3882 | 
            +
                        #
         | 
| 3883 | 
            +
                        #   # Modify the global config, setting the timeout for
         | 
| 3884 | 
            +
                        #   # list_migration_jobs to 20 seconds,
         | 
| 3885 | 
            +
                        #   # and all remaining timeouts to 10 seconds.
         | 
| 3886 | 
            +
                        #   ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.configure do |config|
         | 
| 3887 | 
            +
                        #     config.timeout = 10.0
         | 
| 3888 | 
            +
                        #     config.rpcs.list_migration_jobs.timeout = 20.0
         | 
| 3889 | 
            +
                        #   end
         | 
| 3890 | 
            +
                        #
         | 
| 3891 | 
            +
                        #   # Apply the above configuration only to a new client.
         | 
| 3892 | 
            +
                        #   client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new do |config|
         | 
| 3893 | 
            +
                        #     config.timeout = 10.0
         | 
| 3894 | 
            +
                        #     config.rpcs.list_migration_jobs.timeout = 20.0
         | 
| 3895 | 
            +
                        #   end
         | 
| 3896 | 
            +
                        #
         | 
| 3897 | 
            +
                        # @!attribute [rw] endpoint
         | 
| 3898 | 
            +
                        #   The hostname or hostname:port of the service endpoint.
         | 
| 3899 | 
            +
                        #   Defaults to `"datamigration.googleapis.com"`.
         | 
| 3900 | 
            +
                        #   @return [::String]
         | 
| 3901 | 
            +
                        # @!attribute [rw] credentials
         | 
| 3902 | 
            +
                        #   Credentials to send with calls. You may provide any of the following types:
         | 
| 3903 | 
            +
                        #    *  (`String`) The path to a service account key file in JSON format
         | 
| 3904 | 
            +
                        #    *  (`Hash`) A service account key as a Hash
         | 
| 3905 | 
            +
                        #    *  (`Google::Auth::Credentials`) A googleauth credentials object
         | 
| 3906 | 
            +
                        #       (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
         | 
| 3907 | 
            +
                        #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         | 
| 3908 | 
            +
                        #       (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
         | 
| 3909 | 
            +
                        #    *  (`GRPC::Core::Channel`) a gRPC channel with included credentials
         | 
| 3910 | 
            +
                        #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 3911 | 
            +
                        #    *  (`nil`) indicating no credentials
         | 
| 3912 | 
            +
                        #   @return [::Object]
         | 
| 3913 | 
            +
                        # @!attribute [rw] scope
         | 
| 3914 | 
            +
                        #   The OAuth scopes
         | 
| 3915 | 
            +
                        #   @return [::Array<::String>]
         | 
| 3916 | 
            +
                        # @!attribute [rw] lib_name
         | 
| 3917 | 
            +
                        #   The library name as recorded in instrumentation and logging
         | 
| 3918 | 
            +
                        #   @return [::String]
         | 
| 3919 | 
            +
                        # @!attribute [rw] lib_version
         | 
| 3920 | 
            +
                        #   The library version as recorded in instrumentation and logging
         | 
| 3921 | 
            +
                        #   @return [::String]
         | 
| 3922 | 
            +
                        # @!attribute [rw] channel_args
         | 
| 3923 | 
            +
                        #   Extra parameters passed to the gRPC channel. Note: this is ignored if a
         | 
| 3924 | 
            +
                        #   `GRPC::Core::Channel` object is provided as the credential.
         | 
| 3925 | 
            +
                        #   @return [::Hash]
         | 
| 3926 | 
            +
                        # @!attribute [rw] interceptors
         | 
| 3927 | 
            +
                        #   An array of interceptors that are run before calls are executed.
         | 
| 3928 | 
            +
                        #   @return [::Array<::GRPC::ClientInterceptor>]
         | 
| 3929 | 
            +
                        # @!attribute [rw] timeout
         | 
| 3930 | 
            +
                        #   The call timeout in seconds.
         | 
| 3931 | 
            +
                        #   @return [::Numeric]
         | 
| 3932 | 
            +
                        # @!attribute [rw] metadata
         | 
| 3933 | 
            +
                        #   Additional gRPC headers to be sent with the call.
         | 
| 3934 | 
            +
                        #   @return [::Hash{::Symbol=>::String}]
         | 
| 3935 | 
            +
                        # @!attribute [rw] retry_policy
         | 
| 3936 | 
            +
                        #   The retry policy. The value is a hash with the following keys:
         | 
| 3937 | 
            +
                        #    *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
         | 
| 3938 | 
            +
                        #    *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
         | 
| 3939 | 
            +
                        #    *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
         | 
| 3940 | 
            +
                        #    *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
         | 
| 3941 | 
            +
                        #       trigger a retry.
         | 
| 3942 | 
            +
                        #   @return [::Hash]
         | 
| 3943 | 
            +
                        # @!attribute [rw] quota_project
         | 
| 3944 | 
            +
                        #   A separate project against which to charge quota.
         | 
| 3945 | 
            +
                        #   @return [::String]
         | 
| 3946 | 
            +
                        #
         | 
| 3947 | 
            +
                        class Configuration
         | 
| 3948 | 
            +
                          extend ::Gapic::Config
         | 
| 3949 | 
            +
             | 
| 3950 | 
            +
                          config_attr :endpoint,      "datamigration.googleapis.com", ::String
         | 
| 3951 | 
            +
                          config_attr :credentials,   nil do |value|
         | 
| 3952 | 
            +
                            allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
         | 
| 3953 | 
            +
                            allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
         | 
| 3954 | 
            +
                            allowed.any? { |klass| klass === value }
         | 
| 3955 | 
            +
                          end
         | 
| 3956 | 
            +
                          config_attr :scope,         nil, ::String, ::Array, nil
         | 
| 3957 | 
            +
                          config_attr :lib_name,      nil, ::String, nil
         | 
| 3958 | 
            +
                          config_attr :lib_version,   nil, ::String, nil
         | 
| 3959 | 
            +
                          config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
         | 
| 3960 | 
            +
                          config_attr :interceptors,  nil, ::Array, nil
         | 
| 3961 | 
            +
                          config_attr :timeout,       nil, ::Numeric, nil
         | 
| 3962 | 
            +
                          config_attr :metadata,      nil, ::Hash, nil
         | 
| 3963 | 
            +
                          config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
         | 
| 3964 | 
            +
                          config_attr :quota_project, nil, ::String, nil
         | 
| 3965 | 
            +
             | 
| 3966 | 
            +
                          # @private
         | 
| 3967 | 
            +
                          def initialize parent_config = nil
         | 
| 3968 | 
            +
                            @parent_config = parent_config unless parent_config.nil?
         | 
| 3969 | 
            +
             | 
| 3970 | 
            +
                            yield self if block_given?
         | 
| 3971 | 
            +
                          end
         | 
| 3972 | 
            +
             | 
| 3973 | 
            +
                          ##
         | 
| 3974 | 
            +
                          # Configurations for individual RPCs
         | 
| 3975 | 
            +
                          # @return [Rpcs]
         | 
| 3976 | 
            +
                          #
         | 
| 3977 | 
            +
                          def rpcs
         | 
| 3978 | 
            +
                            @rpcs ||= begin
         | 
| 3979 | 
            +
                              parent_rpcs = nil
         | 
| 3980 | 
            +
                              parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
         | 
| 3981 | 
            +
                              Rpcs.new parent_rpcs
         | 
| 3982 | 
            +
                            end
         | 
| 3983 | 
            +
                          end
         | 
| 3984 | 
            +
             | 
| 3985 | 
            +
                          ##
         | 
| 3986 | 
            +
                          # Configuration RPC class for the DataMigrationService API.
         | 
| 3987 | 
            +
                          #
         | 
| 3988 | 
            +
                          # Includes fields providing the configuration for each RPC in this service.
         | 
| 3989 | 
            +
                          # Each configuration object is of type `Gapic::Config::Method` and includes
         | 
| 3990 | 
            +
                          # the following configuration fields:
         | 
| 3991 | 
            +
                          #
         | 
| 3992 | 
            +
                          #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
         | 
| 3993 | 
            +
                          #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
         | 
| 3994 | 
            +
                          #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
         | 
| 2015 3995 | 
             
                          #     include the following keys:
         | 
| 2016 3996 | 
             
                          #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
         | 
| 2017 3997 | 
             
                          #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
         | 
| @@ -2105,6 +4085,101 @@ module Google | |
| 2105 4085 | 
             
                            # @return [::Gapic::Config::Method]
         | 
| 2106 4086 | 
             
                            #
         | 
| 2107 4087 | 
             
                            attr_reader :delete_connection_profile
         | 
| 4088 | 
            +
                            ##
         | 
| 4089 | 
            +
                            # RPC-specific configuration for `create_private_connection`
         | 
| 4090 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4091 | 
            +
                            #
         | 
| 4092 | 
            +
                            attr_reader :create_private_connection
         | 
| 4093 | 
            +
                            ##
         | 
| 4094 | 
            +
                            # RPC-specific configuration for `get_private_connection`
         | 
| 4095 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4096 | 
            +
                            #
         | 
| 4097 | 
            +
                            attr_reader :get_private_connection
         | 
| 4098 | 
            +
                            ##
         | 
| 4099 | 
            +
                            # RPC-specific configuration for `list_private_connections`
         | 
| 4100 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4101 | 
            +
                            #
         | 
| 4102 | 
            +
                            attr_reader :list_private_connections
         | 
| 4103 | 
            +
                            ##
         | 
| 4104 | 
            +
                            # RPC-specific configuration for `delete_private_connection`
         | 
| 4105 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4106 | 
            +
                            #
         | 
| 4107 | 
            +
                            attr_reader :delete_private_connection
         | 
| 4108 | 
            +
                            ##
         | 
| 4109 | 
            +
                            # RPC-specific configuration for `get_conversion_workspace`
         | 
| 4110 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4111 | 
            +
                            #
         | 
| 4112 | 
            +
                            attr_reader :get_conversion_workspace
         | 
| 4113 | 
            +
                            ##
         | 
| 4114 | 
            +
                            # RPC-specific configuration for `list_conversion_workspaces`
         | 
| 4115 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4116 | 
            +
                            #
         | 
| 4117 | 
            +
                            attr_reader :list_conversion_workspaces
         | 
| 4118 | 
            +
                            ##
         | 
| 4119 | 
            +
                            # RPC-specific configuration for `create_conversion_workspace`
         | 
| 4120 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4121 | 
            +
                            #
         | 
| 4122 | 
            +
                            attr_reader :create_conversion_workspace
         | 
| 4123 | 
            +
                            ##
         | 
| 4124 | 
            +
                            # RPC-specific configuration for `update_conversion_workspace`
         | 
| 4125 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4126 | 
            +
                            #
         | 
| 4127 | 
            +
                            attr_reader :update_conversion_workspace
         | 
| 4128 | 
            +
                            ##
         | 
| 4129 | 
            +
                            # RPC-specific configuration for `delete_conversion_workspace`
         | 
| 4130 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4131 | 
            +
                            #
         | 
| 4132 | 
            +
                            attr_reader :delete_conversion_workspace
         | 
| 4133 | 
            +
                            ##
         | 
| 4134 | 
            +
                            # RPC-specific configuration for `seed_conversion_workspace`
         | 
| 4135 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4136 | 
            +
                            #
         | 
| 4137 | 
            +
                            attr_reader :seed_conversion_workspace
         | 
| 4138 | 
            +
                            ##
         | 
| 4139 | 
            +
                            # RPC-specific configuration for `import_mapping_rules`
         | 
| 4140 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4141 | 
            +
                            #
         | 
| 4142 | 
            +
                            attr_reader :import_mapping_rules
         | 
| 4143 | 
            +
                            ##
         | 
| 4144 | 
            +
                            # RPC-specific configuration for `convert_conversion_workspace`
         | 
| 4145 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4146 | 
            +
                            #
         | 
| 4147 | 
            +
                            attr_reader :convert_conversion_workspace
         | 
| 4148 | 
            +
                            ##
         | 
| 4149 | 
            +
                            # RPC-specific configuration for `commit_conversion_workspace`
         | 
| 4150 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4151 | 
            +
                            #
         | 
| 4152 | 
            +
                            attr_reader :commit_conversion_workspace
         | 
| 4153 | 
            +
                            ##
         | 
| 4154 | 
            +
                            # RPC-specific configuration for `rollback_conversion_workspace`
         | 
| 4155 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4156 | 
            +
                            #
         | 
| 4157 | 
            +
                            attr_reader :rollback_conversion_workspace
         | 
| 4158 | 
            +
                            ##
         | 
| 4159 | 
            +
                            # RPC-specific configuration for `apply_conversion_workspace`
         | 
| 4160 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4161 | 
            +
                            #
         | 
| 4162 | 
            +
                            attr_reader :apply_conversion_workspace
         | 
| 4163 | 
            +
                            ##
         | 
| 4164 | 
            +
                            # RPC-specific configuration for `describe_database_entities`
         | 
| 4165 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4166 | 
            +
                            #
         | 
| 4167 | 
            +
                            attr_reader :describe_database_entities
         | 
| 4168 | 
            +
                            ##
         | 
| 4169 | 
            +
                            # RPC-specific configuration for `search_background_jobs`
         | 
| 4170 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4171 | 
            +
                            #
         | 
| 4172 | 
            +
                            attr_reader :search_background_jobs
         | 
| 4173 | 
            +
                            ##
         | 
| 4174 | 
            +
                            # RPC-specific configuration for `describe_conversion_workspace_revisions`
         | 
| 4175 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4176 | 
            +
                            #
         | 
| 4177 | 
            +
                            attr_reader :describe_conversion_workspace_revisions
         | 
| 4178 | 
            +
                            ##
         | 
| 4179 | 
            +
                            # RPC-specific configuration for `fetch_static_ips`
         | 
| 4180 | 
            +
                            # @return [::Gapic::Config::Method]
         | 
| 4181 | 
            +
                            #
         | 
| 4182 | 
            +
                            attr_reader :fetch_static_ips
         | 
| 2108 4183 |  | 
| 2109 4184 | 
             
                            # @private
         | 
| 2110 4185 | 
             
                            def initialize parent_rpcs = nil
         | 
| @@ -2142,6 +4217,44 @@ module Google | |
| 2142 4217 | 
             
                              @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config
         | 
| 2143 4218 | 
             
                              delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile
         | 
| 2144 4219 | 
             
                              @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config
         | 
| 4220 | 
            +
                              create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection
         | 
| 4221 | 
            +
                              @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config
         | 
| 4222 | 
            +
                              get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection
         | 
| 4223 | 
            +
                              @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config
         | 
| 4224 | 
            +
                              list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections
         | 
| 4225 | 
            +
                              @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config
         | 
| 4226 | 
            +
                              delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection
         | 
| 4227 | 
            +
                              @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config
         | 
| 4228 | 
            +
                              get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace
         | 
| 4229 | 
            +
                              @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config
         | 
| 4230 | 
            +
                              list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces
         | 
| 4231 | 
            +
                              @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config
         | 
| 4232 | 
            +
                              create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace
         | 
| 4233 | 
            +
                              @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config
         | 
| 4234 | 
            +
                              update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace
         | 
| 4235 | 
            +
                              @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config
         | 
| 4236 | 
            +
                              delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace
         | 
| 4237 | 
            +
                              @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config
         | 
| 4238 | 
            +
                              seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace
         | 
| 4239 | 
            +
                              @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config
         | 
| 4240 | 
            +
                              import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules
         | 
| 4241 | 
            +
                              @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config
         | 
| 4242 | 
            +
                              convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace
         | 
| 4243 | 
            +
                              @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config
         | 
| 4244 | 
            +
                              commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace
         | 
| 4245 | 
            +
                              @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config
         | 
| 4246 | 
            +
                              rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace
         | 
| 4247 | 
            +
                              @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config
         | 
| 4248 | 
            +
                              apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace
         | 
| 4249 | 
            +
                              @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config
         | 
| 4250 | 
            +
                              describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities
         | 
| 4251 | 
            +
                              @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config
         | 
| 4252 | 
            +
                              search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs
         | 
| 4253 | 
            +
                              @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config
         | 
| 4254 | 
            +
                              describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions
         | 
| 4255 | 
            +
                              @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config
         | 
| 4256 | 
            +
                              fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips
         | 
| 4257 | 
            +
                              @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config
         | 
| 2145 4258 |  | 
| 2146 4259 | 
             
                              yield self if block_given?
         | 
| 2147 4260 | 
             
                            end
         |