google-cloud-video_intelligence-v1beta2 0.1.1 → 0.2.4

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: 7198565517e41e634b4c8af3457a87231661bd8c11f49de117266531a8006fa3
4
- data.tar.gz: 32ce72d697a6f8272c47639a9de2c7a984ab387a99e00b0fe6db1e9e34d8bebf
3
+ metadata.gz: 55ea8b6559767cdac4954f350a670b4bbe63d293ad2c889b35f58ddb3b848fec
4
+ data.tar.gz: 6de36fe15145030222a6d11a8c8deb3ff36c2d7d22961797fab513fe0e17e3c0
5
5
  SHA512:
6
- metadata.gz: af01362769d0fe2f3910897c4125bdc92babd7a437e2a058afc911c54d8c76ae62890bd8f0050a5d921888ebddfbcef07d61101d13528eafe61b967d7a51891e
7
- data.tar.gz: e5f7018d0732a4feb25a08f1635efbbb6ebefa9801d1c0aefc7239091670370d439c9a84b8898b4bd38a37b373454719446c1cdd772155a88db6b90a5110877e
6
+ metadata.gz: 6a35fb48c560953a472eaf9b4c3b34029319df585ec7d7db44ea76f2e3d5e9a1f29165571d7a1585202c7ac57875d387ee2648656027b0911806a6bee6af1492
7
+ data.tar.gz: 309c85b61dac722c9ef9a204631b4d22cad829f7e83cc6193e98da37e53ce14948976d3668f7adf66c7a56df28aa1de0847aa687ef1347d693b07b245ded6c2a
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-v1beta2/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 V1beta2
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.4"
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
@@ -136,7 +136,8 @@ module Google
136
136
  if credentials.is_a?(String) || credentials.is_a?(Hash)
137
137
  credentials = Credentials.new credentials, scope: @config.scope
138
138
  end
139
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
139
+ @quota_project_id = @config.quota_project
140
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
141
142
  @operations_client = Operations.new do |config|
142
143
  config.credentials = credentials
@@ -329,24 +330,28 @@ module Google
329
330
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
330
331
  # trigger a retry.
331
332
  # @return [::Hash]
333
+ # @!attribute [rw] quota_project
334
+ # A separate project against which to charge quota.
335
+ # @return [::String]
332
336
  #
333
337
  class Configuration
334
338
  extend ::Gapic::Config
335
339
 
336
- config_attr :endpoint, "videointelligence.googleapis.com", String
337
- config_attr :credentials, nil do |value|
340
+ config_attr :endpoint, "videointelligence.googleapis.com", ::String
341
+ config_attr :credentials, nil do |value|
338
342
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
339
343
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
340
344
  allowed.any? { |klass| klass === value }
341
345
  end
342
- config_attr :scope, nil, ::String, ::Array, nil
343
- config_attr :lib_name, nil, ::String, nil
344
- config_attr :lib_version, nil, ::String, nil
345
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
346
- config_attr :interceptors, nil, ::Array, nil
347
- config_attr :timeout, nil, ::Numeric, nil
348
- config_attr :metadata, nil, ::Hash, nil
349
- config_attr :retry_policy, nil, ::Hash, Proc, nil
346
+ config_attr :scope, nil, ::String, ::Array, nil
347
+ config_attr :lib_name, nil, ::String, nil
348
+ config_attr :lib_version, nil, ::String, nil
349
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
350
+ config_attr :interceptors, nil, ::Array, nil
351
+ config_attr :timeout, nil, ::Numeric, nil
352
+ config_attr :metadata, nil, ::Hash, nil
353
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
354
+ config_attr :quota_project, nil, ::String, nil
350
355
 
351
356
  # @private
352
357
  def initialize parent_config = nil
@@ -362,7 +367,7 @@ module Google
362
367
  def rpcs
363
368
  @rpcs ||= begin
364
369
  parent_rpcs = nil
365
- 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)
366
371
  Rpcs.new parent_rpcs
367
372
  end
368
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,
@@ -464,24 +466,28 @@ module Google
464
466
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
467
  # trigger a retry.
466
468
  # @return [::Hash]
469
+ # @!attribute [rw] quota_project
470
+ # A separate project against which to charge quota.
471
+ # @return [::String]
467
472
  #
468
473
  class Configuration
469
474
  extend ::Gapic::Config
470
475
 
471
- config_attr :endpoint, "videointelligence.googleapis.com", String
472
- config_attr :credentials, nil do |value|
476
+ config_attr :endpoint, "videointelligence.googleapis.com", ::String
477
+ config_attr :credentials, nil do |value|
473
478
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
480
  allowed.any? { |klass| klass === value }
476
481
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
482
+ config_attr :scope, nil, ::String, ::Array, nil
483
+ config_attr :lib_name, nil, ::String, nil
484
+ config_attr :lib_version, nil, ::String, nil
485
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
486
+ config_attr :interceptors, nil, ::Array, nil
487
+ config_attr :timeout, nil, ::Numeric, nil
488
+ config_attr :metadata, nil, ::Hash, nil
489
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
490
+ config_attr :quota_project, nil, ::String, nil
485
491
 
486
492
  # @private
487
493
  def initialize parent_config = nil
@@ -497,7 +503,7 @@ module Google
497
503
  def rpcs
498
504
  @rpcs ||= begin
499
505
  parent_rpcs = nil
500
- 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)
501
507
  Rpcs.new parent_rpcs
502
508
  end
503
509
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video_intelligence-v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.4
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-05 00:00:00.000000000 Z
11
+ date: 2020-08-07 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
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -135,7 +163,6 @@ files:
135
163
  - LICENSE.md
136
164
  - README.md
137
165
  - lib/google-cloud-video_intelligence-v1beta2.rb
138
- - lib/google/cloud/common_resources_pb.rb
139
166
  - lib/google/cloud/video_intelligence/v1beta2.rb
140
167
  - lib/google/cloud/video_intelligence/v1beta2/version.rb
141
168
  - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service.rb
@@ -173,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
200
  - !ruby/object:Gem::Version
174
201
  version: '0'
175
202
  requirements: []
176
- rubygems_version: 3.0.6
203
+ rubygems_version: 3.1.3
177
204
  signing_key:
178
205
  specification_version: 4
179
206
  summary: API Client library for the Cloud Video Intelligence V1beta2 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