google-cloud-maintenance-api-v1beta 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: 8e77837e8e04b65b22e11a19b71a453d50793a9f4e1cd544db599204f00b1a49
4
- data.tar.gz: 8e1ac18ffa711848cd22fb1b944df11547ab5b5ca678a4e7735a232dea1536c9
3
+ metadata.gz: d98356f40fa7bebe7f776cd78340e4627b68ca90db83e199a02127af8bfaa033
4
+ data.tar.gz: 6fefdc856559e75f16623b9d1b6fac089ef1af1d2f835c5ae015bad18662255b
5
5
  SHA512:
6
- metadata.gz: e9e9615f5a3201936c098e1328617c63fd98c1f18513454656db9d9810b0e4e38762bb52b6b0dec08f8fe23011978033597b9a41fa4729a8ba7f206c3b4e0fae
7
- data.tar.gz: 0be3fd6c17d5d271c932e81d1d012d29516d371b15a6af4d371281cfe90ff64bca24d1a509e4f169d987d4ab1de17b407e59e732c13a01f7939cf003c280ff00
6
+ metadata.gz: bf7e8246430641ddf1af1f0a0989eaa6ddfc855f7a157a9ad33aad153e2b465d0b1b0af3ed324261fe53f5cb4963789a9f5737b84f3dc0e1225e7b1368ba063d
7
+ data.tar.gz: 16e88516c60040175118768764080dfe5d0b0e4cb22e156f75cc619f6d03fd5ca56a2b27e471dabbd56207a03bac8eaf09306aaa0cfaa63d25228dceff00ddef
@@ -538,8 +538,6 @@ module Google
538
538
  # @return [::String,nil]
539
539
  # @!attribute [rw] credentials
540
540
  # Credentials to send with calls. You may provide any of the following types:
541
- # * (`String`) The path to a service account key file in JSON format
542
- # * (`Hash`) A service account key as a Hash
543
541
  # * (`Google::Auth::Credentials`) A googleauth credentials object
544
542
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
545
543
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -548,7 +546,26 @@ module Google
548
546
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
549
547
  # * (`nil`) indicating no credentials
550
548
  #
551
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
549
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
550
+ # is deprecated. Providing an unvalidated credential configuration to
551
+ # Google APIs can compromise the security of your systems and data.
552
+ #
553
+ # @example
554
+ #
555
+ # # The recommended way to provide credentials is to use the `make_creds` method
556
+ # # on the appropriate credentials class for your environment.
557
+ #
558
+ # require "googleauth"
559
+ #
560
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
561
+ # json_key_io: ::File.open("/path/to/keyfile.json")
562
+ # )
563
+ #
564
+ # client = ::Google::Cloud::Maintenance::Api::V1beta::Maintenance::Client.new do |config|
565
+ # config.credentials = credentials
566
+ # end
567
+ #
568
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
552
569
  # external source for authentication to Google Cloud, you must validate it before
553
570
  # providing it to a Google API client library. Providing an unvalidated credential
554
571
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -22,7 +22,7 @@ module Google
22
22
  module Maintenance
23
23
  module Api
24
24
  module V1beta
25
- VERSION = "0.2.0"
25
+ VERSION = "0.2.1"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-maintenance-api-v1beta
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