google-cloud-vision_ai 1.2.1 → 1.2.2

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: bd9780ca8bdce4ae5bed5a4150390ad4605f3c2f46b0c0149f5c47e62530853f
4
- data.tar.gz: 986bfaff1dab8a537b32713d6d35065f86aa5b41fe5af8925c53aea3f5e0108f
3
+ metadata.gz: 05d01f985f499a2b0780eee62947c5333e81539f1707416c4b26c4b540d718b7
4
+ data.tar.gz: 17753fded063464289e38ebf39ce5e93ea898f8a070d7ec992b0dcf07e662e37
5
5
  SHA512:
6
- metadata.gz: ffe5201a56a606d5f601d0c853aa3203430c2d1a93fc8285f30ee362dc2ef22acc49b9701e7e53e685f0755f84483a6e00cb8fda85ad7b7a3f8d08cf614b382a
7
- data.tar.gz: 7399bd546a3d1df140853a38ea17d64923184d69f20ef245cb61a8006143ba3f0bf819aa273ee48f52292141276802b54bd5af60a001bb3f4fb8a1d9442dca7a
6
+ metadata.gz: c6017530fa1e0d401b9064b96e1634e959be3dce18d60fd3d7dd601639158b35742b7139900d7fa9250cf9e39b5649711918b9d6e2159435a542cdf2e70ab8ea
7
+ data.tar.gz: 47edbb0ae3dd7a5913a347d661db00525fa98a948d2dfe3bf3a5927e6d56384df5296279ca7c8940a69d77f2c4ccc644017440de6e7ed48333261052c6e12a7c
data/AUTHENTICATION.md CHANGED
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
56
56
  ```ruby
57
57
  require "google/cloud/vision_ai"
58
58
 
59
- client = Google::Cloud::VisionAI.live_video_analytics do |config|
59
+ client = Google::Cloud::VisionAI.health_check_service do |config|
60
60
  config.credentials = "path/to/credentialfile.json"
61
61
  end
62
62
  ```
@@ -70,7 +70,7 @@ Google::Cloud::VisionAI.configure do |config|
70
70
  config.credentials = "path/to/credentialfile.json"
71
71
  end
72
72
 
73
- client = Google::Cloud::VisionAI.live_video_analytics
73
+ client = Google::Cloud::VisionAI.health_check_service
74
74
  ```
75
75
 
76
76
  ### Environment Variables
@@ -100,7 +100,7 @@ require "google/cloud/vision_ai"
100
100
 
101
101
  ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
102
102
 
103
- client = Google::Cloud::VisionAI.live_video_analytics
103
+ client = Google::Cloud::VisionAI.health_check_service
104
104
  ```
105
105
 
106
106
  ### Local ADC file
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Ruby Client for the Vision AI API
2
2
 
3
- API Client library for the Vision AI API
3
+ Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data.
4
4
 
5
- google-cloud-vision_ai is the official client library for the Vision AI API.
6
5
 
7
6
  Actual client classes for the various versions of this API are defined in
8
7
  _versioned_ client gems, with names of the form `google-cloud-vision_ai-v*`.
@@ -37,9 +36,9 @@ In order to use this library, you first need to go through the following steps:
37
36
  ```ruby
38
37
  require "google/cloud/vision_ai"
39
38
 
40
- client = Google::Cloud::VisionAI.live_video_analytics
41
- request = ::Google::Cloud::VisionAI::V1::ListPublicOperatorsRequest.new # (request fields as keyword arguments...)
42
- response = client.list_public_operators request
39
+ client = Google::Cloud::VisionAI.health_check_service
40
+ request = ::Google::Cloud::VisionAI::V1::HealthCheckRequest.new # (request fields as keyword arguments...)
41
+ response = client.health_check request
43
42
  ```
44
43
 
45
44
  ## Debug Logging
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module VisionAI
23
- VERSION = "1.2.1"
23
+ VERSION = "1.2.2"
24
24
  end
25
25
  end
26
26
  end
@@ -45,6 +45,77 @@ end
45
45
  module Google
46
46
  module Cloud
47
47
  module VisionAI
48
+ ##
49
+ # Create a new client object for HealthCheckService.
50
+ #
51
+ # By default, this returns an instance of
52
+ # [Google::Cloud::VisionAI::V1::HealthCheckService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-HealthCheckService-Client)
53
+ # for a gRPC client for version V1 of the API.
54
+ # However, you can specify a different API version by passing it in the
55
+ # `version` parameter. If the HealthCheckService service is
56
+ # supported by that API version, and the corresponding gem is available, the
57
+ # appropriate versioned client will be returned.
58
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
59
+ # the `transport` parameter.
60
+ #
61
+ # Raises an exception if the currently installed versioned client gem for the
62
+ # given API version does not support the given transport of the HealthCheckService service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::VisionAI.health_check_service_available?}.
65
+ #
66
+ # ## About HealthCheckService
67
+ #
68
+ # HealthCheckService provides an interface for Vertex AI Vision Cluster Health
69
+ # Check.
70
+ #
71
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
72
+ # Defaults to `:v1`.
73
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
74
+ # @return [::Object] A client object for the specified version.
75
+ #
76
+ def self.health_check_service version: :v1, transport: :grpc, &block
77
+ require "google/cloud/vision_ai/#{version.to_s.downcase}"
78
+
79
+ package_name = Google::Cloud::VisionAI
80
+ .constants
81
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
82
+ .first
83
+ service_module = Google::Cloud::VisionAI.const_get(package_name).const_get(:HealthCheckService)
84
+ service_module = service_module.const_get(:Rest) if transport == :rest
85
+ service_module.const_get(:Client).new(&block)
86
+ end
87
+
88
+ ##
89
+ # Determines whether the HealthCheckService service is supported by the current client.
90
+ # If true, you can retrieve a client object by calling {Google::Cloud::VisionAI.health_check_service}.
91
+ # If false, that method will raise an exception. This could happen if the given
92
+ # API version does not exist or does not support the HealthCheckService service,
93
+ # or if the versioned client gem needs an update to support the HealthCheckService service.
94
+ #
95
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
96
+ # Defaults to `:v1`.
97
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
98
+ # @return [boolean] Whether the service is available.
99
+ #
100
+ def self.health_check_service_available? version: :v1, transport: :grpc
101
+ require "google/cloud/vision_ai/#{version.to_s.downcase}"
102
+ package_name = Google::Cloud::VisionAI
103
+ .constants
104
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
105
+ .first
106
+ return false unless package_name
107
+ service_module = Google::Cloud::VisionAI.const_get package_name
108
+ return false unless service_module.const_defined? :HealthCheckService
109
+ service_module = service_module.const_get :HealthCheckService
110
+ if transport == :rest
111
+ return false unless service_module.const_defined? :Rest
112
+ service_module = service_module.const_get :Rest
113
+ end
114
+ service_module.const_defined? :Client
115
+ rescue ::LoadError
116
+ false
117
+ end
118
+
48
119
  ##
49
120
  # Create a new client object for LiveVideoAnalytics.
50
121
  #
@@ -399,77 +470,6 @@ module Google
399
470
  false
400
471
  end
401
472
 
402
- ##
403
- # Create a new client object for HealthCheckService.
404
- #
405
- # By default, this returns an instance of
406
- # [Google::Cloud::VisionAI::V1::HealthCheckService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-HealthCheckService-Client)
407
- # for a gRPC client for version V1 of the API.
408
- # However, you can specify a different API version by passing it in the
409
- # `version` parameter. If the HealthCheckService service is
410
- # supported by that API version, and the corresponding gem is available, the
411
- # appropriate versioned client will be returned.
412
- # You can also specify a different transport by passing `:rest` or `:grpc` in
413
- # the `transport` parameter.
414
- #
415
- # Raises an exception if the currently installed versioned client gem for the
416
- # given API version does not support the given transport of the HealthCheckService service.
417
- # You can determine whether the method will succeed by calling
418
- # {Google::Cloud::VisionAI.health_check_service_available?}.
419
- #
420
- # ## About HealthCheckService
421
- #
422
- # HealthCheckService provides an interface for Vertex AI Vision Cluster Health
423
- # Check.
424
- #
425
- # @param version [::String, ::Symbol] The API version to connect to. Optional.
426
- # Defaults to `:v1`.
427
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
428
- # @return [::Object] A client object for the specified version.
429
- #
430
- def self.health_check_service version: :v1, transport: :grpc, &block
431
- require "google/cloud/vision_ai/#{version.to_s.downcase}"
432
-
433
- package_name = Google::Cloud::VisionAI
434
- .constants
435
- .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
436
- .first
437
- service_module = Google::Cloud::VisionAI.const_get(package_name).const_get(:HealthCheckService)
438
- service_module = service_module.const_get(:Rest) if transport == :rest
439
- service_module.const_get(:Client).new(&block)
440
- end
441
-
442
- ##
443
- # Determines whether the HealthCheckService service is supported by the current client.
444
- # If true, you can retrieve a client object by calling {Google::Cloud::VisionAI.health_check_service}.
445
- # If false, that method will raise an exception. This could happen if the given
446
- # API version does not exist or does not support the HealthCheckService service,
447
- # or if the versioned client gem needs an update to support the HealthCheckService service.
448
- #
449
- # @param version [::String, ::Symbol] The API version to connect to. Optional.
450
- # Defaults to `:v1`.
451
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
452
- # @return [boolean] Whether the service is available.
453
- #
454
- def self.health_check_service_available? version: :v1, transport: :grpc
455
- require "google/cloud/vision_ai/#{version.to_s.downcase}"
456
- package_name = Google::Cloud::VisionAI
457
- .constants
458
- .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
459
- .first
460
- return false unless package_name
461
- service_module = Google::Cloud::VisionAI.const_get package_name
462
- return false unless service_module.const_defined? :HealthCheckService
463
- service_module = service_module.const_get :HealthCheckService
464
- if transport == :rest
465
- return false unless service_module.const_defined? :Rest
466
- service_module = service_module.const_get :Rest
467
- end
468
- service_module.const_defined? :Client
469
- rescue ::LoadError
470
- false
471
- end
472
-
473
473
  ##
474
474
  # Configure the google-cloud-vision_ai library.
475
475
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision_ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -37,8 +37,8 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.0'
40
- description: google-cloud-vision_ai is the official client library for the Vision
41
- AI API.
40
+ description: Vertex AI Vision is an AI-powered platform to ingest, analyze and store
41
+ video data.
42
42
  email: googleapis-packages@google.com
43
43
  executables: []
44
44
  extensions: []
@@ -71,5 +71,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements: []
72
72
  rubygems_version: 3.6.9
73
73
  specification_version: 4
74
- summary: API Client library for the Vision AI API
74
+ summary: Vertex AI Vision is an AI-powered platform to ingest, analyze and store video
75
+ data.
75
76
  test_files: []