google-cloud-language-v2 1.2.0 → 1.2.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: 6246e749399d18687e96e32c9e1e7d7c366059694f2bb657285b174a271255d2
4
- data.tar.gz: 963fb842626032c010321d0d6972b1937ea6906eb82931f0a6da15e622dc9f6e
3
+ metadata.gz: 659fc0236ad9e97b19cb808ad4e7fa00212c4672c6038a3e0e1f584c01481aff
4
+ data.tar.gz: ceb181156b9d3195d7bcf779fd7a99c3182dc9deb9c132a24c64134d6b0458b9
5
5
  SHA512:
6
- metadata.gz: e2ff614ea74ee8eaac11a6bbe66ff472fd0a3370dd98fda9b3bf2b2d779e129516c3f154164bb6986ca2a8ca8ff05741bf51044ef6ab91e707c8fd6ae0e9467a
7
- data.tar.gz: c29eadf911d0d76113cc0838c3585b2ba5c3e74a4865e3b884d15a5d862c95e960434b163909536b65ad243e9a7f650978a72eb9e1da549fc2a18f3b3fff812e
6
+ metadata.gz: dc8da0328f4837014d747d1498fabde1ddeb084be66e137858043fc15d29d815c1cfbd8c5b7f23e86f85fa3a9d1be389d741f288ef5c8d0d0458be709e16841c
7
+ data.tar.gz: 06df04f0d7e49ce25af03903842ea6f008c8dbd746ad5cddb768a86c6f69c067d9cb9aaac04517175054a3aed6be5cff23b372015a81a49d7166000a34fee048
@@ -639,8 +639,6 @@ module Google
639
639
  # @return [::String,nil]
640
640
  # @!attribute [rw] credentials
641
641
  # Credentials to send with calls. You may provide any of the following types:
642
- # * (`String`) The path to a service account key file in JSON format
643
- # * (`Hash`) A service account key as a Hash
644
642
  # * (`Google::Auth::Credentials`) A googleauth credentials object
645
643
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
646
644
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -649,7 +647,26 @@ module Google
649
647
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
648
  # * (`nil`) indicating no credentials
651
649
  #
652
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
650
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
651
+ # is deprecated. Providing an unvalidated credential configuration to
652
+ # Google APIs can compromise the security of your systems and data.
653
+ #
654
+ # @example
655
+ #
656
+ # # The recommended way to provide credentials is to use the `make_creds` method
657
+ # # on the appropriate credentials class for your environment.
658
+ #
659
+ # require "googleauth"
660
+ #
661
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
662
+ # json_key_io: ::File.open("/path/to/keyfile.json")
663
+ # )
664
+ #
665
+ # client = ::Google::Cloud::Language::V2::LanguageService::Client.new do |config|
666
+ # config.credentials = credentials
667
+ # end
668
+ #
669
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
653
670
  # external source for authentication to Google Cloud, you must validate it before
654
671
  # providing it to a Google API client library. Providing an unvalidated credential
655
672
  # 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 V2
24
- VERSION = "1.2.0"
24
+ VERSION = "1.2.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-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC