google-cloud-vision-v1p4beta1 0.14.0 → 0.14.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: b02be058d3246111a74d09029cc7431f69b7280c4717c4dd792f66f8a03ea4c5
4
- data.tar.gz: 0ec3cef33f9eddaa92b97306319e15737d1c57f22129ee0ba5118543fea20a4d
3
+ metadata.gz: fcb488d48e1646a5484e26047dfa86f420bb2797a2a42aa1a4c46746e5d50fb2
4
+ data.tar.gz: 5987099dfb939ff9ffc8d39bb2495b1db05bc467da1dc9816ad2f372c958d995
5
5
  SHA512:
6
- metadata.gz: 7fc893a5a155b5a11ba58060ed7fe5fae21fd0202eb88f711392a0cb3415e5f301ec14aa8d12639c0e46708e09810f3b14cd05251a2866fdf34849fca3367c36
7
- data.tar.gz: d7ffac4ff699bf520d9ebe0aabf24f97d83cbbaa5cb48cc1e38de924d61c7d2530d91d00e02929f7d4540ddda22fdd4e48635047cb3116297cef54408d8b1c1a
6
+ metadata.gz: 9347e44fa2e0e46e0eec63031f24ae467024e7d676c51e10357343f9ce994aa286297947b19b8961d505c222438c4d0e70dbf533a31e2636b16c429b24d41431
7
+ data.tar.gz: 9deb70b1ab5a157193583d6d50f47f169115109593993de2145d69ce823af89450e8872753bbdfeaf07326998a0eaaf553308f54a98a7d8c94974e96e601fd84
@@ -602,8 +602,6 @@ module Google
602
602
  # @return [::String,nil]
603
603
  # @!attribute [rw] credentials
604
604
  # Credentials to send with calls. You may provide any of the following types:
605
- # * (`String`) The path to a service account key file in JSON format
606
- # * (`Hash`) A service account key as a Hash
607
605
  # * (`Google::Auth::Credentials`) A googleauth credentials object
608
606
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
609
607
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -612,7 +610,26 @@ module Google
612
610
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
613
611
  # * (`nil`) indicating no credentials
614
612
  #
615
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
613
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
614
+ # is deprecated. Providing an unvalidated credential configuration to
615
+ # Google APIs can compromise the security of your systems and data.
616
+ #
617
+ # @example
618
+ #
619
+ # # The recommended way to provide credentials is to use the `make_creds` method
620
+ # # on the appropriate credentials class for your environment.
621
+ #
622
+ # require "googleauth"
623
+ #
624
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
625
+ # json_key_io: ::File.open("/path/to/keyfile.json")
626
+ # )
627
+ #
628
+ # client = ::Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Client.new do |config|
629
+ # config.credentials = credentials
630
+ # end
631
+ #
632
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
616
633
  # external source for authentication to Google Cloud, you must validate it before
617
634
  # providing it to a Google API client library. Providing an unvalidated credential
618
635
  # 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.
@@ -2261,8 +2261,6 @@ module Google
2261
2261
  # @return [::String,nil]
2262
2262
  # @!attribute [rw] credentials
2263
2263
  # Credentials to send with calls. You may provide any of the following types:
2264
- # * (`String`) The path to a service account key file in JSON format
2265
- # * (`Hash`) A service account key as a Hash
2266
2264
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2267
2265
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2268
2266
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2271,7 +2269,26 @@ module Google
2271
2269
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2272
2270
  # * (`nil`) indicating no credentials
2273
2271
  #
2274
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2272
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2273
+ # is deprecated. Providing an unvalidated credential configuration to
2274
+ # Google APIs can compromise the security of your systems and data.
2275
+ #
2276
+ # @example
2277
+ #
2278
+ # # The recommended way to provide credentials is to use the `make_creds` method
2279
+ # # on the appropriate credentials class for your environment.
2280
+ #
2281
+ # require "googleauth"
2282
+ #
2283
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2284
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2285
+ # )
2286
+ #
2287
+ # client = ::Google::Cloud::Vision::V1p4beta1::ProductSearch::Client.new do |config|
2288
+ # config.credentials = credentials
2289
+ # end
2290
+ #
2291
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2275
2292
  # external source for authentication to Google Cloud, you must validate it before
2276
2293
  # providing it to a Google API client library. Providing an unvalidated credential
2277
2294
  # 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 Vision
23
23
  module V1p4beta1
24
- VERSION = "0.14.0"
24
+ VERSION = "0.14.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-vision-v1p4beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC