google-cloud-functions-v2 1.3.0 → 1.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: e22ae38759b00d1270471c6bddd78c2e5e8cf47319412bd436e283c9712c1226
4
- data.tar.gz: 6f7c75b8a8d6b1f068ccb5502abb99bcd4b41e9dfe9b757f832a11b8df0ca367
3
+ metadata.gz: ce814355973434815b7650b2836ddfb32d210e4b758d9e6fab2e259c9a999195
4
+ data.tar.gz: 106f63e9e63f312f65aa7a5cddaca91221f7df8ede37b2257175424b540e8ff9
5
5
  SHA512:
6
- metadata.gz: d4af79b424023d979b6f89f4934077b773c76ba6b32e5808bcae5a4b9c4c474fd070d6f2de61c9f0c910446c72e9d8c7f396c1b84a73793d8a94ffa6e128cc45
7
- data.tar.gz: 75db0c75a32bd956ee608dd8b4a2489322bc9f0679f4d5d5d0c50c2d17b8d37f3b91e6ef0e6d0f2f23e6872af77ac37a37cf086b0b328acaa3bf8a8851b4193b
6
+ metadata.gz: 45da50c7d41314fa8af36be882b2a3f94cb245ee43ad2be52fbd3fa82394009e609add05353ad62d61a0297a9a8ea66b457a267d4df26e49317dcbb109e81cbb
7
+ data.tar.gz: e6e3282de8586374a31e9644c6b2f5c76d3ba8eb568186ad71bd34e05e58517f3dc3794ab55f47dd2af3a1093a9825653a32630cf788bcae7119ef165413dd58
@@ -1080,8 +1080,6 @@ module Google
1080
1080
  # @return [::String,nil]
1081
1081
  # @!attribute [rw] credentials
1082
1082
  # Credentials to send with calls. You may provide any of the following types:
1083
- # * (`String`) The path to a service account key file in JSON format
1084
- # * (`Hash`) A service account key as a Hash
1085
1083
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1086
1084
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1087
1085
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1090,7 +1088,26 @@ module Google
1090
1088
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1091
1089
  # * (`nil`) indicating no credentials
1092
1090
  #
1093
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1091
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1092
+ # is deprecated. Providing an unvalidated credential configuration to
1093
+ # Google APIs can compromise the security of your systems and data.
1094
+ #
1095
+ # @example
1096
+ #
1097
+ # # The recommended way to provide credentials is to use the `make_creds` method
1098
+ # # on the appropriate credentials class for your environment.
1099
+ #
1100
+ # require "googleauth"
1101
+ #
1102
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1103
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1104
+ # )
1105
+ #
1106
+ # client = ::Google::Cloud::Functions::V2::FunctionService::Client.new do |config|
1107
+ # config.credentials = credentials
1108
+ # end
1109
+ #
1110
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1094
1111
  # external source for authentication to Google Cloud, you must validate it before
1095
1112
  # providing it to a Google API client library. Providing an unvalidated credential
1096
1113
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # 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 V2
24
- VERSION = "1.3.0"
24
+ VERSION = "1.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-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC