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