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: 7e4edc21022fb27665428fff77fa2d268f57b2dac2fb32f77d2bc957710b30e4
4
- data.tar.gz: fef8d0cffe13e86df8d10fe1b4e7a8900c612172cd1abb02678c34e7eea29b9c
3
+ metadata.gz: e8669e2a2840fe9572a439c2e41e8dfbb51e54004b14797f8daea36f3ddcdc5d
4
+ data.tar.gz: 4788c95f1282d6b40a001e964cf1ef847fb75497bebca0bd69173bede4ecd278
5
5
  SHA512:
6
- metadata.gz: 99421890a977c59d0efddce92676e14507f213b219ddec9362da88b57e97e053db4d3a025af97bfde1a08e99a567ac9d2eecc2f1f4cd131c4f8e1c65b2d5a109
7
- data.tar.gz: b3b2069ffc03611367bf7b2e8257b687e750766d78803b89769a70bdfb23268fcd7fdd61ffa8108a194b4b125add4faee1bc59adb43d1135193922e1acd87dc2
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: If you accept a credential configuration (JSON file or Hash) from an
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Language
23
23
  module V1
24
- VERSION = "1.4.0"
24
+ VERSION = "1.4.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-language-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC