google-cloud-document_ai-v1beta3 0.46.0 → 0.46.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: 7805cd1662f5cf7f3c206528f08dd7ee710d9e8617bebf990035353ec5ffa0ba
4
- data.tar.gz: 571f43e93b479e21c56536ba2b92f34fefc8833345e8d6d6d058e2159166629c
3
+ metadata.gz: aac4d972308ddeab5794e28ae1e46656794f591b6005943af1f4985a80f627f8
4
+ data.tar.gz: 047d9332a2205fe0b22205846c755a7d4896cfb97a985e74a3d148149422ccdb
5
5
  SHA512:
6
- metadata.gz: 34da96dfd10ac0d2fe7aff850682d99dfe02efb1e98498d61f7de154a4ec86d0f0ce12c7fa1e0b4beff8472fc7e732308537081ee9dff1633b6ce400a146e92b
7
- data.tar.gz: d319096d44b88bb26845b1b8bc07b69742a22910b1f14c55b4bad459835c7b5eaa41f417f3de4d09a89a419a3208ae64e21cab8bd4ca1e3893bfe2a3c5334219
6
+ metadata.gz: 8adf4426b4b0483f49b1834e311400af654e213d1e21ae6e3a6dcdf0635eecefe44bcb1048676ea40f6798c2b7a79bada66ec2941d9debed891119f9a1553c6c
7
+ data.tar.gz: d61f6135953f3a8848cbacf939872223cb0869c3a9f75db8bb1afce0fbaefea9d33792b56c93978c0554ded2d06e69259a4318d3510b01ecb8e3d47756030058
@@ -2549,8 +2549,6 @@ module Google
2549
2549
  # @return [::String,nil]
2550
2550
  # @!attribute [rw] credentials
2551
2551
  # Credentials to send with calls. You may provide any of the following types:
2552
- # * (`String`) The path to a service account key file in JSON format
2553
- # * (`Hash`) A service account key as a Hash
2554
2552
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2555
2553
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2556
2554
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2559,7 +2557,26 @@ module Google
2559
2557
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2560
2558
  # * (`nil`) indicating no credentials
2561
2559
  #
2562
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2560
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2561
+ # is deprecated. Providing an unvalidated credential configuration to
2562
+ # Google APIs can compromise the security of your systems and data.
2563
+ #
2564
+ # @example
2565
+ #
2566
+ # # The recommended way to provide credentials is to use the `make_creds` method
2567
+ # # on the appropriate credentials class for your environment.
2568
+ #
2569
+ # require "googleauth"
2570
+ #
2571
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2572
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2573
+ # )
2574
+ #
2575
+ # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new do |config|
2576
+ # config.credentials = credentials
2577
+ # end
2578
+ #
2579
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2563
2580
  # external source for authentication to Google Cloud, you must validate it before
2564
2581
  # providing it to a Google API client library. Providing an unvalidated credential
2565
2582
  # 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.
@@ -962,8 +962,6 @@ module Google
962
962
  # @return [::String,nil]
963
963
  # @!attribute [rw] credentials
964
964
  # Credentials to send with calls. You may provide any of the following types:
965
- # * (`String`) The path to a service account key file in JSON format
966
- # * (`Hash`) A service account key as a Hash
967
965
  # * (`Google::Auth::Credentials`) A googleauth credentials object
968
966
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
969
967
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -972,7 +970,26 @@ module Google
972
970
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
973
971
  # * (`nil`) indicating no credentials
974
972
  #
975
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
973
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
974
+ # is deprecated. Providing an unvalidated credential configuration to
975
+ # Google APIs can compromise the security of your systems and data.
976
+ #
977
+ # @example
978
+ #
979
+ # # The recommended way to provide credentials is to use the `make_creds` method
980
+ # # on the appropriate credentials class for your environment.
981
+ #
982
+ # require "googleauth"
983
+ #
984
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
985
+ # json_key_io: ::File.open("/path/to/keyfile.json")
986
+ # )
987
+ #
988
+ # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentService::Client.new do |config|
989
+ # config.credentials = credentials
990
+ # end
991
+ #
992
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
976
993
  # external source for authentication to Google Cloud, you must validate it before
977
994
  # providing it to a Google API client library. Providing an unvalidated credential
978
995
  # 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 DocumentAI
23
23
  module V1beta3
24
- VERSION = "0.46.0"
24
+ VERSION = "0.46.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-document_ai-v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.46.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC