google-cloud-language-v1beta2 0.14.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: bd3d0bc7c668397df2b9d70e7c878ad1544ac23dd803035184a55ee71fdfc1d9
4
- data.tar.gz: 86bcfcf55d0f0afee1cb1eebc4cef1d35c6abfe1bd0a23f694b26e16f3804cc3
3
+ metadata.gz: 8987e2a626d2ceb11dbfb213f13b86c6cb661e062c40c43d3899719e020c47a5
4
+ data.tar.gz: d90c8b72b750a54639f7276d30fbe8811adc1cd1f90b2e451be668fb52bfaa1c
5
5
  SHA512:
6
- metadata.gz: d3fc092270d6d50911182dcb13be69c541178758a04fb479d705b570dda72ffb3652b4404e97977fb6124ebe5b7da7fed319b878886489eb2a01dd58a15d9604
7
- data.tar.gz: 2e4809d18d59c91465252ec6fbe3db10f9ae114f58ad94858699403e356320b0b0df99332bc0029c2358e3b840296133d3205cea78638dc35a6eea3089147987
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.14.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.14.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.0'
18
+ version: '1.2'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.0'
25
+ version: '1.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: google-cloud-errors
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.6.8
91
+ rubygems_version: 3.6.9
92
92
  specification_version: 4
93
93
  summary: Provides natural language understanding technologies, such as sentiment analysis,
94
94
  entity recognition, entity sentiment analysis, and other text annotations, to developers.