google-cloud-video_intelligence-v1p2beta1 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5de89a3b804df6e414b61a1a787b4c150670d8048cd55a3fbc2306db78caced9
4
- data.tar.gz: ce7b4b51dbf52b3d56121b72291957f23d729df33c9c16c121da45c08c8004c9
3
+ metadata.gz: 6cd505e079feef9d6eff3f7c673fa6f9550422246314e4d8eefabcd5c7977180
4
+ data.tar.gz: bc70c1fbb875e23ff14a395574c54b4b3b5fac7bfef6e518f8209dcde4cc1205
5
5
  SHA512:
6
- metadata.gz: 17daf3a8a7c3203fd89dcd368f0be661908e15123132d25784bbac7cb627f74df4689adb83165e8102633fd3394690f843f2bfeab115d3e8b84f8aaa613b1a16
7
- data.tar.gz: fd6c53553377657df3c024e0be9fe18bc13c217054728e7c02f57f52344eb4f6ea690a4fbc6a8b8f0cb5d788667a9bee99ed91c12042c8cd0d03995421bcf990
6
+ metadata.gz: f60f816329534c155ed819542c590be1995737208bfc2bfaa631ad2e9a3aa73f4fc4e57bc3973fa880b8bdf96c92ebeaf20c3266294b478f2da787386e8c9506
7
+ data.tar.gz: 2b0bf2f1bc3e43ce47e0ff7302da57972e6498a0a38015ed3910ba80c84ed811adb51125e67f5b519c348390c93b6a53e5770d877e63e612d1973eff04804e95
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-v1p2beta1/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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module VideoIntelligence
23
23
  module V1p2beta1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
@@ -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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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? :rpcs
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? :rpcs
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-v1p2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
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-05-21 00:00:00.000000000 Z
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.2'
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.2'
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-v1p2beta1.rb
166
- - lib/google/cloud/common_resources_pb.rb
167
166
  - lib/google/cloud/video_intelligence/v1p2beta1.rb
168
167
  - lib/google/cloud/video_intelligence/v1p2beta1/version.rb
169
168
  - lib/google/cloud/video_intelligence/v1p2beta1/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.0.6
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 V1p2beta1 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