google-cloud-asset-v1 1.6.0 → 1.6.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: 4ba10353e560c6204a299b94ed4a419394d9626fc118a39417ea62248338592a
4
- data.tar.gz: accb17dde0b77c030c38b993899fb06bcf384c24381a898d6262cdccaf1438cf
3
+ metadata.gz: 218de5625a56623b0678bdd4816ffad8a4c1ec3080163664e43e0392b46a4203
4
+ data.tar.gz: ed89d8d9cc2ba930ef1cc38e396a0c1c407a10be9c2b0b95f17c5cb564e80c9c
5
5
  SHA512:
6
- metadata.gz: f1ee35ceda61e02ea0e377ed52c9921c547ce16dc133b176be26c428da7f9cd6c97af6d816ecb6fefd334610bc2e6d5562d37cd24bd46a2265a46a5407944dc5
7
- data.tar.gz: 62d763cc76ce9c0e02aa4bc24bcd7835b474f4b55d4b604865796208a2ec340131b8d2edf770366e878118e4f0afce6fe87e46fb7ecf4de7c2458469623dd570
6
+ metadata.gz: 11d4df047c7a4ab5827538015456f593000f0321a1f00406137f14cd20b9091e98456d85f8e656fabd0ee0669d0ae7add607dd1f76c59b8c0c4af0acdccdb619
7
+ data.tar.gz: 3df6be0af0c4757778e11af609dd59d5f5698c1c1da13721b68cf549308be5c4dbd454525873aeaefeeb414a88c10f797640e589e09a82f7af358a1d7647e231
@@ -3159,8 +3159,6 @@ module Google
3159
3159
  # @return [::String,nil]
3160
3160
  # @!attribute [rw] credentials
3161
3161
  # Credentials to send with calls. You may provide any of the following types:
3162
- # * (`String`) The path to a service account key file in JSON format
3163
- # * (`Hash`) A service account key as a Hash
3164
3162
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3165
3163
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3166
3164
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -3169,7 +3167,26 @@ module Google
3169
3167
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3170
3168
  # * (`nil`) indicating no credentials
3171
3169
  #
3172
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
3170
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
3171
+ # is deprecated. Providing an unvalidated credential configuration to
3172
+ # Google APIs can compromise the security of your systems and data.
3173
+ #
3174
+ # @example
3175
+ #
3176
+ # # The recommended way to provide credentials is to use the `make_creds` method
3177
+ # # on the appropriate credentials class for your environment.
3178
+ #
3179
+ # require "googleauth"
3180
+ #
3181
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
3182
+ # json_key_io: ::File.open("/path/to/keyfile.json")
3183
+ # )
3184
+ #
3185
+ # client = ::Google::Cloud::Asset::V1::AssetService::Client.new do |config|
3186
+ # config.credentials = credentials
3187
+ # end
3188
+ #
3189
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
3173
3190
  # external source for authentication to Google Cloud, you must validate it before
3174
3191
  # providing it to a Google API client library. Providing an unvalidated credential
3175
3192
  # 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 Asset
23
23
  module V1
24
- VERSION = "1.6.0"
24
+ VERSION = "1.6.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-asset-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC