google-cloud-document_ai-v1 1.10.0 → 1.10.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: 1d4a54189852f0d5619865541e9ff8ea44a2c40d0f95622ade6c127fdfdbd12f
4
- data.tar.gz: 5ef4363297dc782d1e17bf36940d0050fd8ea5d534846c8b41ce795f07db5b90
3
+ metadata.gz: b45d40c558a84ffbbaca3925e5db23ae5b0463fdfdcbb8428914bddcf8b02cc5
4
+ data.tar.gz: 2dffbdb3c2129842aa89053371f3046f6ea925399ebc9122978bad9ccf0a0659
5
5
  SHA512:
6
- metadata.gz: fdde7edb2c50fac4ac13635291b0975312526503ed017a93c59d4811d1116e9b962011d174f56bd237e35b4b0f87a2ebeab8be4c8fd8fb459eab3b8eb92501b0
7
- data.tar.gz: d71af5b35e23d0290063f7f0a55f922e301c6d8e6e1b6c78fcc36154a26edd51a7992a9437787467b9be9a35241f1ee92258d1b5309ed5cf14c4fde52d22eb2b
6
+ metadata.gz: beaf114d571141893dbd9f90f5f57461f0809a78ad3237af286e81a0739d23162d039c6f1051cf16709e094bad2443ea9a5bd77b9572f9fd0fab6e4ca4e47b00
7
+ data.tar.gz: d05c00c5fae31566a5812adafad5b33ce10598a16466a71e9a9a56fc501fd2504c304bed4e3174bd100c747b23cdb357a2d16b6ff423498ddd2d7a3c20545336
@@ -2432,8 +2432,6 @@ module Google
2432
2432
  # @return [::String,nil]
2433
2433
  # @!attribute [rw] credentials
2434
2434
  # Credentials to send with calls. You may provide any of the following types:
2435
- # * (`String`) The path to a service account key file in JSON format
2436
- # * (`Hash`) A service account key as a Hash
2437
2435
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2438
2436
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2439
2437
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2442,7 +2440,26 @@ module Google
2442
2440
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2443
2441
  # * (`nil`) indicating no credentials
2444
2442
  #
2445
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2443
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2444
+ # is deprecated. Providing an unvalidated credential configuration to
2445
+ # Google APIs can compromise the security of your systems and data.
2446
+ #
2447
+ # @example
2448
+ #
2449
+ # # The recommended way to provide credentials is to use the `make_creds` method
2450
+ # # on the appropriate credentials class for your environment.
2451
+ #
2452
+ # require "googleauth"
2453
+ #
2454
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2455
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2456
+ # )
2457
+ #
2458
+ # client = ::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client.new do |config|
2459
+ # config.credentials = credentials
2460
+ # end
2461
+ #
2462
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2446
2463
  # external source for authentication to Google Cloud, you must validate it before
2447
2464
  # providing it to a Google API client library. Providing an unvalidated credential
2448
2465
  # 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 V1
24
- VERSION = "1.10.0"
24
+ VERSION = "1.10.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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC