google-cloud-service_directory-v1beta1 0.4.5 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,3 +34,6 @@ module Google
34
34
  end
35
35
  end
36
36
  end
37
+
38
+ helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
39
+ require "google/cloud/service_directory/v1beta1/_helpers" if ::File.file? helper_path
@@ -60,7 +60,7 @@ module Google
60
60
  parent_config = while namespace.any?
61
61
  parent_name = namespace.join "::"
62
62
  parent_const = const_get parent_name
63
- break parent_const.configure if parent_const&.respond_to? :configure
63
+ break parent_const.configure if parent_const.respond_to? :configure
64
64
  namespace.pop
65
65
  end
66
66
  default_config = Client::Configuration.new parent_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 15.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 1.0,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14, 2]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14, 2]
74
74
  }
75
75
 
76
76
  default_config
@@ -134,7 +134,13 @@ module Google
134
134
 
135
135
  # Create credentials
136
136
  credentials = @config.credentials
137
- credentials ||= Credentials.default scope: @config.scope
137
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
+ @config.endpoint == Client.configure.endpoint &&
141
+ !@config.endpoint.split(".").first.include?("-")
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
138
144
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
145
  credentials = Credentials.new credentials, scope: @config.scope
140
146
  end
@@ -181,22 +187,37 @@ module Google
181
187
  # @param endpoint_filter [::String]
182
188
  # Optional. The filter applied to the endpoints of the resolved service.
183
189
  #
184
- # General filter string syntax:
185
- # <field> <operator> <value> (<logical connector>)
186
- # <field> can be "name" or "metadata.<key>" for map field.
187
- # <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS and is
188
- # roughly the same as "=".
189
- # <value> must be the same data type as the field.
190
- # <logical connector> can be "AND, OR, NOT".
190
+ # General `filter` string syntax:
191
+ # `<field> <operator> <value> (<logical connector>)`
192
+ #
193
+ # * `<field>` can be `name`, `address`, `port`, or `metadata.<key>` for
194
+ # map field
195
+ # * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
196
+ # means `HAS`, and is roughly the same as `=`
197
+ # * `<value>` must be the same data type as field
198
+ # * `<logical connector>` can be `AND`, `OR`, `NOT`
191
199
  #
192
200
  # Examples of valid filters:
193
- # * "metadata.owner" returns Endpoints that have a label with the
194
- # key "owner", this is the same as "metadata:owner"
195
- # * "metadata.protocol=gRPC" returns Endpoints that have key/value
196
- # "protocol=gRPC"
197
- # * "metadata.owner!=sd AND metadata.foo=bar" returns
198
- # Endpoints that have "owner" field in metadata with a value that is not
199
- # "sd" AND have the key/value foo=bar.
201
+ #
202
+ # * `metadata.owner` returns endpoints that have a annotation with the key
203
+ # `owner`, this is the same as `metadata:owner`
204
+ # * `metadata.protocol=gRPC` returns endpoints that have key/value
205
+ # `protocol=gRPC`
206
+ # * `address=192.108.1.105` returns endpoints that have this address
207
+ # * `port>8080` returns endpoints that have port number larger than 8080
208
+ # *
209
+ # `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
210
+ # returns endpoints that have name that is alphabetically later than the
211
+ # string, so "endpoint-e" is returned but "endpoint-a" is not
212
+ # * `metadata.owner!=sd AND metadata.foo=bar` returns endpoints that have
213
+ # `owner` in annotation key but value is not `sd` AND have key/value
214
+ # `foo=bar`
215
+ # * `doesnotexist.foo=bar` returns an empty list. Note that endpoint
216
+ # doesn't have a field called "doesnotexist". Since the filter does not
217
+ # match any endpoint, it returns no results
218
+ #
219
+ # For more information about filtering, see
220
+ # [API Filtering](https://aip.dev/160).
200
221
  #
201
222
  # @yield [response, operation] Access the result along with the RPC operation
202
223
  # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
@@ -335,7 +356,7 @@ module Google
335
356
  config_attr :scope, nil, ::String, ::Array, nil
336
357
  config_attr :lib_name, nil, ::String, nil
337
358
  config_attr :lib_version, nil, ::String, nil
338
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
359
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
339
360
  config_attr :interceptors, nil, ::Array, nil
340
361
  config_attr :timeout, nil, ::Numeric, nil
341
362
  config_attr :metadata, nil, ::Hash, nil
@@ -356,7 +377,7 @@ module Google
356
377
  def rpcs
357
378
  @rpcs ||= begin
358
379
  parent_rpcs = nil
359
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
380
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
360
381
  Rpcs.new parent_rpcs
361
382
  end
362
383
  end
@@ -368,7 +389,7 @@ module Google
368
389
  # Each configuration object is of type `Gapic::Config::Method` and includes
369
390
  # the following configuration fields:
370
391
  #
371
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
392
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
372
393
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
373
394
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
374
395
  # include the following keys:
@@ -387,7 +408,7 @@ module Google
387
408
 
388
409
  # @private
389
410
  def initialize parent_rpcs = nil
390
- resolve_service_config = parent_rpcs&.resolve_service if parent_rpcs&.respond_to? :resolve_service
411
+ resolve_service_config = parent_rpcs.resolve_service if parent_rpcs.respond_to? :resolve_service
391
412
  @resolve_service = ::Gapic::Config::Method.new resolve_service_config
392
413
 
393
414
  yield self if block_given?
@@ -74,7 +74,7 @@ module Google
74
74
  parent_config = while namespace.any?
75
75
  parent_name = namespace.join "::"
76
76
  parent_const = const_get parent_name
77
- break parent_const.configure if parent_const&.respond_to? :configure
77
+ break parent_const.configure if parent_const.respond_to? :configure
78
78
  namespace.pop
79
79
  end
80
80
  default_config = Client::Configuration.new parent_config
@@ -82,9 +82,9 @@ module Google
82
82
  default_config.timeout = 15.0
83
83
  default_config.retry_policy = {
84
84
  initial_delay: 1.0,
85
- max_delay: 60.0,
86
- multiplier: 1.3,
87
- retry_codes: [14, 2]
85
+ max_delay: 60.0,
86
+ multiplier: 1.3,
87
+ retry_codes: [14, 2]
88
88
  }
89
89
 
90
90
  default_config
@@ -148,7 +148,13 @@ module Google
148
148
 
149
149
  # Create credentials
150
150
  credentials = @config.credentials
151
- credentials ||= Credentials.default scope: @config.scope
151
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
152
+ # but only if the default endpoint does not have a region prefix.
153
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
154
+ @config.endpoint == Client.configure.endpoint &&
155
+ !@config.endpoint.split(".").first.include?("-")
156
+ credentials ||= Credentials.default scope: @config.scope,
157
+ enable_self_signed_jwt: enable_self_signed_jwt
152
158
  if credentials.is_a?(String) || credentials.is_a?(Hash)
153
159
  credentials = Credentials.new credentials, scope: @config.scope
154
160
  end
@@ -167,7 +173,7 @@ module Google
167
173
  # Service calls
168
174
 
169
175
  ##
170
- # Creates a namespace, and returns the new Namespace.
176
+ # Creates a namespace, and returns the new namespace.
171
177
  #
172
178
  # @overload create_namespace(request, options = nil)
173
179
  # Pass arguments to `create_namespace` via a request object, either of type
@@ -262,46 +268,51 @@ module Google
262
268
  # the default parameter values, pass an empty Hash as a request object (see above).
263
269
  #
264
270
  # @param parent [::String]
265
- # Required. The resource name of the project and location whose namespaces we'd like to
266
- # list.
271
+ # Required. The resource name of the project and location whose namespaces you'd like
272
+ # to list.
267
273
  # @param page_size [::Integer]
268
274
  # Optional. The maximum number of items to return.
269
275
  # @param page_token [::String]
270
276
  # Optional. The next_page_token value returned from a previous List request, if any.
271
277
  # @param filter [::String]
272
- # Optional. The filter to list result by.
278
+ # Optional. The filter to list results by.
279
+ #
280
+ # General `filter` string syntax:
281
+ # `<field> <operator> <value> (<logical connector>)`
273
282
  #
274
- # General filter string syntax:
275
- # <field> <operator> <value> (<logical connector>)
276
- # <field> can be "name", or "labels.<key>" for map field.
277
- # <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and
278
- # is roughly the same as "=".
279
- # <value> must be the same data type as field.
280
- # <logical connector> can be "AND, OR, NOT".
283
+ # * `<field>` can be `name` or `labels.<key>` for map field
284
+ # * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
285
+ # means `HAS`, and is roughly the same as `=`
286
+ # * `<value>` must be the same data type as field
287
+ # * `<logical connector>` can be `AND`, `OR`, `NOT`
281
288
  #
282
289
  # Examples of valid filters:
283
- # * "labels.owner" returns Namespaces that have a label with the key "owner"
284
- # this is the same as "labels:owner".
285
- # * "labels.protocol=gRPC" returns Namespaces that have key/value
286
- # "protocol=gRPC".
287
- # * "name>projects/my-project/locations/us-east/namespaces/namespace-c"
288
- # returns Namespaces that have name that is alphabetically later than the
289
- # string, so "namespace-e" will be returned but "namespace-a" will not be.
290
- # * "labels.owner!=sd AND labels.foo=bar" returns Namespaces that have
291
- # "owner" in label key but value is not "sd" AND have key/value foo=bar.
292
- # * "doesnotexist.foo=bar" returns an empty list. Note that Namespace doesn't
293
- # have a field called "doesnotexist". Since the filter does not match any
294
- # Namespaces, it returns no results.
290
+ #
291
+ # * `labels.owner` returns namespaces that have a label with the key
292
+ # `owner`, this is the same as `labels:owner`
293
+ # * `labels.owner=sd` returns namespaces that have key/value `owner=sd`
294
+ # * `name>projects/my-project/locations/us-east1/namespaces/namespace-c`
295
+ # returns namespaces that have name that is alphabetically later than the
296
+ # string, so "namespace-e" is returned but "namespace-a" is not
297
+ # * `labels.owner!=sd AND labels.foo=bar` returns namespaces that have
298
+ # `owner` in label key but value is not `sd` AND have key/value `foo=bar`
299
+ # * `doesnotexist.foo=bar` returns an empty list. Note that namespace
300
+ # doesn't have a field called "doesnotexist". Since the filter does not
301
+ # match any namespaces, it returns no results
302
+ #
303
+ # For more information about filtering, see
304
+ # [API Filtering](https://aip.dev/160).
295
305
  # @param order_by [::String]
296
- # Optional. The order to list result by.
306
+ # Optional. The order to list results by.
307
+ #
308
+ # General `order_by` string syntax: `<field> (<asc|desc>) (,)`
297
309
  #
298
- # General order by string syntax:
299
- # <field> (<asc|desc>) (,)
300
- # <field> allows values \\{"name"}
301
- # <asc/desc> ascending or descending order by <field>. If this is left
302
- # blank, "asc" is used.
303
- # Note that an empty order_by string result in default order, which is order
304
- # by name in ascending order.
310
+ # * `<field>` allows value: `name`
311
+ # * `<asc|desc>` ascending or descending order by `<field>`. If this is
312
+ # left blank, `asc` is used
313
+ #
314
+ # Note that an empty `order_by` string results in default order, which is
315
+ # order by `name` in ascending order.
305
316
  #
306
317
  # @yield [response, operation] Access the result along with the RPC operation
307
318
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Namespace>]
@@ -551,7 +562,7 @@ module Google
551
562
  end
552
563
 
553
564
  ##
554
- # Creates a service, and returns the new Service.
565
+ # Creates a service, and returns the new service.
555
566
  #
556
567
  # @overload create_service(request, options = nil)
557
568
  # Pass arguments to `create_service` via a request object, either of type
@@ -645,7 +656,7 @@ module Google
645
656
  # the default parameter values, pass an empty Hash as a request object (see above).
646
657
  #
647
658
  # @param parent [::String]
648
- # Required. The resource name of the namespace whose services we'd
659
+ # Required. The resource name of the namespace whose services you'd
649
660
  # like to list.
650
661
  # @param page_size [::Integer]
651
662
  # Optional. The maximum number of items to return.
@@ -653,31 +664,47 @@ module Google
653
664
  # Optional. The next_page_token value returned from a previous List request,
654
665
  # if any.
655
666
  # @param filter [::String]
656
- # Optional. The filter to list result by.
667
+ # Optional. The filter to list results by.
668
+ #
669
+ # General `filter` string syntax:
670
+ # `<field> <operator> <value> (<logical connector>)`
657
671
  #
658
- # General filter string syntax:
659
- # <field> <operator> <value> (<logical connector>)
660
- # <field> can be "name", or "metadata.<key>" for map field.
661
- # <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and
662
- # is roughly the same as "=".
663
- # <value> must be the same data type as field.
664
- # <logical connector> can be "AND, OR, NOT".
672
+ # * `<field>` can be `name` or `metadata.<key>` for map field
673
+ # * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
674
+ # means `HAS`, and is roughly the same as `=`
675
+ # * `<value>` must be the same data type as field
676
+ # * `<logical connector>` can be `AND`, `OR`, `NOT`
665
677
  #
666
678
  # Examples of valid filters:
667
- # * "metadata.owner" returns Services that have a label with the key "owner"
668
- # this is the same as "metadata:owner".
669
- # * "metadata.protocol=gRPC" returns Services that have key/value
670
- # "protocol=gRPC".
671
- # * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/service-c"
672
- # returns Services that have name that is alphabetically later than the
673
- # string, so "service-e" will be returned but "service-a" will not be.
674
- # * "metadata.owner!=sd AND metadata.foo=bar" returns Services that have
675
- # "owner" in label key but value is not "sd" AND have key/value foo=bar.
676
- # * "doesnotexist.foo=bar" returns an empty list. Note that Service doesn't
677
- # have a field called "doesnotexist". Since the filter does not match any
678
- # Services, it returns no results.
679
+ #
680
+ # * `metadata.owner` returns services that have a metadata with the key
681
+ # `owner`, this is the same as `metadata:owner`
682
+ # * `metadata.protocol=gRPC` returns services that have key/value
683
+ # `protocol=gRPC`
684
+ # *
685
+ # `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/service-c`
686
+ # returns services that have name that is alphabetically later than the
687
+ # string, so "service-e" is returned but "service-a" is not
688
+ # * `metadata.owner!=sd AND metadata.foo=bar` returns services that have
689
+ # `owner` in metadata key but value is not `sd` AND have key/value
690
+ # `foo=bar`
691
+ # * `doesnotexist.foo=bar` returns an empty list. Note that service
692
+ # doesn't have a field called "doesnotexist". Since the filter does not
693
+ # match any services, it returns no results
694
+ #
695
+ # For more information about filtering, see
696
+ # [API Filtering](https://aip.dev/160).
679
697
  # @param order_by [::String]
680
- # Optional. The order to list result by.
698
+ # Optional. The order to list results by.
699
+ #
700
+ # General `order_by` string syntax: `<field> (<asc|desc>) (,)`
701
+ #
702
+ # * `<field>` allows value: `name`
703
+ # * `<asc|desc>` ascending or descending order by `<field>`. If this is
704
+ # left blank, `asc` is used
705
+ #
706
+ # Note that an empty `order_by` string results in default order, which is
707
+ # order by `name` in ascending order.
681
708
  #
682
709
  # @yield [response, operation] Access the result along with the RPC operation
683
710
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Service>]
@@ -927,7 +954,7 @@ module Google
927
954
  end
928
955
 
929
956
  ##
930
- # Creates a endpoint, and returns the new Endpoint.
957
+ # Creates an endpoint, and returns the new endpoint.
931
958
  #
932
959
  # @overload create_endpoint(request, options = nil)
933
960
  # Pass arguments to `create_endpoint` via a request object, either of type
@@ -1021,7 +1048,7 @@ module Google
1021
1048
  # the default parameter values, pass an empty Hash as a request object (see above).
1022
1049
  #
1023
1050
  # @param parent [::String]
1024
- # Required. The resource name of the service whose endpoints we'd like to
1051
+ # Required. The resource name of the service whose endpoints you'd like to
1025
1052
  # list.
1026
1053
  # @param page_size [::Integer]
1027
1054
  # Optional. The maximum number of items to return.
@@ -1029,33 +1056,50 @@ module Google
1029
1056
  # Optional. The next_page_token value returned from a previous List request,
1030
1057
  # if any.
1031
1058
  # @param filter [::String]
1032
- # Optional. The filter to list result by.
1059
+ # Optional. The filter to list results by.
1033
1060
  #
1034
- # General filter string syntax:
1035
- # <field> <operator> <value> (<logical connector>)
1036
- # <field> can be "name", "address", "port" or "metadata.<key>" for map field.
1037
- # <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and
1038
- # is roughly the same as "=".
1039
- # <value> must be the same data type as field.
1040
- # <logical connector> can be "AND, OR, NOT".
1061
+ # General `filter` string syntax:
1062
+ # `<field> <operator> <value> (<logical connector>)`
1063
+ #
1064
+ # * `<field>` can be `name`, `address`, `port`, or `metadata.<key>` for map
1065
+ # field
1066
+ # * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
1067
+ # means `HAS`, and is roughly the same as `=`
1068
+ # * `<value>` must be the same data type as field
1069
+ # * `<logical connector>` can be `AND`, `OR`, `NOT`
1041
1070
  #
1042
1071
  # Examples of valid filters:
1043
- # * "metadata.owner" returns Endpoints that have a label with the key "owner"
1044
- # this is the same as "metadata:owner".
1045
- # * "metadata.protocol=gRPC" returns Endpoints that have key/value
1046
- # "protocol=gRPC".
1047
- # * "address=192.108.1.105" returns Endpoints that have this address.
1048
- # * "port>8080" returns Endpoints that have port number larger than 8080.
1049
- # * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/my-service/endpoints/endpoint-c"
1050
- # returns Endpoints that have name that is alphabetically later than the
1051
- # string, so "endpoint-e" will be returned but "endpoint-a" will not be.
1052
- # * "metadata.owner!=sd AND metadata.foo=bar" returns Endpoints that have
1053
- # "owner" in label key but value is not "sd" AND have key/value foo=bar.
1054
- # * "doesnotexist.foo=bar" returns an empty list. Note that Endpoint doesn't
1055
- # have a field called "doesnotexist". Since the filter does not match any
1056
- # Endpoints, it returns no results.
1072
+ #
1073
+ # * `metadata.owner` returns endpoints that have a metadata with the key
1074
+ # `owner`, this is the same as `metadata:owner`
1075
+ # * `metadata.protocol=gRPC` returns endpoints that have key/value
1076
+ # `protocol=gRPC`
1077
+ # * `address=192.108.1.105` returns endpoints that have this address
1078
+ # * `port>8080` returns endpoints that have port number larger than 8080
1079
+ # *
1080
+ # `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
1081
+ # returns endpoints that have name that is alphabetically later than the
1082
+ # string, so "endpoint-e" is returned but "endpoint-a" is not
1083
+ # * `metadata.owner!=sd AND metadata.foo=bar` returns endpoints that have
1084
+ # `owner` in metadata key but value is not `sd` AND have key/value
1085
+ # `foo=bar`
1086
+ # * `doesnotexist.foo=bar` returns an empty list. Note that endpoint
1087
+ # doesn't have a field called "doesnotexist". Since the filter does not
1088
+ # match any endpoints, it returns no results
1089
+ #
1090
+ # For more information about filtering, see
1091
+ # [API Filtering](https://aip.dev/160).
1057
1092
  # @param order_by [::String]
1058
- # Optional. The order to list result by.
1093
+ # Optional. The order to list results by.
1094
+ #
1095
+ # General `order_by` string syntax: `<field> (<asc|desc>) (,)`
1096
+ #
1097
+ # * `<field>` allows values: `name`, `address`, `port`
1098
+ # * `<asc|desc>` ascending or descending order by `<field>`. If this is
1099
+ # left blank, `asc` is used
1100
+ #
1101
+ # Note that an empty `order_by` string results in default order, which is
1102
+ # order by `name` in ascending order.
1059
1103
  #
1060
1104
  # @yield [response, operation] Access the result along with the RPC operation
1061
1105
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Endpoint>]
@@ -1104,7 +1148,7 @@ module Google
1104
1148
  end
1105
1149
 
1106
1150
  ##
1107
- # Gets a endpoint.
1151
+ # Gets an endpoint.
1108
1152
  #
1109
1153
  # @overload get_endpoint(request, options = nil)
1110
1154
  # Pass arguments to `get_endpoint` via a request object, either of type
@@ -1170,7 +1214,7 @@ module Google
1170
1214
  end
1171
1215
 
1172
1216
  ##
1173
- # Updates a endpoint.
1217
+ # Updates an endpoint.
1174
1218
  #
1175
1219
  # @overload update_endpoint(request, options = nil)
1176
1220
  # Pass arguments to `update_endpoint` via a request object, either of type
@@ -1238,7 +1282,7 @@ module Google
1238
1282
  end
1239
1283
 
1240
1284
  ##
1241
- # Deletes a endpoint.
1285
+ # Deletes an endpoint.
1242
1286
  #
1243
1287
  # @overload delete_endpoint(request, options = nil)
1244
1288
  # Pass arguments to `delete_endpoint` via a request object, either of type
@@ -1609,7 +1653,7 @@ module Google
1609
1653
  config_attr :scope, nil, ::String, ::Array, nil
1610
1654
  config_attr :lib_name, nil, ::String, nil
1611
1655
  config_attr :lib_version, nil, ::String, nil
1612
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1656
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
1613
1657
  config_attr :interceptors, nil, ::Array, nil
1614
1658
  config_attr :timeout, nil, ::Numeric, nil
1615
1659
  config_attr :metadata, nil, ::Hash, nil
@@ -1630,7 +1674,7 @@ module Google
1630
1674
  def rpcs
1631
1675
  @rpcs ||= begin
1632
1676
  parent_rpcs = nil
1633
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1677
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1634
1678
  Rpcs.new parent_rpcs
1635
1679
  end
1636
1680
  end
@@ -1642,7 +1686,7 @@ module Google
1642
1686
  # Each configuration object is of type `Gapic::Config::Method` and includes
1643
1687
  # the following configuration fields:
1644
1688
  #
1645
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1689
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1646
1690
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1647
1691
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1648
1692
  # include the following keys:
@@ -1746,41 +1790,41 @@ module Google
1746
1790
 
1747
1791
  # @private
1748
1792
  def initialize parent_rpcs = nil
1749
- create_namespace_config = parent_rpcs&.create_namespace if parent_rpcs&.respond_to? :create_namespace
1793
+ create_namespace_config = parent_rpcs.create_namespace if parent_rpcs.respond_to? :create_namespace
1750
1794
  @create_namespace = ::Gapic::Config::Method.new create_namespace_config
1751
- list_namespaces_config = parent_rpcs&.list_namespaces if parent_rpcs&.respond_to? :list_namespaces
1795
+ list_namespaces_config = parent_rpcs.list_namespaces if parent_rpcs.respond_to? :list_namespaces
1752
1796
  @list_namespaces = ::Gapic::Config::Method.new list_namespaces_config
1753
- get_namespace_config = parent_rpcs&.get_namespace if parent_rpcs&.respond_to? :get_namespace
1797
+ get_namespace_config = parent_rpcs.get_namespace if parent_rpcs.respond_to? :get_namespace
1754
1798
  @get_namespace = ::Gapic::Config::Method.new get_namespace_config
1755
- update_namespace_config = parent_rpcs&.update_namespace if parent_rpcs&.respond_to? :update_namespace
1799
+ update_namespace_config = parent_rpcs.update_namespace if parent_rpcs.respond_to? :update_namespace
1756
1800
  @update_namespace = ::Gapic::Config::Method.new update_namespace_config
1757
- delete_namespace_config = parent_rpcs&.delete_namespace if parent_rpcs&.respond_to? :delete_namespace
1801
+ delete_namespace_config = parent_rpcs.delete_namespace if parent_rpcs.respond_to? :delete_namespace
1758
1802
  @delete_namespace = ::Gapic::Config::Method.new delete_namespace_config
1759
- create_service_config = parent_rpcs&.create_service if parent_rpcs&.respond_to? :create_service
1803
+ create_service_config = parent_rpcs.create_service if parent_rpcs.respond_to? :create_service
1760
1804
  @create_service = ::Gapic::Config::Method.new create_service_config
1761
- list_services_config = parent_rpcs&.list_services if parent_rpcs&.respond_to? :list_services
1805
+ list_services_config = parent_rpcs.list_services if parent_rpcs.respond_to? :list_services
1762
1806
  @list_services = ::Gapic::Config::Method.new list_services_config
1763
- get_service_config = parent_rpcs&.get_service if parent_rpcs&.respond_to? :get_service
1807
+ get_service_config = parent_rpcs.get_service if parent_rpcs.respond_to? :get_service
1764
1808
  @get_service = ::Gapic::Config::Method.new get_service_config
1765
- update_service_config = parent_rpcs&.update_service if parent_rpcs&.respond_to? :update_service
1809
+ update_service_config = parent_rpcs.update_service if parent_rpcs.respond_to? :update_service
1766
1810
  @update_service = ::Gapic::Config::Method.new update_service_config
1767
- delete_service_config = parent_rpcs&.delete_service if parent_rpcs&.respond_to? :delete_service
1811
+ delete_service_config = parent_rpcs.delete_service if parent_rpcs.respond_to? :delete_service
1768
1812
  @delete_service = ::Gapic::Config::Method.new delete_service_config
1769
- create_endpoint_config = parent_rpcs&.create_endpoint if parent_rpcs&.respond_to? :create_endpoint
1813
+ create_endpoint_config = parent_rpcs.create_endpoint if parent_rpcs.respond_to? :create_endpoint
1770
1814
  @create_endpoint = ::Gapic::Config::Method.new create_endpoint_config
1771
- list_endpoints_config = parent_rpcs&.list_endpoints if parent_rpcs&.respond_to? :list_endpoints
1815
+ list_endpoints_config = parent_rpcs.list_endpoints if parent_rpcs.respond_to? :list_endpoints
1772
1816
  @list_endpoints = ::Gapic::Config::Method.new list_endpoints_config
1773
- get_endpoint_config = parent_rpcs&.get_endpoint if parent_rpcs&.respond_to? :get_endpoint
1817
+ get_endpoint_config = parent_rpcs.get_endpoint if parent_rpcs.respond_to? :get_endpoint
1774
1818
  @get_endpoint = ::Gapic::Config::Method.new get_endpoint_config
1775
- update_endpoint_config = parent_rpcs&.update_endpoint if parent_rpcs&.respond_to? :update_endpoint
1819
+ update_endpoint_config = parent_rpcs.update_endpoint if parent_rpcs.respond_to? :update_endpoint
1776
1820
  @update_endpoint = ::Gapic::Config::Method.new update_endpoint_config
1777
- delete_endpoint_config = parent_rpcs&.delete_endpoint if parent_rpcs&.respond_to? :delete_endpoint
1821
+ delete_endpoint_config = parent_rpcs.delete_endpoint if parent_rpcs.respond_to? :delete_endpoint
1778
1822
  @delete_endpoint = ::Gapic::Config::Method.new delete_endpoint_config
1779
- get_iam_policy_config = parent_rpcs&.get_iam_policy if parent_rpcs&.respond_to? :get_iam_policy
1823
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
1780
1824
  @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1781
- set_iam_policy_config = parent_rpcs&.set_iam_policy if parent_rpcs&.respond_to? :set_iam_policy
1825
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
1782
1826
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1783
- test_iam_permissions_config = parent_rpcs&.test_iam_permissions if parent_rpcs&.respond_to? :test_iam_permissions
1827
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1784
1828
  @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1785
1829
 
1786
1830
  yield self if block_given?