google-apis-developerconnect_v1 0.5.0 → 0.7.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.
@@ -84,6 +84,9 @@ module Google
84
84
  # Lists information about the supported locations for this service.
85
85
  # @param [String] name
86
86
  # The resource that owns the locations collection, if applicable.
87
+ # @param [Array<String>, String] extra_location_types
88
+ # Optional. A list of extra location types that should be used as conditions for
89
+ # controlling the visibility of the locations.
87
90
  # @param [String] filter
88
91
  # A filter to narrow down results to a preferred subset. The filtering language
89
92
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -111,11 +114,12 @@ module Google
111
114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
114
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
115
118
  command = make_simple_command(:get, 'v1/{+name}/locations', options)
116
119
  command.response_representation = Google::Apis::DeveloperconnectV1::ListLocationsResponse::Representation
117
120
  command.response_class = Google::Apis::DeveloperconnectV1::ListLocationsResponse
118
121
  command.params['name'] = name unless name.nil?
122
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
119
123
  command.query['filter'] = filter unless filter.nil?
120
124
  command.query['pageSize'] = page_size unless page_size.nil?
121
125
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -124,6 +128,433 @@ module Google
124
128
  execute_or_queue_command(command, &block)
125
129
  end
126
130
 
131
+ # Creates a new AccountConnector in a given project and location.
132
+ # @param [String] parent
133
+ # Required. Location resource name as the account_connector’s parent.
134
+ # @param [Google::Apis::DeveloperconnectV1::AccountConnector] account_connector_object
135
+ # @param [String] account_connector_id
136
+ # Required. The ID to use for the AccountConnector, which will become the final
137
+ # component of the AccountConnector's resource name. Its format should adhere to
138
+ # https://google.aip.dev/122#resource-id-segments Names must be unique per-
139
+ # project per-location.
140
+ # @param [String] request_id
141
+ # Optional. An optional request ID to identify requests. Specify a unique
142
+ # request ID so that if you must retry your request, the server will know to
143
+ # ignore the request if it has already been completed. The server will guarantee
144
+ # that for at least 60 minutes since the first request. For example, consider a
145
+ # situation where you make an initial request and the request times out. If you
146
+ # make the request again with the same request ID, the server can check if
147
+ # original operation with the same request ID was received, and if so, will
148
+ # ignore the second request. This prevents clients from accidentally creating
149
+ # duplicate commitments. The request ID must be a valid UUID with the exception
150
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
151
+ # @param [Boolean] validate_only
152
+ # Optional. If set, validate the request, but do not actually post it.
153
+ # @param [String] fields
154
+ # Selector specifying which fields to include in a partial response.
155
+ # @param [String] quota_user
156
+ # Available to use for quota purposes for server-side applications. Can be any
157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
158
+ # @param [Google::Apis::RequestOptions] options
159
+ # Request-specific options
160
+ #
161
+ # @yield [result, err] Result & error if block supplied
162
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
163
+ # @yieldparam err [StandardError] error object if request failed
164
+ #
165
+ # @return [Google::Apis::DeveloperconnectV1::Operation]
166
+ #
167
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
170
+ def create_project_location_account_connector(parent, account_connector_object = nil, account_connector_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
171
+ command = make_simple_command(:post, 'v1/{+parent}/accountConnectors', options)
172
+ command.request_representation = Google::Apis::DeveloperconnectV1::AccountConnector::Representation
173
+ command.request_object = account_connector_object
174
+ command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
175
+ command.response_class = Google::Apis::DeveloperconnectV1::Operation
176
+ command.params['parent'] = parent unless parent.nil?
177
+ command.query['accountConnectorId'] = account_connector_id unless account_connector_id.nil?
178
+ command.query['requestId'] = request_id unless request_id.nil?
179
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
180
+ command.query['fields'] = fields unless fields.nil?
181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
182
+ execute_or_queue_command(command, &block)
183
+ end
184
+
185
+ # Deletes a single AccountConnector.
186
+ # @param [String] name
187
+ # Required. Name of the resource
188
+ # @param [String] etag
189
+ # Optional. The current etag of the AccountConnectorn. If an etag is provided
190
+ # and does not match the current etag of the AccountConnector, deletion will be
191
+ # blocked and an ABORTED error will be returned.
192
+ # @param [Boolean] force
193
+ # Optional. If set to true, any Users from this AccountConnector will also be
194
+ # deleted. (Otherwise, the request will only work if the AccountConnector has no
195
+ # Users.)
196
+ # @param [String] request_id
197
+ # Optional. An optional request ID to identify requests. Specify a unique
198
+ # request ID so that if you must retry your request, the server will know to
199
+ # ignore the request if it has already been completed. The server will guarantee
200
+ # that for at least 60 minutes after the first request. For example, consider a
201
+ # situation where you make an initial request and the request times out. If you
202
+ # make the request again with the same request ID, the server can check if
203
+ # original operation with the same request ID was received, and if so, will
204
+ # ignore the second request. This prevents clients from accidentally creating
205
+ # duplicate commitments. The request ID must be a valid UUID with the exception
206
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
207
+ # @param [Boolean] validate_only
208
+ # Optional. If set, validate the request, but do not actually post it.
209
+ # @param [String] fields
210
+ # Selector specifying which fields to include in a partial response.
211
+ # @param [String] quota_user
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
214
+ # @param [Google::Apis::RequestOptions] options
215
+ # Request-specific options
216
+ #
217
+ # @yield [result, err] Result & error if block supplied
218
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
219
+ # @yieldparam err [StandardError] error object if request failed
220
+ #
221
+ # @return [Google::Apis::DeveloperconnectV1::Operation]
222
+ #
223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
226
+ def delete_project_location_account_connector(name, etag: nil, force: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
227
+ command = make_simple_command(:delete, 'v1/{+name}', options)
228
+ command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
229
+ command.response_class = Google::Apis::DeveloperconnectV1::Operation
230
+ command.params['name'] = name unless name.nil?
231
+ command.query['etag'] = etag unless etag.nil?
232
+ command.query['force'] = force unless force.nil?
233
+ command.query['requestId'] = request_id unless request_id.nil?
234
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
235
+ command.query['fields'] = fields unless fields.nil?
236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
237
+ execute_or_queue_command(command, &block)
238
+ end
239
+
240
+ # Gets details of a single AccountConnector.
241
+ # @param [String] name
242
+ # Required. Name of the resource
243
+ # @param [String] fields
244
+ # Selector specifying which fields to include in a partial response.
245
+ # @param [String] quota_user
246
+ # Available to use for quota purposes for server-side applications. Can be any
247
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
248
+ # @param [Google::Apis::RequestOptions] options
249
+ # Request-specific options
250
+ #
251
+ # @yield [result, err] Result & error if block supplied
252
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::AccountConnector] parsed result object
253
+ # @yieldparam err [StandardError] error object if request failed
254
+ #
255
+ # @return [Google::Apis::DeveloperconnectV1::AccountConnector]
256
+ #
257
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
258
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
259
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
260
+ def get_project_location_account_connector(name, fields: nil, quota_user: nil, options: nil, &block)
261
+ command = make_simple_command(:get, 'v1/{+name}', options)
262
+ command.response_representation = Google::Apis::DeveloperconnectV1::AccountConnector::Representation
263
+ command.response_class = Google::Apis::DeveloperconnectV1::AccountConnector
264
+ command.params['name'] = name unless name.nil?
265
+ command.query['fields'] = fields unless fields.nil?
266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
267
+ execute_or_queue_command(command, &block)
268
+ end
269
+
270
+ # Lists AccountConnectors in a given project and location.
271
+ # @param [String] parent
272
+ # Required. Parent value for ListAccountConnectorsRequest
273
+ # @param [String] filter
274
+ # Optional. Filtering results
275
+ # @param [String] order_by
276
+ # Optional. Hint for how to order the results
277
+ # @param [Fixnum] page_size
278
+ # Optional. Requested page size. Server may return fewer items than requested.
279
+ # If unspecified, server will pick an appropriate default.
280
+ # @param [String] page_token
281
+ # Optional. A token identifying a page of results the server should return.
282
+ # @param [String] fields
283
+ # Selector specifying which fields to include in a partial response.
284
+ # @param [String] quota_user
285
+ # Available to use for quota purposes for server-side applications. Can be any
286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
287
+ # @param [Google::Apis::RequestOptions] options
288
+ # Request-specific options
289
+ #
290
+ # @yield [result, err] Result & error if block supplied
291
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::ListAccountConnectorsResponse] parsed result object
292
+ # @yieldparam err [StandardError] error object if request failed
293
+ #
294
+ # @return [Google::Apis::DeveloperconnectV1::ListAccountConnectorsResponse]
295
+ #
296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
299
+ def list_project_location_account_connectors(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
300
+ command = make_simple_command(:get, 'v1/{+parent}/accountConnectors', options)
301
+ command.response_representation = Google::Apis::DeveloperconnectV1::ListAccountConnectorsResponse::Representation
302
+ command.response_class = Google::Apis::DeveloperconnectV1::ListAccountConnectorsResponse
303
+ command.params['parent'] = parent unless parent.nil?
304
+ command.query['filter'] = filter unless filter.nil?
305
+ command.query['orderBy'] = order_by unless order_by.nil?
306
+ command.query['pageSize'] = page_size unless page_size.nil?
307
+ command.query['pageToken'] = page_token unless page_token.nil?
308
+ command.query['fields'] = fields unless fields.nil?
309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Updates the parameters of a single AccountConnector.
314
+ # @param [String] name
315
+ # Identifier. The resource name of the userConnection, in the format `projects/`
316
+ # project`/locations/`location`/accountConnectors/`account_connector_id``.
317
+ # @param [Google::Apis::DeveloperconnectV1::AccountConnector] account_connector_object
318
+ # @param [Boolean] allow_missing
319
+ # Optional. If set to true, and the userConnection is not found a new
320
+ # userConnection will be created. In this situation `update_mask` is ignored.
321
+ # The creation will succeed only if the input userConnection has all the
322
+ # necessary
323
+ # @param [String] request_id
324
+ # Optional. An optional request ID to identify requests. Specify a unique
325
+ # request ID so that if you must retry your request, the server will know to
326
+ # ignore the request if it has already been completed. The server will guarantee
327
+ # that for at least 60 minutes since the first request. For example, consider a
328
+ # situation where you make an initial request and the request times out. If you
329
+ # make the request again with the same request ID, the server can check if
330
+ # original operation with the same request ID was received, and if so, will
331
+ # ignore the second request. This prevents clients from accidentally creating
332
+ # duplicate commitments. The request ID must be a valid UUID with the exception
333
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
334
+ # @param [String] update_mask
335
+ # Optional. The list of fields to be updated.
336
+ # @param [Boolean] validate_only
337
+ # Optional. If set, validate the request, but do not actually post it.
338
+ # @param [String] fields
339
+ # Selector specifying which fields to include in a partial response.
340
+ # @param [String] quota_user
341
+ # Available to use for quota purposes for server-side applications. Can be any
342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
343
+ # @param [Google::Apis::RequestOptions] options
344
+ # Request-specific options
345
+ #
346
+ # @yield [result, err] Result & error if block supplied
347
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
348
+ # @yieldparam err [StandardError] error object if request failed
349
+ #
350
+ # @return [Google::Apis::DeveloperconnectV1::Operation]
351
+ #
352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
355
+ def patch_project_location_account_connector(name, account_connector_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
356
+ command = make_simple_command(:patch, 'v1/{+name}', options)
357
+ command.request_representation = Google::Apis::DeveloperconnectV1::AccountConnector::Representation
358
+ command.request_object = account_connector_object
359
+ command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
360
+ command.response_class = Google::Apis::DeveloperconnectV1::Operation
361
+ command.params['name'] = name unless name.nil?
362
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
363
+ command.query['requestId'] = request_id unless request_id.nil?
364
+ command.query['updateMask'] = update_mask unless update_mask.nil?
365
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
366
+ command.query['fields'] = fields unless fields.nil?
367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
368
+ execute_or_queue_command(command, &block)
369
+ end
370
+
371
+ # Deletes a single User.
372
+ # @param [String] name
373
+ # Required. Name of the resource
374
+ # @param [String] etag
375
+ # Optional. This checksum is computed by the server based on the value of other
376
+ # fields, and may be sent on update and delete requests to ensure the client has
377
+ # an up-to-date value before proceeding.
378
+ # @param [String] request_id
379
+ # Optional. An optional request ID to identify requests. Specify a unique
380
+ # request ID so that if you must retry your request, the server will know to
381
+ # ignore the request if it has already been completed. The server will guarantee
382
+ # that for at least 60 minutes after the first request. For example, consider a
383
+ # situation where you make an initial request and the request times out. If you
384
+ # make the request again with the same request ID, the server can check if
385
+ # original operation with the same request ID was received, and if so, will
386
+ # ignore the second request. This prevents clients from accidentally creating
387
+ # duplicate commitments. The request ID must be a valid UUID with the exception
388
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
389
+ # @param [Boolean] validate_only
390
+ # Optional. If set, validate the request, but do not actually post it.
391
+ # @param [String] fields
392
+ # Selector specifying which fields to include in a partial response.
393
+ # @param [String] quota_user
394
+ # Available to use for quota purposes for server-side applications. Can be any
395
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
396
+ # @param [Google::Apis::RequestOptions] options
397
+ # Request-specific options
398
+ #
399
+ # @yield [result, err] Result & error if block supplied
400
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
401
+ # @yieldparam err [StandardError] error object if request failed
402
+ #
403
+ # @return [Google::Apis::DeveloperconnectV1::Operation]
404
+ #
405
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
408
+ def delete_project_location_account_connector_user(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
409
+ command = make_simple_command(:delete, 'v1/{+name}', options)
410
+ command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
411
+ command.response_class = Google::Apis::DeveloperconnectV1::Operation
412
+ command.params['name'] = name unless name.nil?
413
+ command.query['etag'] = etag unless etag.nil?
414
+ command.query['requestId'] = request_id unless request_id.nil?
415
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
416
+ command.query['fields'] = fields unless fields.nil?
417
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
418
+ execute_or_queue_command(command, &block)
419
+ end
420
+
421
+ # Delete the User of the user themselves.
422
+ # @param [String] name
423
+ # Required. Name of the AccountConnector resource
424
+ # @param [String] fields
425
+ # Selector specifying which fields to include in a partial response.
426
+ # @param [String] quota_user
427
+ # Available to use for quota purposes for server-side applications. Can be any
428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
429
+ # @param [Google::Apis::RequestOptions] options
430
+ # Request-specific options
431
+ #
432
+ # @yield [result, err] Result & error if block supplied
433
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
434
+ # @yieldparam err [StandardError] error object if request failed
435
+ #
436
+ # @return [Google::Apis::DeveloperconnectV1::Operation]
437
+ #
438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
441
+ def delete_project_location_account_connector_user_self(name, fields: nil, quota_user: nil, options: nil, &block)
442
+ command = make_simple_command(:delete, 'v1/{+name}/users:deleteSelf', options)
443
+ command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
444
+ command.response_class = Google::Apis::DeveloperconnectV1::Operation
445
+ command.params['name'] = name unless name.nil?
446
+ command.query['fields'] = fields unless fields.nil?
447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
448
+ execute_or_queue_command(command, &block)
449
+ end
450
+
451
+ # Fetches OAuth access token based on end user credentials.
452
+ # @param [String] account_connector
453
+ # Required. The resource name of the AccountConnector in the format `projects/*/
454
+ # locations/*/accountConnectors/*`.
455
+ # @param [Google::Apis::DeveloperconnectV1::FetchAccessTokenRequest] fetch_access_token_request_object
456
+ # @param [String] fields
457
+ # Selector specifying which fields to include in a partial response.
458
+ # @param [String] quota_user
459
+ # Available to use for quota purposes for server-side applications. Can be any
460
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
461
+ # @param [Google::Apis::RequestOptions] options
462
+ # Request-specific options
463
+ #
464
+ # @yield [result, err] Result & error if block supplied
465
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse] parsed result object
466
+ # @yieldparam err [StandardError] error object if request failed
467
+ #
468
+ # @return [Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse]
469
+ #
470
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
471
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
472
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
473
+ def fetch_user_access_token(account_connector, fetch_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
474
+ command = make_simple_command(:post, 'v1/{+accountConnector}/users:fetchAccessToken', options)
475
+ command.request_representation = Google::Apis::DeveloperconnectV1::FetchAccessTokenRequest::Representation
476
+ command.request_object = fetch_access_token_request_object
477
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse::Representation
478
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse
479
+ command.params['accountConnector'] = account_connector unless account_connector.nil?
480
+ command.query['fields'] = fields unless fields.nil?
481
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
482
+ execute_or_queue_command(command, &block)
483
+ end
484
+
485
+ # Fetches the User of the user themselves.
486
+ # @param [String] name
487
+ # Required. Name of the AccountConnector resource
488
+ # @param [String] fields
489
+ # Selector specifying which fields to include in a partial response.
490
+ # @param [String] quota_user
491
+ # Available to use for quota purposes for server-side applications. Can be any
492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
493
+ # @param [Google::Apis::RequestOptions] options
494
+ # Request-specific options
495
+ #
496
+ # @yield [result, err] Result & error if block supplied
497
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::User] parsed result object
498
+ # @yieldparam err [StandardError] error object if request failed
499
+ #
500
+ # @return [Google::Apis::DeveloperconnectV1::User]
501
+ #
502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
505
+ def fetch_project_location_account_connector_user_self(name, fields: nil, quota_user: nil, options: nil, &block)
506
+ command = make_simple_command(:get, 'v1/{+name}/users:fetchSelf', options)
507
+ command.response_representation = Google::Apis::DeveloperconnectV1::User::Representation
508
+ command.response_class = Google::Apis::DeveloperconnectV1::User
509
+ command.params['name'] = name unless name.nil?
510
+ command.query['fields'] = fields unless fields.nil?
511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
512
+ execute_or_queue_command(command, &block)
513
+ end
514
+
515
+ # Lists Users in a given project, location, and account_connector.
516
+ # @param [String] parent
517
+ # Required. Parent value for ListUsersRequest
518
+ # @param [String] filter
519
+ # Optional. Filtering results
520
+ # @param [String] order_by
521
+ # Optional. Hint for how to order the results
522
+ # @param [Fixnum] page_size
523
+ # Optional. Requested page size. Server may return fewer items than requested.
524
+ # If unspecified, server will pick an appropriate default.
525
+ # @param [String] page_token
526
+ # Optional. A token identifying a page of results the server should return.
527
+ # @param [String] fields
528
+ # Selector specifying which fields to include in a partial response.
529
+ # @param [String] quota_user
530
+ # Available to use for quota purposes for server-side applications. Can be any
531
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
532
+ # @param [Google::Apis::RequestOptions] options
533
+ # Request-specific options
534
+ #
535
+ # @yield [result, err] Result & error if block supplied
536
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::ListUsersResponse] parsed result object
537
+ # @yieldparam err [StandardError] error object if request failed
538
+ #
539
+ # @return [Google::Apis::DeveloperconnectV1::ListUsersResponse]
540
+ #
541
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
542
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
543
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
544
+ def list_project_location_account_connector_users(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
545
+ command = make_simple_command(:get, 'v1/{+parent}/users', options)
546
+ command.response_representation = Google::Apis::DeveloperconnectV1::ListUsersResponse::Representation
547
+ command.response_class = Google::Apis::DeveloperconnectV1::ListUsersResponse
548
+ command.params['parent'] = parent unless parent.nil?
549
+ command.query['filter'] = filter unless filter.nil?
550
+ command.query['orderBy'] = order_by unless order_by.nil?
551
+ command.query['pageSize'] = page_size unless page_size.nil?
552
+ command.query['pageToken'] = page_token unless page_token.nil?
553
+ command.query['fields'] = fields unless fields.nil?
554
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
555
+ execute_or_queue_command(command, &block)
556
+ end
557
+
127
558
  # Creates a new Connection in a given project and location.
128
559
  # @param [String] parent
129
560
  # Required. Value for parent.
@@ -756,6 +1187,76 @@ module Google
756
1187
  execute_or_queue_command(command, &block)
757
1188
  end
758
1189
 
1190
+ # ProcessBitbucketCloudWebhook is called by the external Bitbucket Cloud
1191
+ # instances for notifying events.
1192
+ # @param [String] name
1193
+ # Required. The GitRepositoryLink where the webhook will be received. Format: `
1194
+ # projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
1195
+ # @param [Google::Apis::DeveloperconnectV1::ProcessBitbucketCloudWebhookRequest] process_bitbucket_cloud_webhook_request_object
1196
+ # @param [String] fields
1197
+ # Selector specifying which fields to include in a partial response.
1198
+ # @param [String] quota_user
1199
+ # Available to use for quota purposes for server-side applications. Can be any
1200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1201
+ # @param [Google::Apis::RequestOptions] options
1202
+ # Request-specific options
1203
+ #
1204
+ # @yield [result, err] Result & error if block supplied
1205
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::Empty] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::DeveloperconnectV1::Empty]
1209
+ #
1210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
+ def process_git_repository_link_bitbucket_cloud_webhook(name, process_bitbucket_cloud_webhook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1214
+ command = make_simple_command(:post, 'v1/{+name}:processBitbucketCloudWebhook', options)
1215
+ command.request_representation = Google::Apis::DeveloperconnectV1::ProcessBitbucketCloudWebhookRequest::Representation
1216
+ command.request_object = process_bitbucket_cloud_webhook_request_object
1217
+ command.response_representation = Google::Apis::DeveloperconnectV1::Empty::Representation
1218
+ command.response_class = Google::Apis::DeveloperconnectV1::Empty
1219
+ command.params['name'] = name unless name.nil?
1220
+ command.query['fields'] = fields unless fields.nil?
1221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1222
+ execute_or_queue_command(command, &block)
1223
+ end
1224
+
1225
+ # ProcessBitbucketDataCenterWebhook is called by the external Bitbucket Data
1226
+ # Center instances for notifying events.
1227
+ # @param [String] name
1228
+ # Required. The GitRepositoryLink where the webhook will be received. Format: `
1229
+ # projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
1230
+ # @param [Google::Apis::DeveloperconnectV1::ProcessBitbucketDataCenterWebhookRequest] process_bitbucket_data_center_webhook_request_object
1231
+ # @param [String] fields
1232
+ # Selector specifying which fields to include in a partial response.
1233
+ # @param [String] quota_user
1234
+ # Available to use for quota purposes for server-side applications. Can be any
1235
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1236
+ # @param [Google::Apis::RequestOptions] options
1237
+ # Request-specific options
1238
+ #
1239
+ # @yield [result, err] Result & error if block supplied
1240
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::Empty] parsed result object
1241
+ # @yieldparam err [StandardError] error object if request failed
1242
+ #
1243
+ # @return [Google::Apis::DeveloperconnectV1::Empty]
1244
+ #
1245
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1246
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1247
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1248
+ def process_git_repository_link_bitbucket_data_center_webhook(name, process_bitbucket_data_center_webhook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1249
+ command = make_simple_command(:post, 'v1/{+name}:processBitbucketDataCenterWebhook', options)
1250
+ command.request_representation = Google::Apis::DeveloperconnectV1::ProcessBitbucketDataCenterWebhookRequest::Representation
1251
+ command.request_object = process_bitbucket_data_center_webhook_request_object
1252
+ command.response_representation = Google::Apis::DeveloperconnectV1::Empty::Representation
1253
+ command.response_class = Google::Apis::DeveloperconnectV1::Empty
1254
+ command.params['name'] = name unless name.nil?
1255
+ command.query['fields'] = fields unless fields.nil?
1256
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1257
+ execute_or_queue_command(command, &block)
1258
+ end
1259
+
759
1260
  # ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise
760
1261
  # instances for notifying events.
761
1262
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-developerconnect_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-15 00:00:00.000000000 Z
10
+ date: 2025-03-30 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerconnect_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-developerconnect_v1/v0.5.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-developerconnect_v1/v0.7.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerconnect_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Developer Connect API V1
82
79
  test_files: []