google-cloud-vision_ai-v1 0.3.0 → 1.0.0

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/vision_ai/v1/app_platform/client.rb +7 -0
  4. data/lib/google/cloud/vision_ai/v1/app_platform/operations.rb +7 -0
  5. data/lib/google/cloud/vision_ai/v1/app_platform/rest/client.rb +23 -8
  6. data/lib/google/cloud/vision_ai/v1/app_platform/rest/operations.rb +7 -0
  7. data/lib/google/cloud/vision_ai/v1/health_check_service/client.rb +7 -0
  8. data/lib/google/cloud/vision_ai/v1/health_check_service/rest/client.rb +7 -0
  9. data/lib/google/cloud/vision_ai/v1/live_video_analytics/client.rb +7 -0
  10. data/lib/google/cloud/vision_ai/v1/live_video_analytics/operations.rb +7 -0
  11. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/client.rb +19 -6
  12. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/operations.rb +7 -0
  13. data/lib/google/cloud/vision_ai/v1/streaming_service/client.rb +7 -0
  14. data/lib/google/cloud/vision_ai/v1/streaming_service/rest/client.rb +7 -0
  15. data/lib/google/cloud/vision_ai/v1/streams_service/client.rb +7 -0
  16. data/lib/google/cloud/vision_ai/v1/streams_service/operations.rb +7 -0
  17. data/lib/google/cloud/vision_ai/v1/streams_service/rest/client.rb +23 -8
  18. data/lib/google/cloud/vision_ai/v1/streams_service/rest/operations.rb +7 -0
  19. data/lib/google/cloud/vision_ai/v1/version.rb +1 -1
  20. data/lib/google/cloud/vision_ai/v1/warehouse/client.rb +11 -0
  21. data/lib/google/cloud/vision_ai/v1/warehouse/operations.rb +7 -0
  22. data/lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb +15 -2
  23. data/lib/google/cloud/vision_ai/v1/warehouse/rest/operations.rb +7 -0
  24. data/proto_docs/google/api/client.rb +8 -0
  25. data/proto_docs/google/cloud/visionai/v1/annotations.rb +4 -0
  26. data/proto_docs/google/cloud/visionai/v1/lva.rb +8 -0
  27. data/proto_docs/google/cloud/visionai/v1/platform.rb +44 -0
  28. data/proto_docs/google/cloud/visionai/v1/streaming_resources.rb +4 -0
  29. data/proto_docs/google/cloud/visionai/v1/streaming_service.rb +32 -0
  30. data/proto_docs/google/cloud/visionai/v1/warehouse.rb +64 -0
  31. data/proto_docs/google/longrunning/operations.rb +4 -0
  32. data/proto_docs/google/protobuf/struct.rb +12 -0
  33. data/proto_docs/google/type/datetime.rb +4 -0
  34. metadata +6 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f0b75a98e1ea83ae1c884d171c811e97f6475a35f199f158d7402a2dd003831
4
- data.tar.gz: fc07e9fc7a237532436a98b8efc63b0f775c6b116dff4a9b2d1fadc918f416cb
3
+ metadata.gz: 5955662a32778a5b414ba419dc2fc7252178997587768c8a9f5949689a7727c3
4
+ data.tar.gz: caad99bff99d5e670bd3e63d42760e408fa610fa88a65faaaed6850ed12d423e
5
5
  SHA512:
6
- metadata.gz: cea4dcaab4ff4ef8c3098f7361849017a225d53dd2ff7472c0a224c12bbabefd0f2eac37444abd8627194038bd86893bf9a1e835414ec085650500b4a7ea9c8f
7
- data.tar.gz: 790b2c8576a6b9c53b54768ee4cfdf27ba0eee5288becf66c1d143174edbc19ed6fe377d6ef802564bec62e9540d113218b3cbe47849aa9fbdde0900053766a3
6
+ metadata.gz: 1f8568b79ae24498166e27b5bbfb307af1adfb3125c813b4d6ad98e842cc9155495b58af6e73cec116bde09ee7e6c92caed39774f56a72bd1a75f23015665a1b
7
+ data.tar.gz: ff13c132f28dfa5714ac2fd4597a657f3b1804de9a35b67c7b7eec145febb37359c6c64b1dcebc664dc8a43de3aaa6b3bc35d29b17c1a1806a7f0c5774e4730c
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
@@ -3028,6 +3028,13 @@ module Google
3028
3028
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3029
3029
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3030
3030
  # * (`nil`) indicating no credentials
3031
+ #
3032
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
3033
+ # external source for authentication to Google Cloud, you must validate it before
3034
+ # providing it to a Google API client library. Providing an unvalidated credential
3035
+ # configuration to Google APIs can compromise the security of your systems and data.
3036
+ # For more information, refer to [Validate credential configurations from external
3037
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
3031
3038
  # @return [::Object]
3032
3039
  # @!attribute [rw] scope
3033
3040
  # The OAuth scopes
@@ -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
@@ -252,10 +252,10 @@ module Google
252
252
  # @param order_by [::String]
253
253
  # Hint for how to order the results.
254
254
  # @yield [result, operation] Access the result along with the TransportOperation object
255
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListApplicationsResponse]
255
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Application>]
256
256
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
257
257
  #
258
- # @return [::Google::Cloud::VisionAI::V1::ListApplicationsResponse]
258
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Application>]
259
259
  #
260
260
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
261
261
  #
@@ -307,7 +307,9 @@ module Google
307
307
  retry_policy: @config.retry_policy
308
308
 
309
309
  @app_platform_stub.list_applications request, options do |result, operation|
310
+ result = ::Gapic::Rest::PagedEnumerable.new @app_platform_stub, :list_applications, "applications", request, result, options
310
311
  yield result, operation if block_given?
312
+ throw :response, result
311
313
  end
312
314
  rescue ::Gapic::Rest::Error => e
313
315
  raise ::Google::Cloud::Error.from_error(e)
@@ -1277,10 +1279,10 @@ module Google
1277
1279
  # @param order_by [::String]
1278
1280
  # Hint for how to order the results.
1279
1281
  # @yield [result, operation] Access the result along with the TransportOperation object
1280
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListInstancesResponse]
1282
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Instance>]
1281
1283
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1282
1284
  #
1283
- # @return [::Google::Cloud::VisionAI::V1::ListInstancesResponse]
1285
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Instance>]
1284
1286
  #
1285
1287
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1286
1288
  #
@@ -1332,7 +1334,9 @@ module Google
1332
1334
  retry_policy: @config.retry_policy
1333
1335
 
1334
1336
  @app_platform_stub.list_instances request, options do |result, operation|
1337
+ result = ::Gapic::Rest::PagedEnumerable.new @app_platform_stub, :list_instances, "instances", request, result, options
1335
1338
  yield result, operation if block_given?
1339
+ throw :response, result
1336
1340
  end
1337
1341
  rescue ::Gapic::Rest::Error => e
1338
1342
  raise ::Google::Cloud::Error.from_error(e)
@@ -1771,10 +1775,10 @@ module Google
1771
1775
  # @param order_by [::String]
1772
1776
  # Hint for how to order the results.
1773
1777
  # @yield [result, operation] Access the result along with the TransportOperation object
1774
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListDraftsResponse]
1778
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Draft>]
1775
1779
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1776
1780
  #
1777
- # @return [::Google::Cloud::VisionAI::V1::ListDraftsResponse]
1781
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Draft>]
1778
1782
  #
1779
1783
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1780
1784
  #
@@ -1826,7 +1830,9 @@ module Google
1826
1830
  retry_policy: @config.retry_policy
1827
1831
 
1828
1832
  @app_platform_stub.list_drafts request, options do |result, operation|
1833
+ result = ::Gapic::Rest::PagedEnumerable.new @app_platform_stub, :list_drafts, "drafts", request, result, options
1829
1834
  yield result, operation if block_given?
1835
+ throw :response, result
1830
1836
  end
1831
1837
  rescue ::Gapic::Rest::Error => e
1832
1838
  raise ::Google::Cloud::Error.from_error(e)
@@ -2256,10 +2262,10 @@ module Google
2256
2262
  # @param order_by [::String]
2257
2263
  # Hint for how to order the results.
2258
2264
  # @yield [result, operation] Access the result along with the TransportOperation object
2259
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListProcessorsResponse]
2265
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Processor>]
2260
2266
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2261
2267
  #
2262
- # @return [::Google::Cloud::VisionAI::V1::ListProcessorsResponse]
2268
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Processor>]
2263
2269
  #
2264
2270
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2265
2271
  #
@@ -2311,7 +2317,9 @@ module Google
2311
2317
  retry_policy: @config.retry_policy
2312
2318
 
2313
2319
  @app_platform_stub.list_processors request, options do |result, operation|
2320
+ result = ::Gapic::Rest::PagedEnumerable.new @app_platform_stub, :list_processors, "processors", request, result, options
2314
2321
  yield result, operation if block_given?
2322
+ throw :response, result
2315
2323
  end
2316
2324
  rescue ::Gapic::Rest::Error => e
2317
2325
  raise ::Google::Cloud::Error.from_error(e)
@@ -2829,6 +2837,13 @@ module Google
2829
2837
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2830
2838
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2831
2839
  # * (`nil`) indicating no credentials
2840
+ #
2841
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2842
+ # external source for authentication to Google Cloud, you must validate it before
2843
+ # providing it to a Google API client library. Providing an unvalidated credential
2844
+ # configuration to Google APIs can compromise the security of your systems and data.
2845
+ # For more information, refer to [Validate credential configurations from external
2846
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2832
2847
  # @return [::Object]
2833
2848
  # @!attribute [rw] scope
2834
2849
  # The OAuth scopes
@@ -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
@@ -345,6 +345,13 @@ module Google
345
345
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
346
346
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
347
347
  # * (`nil`) indicating no credentials
348
+ #
349
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
350
+ # external source for authentication to Google Cloud, you must validate it before
351
+ # providing it to a Google API client library. Providing an unvalidated credential
352
+ # configuration to Google APIs can compromise the security of your systems and data.
353
+ # For more information, refer to [Validate credential configurations from external
354
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
348
355
  # @return [::Object]
349
356
  # @!attribute [rw] scope
350
357
  # The OAuth scopes
@@ -329,6 +329,13 @@ module Google
329
329
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
330
330
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
331
331
  # * (`nil`) indicating no credentials
332
+ #
333
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
334
+ # external source for authentication to Google Cloud, you must validate it before
335
+ # providing it to a Google API client library. Providing an unvalidated credential
336
+ # configuration to Google APIs can compromise the security of your systems and data.
337
+ # For more information, refer to [Validate credential configurations from external
338
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
332
339
  # @return [::Object]
333
340
  # @!attribute [rw] scope
334
341
  # The OAuth scopes
@@ -2142,6 +2142,13 @@ module Google
2142
2142
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2143
2143
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2144
2144
  # * (`nil`) indicating no credentials
2145
+ #
2146
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2147
+ # external source for authentication to Google Cloud, you must validate it before
2148
+ # providing it to a Google API client library. Providing an unvalidated credential
2149
+ # configuration to Google APIs can compromise the security of your systems and data.
2150
+ # For more information, refer to [Validate credential configurations from external
2151
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2145
2152
  # @return [::Object]
2146
2153
  # @!attribute [rw] scope
2147
2154
  # The OAuth scopes
@@ -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
@@ -451,10 +451,10 @@ module Google
451
451
  # @param order_by [::String]
452
452
  # Hint for how to order the results.
453
453
  # @yield [result, operation] Access the result along with the TransportOperation object
454
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListOperatorsResponse]
454
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Operator>]
455
455
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
456
456
  #
457
- # @return [::Google::Cloud::VisionAI::V1::ListOperatorsResponse]
457
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Operator>]
458
458
  #
459
459
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
460
460
  #
@@ -506,7 +506,9 @@ module Google
506
506
  retry_policy: @config.retry_policy
507
507
 
508
508
  @live_video_analytics_stub.list_operators request, options do |result, operation|
509
+ result = ::Gapic::Rest::PagedEnumerable.new @live_video_analytics_stub, :list_operators, "operators", request, result, options
509
510
  yield result, operation if block_given?
511
+ throw :response, result
510
512
  end
511
513
  rescue ::Gapic::Rest::Error => e
512
514
  raise ::Google::Cloud::Error.from_error(e)
@@ -933,10 +935,10 @@ module Google
933
935
  # @param order_by [::String]
934
936
  # Hint for how to order the results
935
937
  # @yield [result, operation] Access the result along with the TransportOperation object
936
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListAnalysesResponse]
938
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Analysis>]
937
939
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
938
940
  #
939
- # @return [::Google::Cloud::VisionAI::V1::ListAnalysesResponse]
941
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Analysis>]
940
942
  #
941
943
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
942
944
  #
@@ -988,7 +990,9 @@ module Google
988
990
  retry_policy: @config.retry_policy
989
991
 
990
992
  @live_video_analytics_stub.list_analyses request, options do |result, operation|
993
+ result = ::Gapic::Rest::PagedEnumerable.new @live_video_analytics_stub, :list_analyses, "analyses", request, result, options
991
994
  yield result, operation if block_given?
995
+ throw :response, result
992
996
  end
993
997
  rescue ::Gapic::Rest::Error => e
994
998
  raise ::Google::Cloud::Error.from_error(e)
@@ -1415,10 +1419,10 @@ module Google
1415
1419
  # @param order_by [::String]
1416
1420
  # Hint for how to order the results
1417
1421
  # @yield [result, operation] Access the result along with the TransportOperation object
1418
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListProcessesResponse]
1422
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Process>]
1419
1423
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1420
1424
  #
1421
- # @return [::Google::Cloud::VisionAI::V1::ListProcessesResponse]
1425
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Process>]
1422
1426
  #
1423
1427
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1424
1428
  #
@@ -1470,7 +1474,9 @@ module Google
1470
1474
  retry_policy: @config.retry_policy
1471
1475
 
1472
1476
  @live_video_analytics_stub.list_processes request, options do |result, operation|
1477
+ result = ::Gapic::Rest::PagedEnumerable.new @live_video_analytics_stub, :list_processes, "processes", request, result, options
1473
1478
  yield result, operation if block_given?
1479
+ throw :response, result
1474
1480
  end
1475
1481
  rescue ::Gapic::Rest::Error => e
1476
1482
  raise ::Google::Cloud::Error.from_error(e)
@@ -2001,6 +2007,13 @@ module Google
2001
2007
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2002
2008
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2003
2009
  # * (`nil`) indicating no credentials
2010
+ #
2011
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2012
+ # external source for authentication to Google Cloud, you must validate it before
2013
+ # providing it to a Google API client library. Providing an unvalidated credential
2014
+ # configuration to Google APIs can compromise the security of your systems and data.
2015
+ # For more information, refer to [Validate credential configurations from external
2016
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2004
2017
  # @return [::Object]
2005
2018
  # @!attribute [rw] scope
2006
2019
  # The OAuth scopes
@@ -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
@@ -764,6 +764,13 @@ module Google
764
764
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
765
765
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
766
766
  # * (`nil`) indicating no credentials
767
+ #
768
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
769
+ # external source for authentication to Google Cloud, you must validate it before
770
+ # providing it to a Google API client library. Providing an unvalidated credential
771
+ # configuration to Google APIs can compromise the security of your systems and data.
772
+ # For more information, refer to [Validate credential configurations from external
773
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
767
774
  # @return [::Object]
768
775
  # @!attribute [rw] scope
769
776
  # The OAuth scopes
@@ -500,6 +500,13 @@ module Google
500
500
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
501
501
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
502
502
  # * (`nil`) indicating no credentials
503
+ #
504
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
505
+ # external source for authentication to Google Cloud, you must validate it before
506
+ # providing it to a Google API client library. Providing an unvalidated credential
507
+ # configuration to Google APIs can compromise the security of your systems and data.
508
+ # For more information, refer to [Validate credential configurations from external
509
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
503
510
  # @return [::Object]
504
511
  # @!attribute [rw] scope
505
512
  # The OAuth scopes
@@ -2662,6 +2662,13 @@ module Google
2662
2662
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2663
2663
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2664
2664
  # * (`nil`) indicating no credentials
2665
+ #
2666
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2667
+ # external source for authentication to Google Cloud, you must validate it before
2668
+ # providing it to a Google API client library. Providing an unvalidated credential
2669
+ # configuration to Google APIs can compromise the security of your systems and data.
2670
+ # For more information, refer to [Validate credential configurations from external
2671
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2665
2672
  # @return [::Object]
2666
2673
  # @!attribute [rw] scope
2667
2674
  # The OAuth scopes
@@ -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
@@ -255,10 +255,10 @@ module Google
255
255
  # @param order_by [::String]
256
256
  # Hint for how to order the results.
257
257
  # @yield [result, operation] Access the result along with the TransportOperation object
258
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListClustersResponse]
258
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Cluster>]
259
259
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
260
260
  #
261
- # @return [::Google::Cloud::VisionAI::V1::ListClustersResponse]
261
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Cluster>]
262
262
  #
263
263
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
264
264
  #
@@ -310,7 +310,9 @@ module Google
310
310
  retry_policy: @config.retry_policy
311
311
 
312
312
  @streams_service_stub.list_clusters request, options do |result, operation|
313
+ result = ::Gapic::Rest::PagedEnumerable.new @streams_service_stub, :list_clusters, "clusters", request, result, options
313
314
  yield result, operation if block_given?
315
+ throw :response, result
314
316
  end
315
317
  rescue ::Gapic::Rest::Error => e
316
318
  raise ::Google::Cloud::Error.from_error(e)
@@ -737,10 +739,10 @@ module Google
737
739
  # @param order_by [::String]
738
740
  # Hint for how to order the results.
739
741
  # @yield [result, operation] Access the result along with the TransportOperation object
740
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListStreamsResponse]
742
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Stream>]
741
743
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
742
744
  #
743
- # @return [::Google::Cloud::VisionAI::V1::ListStreamsResponse]
745
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Stream>]
744
746
  #
745
747
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
746
748
  #
@@ -792,7 +794,9 @@ module Google
792
794
  retry_policy: @config.retry_policy
793
795
 
794
796
  @streams_service_stub.list_streams request, options do |result, operation|
797
+ result = ::Gapic::Rest::PagedEnumerable.new @streams_service_stub, :list_streams, "streams", request, result, options
795
798
  yield result, operation if block_given?
799
+ throw :response, result
796
800
  end
797
801
  rescue ::Gapic::Rest::Error => e
798
802
  raise ::Google::Cloud::Error.from_error(e)
@@ -1403,10 +1407,10 @@ module Google
1403
1407
  # @param order_by [::String]
1404
1408
  # Hint for how to order the results.
1405
1409
  # @yield [result, operation] Access the result along with the TransportOperation object
1406
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListEventsResponse]
1410
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Event>]
1407
1411
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1408
1412
  #
1409
- # @return [::Google::Cloud::VisionAI::V1::ListEventsResponse]
1413
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Event>]
1410
1414
  #
1411
1415
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1412
1416
  #
@@ -1458,7 +1462,9 @@ module Google
1458
1462
  retry_policy: @config.retry_policy
1459
1463
 
1460
1464
  @streams_service_stub.list_events request, options do |result, operation|
1465
+ result = ::Gapic::Rest::PagedEnumerable.new @streams_service_stub, :list_events, "events", request, result, options
1461
1466
  yield result, operation if block_given?
1467
+ throw :response, result
1462
1468
  end
1463
1469
  rescue ::Gapic::Rest::Error => e
1464
1470
  raise ::Google::Cloud::Error.from_error(e)
@@ -1885,10 +1891,10 @@ module Google
1885
1891
  # @param order_by [::String]
1886
1892
  # Hint for how to order the results.
1887
1893
  # @yield [result, operation] Access the result along with the TransportOperation object
1888
- # @yieldparam result [::Google::Cloud::VisionAI::V1::ListSeriesResponse]
1894
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Series>]
1889
1895
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1890
1896
  #
1891
- # @return [::Google::Cloud::VisionAI::V1::ListSeriesResponse]
1897
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::Series>]
1892
1898
  #
1893
1899
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1894
1900
  #
@@ -1940,7 +1946,9 @@ module Google
1940
1946
  retry_policy: @config.retry_policy
1941
1947
 
1942
1948
  @streams_service_stub.list_series request, options do |result, operation|
1949
+ result = ::Gapic::Rest::PagedEnumerable.new @streams_service_stub, :list_series, "series", request, result, options
1943
1950
  yield result, operation if block_given?
1951
+ throw :response, result
1944
1952
  end
1945
1953
  rescue ::Gapic::Rest::Error => e
1946
1954
  raise ::Google::Cloud::Error.from_error(e)
@@ -2484,6 +2492,13 @@ module Google
2484
2492
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2485
2493
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2486
2494
  # * (`nil`) indicating no credentials
2495
+ #
2496
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2497
+ # external source for authentication to Google Cloud, you must validate it before
2498
+ # providing it to a Google API client library. Providing an unvalidated credential
2499
+ # configuration to Google APIs can compromise the security of your systems and data.
2500
+ # For more information, refer to [Validate credential configurations from external
2501
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2487
2502
  # @return [::Object]
2488
2503
  # @!attribute [rw] scope
2489
2504
  # The OAuth scopes
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module VisionAI
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -4800,8 +4800,12 @@ module Google
4800
4800
  #
4801
4801
  # @param image_query [::Google::Cloud::VisionAI::V1::ImageQuery, ::Hash]
4802
4802
  # An image-only query.
4803
+ #
4804
+ # Note: The following fields are mutually exclusive: `image_query`, `text_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4803
4805
  # @param text_query [::String]
4804
4806
  # A text-only query.
4807
+ #
4808
+ # Note: The following fields are mutually exclusive: `text_query`, `image_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4805
4809
  # @param index_endpoint [::String]
4806
4810
  # Required. The index endpoint to search.
4807
4811
  # Format:
@@ -6382,6 +6386,13 @@ module Google
6382
6386
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
6383
6387
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
6384
6388
  # * (`nil`) indicating no credentials
6389
+ #
6390
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
6391
+ # external source for authentication to Google Cloud, you must validate it before
6392
+ # providing it to a Google API client library. Providing an unvalidated credential
6393
+ # configuration to Google APIs can compromise the security of your systems and data.
6394
+ # For more information, refer to [Validate credential configurations from external
6395
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
6385
6396
  # @return [::Object]
6386
6397
  # @!attribute [rw] scope
6387
6398
  # The OAuth scopes
@@ -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
@@ -4302,10 +4302,10 @@ module Google
4302
4302
  # Global search query. Allows user to search assets without needing to
4303
4303
  # specify which field the value belongs to.
4304
4304
  # @yield [result, operation] Access the result along with the TransportOperation object
4305
- # @yieldparam result [::Google::Cloud::VisionAI::V1::SearchAssetsResponse]
4305
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::SearchResultItem>]
4306
4306
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
4307
4307
  #
4308
- # @return [::Google::Cloud::VisionAI::V1::SearchAssetsResponse]
4308
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VisionAI::V1::SearchResultItem>]
4309
4309
  #
4310
4310
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4311
4311
  #
@@ -4357,7 +4357,9 @@ module Google
4357
4357
  retry_policy: @config.retry_policy
4358
4358
 
4359
4359
  @warehouse_stub.search_assets request, options do |result, operation|
4360
+ result = ::Gapic::Rest::PagedEnumerable.new @warehouse_stub, :search_assets, "search_result_items", request, result, options
4360
4361
  yield result, operation if block_given?
4362
+ throw :response, result
4361
4363
  end
4362
4364
  rescue ::Gapic::Rest::Error => e
4363
4365
  raise ::Google::Cloud::Error.from_error(e)
@@ -4383,8 +4385,12 @@ module Google
4383
4385
  #
4384
4386
  # @param image_query [::Google::Cloud::VisionAI::V1::ImageQuery, ::Hash]
4385
4387
  # An image-only query.
4388
+ #
4389
+ # Note: The following fields are mutually exclusive: `image_query`, `text_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4386
4390
  # @param text_query [::String]
4387
4391
  # A text-only query.
4392
+ #
4393
+ # Note: The following fields are mutually exclusive: `text_query`, `image_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4388
4394
  # @param index_endpoint [::String]
4389
4395
  # Required. The index endpoint to search.
4390
4396
  # Format:
@@ -5851,6 +5857,13 @@ module Google
5851
5857
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
5852
5858
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
5853
5859
  # * (`nil`) indicating no credentials
5860
+ #
5861
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
5862
+ # external source for authentication to Google Cloud, you must validate it before
5863
+ # providing it to a Google API client library. Providing an unvalidated credential
5864
+ # configuration to Google APIs can compromise the security of your systems and data.
5865
+ # For more information, refer to [Validate credential configurations from external
5866
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
5854
5867
  # @return [::Object]
5855
5868
  # @!attribute [rw] scope
5856
5869
  # The OAuth scopes
@@ -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