google-cloud-recommender-v1 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: c253eda97863e9dfc361cc2d21e5440fc3d2a58e800d724f29ac0c54282de292
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 73948002ffad6fa00a26b1a68f702451703fbfed7d679e828af002556df9c77a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 241dd9fc27487ee2324f67667e873915f3657049ea89bcff4173379fe9c1fef1f6e9d5c2b6e670996567bb39fb7fccd595be2d4d1d2863e29cdc547788185c9d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 0bb1ba89526300e978cb07bcc590ed20d9a16a15a7bf9f0784ef8bc841b8996084323cbdbf8b794732a55048b5756c1a4701073a2b12b5fb8c401cd683b43a66
         
     | 
| 
         @@ -155,7 +155,8 @@ module Google 
     | 
|
| 
       155 
155 
     | 
    
         
             
                          if credentials.is_a?(String) || credentials.is_a?(Hash)
         
     | 
| 
       156 
156 
     | 
    
         
             
                            credentials = Credentials.new credentials, scope: @config.scope
         
     | 
| 
       157 
157 
     | 
    
         
             
                          end
         
     | 
| 
       158 
     | 
    
         
            -
                          @quota_project_id =  
     | 
| 
      
 158 
     | 
    
         
            +
                          @quota_project_id = @config.quota_project
         
     | 
| 
      
 159 
     | 
    
         
            +
                          @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
         
     | 
| 
       159 
160 
     | 
    
         | 
| 
       160 
161 
     | 
    
         
             
                          @recommender_stub = ::Gapic::ServiceStub.new(
         
     | 
| 
       161 
162 
     | 
    
         
             
                            ::Google::Cloud::Recommender::V1::Recommender::Stub,
         
     | 
| 
         @@ -645,24 +646,28 @@ module Google 
     | 
|
| 
       645 
646 
     | 
    
         
             
                        #    *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
         
     | 
| 
       646 
647 
     | 
    
         
             
                        #       trigger a retry.
         
     | 
| 
       647 
648 
     | 
    
         
             
                        #   @return [::Hash]
         
     | 
| 
      
 649 
     | 
    
         
            +
                        # @!attribute [rw] quota_project
         
     | 
| 
      
 650 
     | 
    
         
            +
                        #   A separate project against which to charge quota.
         
     | 
| 
      
 651 
     | 
    
         
            +
                        #   @return [::String]
         
     | 
| 
       648 
652 
     | 
    
         
             
                        #
         
     | 
| 
       649 
653 
     | 
    
         
             
                        class Configuration
         
     | 
| 
       650 
654 
     | 
    
         
             
                          extend ::Gapic::Config
         
     | 
| 
       651 
655 
     | 
    
         | 
| 
       652 
     | 
    
         
            -
                          config_attr :endpoint, 
     | 
| 
       653 
     | 
    
         
            -
                          config_attr :credentials, 
     | 
| 
      
 656 
     | 
    
         
            +
                          config_attr :endpoint,      "recommender.googleapis.com", ::String
         
     | 
| 
      
 657 
     | 
    
         
            +
                          config_attr :credentials,   nil do |value|
         
     | 
| 
       654 
658 
     | 
    
         
             
                            allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
         
     | 
| 
       655 
659 
     | 
    
         
             
                            allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
         
     | 
| 
       656 
660 
     | 
    
         
             
                            allowed.any? { |klass| klass === value }
         
     | 
| 
       657 
661 
     | 
    
         
             
                          end
         
     | 
| 
       658 
     | 
    
         
            -
                          config_attr :scope, 
     | 
| 
       659 
     | 
    
         
            -
                          config_attr :lib_name, 
     | 
| 
       660 
     | 
    
         
            -
                          config_attr :lib_version, 
     | 
| 
       661 
     | 
    
         
            -
                          config_attr(:channel_args, 
     | 
| 
       662 
     | 
    
         
            -
                          config_attr :interceptors, 
     | 
| 
       663 
     | 
    
         
            -
                          config_attr :timeout, 
     | 
| 
       664 
     | 
    
         
            -
                          config_attr :metadata, 
     | 
| 
       665 
     | 
    
         
            -
                          config_attr :retry_policy, 
     | 
| 
      
 662 
     | 
    
         
            +
                          config_attr :scope,         nil, ::String, ::Array, nil
         
     | 
| 
      
 663 
     | 
    
         
            +
                          config_attr :lib_name,      nil, ::String, nil
         
     | 
| 
      
 664 
     | 
    
         
            +
                          config_attr :lib_version,   nil, ::String, nil
         
     | 
| 
      
 665 
     | 
    
         
            +
                          config_attr(:channel_args,  { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
         
     | 
| 
      
 666 
     | 
    
         
            +
                          config_attr :interceptors,  nil, ::Array, nil
         
     | 
| 
      
 667 
     | 
    
         
            +
                          config_attr :timeout,       nil, ::Numeric, nil
         
     | 
| 
      
 668 
     | 
    
         
            +
                          config_attr :metadata,      nil, ::Hash, nil
         
     | 
| 
      
 669 
     | 
    
         
            +
                          config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
         
     | 
| 
      
 670 
     | 
    
         
            +
                          config_attr :quota_project, nil, ::String, nil
         
     | 
| 
       666 
671 
     | 
    
         | 
| 
       667 
672 
     | 
    
         
             
                          # @private
         
     | 
| 
       668 
673 
     | 
    
         
             
                          def initialize parent_config = nil
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: google-cloud-recommender-v1
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.4.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Google LLC
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2020-05- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-05-21 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: gapic-common
         
     | 
| 
         @@ -58,14 +58,42 @@ dependencies: 
     | 
|
| 
       58 
58 
     | 
    
         
             
                requirements:
         
     | 
| 
       59 
59 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       60 
60 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       61 
     | 
    
         
            -
                    version: '5. 
     | 
| 
      
 61 
     | 
    
         
            +
                    version: '5.14'
         
     | 
| 
       62 
62 
     | 
    
         
             
              type: :development
         
     | 
| 
       63 
63 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       64 
64 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       65 
65 
     | 
    
         
             
                requirements:
         
     | 
| 
       66 
66 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       67 
67 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       68 
     | 
    
         
            -
                    version: '5. 
     | 
| 
      
 68 
     | 
    
         
            +
                    version: '5.14'
         
     | 
| 
      
 69 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 70 
     | 
    
         
            +
              name: minitest-focus
         
     | 
| 
      
 71 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 72 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 73 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 74 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 75 
     | 
    
         
            +
                    version: '1.1'
         
     | 
| 
      
 76 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 77 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 78 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 79 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 80 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 81 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 82 
     | 
    
         
            +
                    version: '1.1'
         
     | 
| 
      
 83 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 84 
     | 
    
         
            +
              name: minitest-rg
         
     | 
| 
      
 85 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 86 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 87 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 88 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 89 
     | 
    
         
            +
                    version: '5.2'
         
     | 
| 
      
 90 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 91 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 92 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 93 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 94 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 95 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 96 
     | 
    
         
            +
                    version: '5.2'
         
     | 
| 
       69 
97 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       70 
98 
     | 
    
         
             
              name: rake
         
     | 
| 
       71 
99 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     |