google-cloud-storage_batch_operations-v1 0.4.0 → 0.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: 4d1446f40e8da5a452d0a815b7d2d1dd848600d31f8c6d4c0a0ab7bc3eb8a3c8
4
- data.tar.gz: 8b84024955e8335527e166686f1ae96cd98a2024b5de7182efc9bafaa34deba7
3
+ metadata.gz: 6ccae6c5fc0354351c765abed5f5e1662cd3f57b64cb504a9b3d27a445c7bd37
4
+ data.tar.gz: e06810c909088714ca6cf07e2c0f98b3ca4aee97d4f04ad53e4ed7df4fa46b2e
5
5
  SHA512:
6
- metadata.gz: eff0ecd113b5469433ea73296da9825269a8e95d6bd5028b13b3245a46ad2efdc80e69398aa51ee58a27e2cdb8ef60c63e61f882b43fa5f5fbf9faa3f9521c48
7
- data.tar.gz: 21a1efce7ee0c735c4eafe2454471a843f1e2d430180c9941c3e953394146c41395ebdb9fbfc33673628214921aa0538de42f96f1048eb42f9461df99dc2da46
6
+ metadata.gz: aa0ee06dc21a7d63fc0e28d52f4849ce0e3646ea5b22cd9378c8bd773973547ef16f028d6f44e130dcd33a5afb81ad30bff7d9ca88ddfa47fe58be4a00dd47f2
7
+ data.tar.gz: 59b28a61889bd5a76236b27ef37ebc1be16a513293424f18599a4450d198d58e99019ff6651f95c213c2de6c9f433bbc3eaade07f6870395032df1887177e994
@@ -746,8 +746,6 @@ module Google
746
746
  # @return [::String,nil]
747
747
  # @!attribute [rw] credentials
748
748
  # Credentials to send with calls. You may provide any of the following types:
749
- # * (`String`) The path to a service account key file in JSON format
750
- # * (`Hash`) A service account key as a Hash
751
749
  # * (`Google::Auth::Credentials`) A googleauth credentials object
752
750
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
753
751
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -756,7 +754,26 @@ module Google
756
754
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
757
755
  # * (`nil`) indicating no credentials
758
756
  #
759
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
757
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
758
+ # is deprecated. Providing an unvalidated credential configuration to
759
+ # Google APIs can compromise the security of your systems and data.
760
+ #
761
+ # @example
762
+ #
763
+ # # The recommended way to provide credentials is to use the `make_creds` method
764
+ # # on the appropriate credentials class for your environment.
765
+ #
766
+ # require "googleauth"
767
+ #
768
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
769
+ # json_key_io: ::File.open("/path/to/keyfile.json")
770
+ # )
771
+ #
772
+ # client = ::Google::Cloud::StorageBatchOperations::V1::StorageBatchOperations::Client.new do |config|
773
+ # config.credentials = credentials
774
+ # end
775
+ #
776
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
760
777
  # external source for authentication to Google Cloud, you must validate it before
761
778
  # providing it to a Google API client library. Providing an unvalidated credential
762
779
  # 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 StorageBatchOperations
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.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-storage_batch_operations-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC