google-cloud-language-v1 1.4.0 → 1.4.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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e8669e2a2840fe9572a439c2e41e8dfbb51e54004b14797f8daea36f3ddcdc5d
         | 
| 4 | 
            +
              data.tar.gz: 4788c95f1282d6b40a001e964cf1ef847fb75497bebca0bd69173bede4ecd278
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: b8a6388c9c9e2e37aa3e6508afec024ad932f02a570f2f8a4ab18bf59ecf0002d31a4022a042978f313bdff03787eaadbe78dd9fced60671bd307eba76c77c6d
         | 
| 7 | 
            +
              data.tar.gz: 685202153bb3ece1643efaee0c34a8c9b3597677894cd38f9d3f46b8acafa8ba8cae9a5320cda6cdd7684fb11fce9744545409a4014c46bff162469523680563
         | 
| @@ -809,8 +809,6 @@ module Google | |
| 809 809 | 
             
                        #   @return [::String,nil]
         | 
| 810 810 | 
             
                        # @!attribute [rw] credentials
         | 
| 811 811 | 
             
                        #   Credentials to send with calls. You may provide any of the following types:
         | 
| 812 | 
            -
                        #    *  (`String`) The path to a service account key file in JSON format
         | 
| 813 | 
            -
                        #    *  (`Hash`) A service account key as a Hash
         | 
| 814 812 | 
             
                        #    *  (`Google::Auth::Credentials`) A googleauth credentials object
         | 
| 815 813 | 
             
                        #       (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
         | 
| 816 814 | 
             
                        #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         | 
| @@ -819,7 +817,26 @@ module Google | |
| 819 817 | 
             
                        #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 820 818 | 
             
                        #    *  (`nil`) indicating no credentials
         | 
| 821 819 | 
             
                        #
         | 
| 822 | 
            -
                        #   Warning:  | 
| 820 | 
            +
                        #   @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
         | 
| 821 | 
            +
                        #     is deprecated. Providing an unvalidated credential configuration to
         | 
| 822 | 
            +
                        #     Google APIs can compromise the security of your systems and data.
         | 
| 823 | 
            +
                        #
         | 
| 824 | 
            +
                        #   @example
         | 
| 825 | 
            +
                        #
         | 
| 826 | 
            +
                        #     # The recommended way to provide credentials is to use the `make_creds` method
         | 
| 827 | 
            +
                        #     # on the appropriate credentials class for your environment.
         | 
| 828 | 
            +
                        #
         | 
| 829 | 
            +
                        #     require "googleauth"
         | 
| 830 | 
            +
                        #
         | 
| 831 | 
            +
                        #     credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
         | 
| 832 | 
            +
                        #       json_key_io: ::File.open("/path/to/keyfile.json")
         | 
| 833 | 
            +
                        #     )
         | 
| 834 | 
            +
                        #
         | 
| 835 | 
            +
                        #     client = ::Google::Cloud::Language::V1::LanguageService::Client.new do |config|
         | 
| 836 | 
            +
                        #       config.credentials = credentials
         | 
| 837 | 
            +
                        #     end
         | 
| 838 | 
            +
                        #
         | 
| 839 | 
            +
                        #   @note Warning: If you accept a credential configuration (JSON file or Hash) from an
         | 
| 823 840 | 
             
                        #   external source for authentication to Google Cloud, you must validate it before
         | 
| 824 841 | 
             
                        #   providing it to a Google API client library. Providing an unvalidated credential
         | 
| 825 842 | 
             
                        #   configuration to Google APIs can compromise the security of your systems and data.
         |