google-cloud-device_streaming-v1 0.2.0 → 0.2.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: f6439dbed5f40c60e78ee8c677b141d5dcef7b05ea84edbb2c2a58c58492a479
4
- data.tar.gz: 501ea6e8f4d8607faf5b02e58676df185259b0c3dfbaff46afeaf03570b9f97a
3
+ metadata.gz: a1370542bea083df759658463b18a83b215da10bbe81de077870c7806ac1d573
4
+ data.tar.gz: 2180f9b4ba2ff18a51280418de3f4508681a7053bde0273a6e6a1a09a86ea94b
5
5
  SHA512:
6
- metadata.gz: 154b85d7709d500f52fc8d9ae64fd4f53aacd79c35c410258f30558bb1553abd0ffda697ae8572c49068ac4f65dd995da2646df089ffe58231931a4b65d492eb
7
- data.tar.gz: 2e7eec9fb761019f5a2cc78ec179948bb0bc015fb33af791d1bbebff59ca71875819528df22cf47a3a7a50a6ec0d159ecf83582f6213c59b0c01f10bd82971aa
6
+ metadata.gz: 725c01c1a07a8c3456e6d72bc2735d46ae0c3e4e935978d0816176e61ddf7b9eab80a0c8829b2bf038e578d574a59d763791899eae892b58fc23d7f6802bb58c
7
+ data.tar.gz: fe084385b8779da3af2974e2d62a96c66172c3f513e22650daa1351952da1b93febaf496534a25757f7736dca7bf4c5cbbb5c6dcc64a8c3901fb730dd6db3d57
@@ -789,8 +789,6 @@ module Google
789
789
  # @return [::String,nil]
790
790
  # @!attribute [rw] credentials
791
791
  # Credentials to send with calls. You may provide any of the following types:
792
- # * (`String`) The path to a service account key file in JSON format
793
- # * (`Hash`) A service account key as a Hash
794
792
  # * (`Google::Auth::Credentials`) A googleauth credentials object
795
793
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
796
794
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -799,7 +797,26 @@ module Google
799
797
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
800
798
  # * (`nil`) indicating no credentials
801
799
  #
802
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
800
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
801
+ # is deprecated. Providing an unvalidated credential configuration to
802
+ # Google APIs can compromise the security of your systems and data.
803
+ #
804
+ # @example
805
+ #
806
+ # # The recommended way to provide credentials is to use the `make_creds` method
807
+ # # on the appropriate credentials class for your environment.
808
+ #
809
+ # require "googleauth"
810
+ #
811
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
812
+ # json_key_io: ::File.open("/path/to/keyfile.json")
813
+ # )
814
+ #
815
+ # client = ::Google::Cloud::DeviceStreaming::V1::DirectAccessService::Client.new do |config|
816
+ # config.credentials = credentials
817
+ # end
818
+ #
819
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
803
820
  # external source for authentication to Google Cloud, you must validate it before
804
821
  # providing it to a Google API client library. Providing an unvalidated credential
805
822
  # 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 DeviceStreaming
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.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-device_streaming-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC