google-cloud-optimization-v1 0.14.0 → 0.14.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: cd25b90496e375d18504909b454adfd9f7342d3c0e0d7378617e76bf6f72acb6
4
- data.tar.gz: 821a29967e2c5a31b6b48ac51c2f21ba930449bd8ab22dd95319b10e00a59ade
3
+ metadata.gz: 2700f1f5286198f429e876c8565839d001ce3c923459810a6a406ae2dbed9241
4
+ data.tar.gz: f4a549b3a0759bd6fa6223275f04199e273d45131cfe7b996f17ace86c58f136
5
5
  SHA512:
6
- metadata.gz: 5c9e079ee28d83f4ea16b83a95d829ca671bf3ae88dc513c1395eee5224005998d181c09ad2eb14bcd265214781890372a1ca50c13849cc2dc78be98ddfa9702
7
- data.tar.gz: 3c22b1a85b9aecf7ee3a143fb99fa123aa4b677f70b5c36b6439531455e3f07aad0f7bb2e0278da20358e79c28f0022dfbe3af8452ba2d89e8cbd9efe4f2d8da
6
+ metadata.gz: f7aefe3c74f66762741f1394f887a143bbb68ba00fd58550d8fd43ecc5c4f18766bf680abee8b84f4906d1c63d829db5c8498aeb7db186261fd95bbdda1d468b
7
+ data.tar.gz: 3e96493bb67a6c8a6c58df9947a798472229fc9eb4d996bc0b3605be3659e3eb6effbb62bef1220a847e00773a1f880465946b6a9a5d08bb5dc2775290d6bcfc
@@ -651,8 +651,6 @@ module Google
651
651
  # @return [::String,nil]
652
652
  # @!attribute [rw] credentials
653
653
  # Credentials to send with calls. You may provide any of the following types:
654
- # * (`String`) The path to a service account key file in JSON format
655
- # * (`Hash`) A service account key as a Hash
656
654
  # * (`Google::Auth::Credentials`) A googleauth credentials object
657
655
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
658
656
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -661,7 +659,26 @@ module Google
661
659
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
662
660
  # * (`nil`) indicating no credentials
663
661
  #
664
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
662
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
663
+ # is deprecated. Providing an unvalidated credential configuration to
664
+ # Google APIs can compromise the security of your systems and data.
665
+ #
666
+ # @example
667
+ #
668
+ # # The recommended way to provide credentials is to use the `make_creds` method
669
+ # # on the appropriate credentials class for your environment.
670
+ #
671
+ # require "googleauth"
672
+ #
673
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
674
+ # json_key_io: ::File.open("/path/to/keyfile.json")
675
+ # )
676
+ #
677
+ # client = ::Google::Cloud::Optimization::V1::FleetRouting::Client.new do |config|
678
+ # config.credentials = credentials
679
+ # end
680
+ #
681
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
665
682
  # external source for authentication to Google Cloud, you must validate it before
666
683
  # providing it to a Google API client library. Providing an unvalidated credential
667
684
  # 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 Optimization
23
23
  module V1
24
- VERSION = "0.14.0"
24
+ VERSION = "0.14.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-optimization-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC