google-cloud-build-v2 0.12.0 → 0.12.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: ee557a31eb674bcc85ef770a3d42dd5aa01c6ae0d55c77f0b254dc216fface7e
4
- data.tar.gz: 38e565c406493ca362a12b8ef45a7a0e50ff70e22bae498bb030dbb394e41928
3
+ metadata.gz: f0fd8b0a88033cfe5144f528c283b08f2666c5c840c46fff61bf5a49efebbb76
4
+ data.tar.gz: 8651d2326b0dca8991196710c6e7390e705f1c89bfacb3cd89acabf3abce21ff
5
5
  SHA512:
6
- metadata.gz: 5327507950344bd751d89357097e5bdd34cab2d4b7b8ba6190b48e44f623b9c93599b580edf4a9e30cca9176f07a386a461e1ba10c66949498fc1a5f0940fb14
7
- data.tar.gz: e2a3663dc581af921ad5901d0cdcf1c6a7680cdf446d88c5c89938545cff0e221008d4495b5d416d157d4ae9f4efa561e5613aa8ade4cf5f8e5b7740b97bea8b
6
+ metadata.gz: 43f0ec14622e1d796b8ab10ace639c4f6db5ece56e4e05227faa92af7c6e4e43fd287f540e0383ccc58723981b92939d6f2e7257996eb6f347ad4626eec90010
7
+ data.tar.gz: dddeeaf98831761fbc9fd24b24c662e3bb0d4bdfd05eb691e41ffd7dc1989ae7f7c66f0a1938c0bc766d94236b1a760e8c9b9bd31e831d8ffe7c497e87ec6c18
@@ -1647,8 +1647,6 @@ module Google
1647
1647
  # @return [::String,nil]
1648
1648
  # @!attribute [rw] credentials
1649
1649
  # Credentials to send with calls. You may provide any of the following types:
1650
- # * (`String`) The path to a service account key file in JSON format
1651
- # * (`Hash`) A service account key as a Hash
1652
1650
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1653
1651
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1654
1652
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1657,7 +1655,26 @@ module Google
1657
1655
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1658
1656
  # * (`nil`) indicating no credentials
1659
1657
  #
1660
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1658
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1659
+ # is deprecated. Providing an unvalidated credential configuration to
1660
+ # Google APIs can compromise the security of your systems and data.
1661
+ #
1662
+ # @example
1663
+ #
1664
+ # # The recommended way to provide credentials is to use the `make_creds` method
1665
+ # # on the appropriate credentials class for your environment.
1666
+ #
1667
+ # require "googleauth"
1668
+ #
1669
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1670
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1671
+ # )
1672
+ #
1673
+ # client = ::Google::Cloud::Build::V2::RepositoryManager::Client.new do |config|
1674
+ # config.credentials = credentials
1675
+ # end
1676
+ #
1677
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1661
1678
  # external source for authentication to Google Cloud, you must validate it before
1662
1679
  # providing it to a Google API client library. Providing an unvalidated credential
1663
1680
  # 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 Build
23
23
  module V2
24
- VERSION = "0.12.0"
24
+ VERSION = "0.12.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-build-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC