google-cloud-gke_hub-v1 2.4.0 → 2.4.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: 87651bcbaf4f77ce9457fa156d2fe6a048476df79dcfdc31c3af255ee6820539
4
- data.tar.gz: b9a4276c3e44fd761c73ec6fec28f3a21e907a383037179c78cee43c3a8f18eb
3
+ metadata.gz: 5d072ef49190c2eb781200dffdf8822a46bbf900e1ef20648d619e8c4dba8fe7
4
+ data.tar.gz: ce265883198dd11f8b32740aa3bbfd8131f2d0a1f0a67a7c81aef49fe712b6e7
5
5
  SHA512:
6
- metadata.gz: 0f1435d3e8cfb1827cd4d2597f425d27932e2dac94245aff4fcfaa6c1d07dcfbaef3d560cb9a7f73308c2a5a6b038d741933818a6c6a6a280a841c377ed681cc
7
- data.tar.gz: 935b80e7d93fb841bc5915532f46dea771f8accd35f1e87375bc3b36c26d9e14aac4fe09c805cbc4e871a6363027c5ce3e7c3f503ad1d3f4089fcafb68fb9f3c
6
+ metadata.gz: 4013307922a8d742c65a10b03558d5bcc13c90cc6aaf01b2ff3a43e66fe9f4e016c1cf0f8c4b97bd8b70be2f27231bba3c8a3fb990a79afa2a6d75f674000027
7
+ data.tar.gz: e10fd4449264f7b8a2b06beeab355d3f8966558113fa5685b09658ffc51ed65e437a057159e2ca6306cd42553e655e0c3cd03a2e9981dade8a5f30b36806da87
@@ -1491,8 +1491,6 @@ module Google
1491
1491
  # @return [::String,nil]
1492
1492
  # @!attribute [rw] credentials
1493
1493
  # Credentials to send with calls. You may provide any of the following types:
1494
- # * (`String`) The path to a service account key file in JSON format
1495
- # * (`Hash`) A service account key as a Hash
1496
1494
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1497
1495
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1498
1496
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1501,7 +1499,26 @@ module Google
1501
1499
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1502
1500
  # * (`nil`) indicating no credentials
1503
1501
  #
1504
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1502
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1503
+ # is deprecated. Providing an unvalidated credential configuration to
1504
+ # Google APIs can compromise the security of your systems and data.
1505
+ #
1506
+ # @example
1507
+ #
1508
+ # # The recommended way to provide credentials is to use the `make_creds` method
1509
+ # # on the appropriate credentials class for your environment.
1510
+ #
1511
+ # require "googleauth"
1512
+ #
1513
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1514
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1515
+ # )
1516
+ #
1517
+ # client = ::Google::Cloud::GkeHub::V1::GkeHub::Client.new do |config|
1518
+ # config.credentials = credentials
1519
+ # end
1520
+ #
1521
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1505
1522
  # external source for authentication to Google Cloud, you must validate it before
1506
1523
  # providing it to a Google API client library. Providing an unvalidated credential
1507
1524
  # 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 GkeHub
23
23
  module V1
24
- VERSION = "2.4.0"
24
+ VERSION = "2.4.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-gke_hub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC