google-cloud-service_directory-v1beta1 0.4.6 → 0.7.1

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