google-cloud-video_intelligence 3.5.0 → 3.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b6e3d1b07327033f5cf365d436024d9e9626f582857e53eede85c949cda3ddc
4
- data.tar.gz: 2f350015af8428cda4ceffee4ebc3520f636a11e988343f6427904b7835f04ba
3
+ metadata.gz: b8f47d1e3bb11a1082e86e39039c89191448970752ad71db1b7fb0b49047fd6c
4
+ data.tar.gz: 49cf32d416ca23972fc3d6840ca15b178bf2457426777e052515eed542509def
5
5
  SHA512:
6
- metadata.gz: df9fdc6cfbf195150372e89364823d4215a58a1768e1e02985f6a51c07f332e82f1b227e198b0a385d40caff2a1d047c1932de78f2dc66d55c2bbff4a147a7f0
7
- data.tar.gz: 2e8229121b3e8530a6adf312ada3964473030009f1e8f255eb74f55844e9a8b645ba595547ee91583856a5c25d3d3e581dc85ec5301716a7ccd48911084db204
6
+ metadata.gz: 2640f8d2013c6434d7886e3f7ef068503be648bec022c1e4cbd7b3245338a3c5006075839820bba53618f8e1043cf8d7644637f795d0aed68b562d03667072a6
7
+ data.tar.gz: f53803e1a60d0cd30574127c2f2b4a6aa215fb53e742b693e21f71598277f0096e2b85cafced7ad99931828fb219c36abb8b9824219f050d42f97678c0e58fe3
data/README.md CHANGED
@@ -45,9 +45,42 @@ and includes substantial interface changes. Existing code written for earlier
45
45
  versions of this library will likely require updates to use this version.
46
46
  See the {file:MIGRATING.md MIGRATING.md} document for more information.
47
47
 
48
+ ## Debug Logging
49
+
50
+ This library comes with opt-in Debug Logging that can help you troubleshoot
51
+ your application's integration with the API. When logging is activated, key
52
+ events such as requests and responses, along with data payloads and metadata
53
+ such as headers and client configuration, are logged to the standard error
54
+ stream.
55
+
56
+ **WARNING:** Client Library Debug Logging includes your data payloads in
57
+ plaintext, which could include sensitive data such as PII for yourself or your
58
+ customers, private keys, or other security data that could be compromising if
59
+ leaked. Always practice good data hygiene with your application logs, and follow
60
+ the principle of least access. Google also recommends that Client Library Debug
61
+ Logging be enabled only temporarily during active debugging, and not used
62
+ permanently in production.
63
+
64
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
65
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
66
+ list of client library gem names. This will select the default logging behavior,
67
+ which writes logs to the standard error stream. On a local workstation, this may
68
+ result in logs appearing on the console. When running on a Google Cloud hosting
69
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
70
+ results in logs appearing alongside your application logs in the
71
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
72
+
73
+ Debug logging also requires that the versioned clients for this service be
74
+ sufficiently recent, released after about Dec 10, 2024. If logging is not
75
+ working, try updating the versioned clients in your bundle or installed gems:
76
+ [google-cloud-video_intelligence-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest),
77
+ [google-cloud-video_intelligence-v1beta2](https://cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1beta2/latest),
78
+ [google-cloud-video_intelligence-v1p1beta1](https://cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/latest),
79
+ [google-cloud-video_intelligence-v1p2beta1](https://cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p2beta1/latest).
80
+
48
81
  ## Supported Ruby Versions
49
82
 
50
- This library is supported on Ruby 2.7+.
83
+ This library is supported on Ruby 3.0+.
51
84
 
52
85
  Google provides official support for Ruby versions that are actively supported
53
86
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module VideoIntelligence
23
- VERSION = "3.5.0"
23
+ VERSION = "3.6.0"
24
24
  end
25
25
  end
26
26
  end
@@ -58,6 +58,11 @@ module Google
58
58
  # You can also specify a different transport by passing `:rest` or `:grpc` in
59
59
  # the `transport` parameter.
60
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 VideoIntelligenceService service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::VideoIntelligence.video_intelligence_service_available?}.
65
+ #
61
66
  # ## About VideoIntelligenceService
62
67
  #
63
68
  # Service that implements the Video Intelligence API.
@@ -79,6 +84,37 @@ module Google
79
84
  service_module.const_get(:Client).new(&block)
80
85
  end
81
86
 
87
+ ##
88
+ # Determines whether the VideoIntelligenceService service is supported by the current client.
89
+ # If true, you can retrieve a client object by calling {Google::Cloud::VideoIntelligence.video_intelligence_service}.
90
+ # If false, that method will raise an exception. This could happen if the given
91
+ # API version does not exist or does not support the VideoIntelligenceService service,
92
+ # or if the versioned client gem needs an update to support the VideoIntelligenceService service.
93
+ #
94
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
95
+ # Defaults to `:v1`.
96
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
97
+ # @return [boolean] Whether the service is available.
98
+ #
99
+ def self.video_intelligence_service_available? version: :v1, transport: :grpc
100
+ require "google/cloud/video_intelligence/#{version.to_s.downcase}"
101
+ package_name = Google::Cloud::VideoIntelligence
102
+ .constants
103
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
104
+ .first
105
+ return false unless package_name
106
+ service_module = Google::Cloud::VideoIntelligence.const_get package_name
107
+ return false unless service_module.const_defined? :VideoIntelligenceService
108
+ service_module = service_module.const_get :VideoIntelligenceService
109
+ if transport == :rest
110
+ return false unless service_module.const_defined? :Rest
111
+ service_module = service_module.const_get :Rest
112
+ end
113
+ service_module.const_defined? :Client
114
+ rescue ::LoadError
115
+ false
116
+ end
117
+
82
118
  ##
83
119
  # Configure the google-cloud-video_intelligence library.
84
120
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video_intelligence
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-cloud-core
@@ -124,7 +123,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
124
123
  licenses:
125
124
  - Apache-2.0
126
125
  metadata: {}
127
- post_install_message:
128
126
  rdoc_options: []
129
127
  require_paths:
130
128
  - lib
@@ -132,15 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
130
  requirements:
133
131
  - - ">="
134
132
  - !ruby/object:Gem::Version
135
- version: '2.7'
133
+ version: '3.0'
136
134
  required_rubygems_version: !ruby/object:Gem::Requirement
137
135
  requirements:
138
136
  - - ">="
139
137
  - !ruby/object:Gem::Version
140
138
  version: '0'
141
139
  requirements: []
142
- rubygems_version: 3.5.6
143
- signing_key:
140
+ rubygems_version: 3.6.2
144
141
  specification_version: 4
145
142
  summary: API Client library for the Cloud Video Intelligence API
146
143
  test_files: []