google-cloud-text_to_speech-v1beta1 0.1.0 → 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: c8f488af7ab243b1619a563026892982bdc11fffbf76a99eab4f82fadf34f96a
4
- data.tar.gz: c00f383126e782e54dd742d799eab2961520278168dade281a73b75b8cad94ff
3
+ metadata.gz: a269d413dc9507e8a73950320859e20757f0fd7ef14357fc018508fc6f3a4c5c
4
+ data.tar.gz: 97fd12d0bb879f1c8ce3a2459b3f81a0118b975523fc419518a1db2ca6f8f8c8
5
5
  SHA512:
6
- metadata.gz: 0b9bdfc557dbec143e6c969d5a66729b2a897bfc99e4c95f9d93a31b19be743bc906e0fed23bdb69c5f4fa18260757d4557aa349c221f2a007585db5383e1377
7
- data.tar.gz: 97d571a59649bdc98a96498511d02dfee7216507f8343a131153eace7aee289383ba0607940afe0398958a12a609d0c3b283f7c682777e3313087fa18baf6b11
6
+ metadata.gz: abfc41e8f401cd77f6f19933e6be28454594c28b84c916d75962c54c3e4de5c8dcd88af536f2ed0547954222b651bb1faeec963bffa45bf64c7003c9a6618baf
7
+ data.tar.gz: 92864f13d2368e5e09cff57e11b79dd7e0f4a706983f8e07701b65247ffb5522a50b140dd468e84702ff908708af378a7170babb680b80ffe5076406b8510884
@@ -144,7 +144,8 @@ module Google
144
144
  if credentials.is_a?(String) || credentials.is_a?(Hash)
145
145
  credentials = Credentials.new credentials, scope: @config.scope
146
146
  end
147
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
147
+ @quota_project_id = @config.quota_project
148
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
148
149
 
149
150
  @text_to_speech_stub = ::Gapic::ServiceStub.new(
150
151
  ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Stub,
@@ -365,24 +366,28 @@ module Google
365
366
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
366
367
  # trigger a retry.
367
368
  # @return [::Hash]
369
+ # @!attribute [rw] quota_project
370
+ # A separate project against which to charge quota.
371
+ # @return [::String]
368
372
  #
369
373
  class Configuration
370
374
  extend ::Gapic::Config
371
375
 
372
- config_attr :endpoint, "texttospeech.googleapis.com", String
373
- config_attr :credentials, nil do |value|
376
+ config_attr :endpoint, "texttospeech.googleapis.com", ::String
377
+ config_attr :credentials, nil do |value|
374
378
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
375
379
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
376
380
  allowed.any? { |klass| klass === value }
377
381
  end
378
- config_attr :scope, nil, ::String, ::Array, nil
379
- config_attr :lib_name, nil, ::String, nil
380
- config_attr :lib_version, nil, ::String, nil
381
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
382
- config_attr :interceptors, nil, ::Array, nil
383
- config_attr :timeout, nil, ::Numeric, nil
384
- config_attr :metadata, nil, ::Hash, nil
385
- config_attr :retry_policy, nil, ::Hash, Proc, nil
382
+ config_attr :scope, nil, ::String, ::Array, nil
383
+ config_attr :lib_name, nil, ::String, nil
384
+ config_attr :lib_version, nil, ::String, nil
385
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
386
+ config_attr :interceptors, nil, ::Array, nil
387
+ config_attr :timeout, nil, ::Numeric, nil
388
+ config_attr :metadata, nil, ::Hash, nil
389
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
390
+ config_attr :quota_project, nil, ::String, nil
386
391
 
387
392
  # @private
388
393
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module TextToSpeech
23
23
  module V1beta1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-text_to_speech-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
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-06 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