google-cloud-service_usage-v1 1.5.0 → 1.5.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: e479187d7ca72a6250489d2ab7802bdcb205bd4a9f3c08f1dc17fa0c6394d3bd
4
- data.tar.gz: 7355882eeb613509ed27ec5cc26130360978e81d4f406ce865516cf42cf0df78
3
+ metadata.gz: 2f2f48ad83a2b0a41604195bb2f102add0b80409a7942d3c34b523814a8ad39b
4
+ data.tar.gz: ca97b2dd15411fb5188d5fc34debdfa9a700fc4aabca42577c8c238ad49a0d03
5
5
  SHA512:
6
- metadata.gz: 93bc2320b708a9db79f8a1d7eeefb76db13c7129e412a7a7e78ff2070441fd83f31b5e6648a8343c228588353a28f0e8c2487dffb337511185904af7bd728fcc
7
- data.tar.gz: f875c531aa5db73d1d6fbf5ad950d17196f82f8e270dc40354cc5fb5fb30ce81ea1ee30576989815920af7db6d2b4be0c53b5b3e0620c2f387311ada836d4483
6
+ metadata.gz: a9d25be9879aade89b7431db60edfb9e92b58629945d7d9af44f2d378af2cbfc8719d4cd57f7b49c01d16a854485b1084be44f3335315149716499377ac9700a
7
+ data.tar.gz: 44cb26b6352fd8bc62cfbfe5013e81d78457ce0861ab0f1580d4af297dee3022b234e47ee7bb8eba1d18d8b84b3bbae7ffdc159d7c9636074fe0fc04f0fc9c52
@@ -869,8 +869,6 @@ module Google
869
869
  # @return [::String,nil]
870
870
  # @!attribute [rw] credentials
871
871
  # Credentials to send with calls. You may provide any of the following types:
872
- # * (`String`) The path to a service account key file in JSON format
873
- # * (`Hash`) A service account key as a Hash
874
872
  # * (`Google::Auth::Credentials`) A googleauth credentials object
875
873
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
876
874
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -879,7 +877,26 @@ module Google
879
877
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
880
878
  # * (`nil`) indicating no credentials
881
879
  #
882
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
880
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
881
+ # is deprecated. Providing an unvalidated credential configuration to
882
+ # Google APIs can compromise the security of your systems and data.
883
+ #
884
+ # @example
885
+ #
886
+ # # The recommended way to provide credentials is to use the `make_creds` method
887
+ # # on the appropriate credentials class for your environment.
888
+ #
889
+ # require "googleauth"
890
+ #
891
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
892
+ # json_key_io: ::File.open("/path/to/keyfile.json")
893
+ # )
894
+ #
895
+ # client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new do |config|
896
+ # config.credentials = credentials
897
+ # end
898
+ #
899
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
883
900
  # external source for authentication to Google Cloud, you must validate it before
884
901
  # providing it to a Google API client library. Providing an unvalidated credential
885
902
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -634,8 +634,6 @@ module Google
634
634
  # @return [::String,nil]
635
635
  # @!attribute [rw] credentials
636
636
  # Credentials to send with calls. You may provide any of the following types:
637
- # * (`String`) The path to a service account key file in JSON format
638
- # * (`Hash`) A service account key as a Hash
639
637
  # * (`Google::Auth::Credentials`) A googleauth credentials object
640
638
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
641
639
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -644,7 +642,26 @@ module Google
644
642
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
645
643
  # * (`nil`) indicating no credentials
646
644
  #
647
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
646
+ # is deprecated. Providing an unvalidated credential configuration to
647
+ # Google APIs can compromise the security of your systems and data.
648
+ #
649
+ # @example
650
+ #
651
+ # # The recommended way to provide credentials is to use the `make_creds` method
652
+ # # on the appropriate credentials class for your environment.
653
+ #
654
+ # require "googleauth"
655
+ #
656
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
657
+ # json_key_io: ::File.open("/path/to/keyfile.json")
658
+ # )
659
+ #
660
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
661
+ # config.credentials = credentials
662
+ # end
663
+ #
664
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
648
665
  # external source for authentication to Google Cloud, you must validate it before
649
666
  # providing it to a Google API client library. Providing an unvalidated credential
650
667
  # 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 ServiceUsage
23
23
  module V1
24
- VERSION = "1.5.0"
24
+ VERSION = "1.5.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-service_usage-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC