google-cloud-backupdr-v1 0.5.0 → 1.0.1
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/lib/google/cloud/backupdr/v1/backupdr/client.rb +2 -2
- data/lib/google/cloud/backupdr/v1/backupdr/operations.rb +2 -2
- data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +29 -15
- data/lib/google/cloud/backupdr/v1/backupdr/rest/operations.rb +1 -1
- data/lib/google/cloud/backupdr/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 41f406ad2f317b823b8de82eb9601b79882a8c0fd4644c998738cc1ad3ab96b7
         | 
| 4 | 
            +
              data.tar.gz: 53cf1851ef45bb8c4d67f0fbe2ccb3d6c4648de135f5b1dbf9fd0c0edd5dc120
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 83cf062df94c4364844374ea01c7999f52709bfb8bb2071a194886043b500a8e6ad9a7e814b4c38314f75bb087bf02eefe43f89b6c2b7eabf915b815c1262be2
         | 
| 7 | 
            +
              data.tar.gz: 0cc34e244f8f06b4356fc8c88d5d637d579dd0be96d016d8c0d5105537394d6e2f67ac3fbad82772b28461e1920dea67713c0f32526e9d09d11e9e12bc5b3b5a
         | 
| @@ -3390,8 +3390,8 @@ module Google | |
| 3390 3390 |  | 
| 3391 3391 | 
             
                          config_attr :endpoint,      nil, ::String, nil
         | 
| 3392 3392 | 
             
                          config_attr :credentials,   nil do |value|
         | 
| 3393 | 
            -
                            allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
         | 
| 3394 | 
            -
                            allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
         | 
| 3393 | 
            +
                            allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
         | 
| 3394 | 
            +
                            allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
         | 
| 3395 3395 | 
             
                            allowed.any? { |klass| klass === value }
         | 
| 3396 3396 | 
             
                          end
         | 
| 3397 3397 | 
             
                          config_attr :scope,         nil, ::String, ::Array, nil
         | 
| @@ -701,8 +701,8 @@ module Google | |
| 701 701 |  | 
| 702 702 | 
             
                          config_attr :endpoint,      nil, ::String, nil
         | 
| 703 703 | 
             
                          config_attr :credentials,   nil do |value|
         | 
| 704 | 
            -
                            allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
         | 
| 705 | 
            -
                            allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
         | 
| 704 | 
            +
                            allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
         | 
| 705 | 
            +
                            allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
         | 
| 706 706 | 
             
                            allowed.any? { |klass| klass === value }
         | 
| 707 707 | 
             
                          end
         | 
| 708 708 | 
             
                          config_attr :scope,         nil, ::String, ::Array, nil
         | 
| @@ -331,10 +331,10 @@ module Google | |
| 331 331 | 
             
                          #   @param order_by [::String]
         | 
| 332 332 | 
             
                          #     Optional. Hint for how to order the results.
         | 
| 333 333 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 334 | 
            -
                          # @yieldparam result [::Google::Cloud::BackupDR::V1:: | 
| 334 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::ManagementServer>]
         | 
| 335 335 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 336 336 | 
             
                          #
         | 
| 337 | 
            -
                          # @return [::Google::Cloud::BackupDR::V1:: | 
| 337 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::ManagementServer>]
         | 
| 338 338 | 
             
                          #
         | 
| 339 339 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 340 340 | 
             
                          #
         | 
| @@ -386,7 +386,9 @@ module Google | |
| 386 386 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 387 387 |  | 
| 388 388 | 
             
                            @backup_dr_stub.list_management_servers request, options do |result, operation|
         | 
| 389 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_management_servers, "management_servers", request, result, options
         | 
| 389 390 | 
             
                              yield result, operation if block_given?
         | 
| 391 | 
            +
                              throw :response, result
         | 
| 390 392 | 
             
                            end
         | 
| 391 393 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 392 394 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -829,10 +831,10 @@ module Google | |
| 829 831 | 
             
                          #     Optional. Reserved for future use to provide a BASIC & FULL view of Backup
         | 
| 830 832 | 
             
                          #     Vault.
         | 
| 831 833 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 832 | 
            -
                          # @yieldparam result [::Google::Cloud::BackupDR::V1:: | 
| 834 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BackupVault>]
         | 
| 833 835 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 834 836 | 
             
                          #
         | 
| 835 | 
            -
                          # @return [::Google::Cloud::BackupDR::V1:: | 
| 837 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BackupVault>]
         | 
| 836 838 | 
             
                          #
         | 
| 837 839 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 838 840 | 
             
                          #
         | 
| @@ -884,7 +886,9 @@ module Google | |
| 884 886 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 885 887 |  | 
| 886 888 | 
             
                            @backup_dr_stub.list_backup_vaults request, options do |result, operation|
         | 
| 889 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_backup_vaults, "backup_vaults", request, result, options
         | 
| 887 890 | 
             
                              yield result, operation if block_given?
         | 
| 891 | 
            +
                              throw :response, result
         | 
| 888 892 | 
             
                            end
         | 
| 889 893 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 890 894 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -927,10 +931,10 @@ module Google | |
| 927 931 | 
             
                          #   @param order_by [::String]
         | 
| 928 932 | 
             
                          #     Optional. Hint for how to order the results.
         | 
| 929 933 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 930 | 
            -
                          # @yieldparam result [::Google::Cloud::BackupDR::V1:: | 
| 934 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BackupVault>]
         | 
| 931 935 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 932 936 | 
             
                          #
         | 
| 933 | 
            -
                          # @return [::Google::Cloud::BackupDR::V1:: | 
| 937 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BackupVault>]
         | 
| 934 938 | 
             
                          #
         | 
| 935 939 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 936 940 | 
             
                          #
         | 
| @@ -982,7 +986,9 @@ module Google | |
| 982 986 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 983 987 |  | 
| 984 988 | 
             
                            @backup_dr_stub.fetch_usable_backup_vaults request, options do |result, operation|
         | 
| 989 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :fetch_usable_backup_vaults, "backup_vaults", request, result, options
         | 
| 985 990 | 
             
                              yield result, operation if block_given?
         | 
| 991 | 
            +
                              throw :response, result
         | 
| 986 992 | 
             
                            end
         | 
| 987 993 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 988 994 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1335,10 +1341,10 @@ module Google | |
| 1335 1341 | 
             
                          #   @param order_by [::String]
         | 
| 1336 1342 | 
             
                          #     Optional. Hint for how to order the results.
         | 
| 1337 1343 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 1338 | 
            -
                          # @yieldparam result [::Google::Cloud::BackupDR::V1:: | 
| 1344 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::DataSource>]
         | 
| 1339 1345 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 1340 1346 | 
             
                          #
         | 
| 1341 | 
            -
                          # @return [::Google::Cloud::BackupDR::V1:: | 
| 1347 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::DataSource>]
         | 
| 1342 1348 | 
             
                          #
         | 
| 1343 1349 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 1344 1350 | 
             
                          #
         | 
| @@ -1390,7 +1396,9 @@ module Google | |
| 1390 1396 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 1391 1397 |  | 
| 1392 1398 | 
             
                            @backup_dr_stub.list_data_sources request, options do |result, operation|
         | 
| 1399 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_data_sources, "data_sources", request, result, options
         | 
| 1393 1400 | 
             
                              yield result, operation if block_given?
         | 
| 1401 | 
            +
                              throw :response, result
         | 
| 1394 1402 | 
             
                            end
         | 
| 1395 1403 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 1396 1404 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1622,10 +1630,10 @@ module Google | |
| 1622 1630 | 
             
                          #     Optional. Reserved for future use to provide a BASIC & FULL view of Backup
         | 
| 1623 1631 | 
             
                          #     resource.
         | 
| 1624 1632 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 1625 | 
            -
                          # @yieldparam result [::Google::Cloud::BackupDR::V1:: | 
| 1633 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::Backup>]
         | 
| 1626 1634 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 1627 1635 | 
             
                          #
         | 
| 1628 | 
            -
                          # @return [::Google::Cloud::BackupDR::V1:: | 
| 1636 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::Backup>]
         | 
| 1629 1637 | 
             
                          #
         | 
| 1630 1638 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 1631 1639 | 
             
                          #
         | 
| @@ -1677,7 +1685,9 @@ module Google | |
| 1677 1685 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 1678 1686 |  | 
| 1679 1687 | 
             
                            @backup_dr_stub.list_backups request, options do |result, operation|
         | 
| 1688 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_backups, "backups", request, result, options
         | 
| 1680 1689 | 
             
                              yield result, operation if block_given?
         | 
| 1690 | 
            +
                              throw :response, result
         | 
| 1681 1691 | 
             
                            end
         | 
| 1682 1692 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 1683 1693 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -2312,10 +2322,10 @@ module Google | |
| 2312 2322 | 
             
                          #   @param order_by [::String]
         | 
| 2313 2323 | 
             
                          #     Optional. Field by which to sort the results.
         | 
| 2314 2324 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 2315 | 
            -
                          # @yieldparam result [::Google::Cloud::BackupDR::V1:: | 
| 2325 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BackupPlan>]
         | 
| 2316 2326 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 2317 2327 | 
             
                          #
         | 
| 2318 | 
            -
                          # @return [::Google::Cloud::BackupDR::V1:: | 
| 2328 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BackupPlan>]
         | 
| 2319 2329 | 
             
                          #
         | 
| 2320 2330 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 2321 2331 | 
             
                          #
         | 
| @@ -2367,7 +2377,9 @@ module Google | |
| 2367 2377 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 2368 2378 |  | 
| 2369 2379 | 
             
                            @backup_dr_stub.list_backup_plans request, options do |result, operation|
         | 
| 2380 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_backup_plans, "backup_plans", request, result, options
         | 
| 2370 2381 | 
             
                              yield result, operation if block_given?
         | 
| 2382 | 
            +
                              throw :response, result
         | 
| 2371 2383 | 
             
                            end
         | 
| 2372 2384 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 2373 2385 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -2696,10 +2708,10 @@ module Google | |
| 2696 2708 | 
             
                          #   @param filter [::String]
         | 
| 2697 2709 | 
             
                          #     Optional. Filtering results
         | 
| 2698 2710 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 2699 | 
            -
                          # @yieldparam result [::Google::Cloud::BackupDR::V1:: | 
| 2711 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BackupPlanAssociation>]
         | 
| 2700 2712 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 2701 2713 | 
             
                          #
         | 
| 2702 | 
            -
                          # @return [::Google::Cloud::BackupDR::V1:: | 
| 2714 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BackupPlanAssociation>]
         | 
| 2703 2715 | 
             
                          #
         | 
| 2704 2716 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 2705 2717 | 
             
                          #
         | 
| @@ -2751,7 +2763,9 @@ module Google | |
| 2751 2763 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 2752 2764 |  | 
| 2753 2765 | 
             
                            @backup_dr_stub.list_backup_plan_associations request, options do |result, operation|
         | 
| 2766 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_backup_plan_associations, "backup_plan_associations", request, result, options
         | 
| 2754 2767 | 
             
                              yield result, operation if block_given?
         | 
| 2768 | 
            +
                              throw :response, result
         | 
| 2755 2769 | 
             
                            end
         | 
| 2756 2770 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 2757 2771 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -3166,7 +3180,7 @@ module Google | |
| 3166 3180 |  | 
| 3167 3181 | 
             
                            config_attr :endpoint,      nil, ::String, nil
         | 
| 3168 3182 | 
             
                            config_attr :credentials,   nil do |value|
         | 
| 3169 | 
            -
                              allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
         | 
| 3183 | 
            +
                              allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
         | 
| 3170 3184 | 
             
                              allowed.any? { |klass| klass === value }
         | 
| 3171 3185 | 
             
                            end
         | 
| 3172 3186 | 
             
                            config_attr :scope,         nil, ::String, ::Array, nil
         | 
| @@ -556,7 +556,7 @@ module Google | |
| 556 556 |  | 
| 557 557 | 
             
                            config_attr :endpoint,      nil, ::String, nil
         | 
| 558 558 | 
             
                            config_attr :credentials,   nil do |value|
         | 
| 559 | 
            -
                              allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
         | 
| 559 | 
            +
                              allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
         | 
| 560 560 | 
             
                              allowed.any? { |klass| klass === value }
         | 
| 561 561 | 
             
                            end
         | 
| 562 562 | 
             
                            config_attr :scope,         nil, ::String, ::Array, nil
         | 
| @@ -221,6 +221,12 @@ module Google | |
| 221 221 | 
             
                  #     Pythonic which are included in `protobuf>=5.29.x`. This feature will be
         | 
| 222 222 | 
             
                  #     enabled by default 1 month after launching the feature in preview
         | 
| 223 223 | 
             
                  #     packages.
         | 
| 224 | 
            +
                  # @!attribute [rw] unversioned_package_disabled
         | 
| 225 | 
            +
                  #   @return [::Boolean]
         | 
| 226 | 
            +
                  #     Disables generation of an unversioned Python package for this client
         | 
| 227 | 
            +
                  #     library. This means that the module names will need to be versioned in
         | 
| 228 | 
            +
                  #     import statements. For example `import google.cloud.library_v2` instead
         | 
| 229 | 
            +
                  #     of `import google.cloud.library`.
         | 
| 224 230 | 
             
                  class ExperimentalFeatures
         | 
| 225 231 | 
             
                    include ::Google::Protobuf::MessageExts
         | 
| 226 232 | 
             
                    extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -409,6 +415,14 @@ module Google | |
| 409 415 | 
             
                #   @return [::Array<::String>]
         | 
| 410 416 | 
             
                #     An allowlist of the fully qualified names of RPCs that should be included
         | 
| 411 417 | 
             
                #     on public client surfaces.
         | 
| 418 | 
            +
                # @!attribute [rw] generate_omitted_as_internal
         | 
| 419 | 
            +
                #   @return [::Boolean]
         | 
| 420 | 
            +
                #     Setting this to true indicates to the client generators that methods
         | 
| 421 | 
            +
                #     that would be excluded from the generation should instead be generated
         | 
| 422 | 
            +
                #     in a way that indicates these methods should not be consumed by
         | 
| 423 | 
            +
                #     end users. How this is expressed is up to individual language
         | 
| 424 | 
            +
                #     implementations to decide. Some examples may be: added annotations,
         | 
| 425 | 
            +
                #     obfuscated identifiers, or other language idiomatic patterns.
         | 
| 412 426 | 
             
                class SelectiveGapicGeneration
         | 
| 413 427 | 
             
                  include ::Google::Protobuf::MessageExts
         | 
| 414 428 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-cloud-backupdr-v1
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 1.0.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 8 | 
             
            bindir: bin
         | 
| 9 9 | 
             
            cert_chain: []
         | 
| 10 | 
            -
            date:  | 
| 10 | 
            +
            date: 1980-01-02 00:00:00.000000000 Z
         | 
| 11 11 | 
             
            dependencies:
         | 
| 12 12 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 13 13 | 
             
              name: gapic-common
         | 
| @@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 158 158 | 
             
                - !ruby/object:Gem::Version
         | 
| 159 159 | 
             
                  version: '0'
         | 
| 160 160 | 
             
            requirements: []
         | 
| 161 | 
            -
            rubygems_version: 3.6. | 
| 161 | 
            +
            rubygems_version: 3.6.8
         | 
| 162 162 | 
             
            specification_version: 4
         | 
| 163 163 | 
             
            summary: API Client library for the Backup and DR Service V1 API
         | 
| 164 164 | 
             
            test_files: []
         |