google-cloud-batch-v1 1.4.0 → 1.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: cab8e9d9a5c1e76d9022d4519b6bf56211ea2d3ccdaba31e910dfb85ac211ee5
4
- data.tar.gz: 370aa5a81abac1ca8f1dd0af3e060d645e22de2cc92266c9856307f1e47e9ed1
3
+ metadata.gz: 859b57a3ee571e92464063f5ce6b405305c0f11944780c96fcd1d9f729b65529
4
+ data.tar.gz: 69b3eb8361b5899d2b5f71382598e6fe88b74c33df7f3343113efc864f93ff5e
5
5
  SHA512:
6
- metadata.gz: 99e36290f2d89e3d8a894d8f6be4465e7a832210a17d8696c216a6f04acf293ed2bb8bce12dc57e064ec20038e9f5555d43f99c12bc88e341b287dd0f35f3626
7
- data.tar.gz: d810f24ccfa0a91000b37ce7e87698261fc0326945bb7d9e13e69fdcb76e21bf5789a624eb060e382f95be2f0b936cb0e80b510faa07e71702a6ed90b01cc5e8
6
+ metadata.gz: 05fc8235c19b0cc659e726cf06b8a5cb641bf55f0f31efb9226d26e8b875bcca2329b75db8495601bf758f637a5770868f19419314c0912368a4a6d951b31330
7
+ data.tar.gz: 3d9102c8b7d65fd5cc679b008253027fae1303086eed0fd5028806ac411531bf32bad5b0c55f50c5ac029f6927f31d2cbaadba366248b29a6e463ddbd4f16a4e
@@ -977,8 +977,6 @@ module Google
977
977
  # @return [::String,nil]
978
978
  # @!attribute [rw] credentials
979
979
  # Credentials to send with calls. You may provide any of the following types:
980
- # * (`String`) The path to a service account key file in JSON format
981
- # * (`Hash`) A service account key as a Hash
982
980
  # * (`Google::Auth::Credentials`) A googleauth credentials object
983
981
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
984
982
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -987,7 +985,26 @@ module Google
987
985
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
988
986
  # * (`nil`) indicating no credentials
989
987
  #
990
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
988
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
989
+ # is deprecated. Providing an unvalidated credential configuration to
990
+ # Google APIs can compromise the security of your systems and data.
991
+ #
992
+ # @example
993
+ #
994
+ # # The recommended way to provide credentials is to use the `make_creds` method
995
+ # # on the appropriate credentials class for your environment.
996
+ #
997
+ # require "googleauth"
998
+ #
999
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1000
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1001
+ # )
1002
+ #
1003
+ # client = ::Google::Cloud::Batch::V1::BatchService::Client.new do |config|
1004
+ # config.credentials = credentials
1005
+ # end
1006
+ #
1007
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
991
1008
  # external source for authentication to Google Cloud, you must validate it before
992
1009
  # providing it to a Google API client library. Providing an unvalidated credential
993
1010
  # 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 Batch
23
23
  module V1
24
- VERSION = "1.4.0"
24
+ VERSION = "1.4.1"
25
25
  end
26
26
  end
27
27
  end
@@ -543,8 +543,6 @@ module Google
543
543
  # @return [::String,nil]
544
544
  # @!attribute [rw] credentials
545
545
  # Credentials to send with calls. You may provide any of the following types:
546
- # * (`String`) The path to a service account key file in JSON format
547
- # * (`Hash`) A service account key as a Hash
548
546
  # * (`Google::Auth::Credentials`) A googleauth credentials object
549
547
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
550
548
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -553,7 +551,26 @@ module Google
553
551
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
554
552
  # * (`nil`) indicating no credentials
555
553
  #
556
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
554
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
555
+ # is deprecated. Providing an unvalidated credential configuration to
556
+ # Google APIs can compromise the security of your systems and data.
557
+ #
558
+ # @example
559
+ #
560
+ # # The recommended way to provide credentials is to use the `make_creds` method
561
+ # # on the appropriate credentials class for your environment.
562
+ #
563
+ # require "googleauth"
564
+ #
565
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
566
+ # json_key_io: ::File.open("/path/to/keyfile.json")
567
+ # )
568
+ #
569
+ # client = ::Google::Iam::V1::IAMPolicy::Client.new do |config|
570
+ # config.credentials = credentials
571
+ # end
572
+ #
573
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
557
574
  # external source for authentication to Google Cloud, you must validate it before
558
575
  # providing it to a Google API client library. Providing an unvalidated credential
559
576
  # configuration to Google APIs can compromise the security of your systems and data.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-batch-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC