google-cloud-video_intelligence-v1 0.1.1 → 0.2.0

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: bb794509fdc8fe13624853834ad98abe62094378eeb4a1f8ae18ef81f7187e56
4
- data.tar.gz: 1a0848eadeb79c85273037ee2c35e6bd3992aeabb4408dd6d8347d7eb8ac89c0
3
+ metadata.gz: 5902075199415429459b7e8c3ae784b9f8c6d7976ed4ce81d47536d05229e143
4
+ data.tar.gz: 4fc4a222fbfcdb412cebe007bf819ccd0f3fe55ad80b44827f1ec9cef0d68ce6
5
5
  SHA512:
6
- metadata.gz: 62ad732e6329579c9fe4957a88565fc3113fcb40c84a2cd1187e6bf8742589531255f8018cea686ee8497f712f7a80264cab4feda72504b00432659a610584ad
7
- data.tar.gz: c06fcf53bf88afba63c18257bf6c29dc71a57bde53b902b91a76f1ea0f64123cf0d2eccfcd3e200ce5db7dd583561f32ee345bc21fa366a52fd590fbb0292f37
6
+ metadata.gz: bd3024fb509d590c2cec3df1e5f11ef66119724adba7032eb8b8db3b847b2feb6581a860ee48be4a3a004ef4280b28de13c95c93e600ec7ab351f113e1399d13
7
+ data.tar.gz: 6bc33c16be5280ad97b3a3d376587f4e6435a81111b5437989306d5ee5baf8dd7130d9254b161facc985f3e7e2f6bf52fca3f7cbf2e5969d5ba84ff1bcae68d7
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module VideoIntelligence
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -464,24 +464,28 @@ module Google
464
464
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
465
  # trigger a retry.
466
466
  # @return [::Hash]
467
+ # @!attribute [rw] quota_project
468
+ # A separate project against which to charge quota.
469
+ # @return [::String]
467
470
  #
468
471
  class Configuration
469
472
  extend ::Gapic::Config
470
473
 
471
- config_attr :endpoint, "videointelligence.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "videointelligence.googleapis.com", ::String
475
+ config_attr :credentials, nil do |value|
473
476
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
477
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
478
  allowed.any? { |klass| klass === value }
476
479
  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
480
+ config_attr :scope, nil, ::String, ::Array, nil
481
+ config_attr :lib_name, nil, ::String, nil
482
+ config_attr :lib_version, nil, ::String, nil
483
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
484
+ config_attr :interceptors, nil, ::Array, nil
485
+ config_attr :timeout, nil, ::Numeric, nil
486
+ config_attr :metadata, nil, ::Hash, nil
487
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
488
+ config_attr :quota_project, nil, ::String, nil
485
489
 
486
490
  # @private
487
491
  def initialize parent_config = nil
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.1.1
4
+ version: 0.2.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: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -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