google-cloud-vision_ai-v1 0.4.0 → 1.0.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.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/vision_ai/v1/app_platform/client.rb +2 -2
  3. data/lib/google/cloud/vision_ai/v1/app_platform/operations.rb +2 -2
  4. data/lib/google/cloud/vision_ai/v1/app_platform/rest/client.rb +17 -9
  5. data/lib/google/cloud/vision_ai/v1/app_platform/rest/operations.rb +1 -1
  6. data/lib/google/cloud/vision_ai/v1/health_check_service/client.rb +2 -2
  7. data/lib/google/cloud/vision_ai/v1/health_check_service/rest/client.rb +1 -1
  8. data/lib/google/cloud/vision_ai/v1/live_video_analytics/client.rb +2 -2
  9. data/lib/google/cloud/vision_ai/v1/live_video_analytics/operations.rb +2 -2
  10. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/client.rb +13 -7
  11. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/operations.rb +1 -1
  12. data/lib/google/cloud/vision_ai/v1/streaming_service/client.rb +2 -2
  13. data/lib/google/cloud/vision_ai/v1/streaming_service/rest/client.rb +1 -1
  14. data/lib/google/cloud/vision_ai/v1/streams_service/client.rb +2 -2
  15. data/lib/google/cloud/vision_ai/v1/streams_service/operations.rb +2 -2
  16. data/lib/google/cloud/vision_ai/v1/streams_service/rest/client.rb +17 -9
  17. data/lib/google/cloud/vision_ai/v1/streams_service/rest/operations.rb +1 -1
  18. data/lib/google/cloud/vision_ai/v1/version.rb +1 -1
  19. data/lib/google/cloud/vision_ai/v1/warehouse/client.rb +2 -2
  20. data/lib/google/cloud/vision_ai/v1/warehouse/operations.rb +2 -2
  21. data/lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb +5 -3
  22. data/lib/google/cloud/vision_ai/v1/warehouse/rest/operations.rb +1 -1
  23. data/proto_docs/google/api/client.rb +14 -0
  24. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0f87a17cb5027ab22fe569aa44b5a6c5b4add9176db7b4585d082389b458629
4
- data.tar.gz: d9112d660da1e20071aaf2e3c236c4b08067882ffbb361d75700b7f078c049b5
3
+ metadata.gz: bf6d66c6b35ca8e25140037e741ea3802046fccc049fbb63206c0fc27ccd0aa6
4
+ data.tar.gz: e28d75738b60a3a4cf53cc2b8ad40bc9e9c8f92fc2fc73a08ff91d91d1391ca0
5
5
  SHA512:
6
- metadata.gz: 60c6b98d40989883e9ab110f9d2e096390892518d6bc684d8ecd215587d23015e2b41034f1691442b6607756e4faab390d3d6ae3c5936dd4a08e285b456e7e1c
7
- data.tar.gz: 8b8d3a810edcb69903eb396fbc8eb8002e1ee766b2442bb2ebdd14fcdd7e1937949b981636768064c791d5d64db935edf4e0db82b7b5c166c2bf1d8687af734b
6
+ metadata.gz: 8b5d114ef31da1fa8b6c0a419f4bef1fdeffd04d75b3ff9b5d040082263b5e23b32f00fe623859bce331e67ffca03fa00ce88753bb574a9f9ffb23824ff98515
7
+ data.tar.gz: 3f13e760ddf5d467ea7b5dc816f2f1d4d384f9f6bbfe0a2c350ed80927e3b5d79f70ceca6797d9a26c18b136cab37f45cabf8e1d8f3070483cc84b91febd7375
@@ -3089,8 +3089,8 @@ module Google
3089
3089
 
3090
3090
  config_attr :endpoint, nil, ::String, nil
3091
3091
  config_attr :credentials, nil do |value|
3092
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3093
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
3092
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
3093
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
3094
3094
  allowed.any? { |klass| klass === value }
3095
3095
  end
3096
3096
  config_attr :scope, nil, ::String, ::Array, nil
@@ -701,8 +701,8 @@ module Google
701
701
 
702
702
  config_attr :endpoint, nil, ::String, nil
703
703
  config_attr :credentials, nil do |value|
704
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
705
- 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
706
706
  allowed.any? { |klass| klass === value }
707
707
  end
708
708
  config_attr :scope, nil, ::String, ::Array, nil
@@ -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)
@@ -2883,7 +2891,7 @@ module Google
2883
2891
 
2884
2892
  config_attr :endpoint, nil, ::String, nil
2885
2893
  config_attr :credentials, nil do |value|
2886
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2894
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2887
2895
  allowed.any? { |klass| klass === value }
2888
2896
  end
2889
2897
  config_attr :scope, nil, ::String, ::Array, nil
@@ -556,7 +556,7 @@ module Google
556
556
 
557
557
  config_attr :endpoint, nil, ::String, nil
558
558
  config_attr :credentials, nil do |value|
559
- 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]
560
560
  allowed.any? { |klass| klass === value }
561
561
  end
562
562
  config_attr :scope, nil, ::String, ::Array, nil
@@ -406,8 +406,8 @@ module Google
406
406
 
407
407
  config_attr :endpoint, nil, ::String, nil
408
408
  config_attr :credentials, nil do |value|
409
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
410
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
409
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
410
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
411
411
  allowed.any? { |klass| klass === value }
412
412
  end
413
413
  config_attr :scope, nil, ::String, ::Array, nil
@@ -383,7 +383,7 @@ module Google
383
383
 
384
384
  config_attr :endpoint, nil, ::String, nil
385
385
  config_attr :credentials, nil do |value|
386
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
386
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
387
387
  allowed.any? { |klass| klass === value }
388
388
  end
389
389
  config_attr :scope, nil, ::String, ::Array, nil
@@ -2203,8 +2203,8 @@ module Google
2203
2203
 
2204
2204
  config_attr :endpoint, nil, ::String, nil
2205
2205
  config_attr :credentials, nil do |value|
2206
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2207
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2206
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2207
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
2208
2208
  allowed.any? { |klass| klass === value }
2209
2209
  end
2210
2210
  config_attr :scope, nil, ::String, ::Array, nil
@@ -701,8 +701,8 @@ module Google
701
701
 
702
702
  config_attr :endpoint, nil, ::String, nil
703
703
  config_attr :credentials, nil do |value|
704
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
705
- 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
706
706
  allowed.any? { |klass| klass === value }
707
707
  end
708
708
  config_attr :scope, nil, ::String, ::Array, nil
@@ -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)
@@ -2055,7 +2061,7 @@ module Google
2055
2061
 
2056
2062
  config_attr :endpoint, nil, ::String, nil
2057
2063
  config_attr :credentials, nil do |value|
2058
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2064
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2059
2065
  allowed.any? { |klass| klass === value }
2060
2066
  end
2061
2067
  config_attr :scope, nil, ::String, ::Array, nil
@@ -556,7 +556,7 @@ module Google
556
556
 
557
557
  config_attr :endpoint, nil, ::String, nil
558
558
  config_attr :credentials, nil do |value|
559
- 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]
560
560
  allowed.any? { |klass| klass === value }
561
561
  end
562
562
  config_attr :scope, nil, ::String, ::Array, nil
@@ -825,8 +825,8 @@ module Google
825
825
 
826
826
  config_attr :endpoint, nil, ::String, nil
827
827
  config_attr :credentials, nil do |value|
828
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
829
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
828
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
829
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
830
830
  allowed.any? { |klass| klass === value }
831
831
  end
832
832
  config_attr :scope, nil, ::String, ::Array, nil
@@ -554,7 +554,7 @@ module Google
554
554
 
555
555
  config_attr :endpoint, nil, ::String, nil
556
556
  config_attr :credentials, nil do |value|
557
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
557
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
558
558
  allowed.any? { |klass| klass === value }
559
559
  end
560
560
  config_attr :scope, nil, ::String, ::Array, nil
@@ -2723,8 +2723,8 @@ module Google
2723
2723
 
2724
2724
  config_attr :endpoint, nil, ::String, nil
2725
2725
  config_attr :credentials, nil do |value|
2726
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2727
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2726
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2727
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
2728
2728
  allowed.any? { |klass| klass === value }
2729
2729
  end
2730
2730
  config_attr :scope, nil, ::String, ::Array, nil
@@ -701,8 +701,8 @@ module Google
701
701
 
702
702
  config_attr :endpoint, nil, ::String, nil
703
703
  config_attr :credentials, nil do |value|
704
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
705
- 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
706
706
  allowed.any? { |klass| klass === value }
707
707
  end
708
708
  config_attr :scope, nil, ::String, ::Array, nil
@@ -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)
@@ -2538,7 +2546,7 @@ module Google
2538
2546
 
2539
2547
  config_attr :endpoint, nil, ::String, nil
2540
2548
  config_attr :credentials, nil do |value|
2541
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2549
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2542
2550
  allowed.any? { |klass| klass === value }
2543
2551
  end
2544
2552
  config_attr :scope, nil, ::String, ::Array, nil
@@ -556,7 +556,7 @@ module Google
556
556
 
557
557
  config_attr :endpoint, nil, ::String, nil
558
558
  config_attr :credentials, nil do |value|
559
- 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]
560
560
  allowed.any? { |klass| klass === value }
561
561
  end
562
562
  config_attr :scope, nil, ::String, ::Array, nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module VisionAI
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "1.0.1"
25
25
  end
26
26
  end
27
27
  end
@@ -6447,8 +6447,8 @@ module Google
6447
6447
 
6448
6448
  config_attr :endpoint, nil, ::String, nil
6449
6449
  config_attr :credentials, nil do |value|
6450
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
6451
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
6450
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
6451
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
6452
6452
  allowed.any? { |klass| klass === value }
6453
6453
  end
6454
6454
  config_attr :scope, nil, ::String, ::Array, nil
@@ -701,8 +701,8 @@ module Google
701
701
 
702
702
  config_attr :endpoint, nil, ::String, nil
703
703
  config_attr :credentials, nil do |value|
704
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
705
- 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
706
706
  allowed.any? { |klass| klass === value }
707
707
  end
708
708
  config_attr :scope, nil, ::String, ::Array, nil
@@ -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)
@@ -5909,7 +5911,7 @@ module Google
5909
5911
 
5910
5912
  config_attr :endpoint, nil, ::String, nil
5911
5913
  config_attr :credentials, nil do |value|
5912
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
5914
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
5913
5915
  allowed.any? { |klass| klass === value }
5914
5916
  end
5915
5917
  config_attr :scope, nil, ::String, ::Array, nil
@@ -556,7 +556,7 @@ module Google
556
556
 
557
557
  config_attr :endpoint, nil, ::String, nil
558
558
  config_attr :credentials, nil do |value|
559
- 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]
560
560
  allowed.any? { |klass| klass === value }
561
561
  end
562
562
  config_attr :scope, nil, ::String, ::Array, nil
@@ -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
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision_ai-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-29 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gapic-common
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubygems_version: 3.6.2
216
+ rubygems_version: 3.6.8
217
217
  specification_version: 4
218
218
  summary: API Client library for the Vision AI V1 API
219
219
  test_files: []