google-cloud-service_directory-v1beta1 0.3.1 → 0.4.4

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: 1dcd92c5ef7a7fd4e755e651c23400f446db0397ca2f957d43c76ffc62e082e2
4
- data.tar.gz: cd3dd9cb8411328e3aaa2c73e44a71362a829048797a4067c6113fbd48d3bdab
3
+ metadata.gz: 0e14e97cb1cb5ef8e5c2b09d712512c4d24b52655e4103ec5f50cc46aa267d16
4
+ data.tar.gz: 5edc6a20648523933bf9113040efff944a8ec2524d26f56e9e52714b8ad2371f
5
5
  SHA512:
6
- metadata.gz: 6f432d660a9e770611247dced49e703650307e227bf99003e9775b1d319c24dc22f90484708e1f21916d6d15f60ca47b7380b1ebe818ba159333de54a86cea16
7
- data.tar.gz: 65646551df64c2a7b7d83e5a0beed1dd8e74216f7c5614d41ff738840588f5d637121f20b911048a21e7307c7ccda2394402676a91289a5f0740cc19a36e8efb
6
+ metadata.gz: d4d9387f51e08b091965ef65e12bbd880781f3cc88794214c0d9d50dce43f43af0f31f582778d6552137043a2e82762978642408d9ee951915bdf56669d7a2bc
7
+ data.tar.gz: ec71ac4a55759c45f5c8389c83b91b2ea81e5627b72258bc7c7abe6fa7def80d73eac6fd2d6a0e7a2b9e97bde60c0bbb69fe2db491f22ca9f1c5a6d5daa473fe
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/servicedirectory.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.resolve_service request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-service_directory-v1beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/service-directory)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -70,7 +70,7 @@ module Google
70
70
  initial_delay: 1.0,
71
71
  max_delay: 60.0,
72
72
  multiplier: 1.3,
73
- retry_codes: ["UNAVAILABLE", "UNKNOWN"]
73
+ retry_codes: [14, 2]
74
74
  }
75
75
 
76
76
  default_config
@@ -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
@@ -351,7 +356,7 @@ module Google
351
356
  def rpcs
352
357
  @rpcs ||= begin
353
358
  parent_rpcs = nil
354
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
359
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
355
360
  Rpcs.new parent_rpcs
356
361
  end
357
362
  end
@@ -84,7 +84,7 @@ module Google
84
84
  initial_delay: 1.0,
85
85
  max_delay: 60.0,
86
86
  multiplier: 1.3,
87
- retry_codes: ["UNAVAILABLE", "UNKNOWN"]
87
+ retry_codes: [14, 2]
88
88
  }
89
89
 
90
90
  default_config
@@ -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
@@ -1625,7 +1630,7 @@ module Google
1625
1630
  def rpcs
1626
1631
  @rpcs ||= begin
1627
1632
  parent_rpcs = nil
1628
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1633
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1629
1634
  Rpcs.new parent_rpcs
1630
1635
  end
1631
1636
  end
@@ -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.4"
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.4
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-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -154,7 +182,6 @@ files:
154
182
  - LICENSE.md
155
183
  - README.md
156
184
  - lib/google-cloud-service_directory-v1beta1.rb
157
- - lib/google/cloud/common_resources_pb.rb
158
185
  - lib/google/cloud/service_directory/v1beta1.rb
159
186
  - lib/google/cloud/service_directory/v1beta1/lookup_service.rb
160
187
  - lib/google/cloud/service_directory/v1beta1/lookup_service/client.rb
@@ -205,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
232
  - !ruby/object:Gem::Version
206
233
  version: '0'
207
234
  requirements: []
208
- rubygems_version: 3.0.6
235
+ rubygems_version: 3.1.3
209
236
  signing_key:
210
237
  specification_version: 4
211
238
  summary: API Client library for the Service Directory V1beta1 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end