google-cloud-video_intelligence 3.1.3 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +6 -32
- data/lib/google/cloud/video_intelligence/version.rb +1 -1
- data/lib/google/cloud/video_intelligence.rb +11 -7
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6eed34b28defcff777612a9cd8db6dd3f4c0550de82c08abac19d93023fff12
|
4
|
+
data.tar.gz: c516f29b9534812c75c93149d7702fe2bd69b1fafe151ea38259c353dc251550
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9118ae82df36e44e84959b69ca390a7a5e8078b876a37b9e822a1877bbd5d1cca5a9163acce6f81681b93466a05b48133bcfa8c7054589669c9499945177fac8
|
7
|
+
data.tar.gz: b329526fa01136b4c09f4af7e73d380ee547b45adc2451ff63cf6269bdcb1680fdc2f0eee78b29fbe785e528d8800e6f47279c774af4604cf292a2f947da3f25
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ verisoned gems in as dependencies, and provides high-level methods for
|
|
11
11
|
constructing clients. More information on versioned clients can be found below
|
12
12
|
in the section titled *Which client should I use?*.
|
13
13
|
|
14
|
-
View the [Client Library Documentation](https://
|
14
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence/latest)
|
15
15
|
for this library, google-cloud-video_intelligence, to see the convenience methods for
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
@@ -45,42 +45,16 @@ 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
|
-
## Enabling Logging
|
49
|
-
|
50
|
-
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
51
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
|
52
|
-
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
53
|
-
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
54
|
-
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
55
|
-
|
56
|
-
Configuring a Ruby stdlib logger:
|
57
|
-
|
58
|
-
```ruby
|
59
|
-
require "logger"
|
60
|
-
|
61
|
-
module MyLogger
|
62
|
-
LOGGER = Logger.new $stderr, level: Logger::WARN
|
63
|
-
def logger
|
64
|
-
LOGGER
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
69
|
-
module GRPC
|
70
|
-
extend MyLogger
|
71
|
-
end
|
72
|
-
```
|
73
|
-
|
74
48
|
## Supported Ruby Versions
|
75
49
|
|
76
|
-
This library is supported on Ruby 2.
|
50
|
+
This library is supported on Ruby 2.6+.
|
77
51
|
|
78
52
|
Google provides official support for Ruby versions that are actively supported
|
79
53
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
80
|
-
in security maintenance, and not end of life.
|
81
|
-
|
82
|
-
|
83
|
-
|
54
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
55
|
+
still work, but are unsupported and not recommended. See
|
56
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
57
|
+
support schedule.
|
84
58
|
|
85
59
|
## Which client should I use?
|
86
60
|
|
@@ -49,11 +49,13 @@ module Google
|
|
49
49
|
#
|
50
50
|
# By default, this returns an instance of
|
51
51
|
# [Google::Cloud::VideoIntelligence::V1::VideoIntelligenceService::Client](https://googleapis.dev/ruby/google-cloud-video_intelligence-v1/latest/Google/Cloud/VideoIntelligence/V1/VideoIntelligenceService/Client.html)
|
52
|
-
# for version V1 of the API.
|
53
|
-
# However, you can specify
|
52
|
+
# for a gRPC client for version V1 of the API.
|
53
|
+
# However, you can specify a different API version by passing it in the
|
54
54
|
# `version` parameter. If the VideoIntelligenceService service is
|
55
55
|
# supported by that API version, and the corresponding gem is available, the
|
56
56
|
# appropriate versioned client will be returned.
|
57
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
58
|
+
# the `transport` parameter.
|
57
59
|
#
|
58
60
|
# ## About VideoIntelligenceService
|
59
61
|
#
|
@@ -61,17 +63,19 @@ module Google
|
|
61
63
|
#
|
62
64
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
63
65
|
# Defaults to `:v1`.
|
64
|
-
# @
|
66
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
67
|
+
# @return [::Object] A client object for the specified version.
|
65
68
|
#
|
66
|
-
def self.video_intelligence_service version: :v1, &block
|
69
|
+
def self.video_intelligence_service version: :v1, transport: :grpc, &block
|
67
70
|
require "google/cloud/video_intelligence/#{version.to_s.downcase}"
|
68
71
|
|
69
72
|
package_name = Google::Cloud::VideoIntelligence
|
70
73
|
.constants
|
71
74
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
72
75
|
.first
|
73
|
-
|
74
|
-
|
76
|
+
service_module = Google::Cloud::VideoIntelligence.const_get(package_name).const_get(:VideoIntelligenceService)
|
77
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
78
|
+
service_module.const_get(:Client).new(&block)
|
75
79
|
end
|
76
80
|
|
77
81
|
##
|
@@ -91,7 +95,7 @@ module Google
|
|
91
95
|
# * `timeout` (*type:* `Numeric`) -
|
92
96
|
# Default timeout in seconds.
|
93
97
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
94
|
-
# Additional
|
98
|
+
# Additional headers to be sent with the call.
|
95
99
|
# * `retry_policy` (*type:* `Hash`) -
|
96
100
|
# The retry policy. The value is a hash with the following keys:
|
97
101
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-video_intelligence
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.8'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.8'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.6'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.a
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.6'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
@@ -70,7 +70,7 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
73
|
+
version: '0.6'
|
74
74
|
- - "<"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 2.a
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '0.
|
83
|
+
version: '0.6'
|
84
84
|
- - "<"
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 2.a
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ">="
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '0.
|
93
|
+
version: '0.7'
|
94
94
|
- - "<"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.a
|
@@ -100,7 +100,7 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
103
|
+
version: '0.7'
|
104
104
|
- - "<"
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: 2.a
|
@@ -110,28 +110,28 @@ dependencies:
|
|
110
110
|
requirements:
|
111
111
|
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: 1.
|
113
|
+
version: 1.26.1
|
114
114
|
type: :development
|
115
115
|
prerelease: false
|
116
116
|
version_requirements: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
118
|
- - "~>"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 1.
|
120
|
+
version: 1.26.1
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: minitest
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
125
|
- - "~>"
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version: '5.
|
127
|
+
version: '5.16'
|
128
128
|
type: :development
|
129
129
|
prerelease: false
|
130
130
|
version_requirements: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
132
|
- - "~>"
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: '5.
|
134
|
+
version: '5.16'
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: minitest-focus
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,14 +166,14 @@ dependencies:
|
|
166
166
|
requirements:
|
167
167
|
- - ">="
|
168
168
|
- !ruby/object:Gem::Version
|
169
|
-
version: '
|
169
|
+
version: '13.0'
|
170
170
|
type: :development
|
171
171
|
prerelease: false
|
172
172
|
version_requirements: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
174
|
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
version: '
|
176
|
+
version: '13.0'
|
177
177
|
- !ruby/object:Gem::Dependency
|
178
178
|
name: redcarpet
|
179
179
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,14 +244,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
244
|
requirements:
|
245
245
|
- - ">="
|
246
246
|
- !ruby/object:Gem::Version
|
247
|
-
version: '2.
|
247
|
+
version: '2.6'
|
248
248
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
249
|
requirements:
|
250
250
|
- - ">="
|
251
251
|
- !ruby/object:Gem::Version
|
252
252
|
version: '0'
|
253
253
|
requirements: []
|
254
|
-
rubygems_version: 3.
|
254
|
+
rubygems_version: 3.4.2
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|
257
257
|
summary: API Client library for the Cloud Video Intelligence API
|