google-cloud-vision-v1p4beta1 0.10.0 → 0.11.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: 6ea1a65bbbcd1819ba9965e9b766c3c3216fed7f42339fd9a1ccf08e1df1570f
4
- data.tar.gz: e53f040650f83044fbf99f9c25fb9a4b5f8bd4d0dd6b63450ee267e69eb36833
3
+ metadata.gz: 2d2624b22abc4db68ea2e98fdd8feb5939178b8b4d8a6853885b8cfb42ab93e7
4
+ data.tar.gz: dcf95a583fb2cb4720dafb9669c72632ad6f97c2b1f4dc4cc908dbaaadaf0bdc
5
5
  SHA512:
6
- metadata.gz: 48978d587124284156cf6c3af2aad233b9f371b1d4a33698a786b96e57656bfaf4f9e79d85d7f3549fa4cbae0e4f63d32a30b92164baf38f49dd663fed9af7e1
7
- data.tar.gz: d8d7061a9b424dcb797a33c7f3e58de264f3f46bf4d3eee0144055d8b4eab69bfafb6654e8a921aba3f1c8b504f68396bd9be5b3c21ad43a620da068450a4028
6
+ metadata.gz: f0fecede6e0f178b663fb2a52889d8c08d605b7a2bd1e2d4d5b908fc11c9ad7c027e94541d89b8afda5ff32aebbb4d14b0e62118bdd587829a636aad81c275b6
7
+ data.tar.gz: 53d055b6b5671176f8601cc95b553691f71fbdb750b6fdfc99b631b915dedd97d19dddd4a4c09a7129d1cb71c87016a9efafa937e354042164b60e034469293c
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
@@ -611,6 +611,13 @@ module Google
611
611
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
612
612
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
613
613
  # * (`nil`) indicating no credentials
614
+ #
615
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
616
+ # external source for authentication to Google Cloud, you must validate it before
617
+ # providing it to a Google API client library. Providing an unvalidated credential
618
+ # configuration to Google APIs can compromise the security of your systems and data.
619
+ # For more information, refer to [Validate credential configurations from external
620
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
614
621
  # @return [::Object]
615
622
  # @!attribute [rw] scope
616
623
  # The OAuth scopes
@@ -665,8 +672,8 @@ module Google
665
672
 
666
673
  config_attr :endpoint, nil, ::String, nil
667
674
  config_attr :credentials, nil do |value|
668
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
669
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
675
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
676
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
670
677
  allowed.any? { |klass| klass === value }
671
678
  end
672
679
  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
@@ -606,6 +606,13 @@ module Google
606
606
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
607
607
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
608
608
  # * (`nil`) indicating no credentials
609
+ #
610
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
611
+ # external source for authentication to Google Cloud, you must validate it before
612
+ # providing it to a Google API client library. Providing an unvalidated credential
613
+ # configuration to Google APIs can compromise the security of your systems and data.
614
+ # For more information, refer to [Validate credential configurations from external
615
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
609
616
  # @return [::Object]
610
617
  # @!attribute [rw] scope
611
618
  # The OAuth scopes
@@ -653,7 +660,7 @@ module Google
653
660
 
654
661
  config_attr :endpoint, nil, ::String, nil
655
662
  config_attr :credentials, nil do |value|
656
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
663
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
657
664
  allowed.any? { |klass| klass === value }
658
665
  end
659
666
  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
@@ -2138,9 +2138,13 @@ module Google
2138
2138
  #
2139
2139
  # @param product_set_purge_config [::Google::Cloud::Vision::V1p4beta1::ProductSetPurgeConfig, ::Hash]
2140
2140
  # Specify which ProductSet contains the Products to be deleted.
2141
+ #
2142
+ # 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.
2141
2143
  # @param delete_orphan_products [::Boolean]
2142
2144
  # If delete_orphan_products is true, all Products that are not in any
2143
2145
  # ProductSet will be deleted.
2146
+ #
2147
+ # 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.
2144
2148
  # @param parent [::String]
2145
2149
  # Required. The project and location in which the Products should be deleted.
2146
2150
  #
@@ -2266,6 +2270,13 @@ module Google
2266
2270
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2267
2271
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2268
2272
  # * (`nil`) indicating no credentials
2273
+ #
2274
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2275
+ # external source for authentication to Google Cloud, you must validate it before
2276
+ # providing it to a Google API client library. Providing an unvalidated credential
2277
+ # configuration to Google APIs can compromise the security of your systems and data.
2278
+ # For more information, refer to [Validate credential configurations from external
2279
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2269
2280
  # @return [::Object]
2270
2281
  # @!attribute [rw] scope
2271
2282
  # The OAuth scopes
@@ -2320,8 +2331,8 @@ module Google
2320
2331
 
2321
2332
  config_attr :endpoint, nil, ::String, nil
2322
2333
  config_attr :credentials, nil do |value|
2323
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2324
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2334
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2335
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
2325
2336
  allowed.any? { |klass| klass === value }
2326
2337
  end
2327
2338
  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
@@ -2005,9 +2005,13 @@ module Google
2005
2005
  #
2006
2006
  # @param product_set_purge_config [::Google::Cloud::Vision::V1p4beta1::ProductSetPurgeConfig, ::Hash]
2007
2007
  # Specify which ProductSet contains the Products to be deleted.
2008
+ #
2009
+ # 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.
2008
2010
  # @param delete_orphan_products [::Boolean]
2009
2011
  # If delete_orphan_products is true, all Products that are not in any
2010
2012
  # ProductSet will be deleted.
2013
+ #
2014
+ # 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.
2011
2015
  # @param parent [::String]
2012
2016
  # Required. The project and location in which the Products should be deleted.
2013
2017
  #
@@ -2124,6 +2128,13 @@ module Google
2124
2128
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2125
2129
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2126
2130
  # * (`nil`) indicating no credentials
2131
+ #
2132
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2133
+ # external source for authentication to Google Cloud, you must validate it before
2134
+ # providing it to a Google API client library. Providing an unvalidated credential
2135
+ # configuration to Google APIs can compromise the security of your systems and data.
2136
+ # For more information, refer to [Validate credential configurations from external
2137
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2127
2138
  # @return [::Object]
2128
2139
  # @!attribute [rw] scope
2129
2140
  # The OAuth scopes
@@ -2171,7 +2182,7 @@ module Google
2171
2182
 
2172
2183
  config_attr :endpoint, nil, ::String, nil
2173
2184
  config_attr :credentials, nil do |value|
2174
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2185
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2175
2186
  allowed.any? { |klass| klass === value }
2176
2187
  end
2177
2188
  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 V1p4beta1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.11.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
@@ -653,10 +653,14 @@ module Google
653
653
  # @!attribute [rw] product_set_purge_config
654
654
  # @return [::Google::Cloud::Vision::V1p4beta1::ProductSetPurgeConfig]
655
655
  # Specify which ProductSet contains the Products to be deleted.
656
+ #
657
+ # 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.
656
658
  # @!attribute [rw] delete_orphan_products
657
659
  # @return [::Boolean]
658
660
  # If delete_orphan_products is true, all Products that are not in any
659
661
  # ProductSet will be deleted.
662
+ #
663
+ # 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.
660
664
  # @!attribute [rw] parent
661
665
  # @return [::String]
662
666
  # 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-v1p4beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.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-11 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
@@ -117,7 +116,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
117
116
  licenses:
118
117
  - Apache-2.0
119
118
  metadata: {}
120
- post_install_message:
121
119
  rdoc_options: []
122
120
  require_paths:
123
121
  - lib
@@ -125,15 +123,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
123
  requirements:
126
124
  - - ">="
127
125
  - !ruby/object:Gem::Version
128
- version: '2.7'
126
+ version: '3.0'
129
127
  required_rubygems_version: !ruby/object:Gem::Requirement
130
128
  requirements:
131
129
  - - ">="
132
130
  - !ruby/object:Gem::Version
133
131
  version: '0'
134
132
  requirements: []
135
- rubygems_version: 3.5.23
136
- signing_key:
133
+ rubygems_version: 3.6.8
137
134
  specification_version: 4
138
135
  summary: Integrates Google Vision features, including image labeling, face, logo,
139
136
  and landmark detection, optical character recognition (OCR), and detection of explicit