google-cloud-video_intelligence-v1beta2 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: 7198565517e41e634b4c8af3457a87231661bd8c11f49de117266531a8006fa3
4
- data.tar.gz: 32ce72d697a6f8272c47639a9de2c7a984ab387a99e00b0fe6db1e9e34d8bebf
3
+ metadata.gz: 0a37717426926676b68555a3350a482ba4d8c33040775408f5ef16f570f08538
4
+ data.tar.gz: 1a58dfca859be526a8ea854b3d468ffe18122b7ea0520f1865659c955b7cf527
5
5
  SHA512:
6
- metadata.gz: af01362769d0fe2f3910897c4125bdc92babd7a437e2a058afc911c54d8c76ae62890bd8f0050a5d921888ebddfbcef07d61101d13528eafe61b967d7a51891e
7
- data.tar.gz: e5f7018d0732a4feb25a08f1635efbbb6ebefa9801d1c0aefc7239091670370d439c9a84b8898b4bd38a37b373454719446c1cdd772155a88db6b90a5110877e
6
+ metadata.gz: 19f0bf5c952a43ffe2664426d5e519408e2a89c1687f7a4dff5a5026cde11a51872af1e8dffaf00984e284175f1fc6190e6208df27f0fd330c58ee7f29ad8eac
7
+ data.tar.gz: bbb0a8ca4a1fc84262acb4f5015e1049d6d9f15508ea8ff0baaaba9d0161b0be2f071b2a13ecf045088bd6a28aeb8534a6c64cf31102a55bf837cdafcad2dcc7
@@ -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.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-v1beta2
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-21 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