google-cloud-vision-v1 1.1.0 → 1.2.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: 59f40dc4f0c2803382a21e67020305129cdd7a48d03130a588f14491deb5b497
4
- data.tar.gz: 4ffb886eb29265c88ccf72bb254121f51f8a157ed913c8ed4c4de8943ef7da88
3
+ metadata.gz: 9f8e38fddb58d96cc2935c8c538d68e6218f90269c9ce6f962ae1bb502d455d9
4
+ data.tar.gz: 3a13d52c04a5c301a707e631f1235535d59d59dc1c80f26832672883018f5b34
5
5
  SHA512:
6
- metadata.gz: 479583f5a0d38252e1a149bb710005af483ea2ba799714f973f1b127f7a69c39dbe19c9d8e3a1cf36f6b24c5f8dd3cf803a62f0b68af4cfabf5b68d2bcf429ce
7
- data.tar.gz: 991752469cd2192e926e9bb95a6ec1123455cd40413ea6bfaff64ee4b63a22040f0bdf9abd282494e44be6c38dfc542528ad41d0832eae9edcd985e9e310a178
6
+ metadata.gz: 13f3080fc295d5a58790e4019b0157c094083c8dfae370e344ad488fcd2e917a2ac89aec79554823b020185b8b0df58635c309a6716be0bda85eaa21c73f73b8
7
+ data.tar.gz: 2dac4c611d08fc0ea19521107c9fa1912e7f1770ad418fcc5634bfbb0a4c358a2a0ff23a0c5de3a66f47e4855f8f366c110e1f01900bc4722c8141b8290c7f08
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -691,6 +691,13 @@ module Google
691
691
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
692
692
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
693
693
  # * (`nil`) indicating no credentials
694
+ #
695
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
696
+ # external source for authentication to Google Cloud, you must validate it before
697
+ # providing it to a Google API client library. Providing an unvalidated credential
698
+ # configuration to Google APIs can compromise the security of your systems and data.
699
+ # For more information, refer to [Validate credential configurations from external
700
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
694
701
  # @return [::Object]
695
702
  # @!attribute [rw] scope
696
703
  # The OAuth scopes
@@ -745,8 +752,8 @@ module Google
745
752
 
746
753
  config_attr :endpoint, nil, ::String, nil
747
754
  config_attr :credentials, nil do |value|
748
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
749
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
755
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
756
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
750
757
  allowed.any? { |klass| klass === value }
751
758
  end
752
759
  config_attr :scope, nil, ::String, ::Array, nil
@@ -640,6 +640,13 @@ module Google
640
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
641
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
643
650
  # @return [::Object]
644
651
  # @!attribute [rw] scope
645
652
  # The OAuth scopes
@@ -694,8 +701,8 @@ module Google
694
701
 
695
702
  config_attr :endpoint, nil, ::String, nil
696
703
  config_attr :credentials, nil do |value|
697
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
698
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
704
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
705
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
699
706
  allowed.any? { |klass| klass === value }
700
707
  end
701
708
  config_attr :scope, nil, ::String, ::Array, nil
@@ -686,6 +686,13 @@ module Google
686
686
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
687
687
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
688
688
  # * (`nil`) indicating no credentials
689
+ #
690
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
691
+ # external source for authentication to Google Cloud, you must validate it before
692
+ # providing it to a Google API client library. Providing an unvalidated credential
693
+ # configuration to Google APIs can compromise the security of your systems and data.
694
+ # For more information, refer to [Validate credential configurations from external
695
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
689
696
  # @return [::Object]
690
697
  # @!attribute [rw] scope
691
698
  # The OAuth scopes
@@ -733,7 +740,7 @@ module Google
733
740
 
734
741
  config_attr :endpoint, nil, ::String, nil
735
742
  config_attr :credentials, nil do |value|
736
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
743
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
737
744
  allowed.any? { |klass| klass === value }
738
745
  end
739
746
  config_attr :scope, nil, ::String, ::Array, nil
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -549,7 +556,7 @@ module Google
549
556
 
550
557
  config_attr :endpoint, nil, ::String, nil
551
558
  config_attr :credentials, nil do |value|
552
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
559
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
553
560
  allowed.any? { |klass| klass === value }
554
561
  end
555
562
  config_attr :scope, nil, ::String, ::Array, nil
@@ -2139,9 +2139,13 @@ module Google
2139
2139
  #
2140
2140
  # @param product_set_purge_config [::Google::Cloud::Vision::V1::ProductSetPurgeConfig, ::Hash]
2141
2141
  # Specify which ProductSet contains the Products to be deleted.
2142
+ #
2143
+ # Note: The following fields are mutually exclusive: `product_set_purge_config`, `delete_orphan_products`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2142
2144
  # @param delete_orphan_products [::Boolean]
2143
2145
  # If delete_orphan_products is true, all Products that are not in any
2144
2146
  # ProductSet will be deleted.
2147
+ #
2148
+ # Note: The following fields are mutually exclusive: `delete_orphan_products`, `product_set_purge_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2145
2149
  # @param parent [::String]
2146
2150
  # Required. The project and location in which the Products should be deleted.
2147
2151
  #
@@ -2267,6 +2271,13 @@ module Google
2267
2271
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2268
2272
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2269
2273
  # * (`nil`) indicating no credentials
2274
+ #
2275
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2276
+ # external source for authentication to Google Cloud, you must validate it before
2277
+ # providing it to a Google API client library. Providing an unvalidated credential
2278
+ # configuration to Google APIs can compromise the security of your systems and data.
2279
+ # For more information, refer to [Validate credential configurations from external
2280
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2270
2281
  # @return [::Object]
2271
2282
  # @!attribute [rw] scope
2272
2283
  # The OAuth scopes
@@ -2321,8 +2332,8 @@ module Google
2321
2332
 
2322
2333
  config_attr :endpoint, nil, ::String, nil
2323
2334
  config_attr :credentials, nil do |value|
2324
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2325
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2335
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2336
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
2326
2337
  allowed.any? { |klass| klass === value }
2327
2338
  end
2328
2339
  config_attr :scope, nil, ::String, ::Array, nil
@@ -640,6 +640,13 @@ module Google
640
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
641
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
643
650
  # @return [::Object]
644
651
  # @!attribute [rw] scope
645
652
  # The OAuth scopes
@@ -694,8 +701,8 @@ module Google
694
701
 
695
702
  config_attr :endpoint, nil, ::String, nil
696
703
  config_attr :credentials, nil do |value|
697
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
698
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
704
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
705
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
699
706
  allowed.any? { |klass| klass === value }
700
707
  end
701
708
  config_attr :scope, nil, ::String, ::Array, nil
@@ -2006,9 +2006,13 @@ module Google
2006
2006
  #
2007
2007
  # @param product_set_purge_config [::Google::Cloud::Vision::V1::ProductSetPurgeConfig, ::Hash]
2008
2008
  # Specify which ProductSet contains the Products to be deleted.
2009
+ #
2010
+ # Note: The following fields are mutually exclusive: `product_set_purge_config`, `delete_orphan_products`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2009
2011
  # @param delete_orphan_products [::Boolean]
2010
2012
  # If delete_orphan_products is true, all Products that are not in any
2011
2013
  # ProductSet will be deleted.
2014
+ #
2015
+ # Note: The following fields are mutually exclusive: `delete_orphan_products`, `product_set_purge_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2012
2016
  # @param parent [::String]
2013
2017
  # Required. The project and location in which the Products should be deleted.
2014
2018
  #
@@ -2125,6 +2129,13 @@ module Google
2125
2129
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2126
2130
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2127
2131
  # * (`nil`) indicating no credentials
2132
+ #
2133
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2134
+ # external source for authentication to Google Cloud, you must validate it before
2135
+ # providing it to a Google API client library. Providing an unvalidated credential
2136
+ # configuration to Google APIs can compromise the security of your systems and data.
2137
+ # For more information, refer to [Validate credential configurations from external
2138
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2128
2139
  # @return [::Object]
2129
2140
  # @!attribute [rw] scope
2130
2141
  # The OAuth scopes
@@ -2172,7 +2183,7 @@ module Google
2172
2183
 
2173
2184
  config_attr :endpoint, nil, ::String, nil
2174
2185
  config_attr :credentials, nil do |value|
2175
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2186
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2176
2187
  allowed.any? { |klass| klass === value }
2177
2188
  end
2178
2189
  config_attr :scope, nil, ::String, ::Array, nil
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -549,7 +556,7 @@ module Google
549
556
 
550
557
  config_attr :endpoint, nil, ::String, nil
551
558
  config_attr :credentials, nil do |value|
552
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
559
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
553
560
  allowed.any? { |klass| klass === value }
554
561
  end
555
562
  config_attr :scope, nil, ::String, ::Array, nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Vision
23
23
  module V1
24
- VERSION = "1.1.0"
24
+ VERSION = "1.2.1"
25
25
  end
26
26
  end
27
27
  end
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -651,10 +651,14 @@ module Google
651
651
  # @!attribute [rw] product_set_purge_config
652
652
  # @return [::Google::Cloud::Vision::V1::ProductSetPurgeConfig]
653
653
  # Specify which ProductSet contains the Products to be deleted.
654
+ #
655
+ # Note: The following fields are mutually exclusive: `product_set_purge_config`, `delete_orphan_products`. If a field in that set is populated, all other fields in the set will automatically be cleared.
654
656
  # @!attribute [rw] delete_orphan_products
655
657
  # @return [::Boolean]
656
658
  # If delete_orphan_products is true, all Products that are not in any
657
659
  # ProductSet will be deleted.
660
+ #
661
+ # Note: The following fields are mutually exclusive: `delete_orphan_products`, `product_set_purge_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
658
662
  # @!attribute [rw] parent
659
663
  # @return [::String]
660
664
  # Required. The project and location in which the Products should be deleted.
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -115,7 +114,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
115
114
  licenses:
116
115
  - Apache-2.0
117
116
  metadata: {}
118
- post_install_message:
119
117
  rdoc_options: []
120
118
  require_paths:
121
119
  - lib
@@ -123,15 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
121
  requirements:
124
122
  - - ">="
125
123
  - !ruby/object:Gem::Version
126
- version: '2.7'
124
+ version: '3.0'
127
125
  required_rubygems_version: !ruby/object:Gem::Requirement
128
126
  requirements:
129
127
  - - ">="
130
128
  - !ruby/object:Gem::Version
131
129
  version: '0'
132
130
  requirements: []
133
- rubygems_version: 3.5.23
134
- signing_key:
131
+ rubygems_version: 3.6.8
135
132
  specification_version: 4
136
133
  summary: Integrates Google Vision features, including image labeling, face, logo,
137
134
  and landmark detection, optical character recognition (OCR), and detection of explicit