google-cloud-video_intelligence-v1 0.2.0 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/video_intelligence/v1/version.rb +1 -1
- data/lib/google/cloud/video_intelligence/v1/video_intelligence_service/client.rb +3 -3
- data/lib/google/cloud/video_intelligence/v1/video_intelligence_service/operations.rb +4 -2
- metadata +5 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec09d8dff4410db7b8ddf06dd16fcd706ef753316b4f3424525de9b4c2b9e91
|
4
|
+
data.tar.gz: fa66c1aadc62c36bd172c5abedb38fa93f35942cb837e4551ca3e1cfd3569ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcfd7394b0c6e0c1b030190d65799a78bc86f5760d8ba9a08dca625f515352bbaaf71c56fde4f28ce6f141d6546744c44f0fb5fc93c6a1251a554424c6300cde
|
7
|
+
data.tar.gz: a2cd5df1180663113197a28391e8b1b09b9f62fda1edc6e8e69de32936eb9f2bff611242ce02f61c94723aabb1b332609ac6ff317802a3a3fe9c4f6841852bd3
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/videointelligence.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.annotate_video request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-video_intelligence-v1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/video-intelligence)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
initial_delay: 1.0,
|
69
69
|
max_delay: 120.0,
|
70
70
|
multiplier: 2.5,
|
71
|
-
retry_codes: [
|
71
|
+
retry_codes: [14, 4]
|
72
72
|
}
|
73
73
|
|
74
74
|
default_config
|
@@ -339,7 +339,7 @@ module Google
|
|
339
339
|
|
340
340
|
config_attr :endpoint, "videointelligence.googleapis.com", ::String
|
341
341
|
config_attr :credentials, nil do |value|
|
342
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
342
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
343
343
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
344
344
|
allowed.any? { |klass| klass === value }
|
345
345
|
end
|
@@ -367,7 +367,7 @@ module Google
|
|
367
367
|
def rpcs
|
368
368
|
@rpcs ||= begin
|
369
369
|
parent_rpcs = nil
|
370
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
370
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
371
371
|
Rpcs.new parent_rpcs
|
372
372
|
end
|
373
373
|
end
|
@@ -85,6 +85,8 @@ module Google
|
|
85
85
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
|
+
@quota_project_id = @config.quota_project
|
89
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
88
90
|
|
89
91
|
@operations_stub = ::Gapic::ServiceStub.new(
|
90
92
|
::Google::Longrunning::Operations::Stub,
|
@@ -473,7 +475,7 @@ module Google
|
|
473
475
|
|
474
476
|
config_attr :endpoint, "videointelligence.googleapis.com", ::String
|
475
477
|
config_attr :credentials, nil do |value|
|
476
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
477
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
478
480
|
allowed.any? { |klass| klass === value }
|
479
481
|
end
|
@@ -501,7 +503,7 @@ module Google
|
|
501
503
|
def rpcs
|
502
504
|
@rpcs ||= begin
|
503
505
|
parent_rpcs = nil
|
504
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
506
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
505
507
|
Rpcs.new parent_rpcs
|
506
508
|
end
|
507
509
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-video_intelligence-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,7 +163,6 @@ files:
|
|
163
163
|
- LICENSE.md
|
164
164
|
- README.md
|
165
165
|
- lib/google-cloud-video_intelligence-v1.rb
|
166
|
-
- lib/google/cloud/common_resources_pb.rb
|
167
166
|
- lib/google/cloud/video_intelligence/v1.rb
|
168
167
|
- lib/google/cloud/video_intelligence/v1/version.rb
|
169
168
|
- lib/google/cloud/video_intelligence/v1/video_intelligence_service.rb
|
@@ -201,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
200
|
- !ruby/object:Gem::Version
|
202
201
|
version: '0'
|
203
202
|
requirements: []
|
204
|
-
rubygems_version: 3.
|
203
|
+
rubygems_version: 3.1.3
|
205
204
|
signing_key:
|
206
205
|
specification_version: 4
|
207
206
|
summary: API Client library for the Cloud Video Intelligence V1 API
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|