google-cloud-video_intelligence-v1p1beta1 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/v1p1beta1/version.rb +1 -1
- data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service/client.rb +3 -3
- data/lib/google/cloud/video_intelligence/v1p1beta1/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: 2e1df1442618cb98082d987c1daa430bb670887bb9b978f3e7f5bac12f9399e7
|
4
|
+
data.tar.gz: 5e781c118c07357dee9559444f586b5f5408b8e2fbb93bb17fedef2a689b8475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01313c882ce7548e57db5ccc6e0093a1d7990be20347dae14bd5973db0ec7e3e91e2cf04e335114c9d3d88a2288cf0ed84d2f8f1b9d65a3faedf6300d3aa8b3c
|
7
|
+
data.tar.gz: 6a38a51a86e30e1abc9847ce7bd7f5da26a7242c5f1289ed03ccf4693a295dbcd1036cc775540d858a270337761566556f5309740be56515418d1cffe6816ec6
|
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-v1p1beta1/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-v1p1beta1
|
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-v1p1beta1.rb
|
166
|
-
- lib/google/cloud/common_resources_pb.rb
|
167
166
|
- lib/google/cloud/video_intelligence/v1p1beta1.rb
|
168
167
|
- lib/google/cloud/video_intelligence/v1p1beta1/version.rb
|
169
168
|
- lib/google/cloud/video_intelligence/v1p1beta1/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 V1p1beta1 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
|