google-ads-data_manager-v1 0.2.0 → 0.3.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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/ads/data_manager/v1/marketing_data_insights_service/client.rb +494 -0
  3. data/lib/google/ads/data_manager/v1/marketing_data_insights_service/credentials.rb +47 -0
  4. data/lib/google/ads/data_manager/v1/marketing_data_insights_service/rest/client.rb +444 -0
  5. data/lib/google/ads/data_manager/v1/marketing_data_insights_service/rest/service_stub.rb +143 -0
  6. data/lib/google/ads/data_manager/v1/marketing_data_insights_service/rest.rb +53 -0
  7. data/lib/google/ads/data_manager/v1/marketing_data_insights_service.rb +56 -0
  8. data/lib/google/ads/data_manager/v1/partner_link_service/client.rb +739 -0
  9. data/lib/google/ads/data_manager/v1/partner_link_service/credentials.rb +47 -0
  10. data/lib/google/ads/data_manager/v1/partner_link_service/paths.rb +69 -0
  11. data/lib/google/ads/data_manager/v1/partner_link_service/rest/client.rb +675 -0
  12. data/lib/google/ads/data_manager/v1/partner_link_service/rest/service_stub.rb +265 -0
  13. data/lib/google/ads/data_manager/v1/partner_link_service/rest.rb +52 -0
  14. data/lib/google/ads/data_manager/v1/partner_link_service.rb +55 -0
  15. data/lib/google/ads/data_manager/v1/rest.rb +5 -0
  16. data/lib/google/ads/data_manager/v1/user_list_direct_license_service/client.rb +813 -0
  17. data/lib/google/ads/data_manager/v1/user_list_direct_license_service/credentials.rb +47 -0
  18. data/lib/google/ads/data_manager/v1/user_list_direct_license_service/paths.rb +69 -0
  19. data/lib/google/ads/data_manager/v1/user_list_direct_license_service/rest/client.rb +742 -0
  20. data/lib/google/ads/data_manager/v1/user_list_direct_license_service/rest/service_stub.rb +327 -0
  21. data/lib/google/ads/data_manager/v1/user_list_direct_license_service/rest.rb +56 -0
  22. data/lib/google/ads/data_manager/v1/user_list_direct_license_service.rb +59 -0
  23. data/lib/google/ads/data_manager/v1/user_list_global_license_service/client.rb +955 -0
  24. data/lib/google/ads/data_manager/v1/user_list_global_license_service/credentials.rb +47 -0
  25. data/lib/google/ads/data_manager/v1/user_list_global_license_service/paths.rb +69 -0
  26. data/lib/google/ads/data_manager/v1/user_list_global_license_service/rest/client.rb +877 -0
  27. data/lib/google/ads/data_manager/v1/user_list_global_license_service/rest/service_stub.rb +388 -0
  28. data/lib/google/ads/data_manager/v1/user_list_global_license_service/rest.rb +56 -0
  29. data/lib/google/ads/data_manager/v1/user_list_global_license_service.rb +59 -0
  30. data/lib/google/ads/data_manager/v1/user_list_service/client.rb +972 -0
  31. data/lib/google/ads/data_manager/v1/user_list_service/credentials.rb +47 -0
  32. data/lib/google/ads/data_manager/v1/user_list_service/paths.rb +69 -0
  33. data/lib/google/ads/data_manager/v1/user_list_service/rest/client.rb +894 -0
  34. data/lib/google/ads/data_manager/v1/user_list_service/rest/service_stub.rb +388 -0
  35. data/lib/google/ads/data_manager/v1/user_list_service/rest.rb +52 -0
  36. data/lib/google/ads/data_manager/v1/user_list_service.rb +55 -0
  37. data/lib/google/ads/data_manager/v1/version.rb +1 -1
  38. data/lib/google/ads/data_manager/v1.rb +5 -0
  39. data/lib/google/ads/datamanager/v1/age_range_pb.rb +21 -0
  40. data/lib/google/ads/datamanager/v1/audience_pb.rb +5 -26
  41. data/lib/google/ads/datamanager/v1/cart_data_pb.rb +3 -25
  42. data/lib/google/ads/datamanager/v1/consent_pb.rb +3 -24
  43. data/lib/google/ads/datamanager/v1/destination_pb.rb +4 -24
  44. data/lib/google/ads/datamanager/v1/device_info_pb.rb +3 -24
  45. data/lib/google/ads/datamanager/v1/encryption_info_pb.rb +3 -24
  46. data/lib/google/ads/datamanager/v1/error_pb.rb +3 -24
  47. data/lib/google/ads/datamanager/v1/event_pb.rb +3 -31
  48. data/lib/google/ads/datamanager/v1/experimental_field_pb.rb +3 -24
  49. data/lib/google/ads/datamanager/v1/gender_pb.rb +21 -0
  50. data/lib/google/ads/datamanager/v1/ingestion_service_pb.rb +3 -31
  51. data/lib/google/ads/datamanager/v1/insights_service_pb.rb +33 -0
  52. data/lib/google/ads/datamanager/v1/insights_service_services_pb.rb +62 -0
  53. data/lib/google/ads/datamanager/v1/item_parameter_pb.rb +3 -24
  54. data/lib/google/ads/datamanager/v1/match_rate_pb.rb +3 -24
  55. data/lib/google/ads/datamanager/v1/partner_link_service_pb.rb +32 -0
  56. data/lib/google/ads/datamanager/v1/partner_link_service_services_pb.rb +79 -0
  57. data/lib/google/ads/datamanager/v1/processing_errors_pb.rb +3 -24
  58. data/lib/google/ads/datamanager/v1/request_status_per_destination_pb.rb +7 -26
  59. data/lib/google/ads/datamanager/v1/terms_of_service_pb.rb +3 -24
  60. data/lib/google/ads/datamanager/v1/user_data_pb.rb +3 -24
  61. data/lib/google/ads/datamanager/v1/user_list_direct_license_pb.rb +28 -0
  62. data/lib/google/ads/datamanager/v1/user_list_direct_license_service_pb.rb +32 -0
  63. data/lib/google/ads/datamanager/v1/user_list_direct_license_service_services_pb.rb +63 -0
  64. data/lib/google/ads/datamanager/v1/user_list_global_license_pb.rb +30 -0
  65. data/lib/google/ads/datamanager/v1/user_list_global_license_service_pb.rb +34 -0
  66. data/lib/google/ads/datamanager/v1/user_list_global_license_service_services_pb.rb +67 -0
  67. data/lib/google/ads/datamanager/v1/user_list_global_license_type_pb.rb +21 -0
  68. data/lib/google/ads/datamanager/v1/user_list_license_client_account_type_pb.rb +21 -0
  69. data/lib/google/ads/datamanager/v1/user_list_license_metrics_pb.rb +23 -0
  70. data/lib/google/ads/datamanager/v1/user_list_license_pricing_pb.rb +26 -0
  71. data/lib/google/ads/datamanager/v1/user_list_license_status_pb.rb +21 -0
  72. data/lib/google/ads/datamanager/v1/user_list_pb.rb +43 -0
  73. data/lib/google/ads/datamanager/v1/user_list_service_pb.rb +34 -0
  74. data/lib/google/ads/datamanager/v1/user_list_service_services_pb.rb +118 -0
  75. data/lib/google/ads/datamanager/v1/user_properties_pb.rb +3 -24
  76. data/proto_docs/google/ads/datamanager/v1/age_range.rb +53 -0
  77. data/proto_docs/google/ads/datamanager/v1/audience.rb +42 -3
  78. data/proto_docs/google/ads/datamanager/v1/destination.rb +3 -0
  79. data/proto_docs/google/ads/datamanager/v1/encryption_info.rb +6 -3
  80. data/proto_docs/google/ads/datamanager/v1/error.rb +159 -1
  81. data/proto_docs/google/ads/datamanager/v1/gender.rb +41 -0
  82. data/proto_docs/google/ads/datamanager/v1/insights_service.rb +133 -0
  83. data/proto_docs/google/ads/datamanager/v1/partner_link_service.rb +141 -0
  84. data/proto_docs/google/ads/datamanager/v1/request_status_per_destination.rb +92 -6
  85. data/proto_docs/google/ads/datamanager/v1/user_list.rb +397 -0
  86. data/proto_docs/google/ads/datamanager/v1/user_list_direct_license.rb +75 -0
  87. data/proto_docs/google/ads/datamanager/v1/user_list_direct_license_service.rb +134 -0
  88. data/proto_docs/google/ads/datamanager/v1/user_list_global_license.rb +114 -0
  89. data/proto_docs/google/ads/datamanager/v1/user_list_global_license_service.rb +204 -0
  90. data/proto_docs/google/ads/datamanager/v1/user_list_global_license_type.rb +41 -0
  91. data/proto_docs/google/ads/datamanager/v1/user_list_license_client_account_type.rb +44 -0
  92. data/proto_docs/google/ads/datamanager/v1/user_list_license_metrics.rb +55 -0
  93. data/proto_docs/google/ads/datamanager/v1/user_list_license_pricing.rb +108 -0
  94. data/proto_docs/google/ads/datamanager/v1/user_list_license_status.rb +38 -0
  95. data/proto_docs/google/ads/datamanager/v1/user_list_service.rb +151 -0
  96. data/proto_docs/google/api/client.rb +149 -29
  97. data/proto_docs/google/protobuf/empty.rb +34 -0
  98. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  99. metadata +73 -2
@@ -0,0 +1,894 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/ads/datamanager/v1/user_list_service_pb"
21
+ require "google/ads/data_manager/v1/user_list_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Ads
25
+ module DataManager
26
+ module V1
27
+ module UserListService
28
+ module Rest
29
+ ##
30
+ # REST client for the UserListService service.
31
+ #
32
+ # Service for managing UserList resources.
33
+ #
34
+ class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
38
+ # @private
39
+ DEFAULT_ENDPOINT_TEMPLATE = "datamanager.$UNIVERSE_DOMAIN$"
40
+
41
+ include Paths
42
+
43
+ # @private
44
+ attr_reader :user_list_service_stub
45
+
46
+ ##
47
+ # Configure the UserListService Client class.
48
+ #
49
+ # See {::Google::Ads::DataManager::V1::UserListService::Rest::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all UserListService clients
55
+ # ::Google::Ads::DataManager::V1::UserListService::Rest::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
58
+ #
59
+ # @yield [config] Configure the Client client.
60
+ # @yieldparam config [Client::Configuration]
61
+ #
62
+ # @return [Client::Configuration]
63
+ #
64
+ def self.configure
65
+ @configure ||= begin
66
+ namespace = ["Google", "Ads", "DataManager", "V1"]
67
+ parent_config = while namespace.any?
68
+ parent_name = namespace.join "::"
69
+ parent_const = const_get parent_name
70
+ break parent_const.configure if parent_const.respond_to? :configure
71
+ namespace.pop
72
+ end
73
+ default_config = Client::Configuration.new parent_config
74
+
75
+ default_config
76
+ end
77
+ yield @configure if block_given?
78
+ @configure
79
+ end
80
+
81
+ ##
82
+ # Configure the UserListService Client instance.
83
+ #
84
+ # The configuration is set to the derived mode, meaning that values can be changed,
85
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
86
+ # should be made on {Client.configure}.
87
+ #
88
+ # See {::Google::Ads::DataManager::V1::UserListService::Rest::Client::Configuration}
89
+ # for a description of the configuration fields.
90
+ #
91
+ # @yield [config] Configure the Client client.
92
+ # @yieldparam config [Client::Configuration]
93
+ #
94
+ # @return [Client::Configuration]
95
+ #
96
+ def configure
97
+ yield @config if block_given?
98
+ @config
99
+ end
100
+
101
+ ##
102
+ # The effective universe domain
103
+ #
104
+ # @return [String]
105
+ #
106
+ def universe_domain
107
+ @user_list_service_stub.universe_domain
108
+ end
109
+
110
+ ##
111
+ # Create a new UserListService REST client object.
112
+ #
113
+ # @example
114
+ #
115
+ # # Create a client using the default configuration
116
+ # client = ::Google::Ads::DataManager::V1::UserListService::Rest::Client.new
117
+ #
118
+ # # Create a client using a custom configuration
119
+ # client = ::Google::Ads::DataManager::V1::UserListService::Rest::Client.new do |config|
120
+ # config.timeout = 10.0
121
+ # end
122
+ #
123
+ # @yield [config] Configure the UserListService client.
124
+ # @yieldparam config [Client::Configuration]
125
+ #
126
+ def initialize
127
+ # Create the configuration object
128
+ @config = Configuration.new Client.configure
129
+
130
+ # Yield the configuration if needed
131
+ yield @config if block_given?
132
+
133
+ # Create credentials
134
+ credentials = @config.credentials
135
+ # Use self-signed JWT if the endpoint is unchanged from default,
136
+ # but only if the default endpoint does not have a region prefix.
137
+ enable_self_signed_jwt = @config.endpoint.nil? ||
138
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
+ !@config.endpoint.split(".").first.include?("-"))
140
+ credentials ||= Credentials.default scope: @config.scope,
141
+ enable_self_signed_jwt: enable_self_signed_jwt
142
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
143
+ credentials = Credentials.new credentials, scope: @config.scope
144
+ end
145
+
146
+ @quota_project_id = @config.quota_project
147
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
148
+
149
+ @user_list_service_stub = ::Google::Ads::DataManager::V1::UserListService::Rest::ServiceStub.new(
150
+ endpoint: @config.endpoint,
151
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
152
+ universe_domain: @config.universe_domain,
153
+ credentials: credentials,
154
+ logger: @config.logger
155
+ )
156
+
157
+ @user_list_service_stub.logger(stub: true)&.info do |entry|
158
+ entry.set_system_name
159
+ entry.set_service
160
+ entry.message = "Created client for #{entry.service}"
161
+ entry.set_credentials_fields credentials
162
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
163
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
164
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
165
+ end
166
+ end
167
+
168
+ ##
169
+ # The logger used for request/response debug logging.
170
+ #
171
+ # @return [Logger]
172
+ #
173
+ def logger
174
+ @user_list_service_stub.logger
175
+ end
176
+
177
+ # Service calls
178
+
179
+ ##
180
+ # Gets a UserList.
181
+ #
182
+ # Authorization Headers:
183
+ #
184
+ # This method supports the following optional headers to define how the API
185
+ # authorizes access for the request:
186
+ #
187
+ # * `login-account`: (Optional) The resource name of the account where the
188
+ # Google Account of the credentials is a user. If not set, defaults to the
189
+ # account of the request. Format:
190
+ # `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
191
+ # * `linked-account`: (Optional) The resource name of the account with an
192
+ # established product link to the `login-account`. Format:
193
+ # `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`
194
+ #
195
+ # @overload get_user_list(request, options = nil)
196
+ # Pass arguments to `get_user_list` via a request object, either of type
197
+ # {::Google::Ads::DataManager::V1::GetUserListRequest} or an equivalent Hash.
198
+ #
199
+ # @param request [::Google::Ads::DataManager::V1::GetUserListRequest, ::Hash]
200
+ # A request object representing the call parameters. Required. To specify no
201
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
202
+ # @param options [::Gapic::CallOptions, ::Hash]
203
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
204
+ #
205
+ # @overload get_user_list(name: nil)
206
+ # Pass arguments to `get_user_list` via keyword arguments. Note that at
207
+ # least one keyword argument is required. To specify no parameters, or to keep all
208
+ # the default parameter values, pass an empty Hash as a request object (see above).
209
+ #
210
+ # @param name [::String]
211
+ # Required. The resource name of the UserList to retrieve.
212
+ # Format:
213
+ # accountTypes/\\{account_type}/accounts/\\{account}/userLists/\\{user_list}
214
+ # @yield [result, operation] Access the result along with the TransportOperation object
215
+ # @yieldparam result [::Google::Ads::DataManager::V1::UserList]
216
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
217
+ #
218
+ # @return [::Google::Ads::DataManager::V1::UserList]
219
+ #
220
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
221
+ #
222
+ # @example Basic example
223
+ # require "google/ads/data_manager/v1"
224
+ #
225
+ # # Create a client object. The client can be reused for multiple calls.
226
+ # client = Google::Ads::DataManager::V1::UserListService::Rest::Client.new
227
+ #
228
+ # # Create a request. To set request fields, pass in keyword arguments.
229
+ # request = Google::Ads::DataManager::V1::GetUserListRequest.new
230
+ #
231
+ # # Call the get_user_list method.
232
+ # result = client.get_user_list request
233
+ #
234
+ # # The returned object is of type Google::Ads::DataManager::V1::UserList.
235
+ # p result
236
+ #
237
+ def get_user_list request, options = nil
238
+ raise ::ArgumentError, "request must be provided" if request.nil?
239
+
240
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::DataManager::V1::GetUserListRequest
241
+
242
+ # Converts hash and nil to an options object
243
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
244
+
245
+ # Customize the options with defaults
246
+ call_metadata = @config.rpcs.get_user_list.metadata.to_h
247
+
248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
249
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
250
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
251
+ gapic_version: ::Google::Ads::DataManager::V1::VERSION,
252
+ transports_version_send: [:rest]
253
+
254
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
255
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
256
+
257
+ options.apply_defaults timeout: @config.rpcs.get_user_list.timeout,
258
+ metadata: call_metadata,
259
+ retry_policy: @config.rpcs.get_user_list.retry_policy
260
+
261
+ options.apply_defaults timeout: @config.timeout,
262
+ metadata: @config.metadata,
263
+ retry_policy: @config.retry_policy
264
+
265
+ @user_list_service_stub.get_user_list request, options do |result, operation|
266
+ yield result, operation if block_given?
267
+ end
268
+ rescue ::Gapic::Rest::Error => e
269
+ raise ::Google::Cloud::Error.from_error(e)
270
+ end
271
+
272
+ ##
273
+ # Lists UserLists.
274
+ #
275
+ # Authorization Headers:
276
+ #
277
+ # This method supports the following optional headers to define how the API
278
+ # authorizes access for the request:
279
+ #
280
+ # * `login-account`: (Optional) The resource name of the account where the
281
+ # Google Account of the credentials is a user. If not set, defaults to the
282
+ # account of the request. Format:
283
+ # `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
284
+ # * `linked-account`: (Optional) The resource name of the account with an
285
+ # established product link to the `login-account`. Format:
286
+ # `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`
287
+ #
288
+ # @overload list_user_lists(request, options = nil)
289
+ # Pass arguments to `list_user_lists` via a request object, either of type
290
+ # {::Google::Ads::DataManager::V1::ListUserListsRequest} or an equivalent Hash.
291
+ #
292
+ # @param request [::Google::Ads::DataManager::V1::ListUserListsRequest, ::Hash]
293
+ # A request object representing the call parameters. Required. To specify no
294
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
295
+ # @param options [::Gapic::CallOptions, ::Hash]
296
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
297
+ #
298
+ # @overload list_user_lists(parent: nil, page_size: nil, page_token: nil, filter: nil)
299
+ # Pass arguments to `list_user_lists` via keyword arguments. Note that at
300
+ # least one keyword argument is required. To specify no parameters, or to keep all
301
+ # the default parameter values, pass an empty Hash as a request object (see above).
302
+ #
303
+ # @param parent [::String]
304
+ # Required. The parent account which owns this collection of user lists.
305
+ # Format: accountTypes/\\{account_type}/accounts/\\{account}
306
+ # @param page_size [::Integer]
307
+ # Optional. The maximum number of user lists to return. The service may
308
+ # return fewer than this value. If unspecified, at most 50 user lists will be
309
+ # returned. The maximum value is 1000; values above 1000 will be coerced to
310
+ # 1000.
311
+ # @param page_token [::String]
312
+ # Optional. A page token, received from a previous `ListUserLists` call.
313
+ # Provide this to retrieve the subsequent page.
314
+ #
315
+ # When paginating, all other parameters provided to `ListUserLists` must
316
+ # match the call that provided the page token.
317
+ # @param filter [::String]
318
+ # Optional. A [filter string](https://google.aip.dev/160). All fields need to
319
+ # be on the left hand side of each condition (for example: `display_name =
320
+ # "list 1"`). Fields must be specified using either all [camel
321
+ # case](https://en.wikipedia.org/wiki/Camel_case) or all [snake
322
+ # case](https://en.wikipedia.org/wiki/Snake_case). Don't use a combination of
323
+ # camel case and snake case.
324
+ #
325
+ # Supported operations:
326
+ #
327
+ # - `AND`
328
+ # - `=`
329
+ # - `!=`
330
+ # - `>`
331
+ # - `>=`
332
+ # - `<`
333
+ # - `<=`
334
+ # - `:` (has)
335
+ #
336
+ # Supported fields:
337
+ #
338
+ # - `id`
339
+ # - `display_name`
340
+ # - `description`
341
+ # - `membership_status`
342
+ # - `integration_code`
343
+ # - `access_reason`
344
+ # - `ingested_user_list_info.upload_key_types`
345
+ # @yield [result, operation] Access the result along with the TransportOperation object
346
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::DataManager::V1::UserList>]
347
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
348
+ #
349
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::DataManager::V1::UserList>]
350
+ #
351
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
352
+ #
353
+ # @example Basic example
354
+ # require "google/ads/data_manager/v1"
355
+ #
356
+ # # Create a client object. The client can be reused for multiple calls.
357
+ # client = Google::Ads::DataManager::V1::UserListService::Rest::Client.new
358
+ #
359
+ # # Create a request. To set request fields, pass in keyword arguments.
360
+ # request = Google::Ads::DataManager::V1::ListUserListsRequest.new
361
+ #
362
+ # # Call the list_user_lists method.
363
+ # result = client.list_user_lists request
364
+ #
365
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
366
+ # # over elements, and API calls will be issued to fetch pages as needed.
367
+ # result.each do |item|
368
+ # # Each element is of type ::Google::Ads::DataManager::V1::UserList.
369
+ # p item
370
+ # end
371
+ #
372
+ def list_user_lists request, options = nil
373
+ raise ::ArgumentError, "request must be provided" if request.nil?
374
+
375
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::DataManager::V1::ListUserListsRequest
376
+
377
+ # Converts hash and nil to an options object
378
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
379
+
380
+ # Customize the options with defaults
381
+ call_metadata = @config.rpcs.list_user_lists.metadata.to_h
382
+
383
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
384
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
385
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
386
+ gapic_version: ::Google::Ads::DataManager::V1::VERSION,
387
+ transports_version_send: [:rest]
388
+
389
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
390
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
391
+
392
+ options.apply_defaults timeout: @config.rpcs.list_user_lists.timeout,
393
+ metadata: call_metadata,
394
+ retry_policy: @config.rpcs.list_user_lists.retry_policy
395
+
396
+ options.apply_defaults timeout: @config.timeout,
397
+ metadata: @config.metadata,
398
+ retry_policy: @config.retry_policy
399
+
400
+ @user_list_service_stub.list_user_lists request, options do |result, operation|
401
+ result = ::Gapic::Rest::PagedEnumerable.new @user_list_service_stub, :list_user_lists, "user_lists", request, result, options
402
+ yield result, operation if block_given?
403
+ throw :response, result
404
+ end
405
+ rescue ::Gapic::Rest::Error => e
406
+ raise ::Google::Cloud::Error.from_error(e)
407
+ end
408
+
409
+ ##
410
+ # Creates a UserList.
411
+ #
412
+ # Authorization Headers:
413
+ #
414
+ # This method supports the following optional headers to define how the API
415
+ # authorizes access for the request:
416
+ #
417
+ # * `login-account`: (Optional) The resource name of the account where the
418
+ # Google Account of the credentials is a user. If not set, defaults to the
419
+ # account of the request. Format:
420
+ # `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
421
+ # * `linked-account`: (Optional) The resource name of the account with an
422
+ # established product link to the `login-account`. Format:
423
+ # `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`
424
+ #
425
+ # @overload create_user_list(request, options = nil)
426
+ # Pass arguments to `create_user_list` via a request object, either of type
427
+ # {::Google::Ads::DataManager::V1::CreateUserListRequest} or an equivalent Hash.
428
+ #
429
+ # @param request [::Google::Ads::DataManager::V1::CreateUserListRequest, ::Hash]
430
+ # A request object representing the call parameters. Required. To specify no
431
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
432
+ # @param options [::Gapic::CallOptions, ::Hash]
433
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
434
+ #
435
+ # @overload create_user_list(parent: nil, user_list: nil, validate_only: nil)
436
+ # Pass arguments to `create_user_list` via keyword arguments. Note that at
437
+ # least one keyword argument is required. To specify no parameters, or to keep all
438
+ # the default parameter values, pass an empty Hash as a request object (see above).
439
+ #
440
+ # @param parent [::String]
441
+ # Required. The parent account where this user list will be created.
442
+ # Format: accountTypes/\\{account_type}/accounts/\\{account}
443
+ # @param user_list [::Google::Ads::DataManager::V1::UserList, ::Hash]
444
+ # Required. The user list to create.
445
+ # @param validate_only [::Boolean]
446
+ # Optional. If true, the request is validated but not executed.
447
+ # @yield [result, operation] Access the result along with the TransportOperation object
448
+ # @yieldparam result [::Google::Ads::DataManager::V1::UserList]
449
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
450
+ #
451
+ # @return [::Google::Ads::DataManager::V1::UserList]
452
+ #
453
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
454
+ #
455
+ # @example Basic example
456
+ # require "google/ads/data_manager/v1"
457
+ #
458
+ # # Create a client object. The client can be reused for multiple calls.
459
+ # client = Google::Ads::DataManager::V1::UserListService::Rest::Client.new
460
+ #
461
+ # # Create a request. To set request fields, pass in keyword arguments.
462
+ # request = Google::Ads::DataManager::V1::CreateUserListRequest.new
463
+ #
464
+ # # Call the create_user_list method.
465
+ # result = client.create_user_list request
466
+ #
467
+ # # The returned object is of type Google::Ads::DataManager::V1::UserList.
468
+ # p result
469
+ #
470
+ def create_user_list request, options = nil
471
+ raise ::ArgumentError, "request must be provided" if request.nil?
472
+
473
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::DataManager::V1::CreateUserListRequest
474
+
475
+ # Converts hash and nil to an options object
476
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
477
+
478
+ # Customize the options with defaults
479
+ call_metadata = @config.rpcs.create_user_list.metadata.to_h
480
+
481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
482
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
483
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
484
+ gapic_version: ::Google::Ads::DataManager::V1::VERSION,
485
+ transports_version_send: [:rest]
486
+
487
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
488
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
489
+
490
+ options.apply_defaults timeout: @config.rpcs.create_user_list.timeout,
491
+ metadata: call_metadata,
492
+ retry_policy: @config.rpcs.create_user_list.retry_policy
493
+
494
+ options.apply_defaults timeout: @config.timeout,
495
+ metadata: @config.metadata,
496
+ retry_policy: @config.retry_policy
497
+
498
+ @user_list_service_stub.create_user_list request, options do |result, operation|
499
+ yield result, operation if block_given?
500
+ end
501
+ rescue ::Gapic::Rest::Error => e
502
+ raise ::Google::Cloud::Error.from_error(e)
503
+ end
504
+
505
+ ##
506
+ # Updates a UserList.
507
+ #
508
+ # Authorization Headers:
509
+ #
510
+ # This method supports the following optional headers to define how the API
511
+ # authorizes access for the request:
512
+ #
513
+ # * `login-account`: (Optional) The resource name of the account where the
514
+ # Google Account of the credentials is a user. If not set, defaults to the
515
+ # account of the request. Format:
516
+ # `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
517
+ # * `linked-account`: (Optional) The resource name of the account with an
518
+ # established product link to the `login-account`. Format:
519
+ # `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`
520
+ #
521
+ # @overload update_user_list(request, options = nil)
522
+ # Pass arguments to `update_user_list` via a request object, either of type
523
+ # {::Google::Ads::DataManager::V1::UpdateUserListRequest} or an equivalent Hash.
524
+ #
525
+ # @param request [::Google::Ads::DataManager::V1::UpdateUserListRequest, ::Hash]
526
+ # A request object representing the call parameters. Required. To specify no
527
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
528
+ # @param options [::Gapic::CallOptions, ::Hash]
529
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
530
+ #
531
+ # @overload update_user_list(user_list: nil, update_mask: nil, validate_only: nil)
532
+ # Pass arguments to `update_user_list` via keyword arguments. Note that at
533
+ # least one keyword argument is required. To specify no parameters, or to keep all
534
+ # the default parameter values, pass an empty Hash as a request object (see above).
535
+ #
536
+ # @param user_list [::Google::Ads::DataManager::V1::UserList, ::Hash]
537
+ # Required. The user list to update.
538
+ #
539
+ # The user list's `name` field is used to identify the user list to update.
540
+ # Format:
541
+ # accountTypes/\\{account_type}/accounts/\\{account}/userLists/\\{user_list}
542
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
543
+ # Optional. The list of fields to update.
544
+ # @param validate_only [::Boolean]
545
+ # Optional. If true, the request is validated but not executed.
546
+ # @yield [result, operation] Access the result along with the TransportOperation object
547
+ # @yieldparam result [::Google::Ads::DataManager::V1::UserList]
548
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
549
+ #
550
+ # @return [::Google::Ads::DataManager::V1::UserList]
551
+ #
552
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
553
+ #
554
+ # @example Basic example
555
+ # require "google/ads/data_manager/v1"
556
+ #
557
+ # # Create a client object. The client can be reused for multiple calls.
558
+ # client = Google::Ads::DataManager::V1::UserListService::Rest::Client.new
559
+ #
560
+ # # Create a request. To set request fields, pass in keyword arguments.
561
+ # request = Google::Ads::DataManager::V1::UpdateUserListRequest.new
562
+ #
563
+ # # Call the update_user_list method.
564
+ # result = client.update_user_list request
565
+ #
566
+ # # The returned object is of type Google::Ads::DataManager::V1::UserList.
567
+ # p result
568
+ #
569
+ def update_user_list request, options = nil
570
+ raise ::ArgumentError, "request must be provided" if request.nil?
571
+
572
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::DataManager::V1::UpdateUserListRequest
573
+
574
+ # Converts hash and nil to an options object
575
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
576
+
577
+ # Customize the options with defaults
578
+ call_metadata = @config.rpcs.update_user_list.metadata.to_h
579
+
580
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
581
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
582
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
583
+ gapic_version: ::Google::Ads::DataManager::V1::VERSION,
584
+ transports_version_send: [:rest]
585
+
586
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
587
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
588
+
589
+ options.apply_defaults timeout: @config.rpcs.update_user_list.timeout,
590
+ metadata: call_metadata,
591
+ retry_policy: @config.rpcs.update_user_list.retry_policy
592
+
593
+ options.apply_defaults timeout: @config.timeout,
594
+ metadata: @config.metadata,
595
+ retry_policy: @config.retry_policy
596
+
597
+ @user_list_service_stub.update_user_list request, options do |result, operation|
598
+ yield result, operation if block_given?
599
+ end
600
+ rescue ::Gapic::Rest::Error => e
601
+ raise ::Google::Cloud::Error.from_error(e)
602
+ end
603
+
604
+ ##
605
+ # Deletes a UserList.
606
+ #
607
+ # Authorization Headers:
608
+ #
609
+ # This method supports the following optional headers to define how the API
610
+ # authorizes access for the request:
611
+ #
612
+ # * `login-account`: (Optional) The resource name of the account where the
613
+ # Google Account of the credentials is a user. If not set, defaults to the
614
+ # account of the request. Format:
615
+ # `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
616
+ # * `linked-account`: (Optional) The resource name of the account with an
617
+ # established product link to the `login-account`. Format:
618
+ # `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`
619
+ #
620
+ # @overload delete_user_list(request, options = nil)
621
+ # Pass arguments to `delete_user_list` via a request object, either of type
622
+ # {::Google::Ads::DataManager::V1::DeleteUserListRequest} or an equivalent Hash.
623
+ #
624
+ # @param request [::Google::Ads::DataManager::V1::DeleteUserListRequest, ::Hash]
625
+ # A request object representing the call parameters. Required. To specify no
626
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
627
+ # @param options [::Gapic::CallOptions, ::Hash]
628
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
629
+ #
630
+ # @overload delete_user_list(name: nil, validate_only: nil)
631
+ # Pass arguments to `delete_user_list` via keyword arguments. Note that at
632
+ # least one keyword argument is required. To specify no parameters, or to keep all
633
+ # the default parameter values, pass an empty Hash as a request object (see above).
634
+ #
635
+ # @param name [::String]
636
+ # Required. The name of the user list to delete.
637
+ # Format:
638
+ # accountTypes/\\{account_type}/accounts/\\{account}/userLists/\\{user_list}
639
+ # @param validate_only [::Boolean]
640
+ # Optional. If true, the request is validated but not executed.
641
+ # @yield [result, operation] Access the result along with the TransportOperation object
642
+ # @yieldparam result [::Google::Protobuf::Empty]
643
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
644
+ #
645
+ # @return [::Google::Protobuf::Empty]
646
+ #
647
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
648
+ #
649
+ # @example Basic example
650
+ # require "google/ads/data_manager/v1"
651
+ #
652
+ # # Create a client object. The client can be reused for multiple calls.
653
+ # client = Google::Ads::DataManager::V1::UserListService::Rest::Client.new
654
+ #
655
+ # # Create a request. To set request fields, pass in keyword arguments.
656
+ # request = Google::Ads::DataManager::V1::DeleteUserListRequest.new
657
+ #
658
+ # # Call the delete_user_list method.
659
+ # result = client.delete_user_list request
660
+ #
661
+ # # The returned object is of type Google::Protobuf::Empty.
662
+ # p result
663
+ #
664
+ def delete_user_list request, options = nil
665
+ raise ::ArgumentError, "request must be provided" if request.nil?
666
+
667
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::DataManager::V1::DeleteUserListRequest
668
+
669
+ # Converts hash and nil to an options object
670
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
671
+
672
+ # Customize the options with defaults
673
+ call_metadata = @config.rpcs.delete_user_list.metadata.to_h
674
+
675
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
676
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
677
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
678
+ gapic_version: ::Google::Ads::DataManager::V1::VERSION,
679
+ transports_version_send: [:rest]
680
+
681
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
682
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
683
+
684
+ options.apply_defaults timeout: @config.rpcs.delete_user_list.timeout,
685
+ metadata: call_metadata,
686
+ retry_policy: @config.rpcs.delete_user_list.retry_policy
687
+
688
+ options.apply_defaults timeout: @config.timeout,
689
+ metadata: @config.metadata,
690
+ retry_policy: @config.retry_policy
691
+
692
+ @user_list_service_stub.delete_user_list request, options do |result, operation|
693
+ yield result, operation if block_given?
694
+ end
695
+ rescue ::Gapic::Rest::Error => e
696
+ raise ::Google::Cloud::Error.from_error(e)
697
+ end
698
+
699
+ ##
700
+ # Configuration class for the UserListService REST API.
701
+ #
702
+ # This class represents the configuration for UserListService REST,
703
+ # providing control over timeouts, retry behavior, logging, transport
704
+ # parameters, and other low-level controls. Certain parameters can also be
705
+ # applied individually to specific RPCs. See
706
+ # {::Google::Ads::DataManager::V1::UserListService::Rest::Client::Configuration::Rpcs}
707
+ # for a list of RPCs that can be configured independently.
708
+ #
709
+ # Configuration can be applied globally to all clients, or to a single client
710
+ # on construction.
711
+ #
712
+ # @example
713
+ #
714
+ # # Modify the global config, setting the timeout for
715
+ # # get_user_list to 20 seconds,
716
+ # # and all remaining timeouts to 10 seconds.
717
+ # ::Google::Ads::DataManager::V1::UserListService::Rest::Client.configure do |config|
718
+ # config.timeout = 10.0
719
+ # config.rpcs.get_user_list.timeout = 20.0
720
+ # end
721
+ #
722
+ # # Apply the above configuration only to a new client.
723
+ # client = ::Google::Ads::DataManager::V1::UserListService::Rest::Client.new do |config|
724
+ # config.timeout = 10.0
725
+ # config.rpcs.get_user_list.timeout = 20.0
726
+ # end
727
+ #
728
+ # @!attribute [rw] endpoint
729
+ # A custom service endpoint, as a hostname or hostname:port. The default is
730
+ # nil, indicating to use the default endpoint in the current universe domain.
731
+ # @return [::String,nil]
732
+ # @!attribute [rw] credentials
733
+ # Credentials to send with calls. You may provide any of the following types:
734
+ # * (`String`) The path to a service account key file in JSON format
735
+ # * (`Hash`) A service account key as a Hash
736
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
737
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
738
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
739
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
740
+ # * (`nil`) indicating no credentials
741
+ #
742
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
743
+ # external source for authentication to Google Cloud, you must validate it before
744
+ # providing it to a Google API client library. Providing an unvalidated credential
745
+ # configuration to Google APIs can compromise the security of your systems and data.
746
+ # For more information, refer to [Validate credential configurations from external
747
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
748
+ # @return [::Object]
749
+ # @!attribute [rw] scope
750
+ # The OAuth scopes
751
+ # @return [::Array<::String>]
752
+ # @!attribute [rw] lib_name
753
+ # The library name as recorded in instrumentation and logging
754
+ # @return [::String]
755
+ # @!attribute [rw] lib_version
756
+ # The library version as recorded in instrumentation and logging
757
+ # @return [::String]
758
+ # @!attribute [rw] timeout
759
+ # The call timeout in seconds.
760
+ # @return [::Numeric]
761
+ # @!attribute [rw] metadata
762
+ # Additional headers to be sent with the call.
763
+ # @return [::Hash{::Symbol=>::String}]
764
+ # @!attribute [rw] retry_policy
765
+ # The retry policy. The value is a hash with the following keys:
766
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
767
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
768
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
769
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
770
+ # trigger a retry.
771
+ # @return [::Hash]
772
+ # @!attribute [rw] quota_project
773
+ # A separate project against which to charge quota.
774
+ # @return [::String]
775
+ # @!attribute [rw] universe_domain
776
+ # The universe domain within which to make requests. This determines the
777
+ # default endpoint URL. The default value of nil uses the environment
778
+ # universe (usually the default "googleapis.com" universe).
779
+ # @return [::String,nil]
780
+ # @!attribute [rw] logger
781
+ # A custom logger to use for request/response debug logging, or the value
782
+ # `:default` (the default) to construct a default logger, or `nil` to
783
+ # explicitly disable logging.
784
+ # @return [::Logger,:default,nil]
785
+ #
786
+ class Configuration
787
+ extend ::Gapic::Config
788
+
789
+ # @private
790
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
791
+ DEFAULT_ENDPOINT = "datamanager.googleapis.com"
792
+
793
+ config_attr :endpoint, nil, ::String, nil
794
+ config_attr :credentials, nil do |value|
795
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
796
+ allowed.any? { |klass| klass === value }
797
+ end
798
+ config_attr :scope, nil, ::String, ::Array, nil
799
+ config_attr :lib_name, nil, ::String, nil
800
+ config_attr :lib_version, nil, ::String, nil
801
+ config_attr :timeout, nil, ::Numeric, nil
802
+ config_attr :metadata, nil, ::Hash, nil
803
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
804
+ config_attr :quota_project, nil, ::String, nil
805
+ config_attr :universe_domain, nil, ::String, nil
806
+ config_attr :logger, :default, ::Logger, nil, :default
807
+
808
+ # @private
809
+ def initialize parent_config = nil
810
+ @parent_config = parent_config unless parent_config.nil?
811
+
812
+ yield self if block_given?
813
+ end
814
+
815
+ ##
816
+ # Configurations for individual RPCs
817
+ # @return [Rpcs]
818
+ #
819
+ def rpcs
820
+ @rpcs ||= begin
821
+ parent_rpcs = nil
822
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
823
+ Rpcs.new parent_rpcs
824
+ end
825
+ end
826
+
827
+ ##
828
+ # Configuration RPC class for the UserListService API.
829
+ #
830
+ # Includes fields providing the configuration for each RPC in this service.
831
+ # Each configuration object is of type `Gapic::Config::Method` and includes
832
+ # the following configuration fields:
833
+ #
834
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
835
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
836
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
837
+ # include the following keys:
838
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
839
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
840
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
841
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
842
+ # trigger a retry.
843
+ #
844
+ class Rpcs
845
+ ##
846
+ # RPC-specific configuration for `get_user_list`
847
+ # @return [::Gapic::Config::Method]
848
+ #
849
+ attr_reader :get_user_list
850
+ ##
851
+ # RPC-specific configuration for `list_user_lists`
852
+ # @return [::Gapic::Config::Method]
853
+ #
854
+ attr_reader :list_user_lists
855
+ ##
856
+ # RPC-specific configuration for `create_user_list`
857
+ # @return [::Gapic::Config::Method]
858
+ #
859
+ attr_reader :create_user_list
860
+ ##
861
+ # RPC-specific configuration for `update_user_list`
862
+ # @return [::Gapic::Config::Method]
863
+ #
864
+ attr_reader :update_user_list
865
+ ##
866
+ # RPC-specific configuration for `delete_user_list`
867
+ # @return [::Gapic::Config::Method]
868
+ #
869
+ attr_reader :delete_user_list
870
+
871
+ # @private
872
+ def initialize parent_rpcs = nil
873
+ get_user_list_config = parent_rpcs.get_user_list if parent_rpcs.respond_to? :get_user_list
874
+ @get_user_list = ::Gapic::Config::Method.new get_user_list_config
875
+ list_user_lists_config = parent_rpcs.list_user_lists if parent_rpcs.respond_to? :list_user_lists
876
+ @list_user_lists = ::Gapic::Config::Method.new list_user_lists_config
877
+ create_user_list_config = parent_rpcs.create_user_list if parent_rpcs.respond_to? :create_user_list
878
+ @create_user_list = ::Gapic::Config::Method.new create_user_list_config
879
+ update_user_list_config = parent_rpcs.update_user_list if parent_rpcs.respond_to? :update_user_list
880
+ @update_user_list = ::Gapic::Config::Method.new update_user_list_config
881
+ delete_user_list_config = parent_rpcs.delete_user_list if parent_rpcs.respond_to? :delete_user_list
882
+ @delete_user_list = ::Gapic::Config::Method.new delete_user_list_config
883
+
884
+ yield self if block_given?
885
+ end
886
+ end
887
+ end
888
+ end
889
+ end
890
+ end
891
+ end
892
+ end
893
+ end
894
+ end