google-cloud-tasks-v2 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: e4ac104c5755d8dcb237f0e1e26ff5736bb69e08c4c8d5fcac3e426bcf4a181f
4
- data.tar.gz: 23abac8b713af77030f57471c56ef9c472c392c7cb42e74840eb25b2d375cac7
3
+ metadata.gz: 10976a6d186bbe5b3ca7bcc44a29990402c74522c837ebaa286994acc7a543c9
4
+ data.tar.gz: ccb0603e59ea0a412e9788443f1bebf407d754a688395c837650d8909e5b4dbc
5
5
  SHA512:
6
- metadata.gz: 0fedca39daf7a2a4e40b6dd89a30ac63421f22b76f616ad9ae99233eab958ba70aeabca729c42b5dd0bc795fcb388265420ecd7e4d913df4a427974aa499d096
7
- data.tar.gz: 411e0b1ddd981d8005d1fb1ad4b8f44f7aa893fa1b41d6cd05bedfa021d3db2b254d561f32260eba69d12dcfd425ce452546978bb72ce316a41eb13afc952701
6
+ metadata.gz: 4cf6128283313715d8658d0e8d46b4c6cf5b28d3db5b0a56f15d14b560287294375f15a5b51857848c87c1d45093efab98b346362109476c343f81591156a866
7
+ data.tar.gz: eca4a672502f88111894aa8a796ee7c09f5902b244fa7824e87ee0627134dae7b54cc6884ff3a58f25698042d6d9a7a05bb7def25124bf007963ad78920397d1
@@ -1983,8 +1983,6 @@ module Google
1983
1983
  # @return [::String,nil]
1984
1984
  # @!attribute [rw] credentials
1985
1985
  # Credentials to send with calls. You may provide any of the following types:
1986
- # * (`String`) The path to a service account key file in JSON format
1987
- # * (`Hash`) A service account key as a Hash
1988
1986
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1989
1987
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1990
1988
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1993,7 +1991,26 @@ module Google
1993
1991
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1994
1992
  # * (`nil`) indicating no credentials
1995
1993
  #
1996
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1994
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1995
+ # is deprecated. Providing an unvalidated credential configuration to
1996
+ # Google APIs can compromise the security of your systems and data.
1997
+ #
1998
+ # @example
1999
+ #
2000
+ # # The recommended way to provide credentials is to use the `make_creds` method
2001
+ # # on the appropriate credentials class for your environment.
2002
+ #
2003
+ # require "googleauth"
2004
+ #
2005
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2006
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2007
+ # )
2008
+ #
2009
+ # client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new do |config|
2010
+ # config.credentials = credentials
2011
+ # end
2012
+ #
2013
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1997
2014
  # external source for authentication to Google Cloud, you must validate it before
1998
2015
  # providing it to a Google API client library. Providing an unvalidated credential
1999
2016
  # 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 Tasks
23
23
  module V2
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-tasks-v2
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