google-cloud-functions-v1 2.3.0 → 2.3.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: 2d406179fde92c0677d8fe7d4f154cacd089173a96d077c46a7c7978cba6bf30
4
- data.tar.gz: d086d2e8ce5b1b56dfc083669d16baaacf853a3affe45fce963a886dc125d86d
3
+ metadata.gz: 6a3ab76475bcad14a6e59e2d8c9b50128fa6f98de9196f000e88a4156dd37d22
4
+ data.tar.gz: 05fcd5c03c4b764976fc407f8aedd0c83c7b14c44aa6ef50885b76c16211ed75
5
5
  SHA512:
6
- metadata.gz: bc7b6513b015cef68e2fc65cdbe0b78cc6a54a2c63451605b97bd681cabac7a739834ebff2c352ca5cd83b960fb570bebfb9e5f8e15e27a3d05625f77207cba5
7
- data.tar.gz: f14a7551ed075b81564711eb2c70bdb5170533ca761856fad3c77108a28a947869dfc48103204afac97f89fcbefce2d6b818a25790160e37ea2e7af841e36e0a
6
+ metadata.gz: e3b95018598ba34cf5fa9c8c1e832fccf35d1494d0e170c1a26813f13b3930822dc12c2bb101efb9dd9e85c06c4f58c834f473e8dff362e3db1c9044acdbb8b3
7
+ data.tar.gz: 56af4f20730e37b9a55f6dfc2bf0ab58acb762294298fd872545630c26beaa5747dff3bec9fde0ceff36a42922c3fec16324cba455d6d70e66e597b0aede4dcd
@@ -1368,8 +1368,6 @@ module Google
1368
1368
  # @return [::String,nil]
1369
1369
  # @!attribute [rw] credentials
1370
1370
  # Credentials to send with calls. You may provide any of the following types:
1371
- # * (`String`) The path to a service account key file in JSON format
1372
- # * (`Hash`) A service account key as a Hash
1373
1371
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1374
1372
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1375
1373
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1378,7 +1376,26 @@ module Google
1378
1376
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1379
1377
  # * (`nil`) indicating no credentials
1380
1378
  #
1381
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1379
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1380
+ # is deprecated. Providing an unvalidated credential configuration to
1381
+ # Google APIs can compromise the security of your systems and data.
1382
+ #
1383
+ # @example
1384
+ #
1385
+ # # The recommended way to provide credentials is to use the `make_creds` method
1386
+ # # on the appropriate credentials class for your environment.
1387
+ #
1388
+ # require "googleauth"
1389
+ #
1390
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1391
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1392
+ # )
1393
+ #
1394
+ # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new do |config|
1395
+ # config.credentials = credentials
1396
+ # end
1397
+ #
1398
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1382
1399
  # external source for authentication to Google Cloud, you must validate it before
1383
1400
  # providing it to a Google API client library. Providing an unvalidated credential
1384
1401
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -634,8 +634,6 @@ module Google
634
634
  # @return [::String,nil]
635
635
  # @!attribute [rw] credentials
636
636
  # Credentials to send with calls. You may provide any of the following types:
637
- # * (`String`) The path to a service account key file in JSON format
638
- # * (`Hash`) A service account key as a Hash
639
637
  # * (`Google::Auth::Credentials`) A googleauth credentials object
640
638
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
641
639
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -644,7 +642,26 @@ module Google
644
642
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
645
643
  # * (`nil`) indicating no credentials
646
644
  #
647
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
646
+ # is deprecated. Providing an unvalidated credential configuration to
647
+ # Google APIs can compromise the security of your systems and data.
648
+ #
649
+ # @example
650
+ #
651
+ # # The recommended way to provide credentials is to use the `make_creds` method
652
+ # # on the appropriate credentials class for your environment.
653
+ #
654
+ # require "googleauth"
655
+ #
656
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
657
+ # json_key_io: ::File.open("/path/to/keyfile.json")
658
+ # )
659
+ #
660
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
661
+ # config.credentials = credentials
662
+ # end
663
+ #
664
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
648
665
  # external source for authentication to Google Cloud, you must validate it before
649
666
  # providing it to a Google API client library. Providing an unvalidated credential
650
667
  # 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 Functions
23
23
  module V1
24
- VERSION = "2.3.0"
24
+ VERSION = "2.3.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-functions-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC