google-cloud-service_directory-v1beta1 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dcd92c5ef7a7fd4e755e651c23400f446db0397ca2f957d43c76ffc62e082e2
4
- data.tar.gz: cd3dd9cb8411328e3aaa2c73e44a71362a829048797a4067c6113fbd48d3bdab
3
+ metadata.gz: 37f6620800f84756c9457e60a02fac1343ed345d126ef13ce0fc4ce3f39d7baf
4
+ data.tar.gz: 4a44070a4a52a3ea379d2245d69e78ef41d7e3ce7a9962600c1cb7617742efe2
5
5
  SHA512:
6
- metadata.gz: 6f432d660a9e770611247dced49e703650307e227bf99003e9775b1d319c24dc22f90484708e1f21916d6d15f60ca47b7380b1ebe818ba159333de54a86cea16
7
- data.tar.gz: 65646551df64c2a7b7d83e5a0beed1dd8e74216f7c5614d41ff738840588f5d637121f20b911048a21e7307c7ccda2394402676a91289a5f0740cc19a36e8efb
6
+ metadata.gz: 10e437ea9b9fa1373433b45c33ad5db9cf9f5aa5bf0fabd46d46a1182708beabedbcb0431fc45c7992773ff73ab1f0e77fc0ddbfb83a6bfbb01a465f63b36364
7
+ data.tar.gz: 7d76ccd8d90e0b7bb8ab3639b00feacf170571825c1d0cd19e9541b38354712b2f7a9e441fc402126a99af5792d73b1aca0bfc11025e91b14f366099e2796372
@@ -138,7 +138,8 @@ module Google
138
138
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
139
  credentials = Credentials.new credentials, scope: @config.scope
140
140
  end
141
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
141
+ @quota_project_id = @config.quota_project
142
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
142
143
 
143
144
  @lookup_service_stub = ::Gapic::ServiceStub.new(
144
145
  ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Stub,
@@ -318,24 +319,28 @@ module Google
318
319
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
319
320
  # trigger a retry.
320
321
  # @return [::Hash]
322
+ # @!attribute [rw] quota_project
323
+ # A separate project against which to charge quota.
324
+ # @return [::String]
321
325
  #
322
326
  class Configuration
323
327
  extend ::Gapic::Config
324
328
 
325
- config_attr :endpoint, "servicedirectory.googleapis.com", String
326
- config_attr :credentials, nil do |value|
329
+ config_attr :endpoint, "servicedirectory.googleapis.com", ::String
330
+ config_attr :credentials, nil do |value|
327
331
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
328
332
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
329
333
  allowed.any? { |klass| klass === value }
330
334
  end
331
- config_attr :scope, nil, ::String, ::Array, nil
332
- config_attr :lib_name, nil, ::String, nil
333
- config_attr :lib_version, nil, ::String, nil
334
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
335
- config_attr :interceptors, nil, ::Array, nil
336
- config_attr :timeout, nil, ::Numeric, nil
337
- config_attr :metadata, nil, ::Hash, nil
338
- config_attr :retry_policy, nil, ::Hash, Proc, nil
335
+ config_attr :scope, nil, ::String, ::Array, nil
336
+ config_attr :lib_name, nil, ::String, nil
337
+ config_attr :lib_version, nil, ::String, nil
338
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
339
+ config_attr :interceptors, nil, ::Array, nil
340
+ config_attr :timeout, nil, ::Numeric, nil
341
+ config_attr :metadata, nil, ::Hash, nil
342
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
343
+ config_attr :quota_project, nil, ::String, nil
339
344
 
340
345
  # @private
341
346
  def initialize parent_config = nil
@@ -152,7 +152,8 @@ module Google
152
152
  if credentials.is_a?(String) || credentials.is_a?(Hash)
153
153
  credentials = Credentials.new credentials, scope: @config.scope
154
154
  end
155
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
155
+ @quota_project_id = @config.quota_project
156
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
156
157
 
157
158
  @registration_service_stub = ::Gapic::ServiceStub.new(
158
159
  ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Stub,
@@ -1592,24 +1593,28 @@ module Google
1592
1593
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1593
1594
  # trigger a retry.
1594
1595
  # @return [::Hash]
1596
+ # @!attribute [rw] quota_project
1597
+ # A separate project against which to charge quota.
1598
+ # @return [::String]
1595
1599
  #
1596
1600
  class Configuration
1597
1601
  extend ::Gapic::Config
1598
1602
 
1599
- config_attr :endpoint, "servicedirectory.googleapis.com", String
1600
- config_attr :credentials, nil do |value|
1603
+ config_attr :endpoint, "servicedirectory.googleapis.com", ::String
1604
+ config_attr :credentials, nil do |value|
1601
1605
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1602
1606
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1603
1607
  allowed.any? { |klass| klass === value }
1604
1608
  end
1605
- config_attr :scope, nil, ::String, ::Array, nil
1606
- config_attr :lib_name, nil, ::String, nil
1607
- config_attr :lib_version, nil, ::String, nil
1608
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1609
- config_attr :interceptors, nil, ::Array, nil
1610
- config_attr :timeout, nil, ::Numeric, nil
1611
- config_attr :metadata, nil, ::Hash, nil
1612
- config_attr :retry_policy, nil, ::Hash, Proc, nil
1609
+ config_attr :scope, nil, ::String, ::Array, nil
1610
+ config_attr :lib_name, nil, ::String, nil
1611
+ config_attr :lib_version, nil, ::String, nil
1612
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1613
+ config_attr :interceptors, nil, ::Array, nil
1614
+ config_attr :timeout, nil, ::Numeric, nil
1615
+ config_attr :metadata, nil, ::Hash, nil
1616
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1617
+ config_attr :quota_project, nil, ::String, nil
1613
1618
 
1614
1619
  # @private
1615
1620
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceDirectory
23
23
  module V1beta1
24
- VERSION = "0.3.1"
24
+ VERSION = "0.4.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-service_directory-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.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
@@ -78,14 +78,42 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '5.10'
81
+ version: '5.14'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '5.10'
88
+ version: '5.14'
89
+ - !ruby/object:Gem::Dependency
90
+ name: minitest-focus
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.1'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: minitest-rg
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '5.2'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '5.2'
89
117
  - !ruby/object:Gem::Dependency
90
118
  name: rake
91
119
  requirement: !ruby/object:Gem::Requirement