google-cloud-config_delivery-v1 0.3.0 → 0.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: acc5c9eb749146380607254b31e8c4440eb98a6b7746a76ee18c0bed560e4d47
4
- data.tar.gz: 73e917994103f492850100804beeed77f20bba0add111fcb4ab6c308b109a3bd
3
+ metadata.gz: eaaa2edda5e253192c87682d1cd8481d86d83e673205aaca90e1903c7e886df3
4
+ data.tar.gz: eef948782dab2fd60005d84027612022b4a8a74c685cce21e7396c2a0ce1af2e
5
5
  SHA512:
6
- metadata.gz: 0f86d963e69a9fc94089fdb27f676b04c70dec7edb11f8a04cd5e46913f328924fdf48b6239b0a48bb98c11eeea138bc125eb47f8ca4ff8aef882b8b50d4dd24
7
- data.tar.gz: 4ccc5b4f0f5548fe1ea9a273b43ba111b6f08c2732c1d8c7f9a947b811cf33fbf26d679813517222dcd82a4063eb5a71e5dd55702abf9838f867bec3d12527d4
6
+ metadata.gz: 75554e6f044a10d22e5517bb46c279ea4bcd6503b41b72c71a51c21020bb18d29be7c2410662464355576662717923ac3855e204d555aef578ca287b73ab052a
7
+ data.tar.gz: 64b8c8b0f5d29b6bd7ff555942cd0cf181e4c12ff84ff86884df13f7fddc5a68f294b463a1b31251203a072a76194d57c8024fb3e542eda1671c9dc38bab78b6
@@ -2900,8 +2900,6 @@ module Google
2900
2900
  # @return [::String,nil]
2901
2901
  # @!attribute [rw] credentials
2902
2902
  # Credentials to send with calls. You may provide any of the following types:
2903
- # * (`String`) The path to a service account key file in JSON format
2904
- # * (`Hash`) A service account key as a Hash
2905
2903
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2906
2904
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2907
2905
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2910,7 +2908,26 @@ module Google
2910
2908
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2911
2909
  # * (`nil`) indicating no credentials
2912
2910
  #
2913
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2911
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2912
+ # is deprecated. Providing an unvalidated credential configuration to
2913
+ # Google APIs can compromise the security of your systems and data.
2914
+ #
2915
+ # @example
2916
+ #
2917
+ # # The recommended way to provide credentials is to use the `make_creds` method
2918
+ # # on the appropriate credentials class for your environment.
2919
+ #
2920
+ # require "googleauth"
2921
+ #
2922
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2923
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2924
+ # )
2925
+ #
2926
+ # client = ::Google::Cloud::ConfigDelivery::V1::ConfigDelivery::Client.new do |config|
2927
+ # config.credentials = credentials
2928
+ # end
2929
+ #
2930
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2914
2931
  # external source for authentication to Google Cloud, you must validate it before
2915
2932
  # providing it to a Google API client library. Providing an unvalidated credential
2916
2933
  # 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 ConfigDelivery
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.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-config_delivery-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC