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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37f6620800f84756c9457e60a02fac1343ed345d126ef13ce0fc4ce3f39d7baf
|
4
|
+
data.tar.gz: 4a44070a4a52a3ea379d2245d69e78ef41d7e3ce7a9962600c1cb7617742efe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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,
|
326
|
-
config_attr :credentials,
|
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,
|
332
|
-
config_attr :lib_name,
|
333
|
-
config_attr :lib_version,
|
334
|
-
config_attr(:channel_args,
|
335
|
-
config_attr :interceptors,
|
336
|
-
config_attr :timeout,
|
337
|
-
config_attr :metadata,
|
338
|
-
config_attr :retry_policy,
|
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 =
|
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,
|
1600
|
-
config_attr :credentials,
|
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,
|
1606
|
-
config_attr :lib_name,
|
1607
|
-
config_attr :lib_version,
|
1608
|
-
config_attr(:channel_args,
|
1609
|
-
config_attr :interceptors,
|
1610
|
-
config_attr :timeout,
|
1611
|
-
config_attr :metadata,
|
1612
|
-
config_attr :retry_policy,
|
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
|
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.
|
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-
|
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.
|
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.
|
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
|