google-cloud-essential_contacts-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: 4063ef7fbe2319990aa02bf9b2e877015edfef1833a1edf6b62ecdfcac18e43d
         | 
| 4 | 
            +
              data.tar.gz: 178d11b02f8c8684604be21cee2472e79f6823757285d48b6a9ffc223d280973
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 3fccb822ef33a5edf7beec3c38b656dbc96ef72cff70bf0221d22c333764d670e1c6ab88a783b69fda7b14dce658c7b8b800baa607f9e603a0d8b9a95df205f8
         | 
| 7 | 
            +
              data.tar.gz: 1d7aa0c18607008a4d135aa2be78060fe69ff2e11fc1ef8b1d08debe021d2f9d30ea2c821b92e07ecd2087ca81845e840bb9f63693c1ce8d83c434d061f1b18c
         | 
| @@ -905,8 +905,6 @@ module Google | |
| 905 905 | 
             
                        #   @return [::String,nil]
         | 
| 906 906 | 
             
                        # @!attribute [rw] credentials
         | 
| 907 907 | 
             
                        #   Credentials to send with calls. You may provide any of the following types:
         | 
| 908 | 
            -
                        #    *  (`String`) The path to a service account key file in JSON format
         | 
| 909 | 
            -
                        #    *  (`Hash`) A service account key as a Hash
         | 
| 910 908 | 
             
                        #    *  (`Google::Auth::Credentials`) A googleauth credentials object
         | 
| 911 909 | 
             
                        #       (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
         | 
| 912 910 | 
             
                        #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         | 
| @@ -915,7 +913,26 @@ module Google | |
| 915 913 | 
             
                        #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 916 914 | 
             
                        #    *  (`nil`) indicating no credentials
         | 
| 917 915 | 
             
                        #
         | 
| 918 | 
            -
                        #   Warning:  | 
| 916 | 
            +
                        #   @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
         | 
| 917 | 
            +
                        #     is deprecated. Providing an unvalidated credential configuration to
         | 
| 918 | 
            +
                        #     Google APIs can compromise the security of your systems and data.
         | 
| 919 | 
            +
                        #
         | 
| 920 | 
            +
                        #   @example
         | 
| 921 | 
            +
                        #
         | 
| 922 | 
            +
                        #     # The recommended way to provide credentials is to use the `make_creds` method
         | 
| 923 | 
            +
                        #     # on the appropriate credentials class for your environment.
         | 
| 924 | 
            +
                        #
         | 
| 925 | 
            +
                        #     require "googleauth"
         | 
| 926 | 
            +
                        #
         | 
| 927 | 
            +
                        #     credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
         | 
| 928 | 
            +
                        #       json_key_io: ::File.open("/path/to/keyfile.json")
         | 
| 929 | 
            +
                        #     )
         | 
| 930 | 
            +
                        #
         | 
| 931 | 
            +
                        #     client = ::Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new do |config|
         | 
| 932 | 
            +
                        #       config.credentials = credentials
         | 
| 933 | 
            +
                        #     end
         | 
| 934 | 
            +
                        #
         | 
| 935 | 
            +
                        #   @note Warning: If you accept a credential configuration (JSON file or Hash) from an
         | 
| 919 936 | 
             
                        #   external source for authentication to Google Cloud, you must validate it before
         | 
| 920 937 | 
             
                        #   providing it to a Google API client library. Providing an unvalidated credential
         | 
| 921 938 | 
             
                        #   configuration to Google APIs can compromise the security of your systems and data.
         |