google-cloud-text_to_speech-v1 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: 4f0cbfc5ddab6c910d7ee1d51b6d70b5642321dbffb4e68d31f9490723053c0e
4
- data.tar.gz: fb380be4769303744cbe2c3b316ad4c73c066772ec1a717fc9246ece648e702b
3
+ metadata.gz: ccbcbda3410051cbc869abef68be6816fc04cb020a7d9bdd0bfdc4eb0ca5286b
4
+ data.tar.gz: dcbe173bb0403d3fff34550aed7786d9194cd85db697392c9d32908e9d873451
5
5
  SHA512:
6
- metadata.gz: 5b58a62b708c9901fdb7c4018ccb5843c396465e328074555a473b7fe9c4af1cf1858614459f3eddef9c15308932f415d94a617aed5de1753fcad43ed80bffec
7
- data.tar.gz: 54ff30a78e5cb052012fff832a86fc638a094e5a9687a3cc02a7a4db564ee7aa311721083024a2089fe27648decde9d073f4a8c5a47923d434b8b0afbcbd06d8
6
+ metadata.gz: 17bb96acde30e55becd89e1de5fb29f9ab7e63de9427d55aa1c188a34da0699a760f8b6cac01c6a4068c678e7ebcc5dc01c5d37f74cabae9783d1323e99b6cac
7
+ data.tar.gz: e4ed982e4750bdb69dfc886d97ef593a8561a6a1b7e29db4524921e336c2f8949d8c7eb47e94a24ff64b86be83ad1a787eecd3a7c00cb996a9068abcc28c5878
@@ -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::V1::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 V1
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-v1
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-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