google-apis-apphub_v1 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,6 +51,43 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Detaches a service project from a host project. You can call this API from any
55
+ # service project without needing access to the host project that it is attached
56
+ # to.
57
+ # @param [String] name
58
+ # Required. Service project id and location to detach from a host project. Only
59
+ # global location is supported. Expected format: `projects/`project`/locations/`
60
+ # location``.
61
+ # @param [Google::Apis::ApphubV1::DetachServiceProjectAttachmentRequest] detach_service_project_attachment_request_object
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::ApphubV1::DetachServiceProjectAttachmentResponse] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::ApphubV1::DetachServiceProjectAttachmentResponse]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def detach_location_service_project_attachment(name, detach_service_project_attachment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
80
+ command = make_simple_command(:post, 'v1/{+name}:detachServiceProjectAttachment', options)
81
+ command.request_representation = Google::Apis::ApphubV1::DetachServiceProjectAttachmentRequest::Representation
82
+ command.request_object = detach_service_project_attachment_request_object
83
+ command.response_representation = Google::Apis::ApphubV1::DetachServiceProjectAttachmentResponse::Representation
84
+ command.response_class = Google::Apis::ApphubV1::DetachServiceProjectAttachmentResponse
85
+ command.params['name'] = name unless name.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
54
91
  # Gets information about a location.
55
92
  # @param [String] name
56
93
  # Resource name for the location.
@@ -124,6 +161,164 @@ module Google
124
161
  execute_or_queue_command(command, &block)
125
162
  end
126
163
 
164
+ # Lists a service project attachment for a given service project. You can call
165
+ # this API from any project to find if it is attached to a host project.
166
+ # @param [String] name
167
+ # Required. Service project ID and location to lookup service project attachment
168
+ # for. Only global location is supported. Expected format: `projects/`project`/
169
+ # locations/`location``.
170
+ # @param [String] fields
171
+ # Selector specifying which fields to include in a partial response.
172
+ # @param [String] quota_user
173
+ # Available to use for quota purposes for server-side applications. Can be any
174
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
175
+ # @param [Google::Apis::RequestOptions] options
176
+ # Request-specific options
177
+ #
178
+ # @yield [result, err] Result & error if block supplied
179
+ # @yieldparam result [Google::Apis::ApphubV1::LookupServiceProjectAttachmentResponse] parsed result object
180
+ # @yieldparam err [StandardError] error object if request failed
181
+ #
182
+ # @return [Google::Apis::ApphubV1::LookupServiceProjectAttachmentResponse]
183
+ #
184
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
185
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
186
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
187
+ def lookup_project_location_service_project_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
188
+ command = make_simple_command(:get, 'v1/{+name}:lookupServiceProjectAttachment', options)
189
+ command.response_representation = Google::Apis::ApphubV1::LookupServiceProjectAttachmentResponse::Representation
190
+ command.response_class = Google::Apis::ApphubV1::LookupServiceProjectAttachmentResponse
191
+ command.params['name'] = name unless name.nil?
192
+ command.query['fields'] = fields unless fields.nil?
193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
194
+ execute_or_queue_command(command, &block)
195
+ end
196
+
197
+ # Creates an Application in a host project and location.
198
+ # @param [String] parent
199
+ # Required. Project and location to create Application in. Expected format: `
200
+ # projects/`project`/locations/`location``.
201
+ # @param [Google::Apis::ApphubV1::Application] application_object
202
+ # @param [String] application_id
203
+ # Required. The Application identifier. Must contain only lowercase letters,
204
+ # numbers or hyphens, with the first character a letter, the last a letter or a
205
+ # number, and a 63 character maximum.
206
+ # @param [String] request_id
207
+ # Optional. An optional request ID to identify requests. Specify a unique
208
+ # request ID so that if you must retry your request, the server will know to
209
+ # ignore the request if it has already been completed. The server will guarantee
210
+ # that for at least 60 minutes since the first request. For example, consider a
211
+ # situation where you make an initial request and the request times out. If you
212
+ # make the request again with the same request ID, the server can check if
213
+ # original operation with the same request ID was received, and if so, will
214
+ # ignore the second request. This prevents clients from accidentally creating
215
+ # duplicate commitments. The request ID must be a valid UUID with the exception
216
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
217
+ # @param [String] fields
218
+ # Selector specifying which fields to include in a partial response.
219
+ # @param [String] quota_user
220
+ # Available to use for quota purposes for server-side applications. Can be any
221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
222
+ # @param [Google::Apis::RequestOptions] options
223
+ # Request-specific options
224
+ #
225
+ # @yield [result, err] Result & error if block supplied
226
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
227
+ # @yieldparam err [StandardError] error object if request failed
228
+ #
229
+ # @return [Google::Apis::ApphubV1::Operation]
230
+ #
231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
234
+ def create_project_location_application(parent, application_object = nil, application_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
235
+ command = make_simple_command(:post, 'v1/{+parent}/applications', options)
236
+ command.request_representation = Google::Apis::ApphubV1::Application::Representation
237
+ command.request_object = application_object
238
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
239
+ command.response_class = Google::Apis::ApphubV1::Operation
240
+ command.params['parent'] = parent unless parent.nil?
241
+ command.query['applicationId'] = application_id unless application_id.nil?
242
+ command.query['requestId'] = request_id unless request_id.nil?
243
+ command.query['fields'] = fields unless fields.nil?
244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
245
+ execute_or_queue_command(command, &block)
246
+ end
247
+
248
+ # Deletes an Application in a host project and location.
249
+ # @param [String] name
250
+ # Required. Fully qualified name of the Application to delete. Expected format: `
251
+ # projects/`project`/locations/`location`/applications/`application``.
252
+ # @param [String] request_id
253
+ # Optional. An optional request ID to identify requests. Specify a unique
254
+ # request ID so that if you must retry your request, the server will know to
255
+ # ignore the request if it has already been completed. The server will guarantee
256
+ # that for at least 60 minutes after the first request. For example, consider a
257
+ # situation where you make an initial request and the request times out. If you
258
+ # make the request again with the same request ID, the server can check if
259
+ # original operation with the same request ID was received, and if so, will
260
+ # ignore the second request. This prevents clients from accidentally creating
261
+ # duplicate commitments. The request ID must be a valid UUID with the exception
262
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
263
+ # @param [String] fields
264
+ # Selector specifying which fields to include in a partial response.
265
+ # @param [String] quota_user
266
+ # Available to use for quota purposes for server-side applications. Can be any
267
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
268
+ # @param [Google::Apis::RequestOptions] options
269
+ # Request-specific options
270
+ #
271
+ # @yield [result, err] Result & error if block supplied
272
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
273
+ # @yieldparam err [StandardError] error object if request failed
274
+ #
275
+ # @return [Google::Apis::ApphubV1::Operation]
276
+ #
277
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
278
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
279
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
280
+ def delete_project_location_application(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
281
+ command = make_simple_command(:delete, 'v1/{+name}', options)
282
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
283
+ command.response_class = Google::Apis::ApphubV1::Operation
284
+ command.params['name'] = name unless name.nil?
285
+ command.query['requestId'] = request_id unless request_id.nil?
286
+ command.query['fields'] = fields unless fields.nil?
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ execute_or_queue_command(command, &block)
289
+ end
290
+
291
+ # Gets an Application in a host project and location.
292
+ # @param [String] name
293
+ # Required. Fully qualified name of the Application to fetch. Expected format: `
294
+ # projects/`project`/locations/`location`/applications/`application``.
295
+ # @param [String] fields
296
+ # Selector specifying which fields to include in a partial response.
297
+ # @param [String] quota_user
298
+ # Available to use for quota purposes for server-side applications. Can be any
299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
300
+ # @param [Google::Apis::RequestOptions] options
301
+ # Request-specific options
302
+ #
303
+ # @yield [result, err] Result & error if block supplied
304
+ # @yieldparam result [Google::Apis::ApphubV1::Application] parsed result object
305
+ # @yieldparam err [StandardError] error object if request failed
306
+ #
307
+ # @return [Google::Apis::ApphubV1::Application]
308
+ #
309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
312
+ def get_project_location_application(name, fields: nil, quota_user: nil, options: nil, &block)
313
+ command = make_simple_command(:get, 'v1/{+name}', options)
314
+ command.response_representation = Google::Apis::ApphubV1::Application::Representation
315
+ command.response_class = Google::Apis::ApphubV1::Application
316
+ command.params['name'] = name unless name.nil?
317
+ command.query['fields'] = fields unless fields.nil?
318
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
319
+ execute_or_queue_command(command, &block)
320
+ end
321
+
127
322
  # Gets the access control policy for a resource. Returns an empty policy if the
128
323
  # resource exists and does not have a policy set.
129
324
  # @param [String] resource
@@ -169,6 +364,105 @@ module Google
169
364
  execute_or_queue_command(command, &block)
170
365
  end
171
366
 
367
+ # Lists Applications in a host project and location.
368
+ # @param [String] parent
369
+ # Required. Project and location to list Applications on. Expected format: `
370
+ # projects/`project`/locations/`location``.
371
+ # @param [String] filter
372
+ # Optional. Filtering results.
373
+ # @param [String] order_by
374
+ # Optional. Hint for how to order the results.
375
+ # @param [Fixnum] page_size
376
+ # Optional. Requested page size. Server may return fewer items than requested.
377
+ # If unspecified, server will pick an appropriate default.
378
+ # @param [String] page_token
379
+ # Optional. A token identifying a page of results the server should return.
380
+ # @param [String] fields
381
+ # Selector specifying which fields to include in a partial response.
382
+ # @param [String] quota_user
383
+ # Available to use for quota purposes for server-side applications. Can be any
384
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
385
+ # @param [Google::Apis::RequestOptions] options
386
+ # Request-specific options
387
+ #
388
+ # @yield [result, err] Result & error if block supplied
389
+ # @yieldparam result [Google::Apis::ApphubV1::ListApplicationsResponse] parsed result object
390
+ # @yieldparam err [StandardError] error object if request failed
391
+ #
392
+ # @return [Google::Apis::ApphubV1::ListApplicationsResponse]
393
+ #
394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
397
+ def list_project_location_applications(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
398
+ command = make_simple_command(:get, 'v1/{+parent}/applications', options)
399
+ command.response_representation = Google::Apis::ApphubV1::ListApplicationsResponse::Representation
400
+ command.response_class = Google::Apis::ApphubV1::ListApplicationsResponse
401
+ command.params['parent'] = parent unless parent.nil?
402
+ command.query['filter'] = filter unless filter.nil?
403
+ command.query['orderBy'] = order_by unless order_by.nil?
404
+ command.query['pageSize'] = page_size unless page_size.nil?
405
+ command.query['pageToken'] = page_token unless page_token.nil?
406
+ command.query['fields'] = fields unless fields.nil?
407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
408
+ execute_or_queue_command(command, &block)
409
+ end
410
+
411
+ # Updates an Application in a host project and location.
412
+ # @param [String] name
413
+ # Identifier. The resource name of an Application. Format: "projects/`host-
414
+ # project-id`/locations/`location`/applications/`application-id`"
415
+ # @param [Google::Apis::ApphubV1::Application] application_object
416
+ # @param [String] request_id
417
+ # Optional. An optional request ID to identify requests. Specify a unique
418
+ # request ID so that if you must retry your request, the server will know to
419
+ # ignore the request if it has already been completed. The server will guarantee
420
+ # that for at least 60 minutes since the first request. For example, consider a
421
+ # situation where you make an initial request and the request times out. If you
422
+ # make the request again with the same request ID, the server can check if
423
+ # original operation with the same request ID was received, and if so, will
424
+ # ignore the second request. This prevents clients from accidentally creating
425
+ # duplicate commitments. The request ID must be a valid UUID with the exception
426
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
427
+ # @param [String] update_mask
428
+ # Required. Field mask is used to specify the fields to be overwritten in the
429
+ # Application resource by the update. The fields specified in the update_mask
430
+ # are relative to the resource, not the full request. The API changes the values
431
+ # of the fields as specified in the update_mask. The API ignores the values of
432
+ # all fields not covered by the update_mask. You can also unset a field by not
433
+ # specifying it in the updated message, but adding the field to the mask. This
434
+ # clears whatever value the field previously had.
435
+ # @param [String] fields
436
+ # Selector specifying which fields to include in a partial response.
437
+ # @param [String] quota_user
438
+ # Available to use for quota purposes for server-side applications. Can be any
439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
440
+ # @param [Google::Apis::RequestOptions] options
441
+ # Request-specific options
442
+ #
443
+ # @yield [result, err] Result & error if block supplied
444
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
445
+ # @yieldparam err [StandardError] error object if request failed
446
+ #
447
+ # @return [Google::Apis::ApphubV1::Operation]
448
+ #
449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
452
+ def patch_project_location_application(name, application_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
453
+ command = make_simple_command(:patch, 'v1/{+name}', options)
454
+ command.request_representation = Google::Apis::ApphubV1::Application::Representation
455
+ command.request_object = application_object
456
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
457
+ command.response_class = Google::Apis::ApphubV1::Operation
458
+ command.params['name'] = name unless name.nil?
459
+ command.query['requestId'] = request_id unless request_id.nil?
460
+ command.query['updateMask'] = update_mask unless update_mask.nil?
461
+ command.query['fields'] = fields unless fields.nil?
462
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
463
+ execute_or_queue_command(command, &block)
464
+ end
465
+
172
466
  # Sets the access control policy on the specified resource. Replaces any
173
467
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
174
468
  # PERMISSION_DENIED` errors.
@@ -245,17 +539,27 @@ module Google
245
539
  execute_or_queue_command(command, &block)
246
540
  end
247
541
 
248
- # Starts asynchronous cancellation on a long-running operation. The server makes
249
- # a best effort to cancel the operation, but success is not guaranteed. If the
250
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
251
- # Clients can use Operations.GetOperation or other methods to check whether the
252
- # cancellation succeeded or whether the operation completed despite cancellation.
253
- # On successful cancellation, the operation is not deleted; instead, it becomes
254
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
255
- # corresponding to `Code.CANCELLED`.
256
- # @param [String] name
257
- # The name of the operation resource to be cancelled.
258
- # @param [Google::Apis::ApphubV1::CancelOperationRequest] cancel_operation_request_object
542
+ # Creates a Service in an Application.
543
+ # @param [String] parent
544
+ # Required. Fully qualified name of the parent Application to create the Service
545
+ # in. Expected format: `projects/`project`/locations/`location`/applications/`
546
+ # application``.
547
+ # @param [Google::Apis::ApphubV1::Service] service_object
548
+ # @param [String] request_id
549
+ # Optional. An optional request ID to identify requests. Specify a unique
550
+ # request ID so that if you must retry your request, the server will know to
551
+ # ignore the request if it has already been completed. The server will guarantee
552
+ # that for at least 60 minutes since the first request. For example, consider a
553
+ # situation where you make an initial request and the request times out. If you
554
+ # make the request again with the same request ID, the server can check if
555
+ # original operation with the same request ID was received, and if so, will
556
+ # ignore the second request. This prevents clients from accidentally creating
557
+ # duplicate commitments. The request ID must be a valid UUID with the exception
558
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
559
+ # @param [String] service_id
560
+ # Required. The Service identifier. Must contain only lowercase letters, numbers
561
+ # or hyphens, with the first character a letter, the last a letter or a number,
562
+ # and a 63 character maximum.
259
563
  # @param [String] fields
260
564
  # Selector specifying which fields to include in a partial response.
261
565
  # @param [String] quota_user
@@ -265,32 +569,44 @@ module Google
265
569
  # Request-specific options
266
570
  #
267
571
  # @yield [result, err] Result & error if block supplied
268
- # @yieldparam result [Google::Apis::ApphubV1::Empty] parsed result object
572
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
269
573
  # @yieldparam err [StandardError] error object if request failed
270
574
  #
271
- # @return [Google::Apis::ApphubV1::Empty]
575
+ # @return [Google::Apis::ApphubV1::Operation]
272
576
  #
273
577
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
274
578
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
275
579
  # @raise [Google::Apis::AuthorizationError] Authorization is required
276
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
277
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
278
- command.request_representation = Google::Apis::ApphubV1::CancelOperationRequest::Representation
279
- command.request_object = cancel_operation_request_object
280
- command.response_representation = Google::Apis::ApphubV1::Empty::Representation
281
- command.response_class = Google::Apis::ApphubV1::Empty
282
- command.params['name'] = name unless name.nil?
580
+ def create_project_location_application_service(parent, service_object = nil, request_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
581
+ command = make_simple_command(:post, 'v1/{+parent}/services', options)
582
+ command.request_representation = Google::Apis::ApphubV1::Service::Representation
583
+ command.request_object = service_object
584
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
585
+ command.response_class = Google::Apis::ApphubV1::Operation
586
+ command.params['parent'] = parent unless parent.nil?
587
+ command.query['requestId'] = request_id unless request_id.nil?
588
+ command.query['serviceId'] = service_id unless service_id.nil?
283
589
  command.query['fields'] = fields unless fields.nil?
284
590
  command.query['quotaUser'] = quota_user unless quota_user.nil?
285
591
  execute_or_queue_command(command, &block)
286
592
  end
287
593
 
288
- # Deletes a long-running operation. This method indicates that the client is no
289
- # longer interested in the operation result. It does not cancel the operation.
290
- # If the server doesn't support this method, it returns `google.rpc.Code.
291
- # UNIMPLEMENTED`.
594
+ # Deletes a Service from an Application.
292
595
  # @param [String] name
293
- # The name of the operation resource to be deleted.
596
+ # Required. Fully qualified name of the Service to delete from an Application.
597
+ # Expected format: `projects/`project`/locations/`location`/applications/`
598
+ # application`/services/`service``.
599
+ # @param [String] request_id
600
+ # Optional. An optional request ID to identify requests. Specify a unique
601
+ # request ID so that if you must retry your request, the server will know to
602
+ # ignore the request if it has already been completed. The server will guarantee
603
+ # that for at least 60 minutes after the first request. For example, consider a
604
+ # situation where you make an initial request and the request times out. If you
605
+ # make the request again with the same request ID, the server can check if
606
+ # original operation with the same request ID was received, and if so, will
607
+ # ignore the second request. This prevents clients from accidentally creating
608
+ # duplicate commitments. The request ID must be a valid UUID with the exception
609
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
294
610
  # @param [String] fields
295
611
  # Selector specifying which fields to include in a partial response.
296
612
  # @param [String] quota_user
@@ -300,28 +616,30 @@ module Google
300
616
  # Request-specific options
301
617
  #
302
618
  # @yield [result, err] Result & error if block supplied
303
- # @yieldparam result [Google::Apis::ApphubV1::Empty] parsed result object
619
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
304
620
  # @yieldparam err [StandardError] error object if request failed
305
621
  #
306
- # @return [Google::Apis::ApphubV1::Empty]
622
+ # @return [Google::Apis::ApphubV1::Operation]
307
623
  #
308
624
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
309
625
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
310
626
  # @raise [Google::Apis::AuthorizationError] Authorization is required
311
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
627
+ def delete_project_location_application_service(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
312
628
  command = make_simple_command(:delete, 'v1/{+name}', options)
313
- command.response_representation = Google::Apis::ApphubV1::Empty::Representation
314
- command.response_class = Google::Apis::ApphubV1::Empty
629
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
630
+ command.response_class = Google::Apis::ApphubV1::Operation
315
631
  command.params['name'] = name unless name.nil?
632
+ command.query['requestId'] = request_id unless request_id.nil?
316
633
  command.query['fields'] = fields unless fields.nil?
317
634
  command.query['quotaUser'] = quota_user unless quota_user.nil?
318
635
  execute_or_queue_command(command, &block)
319
636
  end
320
637
 
321
- # Gets the latest state of a long-running operation. Clients can use this method
322
- # to poll the operation result at intervals as recommended by the API service.
638
+ # Gets a Service in an Application.
323
639
  # @param [String] name
324
- # The name of the operation resource.
640
+ # Required. Fully qualified name of the Service to fetch. Expected format: `
641
+ # projects/`project`/locations/`location`/applications/`application`/services/`
642
+ # service``.
325
643
  # @param [String] fields
326
644
  # Selector specifying which fields to include in a partial response.
327
645
  # @param [String] quota_user
@@ -331,34 +649,38 @@ module Google
331
649
  # Request-specific options
332
650
  #
333
651
  # @yield [result, err] Result & error if block supplied
334
- # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
652
+ # @yieldparam result [Google::Apis::ApphubV1::Service] parsed result object
335
653
  # @yieldparam err [StandardError] error object if request failed
336
654
  #
337
- # @return [Google::Apis::ApphubV1::Operation]
655
+ # @return [Google::Apis::ApphubV1::Service]
338
656
  #
339
657
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
658
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
659
  # @raise [Google::Apis::AuthorizationError] Authorization is required
342
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
660
+ def get_project_location_application_service(name, fields: nil, quota_user: nil, options: nil, &block)
343
661
  command = make_simple_command(:get, 'v1/{+name}', options)
344
- command.response_representation = Google::Apis::ApphubV1::Operation::Representation
345
- command.response_class = Google::Apis::ApphubV1::Operation
662
+ command.response_representation = Google::Apis::ApphubV1::Service::Representation
663
+ command.response_class = Google::Apis::ApphubV1::Service
346
664
  command.params['name'] = name unless name.nil?
347
665
  command.query['fields'] = fields unless fields.nil?
348
666
  command.query['quotaUser'] = quota_user unless quota_user.nil?
349
667
  execute_or_queue_command(command, &block)
350
668
  end
351
669
 
352
- # Lists operations that match the specified filter in the request. If the server
353
- # doesn't support this method, it returns `UNIMPLEMENTED`.
354
- # @param [String] name
355
- # The name of the operation's parent resource.
670
+ # Lists Services in an Application.
671
+ # @param [String] parent
672
+ # Required. Fully qualified name of the parent Application to list Services for.
673
+ # Expected format: `projects/`project`/locations/`location`/applications/`
674
+ # application``.
356
675
  # @param [String] filter
357
- # The standard list filter.
676
+ # Optional. Filtering results
677
+ # @param [String] order_by
678
+ # Optional. Hint for how to order the results
358
679
  # @param [Fixnum] page_size
359
- # The standard list page size.
680
+ # Optional. Requested page size. Server may return fewer items than requested.
681
+ # If unspecified, server will pick an appropriate default.
360
682
  # @param [String] page_token
361
- # The standard list page token.
683
+ # Optional. A token identifying a page of results the server should return.
362
684
  # @param [String] fields
363
685
  # Selector specifying which fields to include in a partial response.
364
686
  # @param [String] quota_user
@@ -368,20 +690,847 @@ module Google
368
690
  # Request-specific options
369
691
  #
370
692
  # @yield [result, err] Result & error if block supplied
371
- # @yieldparam result [Google::Apis::ApphubV1::ListOperationsResponse] parsed result object
693
+ # @yieldparam result [Google::Apis::ApphubV1::ListServicesResponse] parsed result object
372
694
  # @yieldparam err [StandardError] error object if request failed
373
695
  #
374
- # @return [Google::Apis::ApphubV1::ListOperationsResponse]
696
+ # @return [Google::Apis::ApphubV1::ListServicesResponse]
375
697
  #
376
698
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
699
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
700
  # @raise [Google::Apis::AuthorizationError] Authorization is required
379
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
380
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
381
- command.response_representation = Google::Apis::ApphubV1::ListOperationsResponse::Representation
382
- command.response_class = Google::Apis::ApphubV1::ListOperationsResponse
383
- command.params['name'] = name unless name.nil?
701
+ def list_project_location_application_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
702
+ command = make_simple_command(:get, 'v1/{+parent}/services', options)
703
+ command.response_representation = Google::Apis::ApphubV1::ListServicesResponse::Representation
704
+ command.response_class = Google::Apis::ApphubV1::ListServicesResponse
705
+ command.params['parent'] = parent unless parent.nil?
706
+ command.query['filter'] = filter unless filter.nil?
707
+ command.query['orderBy'] = order_by unless order_by.nil?
708
+ command.query['pageSize'] = page_size unless page_size.nil?
709
+ command.query['pageToken'] = page_token unless page_token.nil?
710
+ command.query['fields'] = fields unless fields.nil?
711
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
712
+ execute_or_queue_command(command, &block)
713
+ end
714
+
715
+ # Updates a Service in an Application.
716
+ # @param [String] name
717
+ # Identifier. The resource name of a Service. Format: "projects/`host-project-id`
718
+ # /locations/`location`/applications/`application-id`/services/`service-id`"
719
+ # @param [Google::Apis::ApphubV1::Service] service_object
720
+ # @param [String] request_id
721
+ # Optional. An optional request ID to identify requests. Specify a unique
722
+ # request ID so that if you must retry your request, the server will know to
723
+ # ignore the request if it has already been completed. The server will guarantee
724
+ # that for at least 60 minutes since the first request. For example, consider a
725
+ # situation where you make an initial request and the request times out. If you
726
+ # make the request again with the same request ID, the server can check if
727
+ # original operation with the same request ID was received, and if so, will
728
+ # ignore the second request. This prevents clients from accidentally creating
729
+ # duplicate commitments. The request ID must be a valid UUID with the exception
730
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
731
+ # @param [String] update_mask
732
+ # Required. Field mask is used to specify the fields to be overwritten in the
733
+ # Service resource by the update. The fields specified in the update_mask are
734
+ # relative to the resource, not the full request. The API changes the values of
735
+ # the fields as specified in the update_mask. The API ignores the values of all
736
+ # fields not covered by the update_mask. You can also unset a field by not
737
+ # specifying it in the updated message, but adding the field to the mask. This
738
+ # clears whatever value the field previously had.
739
+ # @param [String] fields
740
+ # Selector specifying which fields to include in a partial response.
741
+ # @param [String] quota_user
742
+ # Available to use for quota purposes for server-side applications. Can be any
743
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
744
+ # @param [Google::Apis::RequestOptions] options
745
+ # Request-specific options
746
+ #
747
+ # @yield [result, err] Result & error if block supplied
748
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
749
+ # @yieldparam err [StandardError] error object if request failed
750
+ #
751
+ # @return [Google::Apis::ApphubV1::Operation]
752
+ #
753
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
754
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
755
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
756
+ def patch_project_location_application_service(name, service_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
757
+ command = make_simple_command(:patch, 'v1/{+name}', options)
758
+ command.request_representation = Google::Apis::ApphubV1::Service::Representation
759
+ command.request_object = service_object
760
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
761
+ command.response_class = Google::Apis::ApphubV1::Operation
762
+ command.params['name'] = name unless name.nil?
763
+ command.query['requestId'] = request_id unless request_id.nil?
764
+ command.query['updateMask'] = update_mask unless update_mask.nil?
765
+ command.query['fields'] = fields unless fields.nil?
766
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
767
+ execute_or_queue_command(command, &block)
768
+ end
769
+
770
+ # Creates a Workload in an Application.
771
+ # @param [String] parent
772
+ # Required. Fully qualified name of the Application to create Workload in.
773
+ # Expected format: `projects/`project`/locations/`location`/applications/`
774
+ # application``.
775
+ # @param [Google::Apis::ApphubV1::Workload] workload_object
776
+ # @param [String] request_id
777
+ # Optional. An optional request ID to identify requests. Specify a unique
778
+ # request ID so that if you must retry your request, the server will know to
779
+ # ignore the request if it has already been completed. The server will guarantee
780
+ # that for at least 60 minutes since the first request. For example, consider a
781
+ # situation where you make an initial request and the request times out. If you
782
+ # make the request again with the same request ID, the server can check if
783
+ # original operation with the same request ID was received, and if so, will
784
+ # ignore the second request. This prevents clients from accidentally creating
785
+ # duplicate commitments. The request ID must be a valid UUID with the exception
786
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
787
+ # @param [String] workload_id
788
+ # Required. The Workload identifier. Must contain only lowercase letters,
789
+ # numbers or hyphens, with the first character a letter, the last a letter or a
790
+ # number, and a 63 character maximum.
791
+ # @param [String] fields
792
+ # Selector specifying which fields to include in a partial response.
793
+ # @param [String] quota_user
794
+ # Available to use for quota purposes for server-side applications. Can be any
795
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
796
+ # @param [Google::Apis::RequestOptions] options
797
+ # Request-specific options
798
+ #
799
+ # @yield [result, err] Result & error if block supplied
800
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
801
+ # @yieldparam err [StandardError] error object if request failed
802
+ #
803
+ # @return [Google::Apis::ApphubV1::Operation]
804
+ #
805
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
806
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
807
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
808
+ def create_project_location_application_workload(parent, workload_object = nil, request_id: nil, workload_id: nil, fields: nil, quota_user: nil, options: nil, &block)
809
+ command = make_simple_command(:post, 'v1/{+parent}/workloads', options)
810
+ command.request_representation = Google::Apis::ApphubV1::Workload::Representation
811
+ command.request_object = workload_object
812
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
813
+ command.response_class = Google::Apis::ApphubV1::Operation
814
+ command.params['parent'] = parent unless parent.nil?
815
+ command.query['requestId'] = request_id unless request_id.nil?
816
+ command.query['workloadId'] = workload_id unless workload_id.nil?
817
+ command.query['fields'] = fields unless fields.nil?
818
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
819
+ execute_or_queue_command(command, &block)
820
+ end
821
+
822
+ # Deletes a Workload from an Application.
823
+ # @param [String] name
824
+ # Required. Fully qualified name of the Workload to delete from an Application.
825
+ # Expected format: `projects/`project`/locations/`location`/applications/`
826
+ # application`/workloads/`workload``.
827
+ # @param [String] request_id
828
+ # Optional. An optional request ID to identify requests. Specify a unique
829
+ # request ID so that if you must retry your request, the server will know to
830
+ # ignore the request if it has already been completed. The server will guarantee
831
+ # that for at least 60 minutes after the first request. For example, consider a
832
+ # situation where you make an initial request and the request times out. If you
833
+ # make the request again with the same request ID, the server can check if
834
+ # original operation with the same request ID was received, and if so, will
835
+ # ignore the second request. This prevents clients from accidentally creating
836
+ # duplicate commitments. The request ID must be a valid UUID with the exception
837
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
838
+ # @param [String] fields
839
+ # Selector specifying which fields to include in a partial response.
840
+ # @param [String] quota_user
841
+ # Available to use for quota purposes for server-side applications. Can be any
842
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
843
+ # @param [Google::Apis::RequestOptions] options
844
+ # Request-specific options
845
+ #
846
+ # @yield [result, err] Result & error if block supplied
847
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
848
+ # @yieldparam err [StandardError] error object if request failed
849
+ #
850
+ # @return [Google::Apis::ApphubV1::Operation]
851
+ #
852
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
853
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
854
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
855
+ def delete_project_location_application_workload(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
856
+ command = make_simple_command(:delete, 'v1/{+name}', options)
857
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
858
+ command.response_class = Google::Apis::ApphubV1::Operation
859
+ command.params['name'] = name unless name.nil?
860
+ command.query['requestId'] = request_id unless request_id.nil?
861
+ command.query['fields'] = fields unless fields.nil?
862
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
863
+ execute_or_queue_command(command, &block)
864
+ end
865
+
866
+ # Gets a Workload in an Application.
867
+ # @param [String] name
868
+ # Required. Fully qualified name of the Workload to fetch. Expected format: `
869
+ # projects/`project`/locations/`location`/applications/`application`/workloads/`
870
+ # workload``.
871
+ # @param [String] fields
872
+ # Selector specifying which fields to include in a partial response.
873
+ # @param [String] quota_user
874
+ # Available to use for quota purposes for server-side applications. Can be any
875
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
876
+ # @param [Google::Apis::RequestOptions] options
877
+ # Request-specific options
878
+ #
879
+ # @yield [result, err] Result & error if block supplied
880
+ # @yieldparam result [Google::Apis::ApphubV1::Workload] parsed result object
881
+ # @yieldparam err [StandardError] error object if request failed
882
+ #
883
+ # @return [Google::Apis::ApphubV1::Workload]
884
+ #
885
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
886
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
887
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
888
+ def get_project_location_application_workload(name, fields: nil, quota_user: nil, options: nil, &block)
889
+ command = make_simple_command(:get, 'v1/{+name}', options)
890
+ command.response_representation = Google::Apis::ApphubV1::Workload::Representation
891
+ command.response_class = Google::Apis::ApphubV1::Workload
892
+ command.params['name'] = name unless name.nil?
893
+ command.query['fields'] = fields unless fields.nil?
894
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
895
+ execute_or_queue_command(command, &block)
896
+ end
897
+
898
+ # Lists Workloads in an Application.
899
+ # @param [String] parent
900
+ # Required. Fully qualified name of the parent Application to list Workloads for.
901
+ # Expected format: `projects/`project`/locations/`location`/applications/`
902
+ # application``.
903
+ # @param [String] filter
904
+ # Optional. Filtering results.
905
+ # @param [String] order_by
906
+ # Optional. Hint for how to order the results.
907
+ # @param [Fixnum] page_size
908
+ # Optional. Requested page size. Server may return fewer items than requested.
909
+ # If unspecified, server will pick an appropriate default.
910
+ # @param [String] page_token
911
+ # Optional. A token identifying a page of results the server should return.
912
+ # @param [String] fields
913
+ # Selector specifying which fields to include in a partial response.
914
+ # @param [String] quota_user
915
+ # Available to use for quota purposes for server-side applications. Can be any
916
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
917
+ # @param [Google::Apis::RequestOptions] options
918
+ # Request-specific options
919
+ #
920
+ # @yield [result, err] Result & error if block supplied
921
+ # @yieldparam result [Google::Apis::ApphubV1::ListWorkloadsResponse] parsed result object
922
+ # @yieldparam err [StandardError] error object if request failed
923
+ #
924
+ # @return [Google::Apis::ApphubV1::ListWorkloadsResponse]
925
+ #
926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
929
+ def list_project_location_application_workloads(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
930
+ command = make_simple_command(:get, 'v1/{+parent}/workloads', options)
931
+ command.response_representation = Google::Apis::ApphubV1::ListWorkloadsResponse::Representation
932
+ command.response_class = Google::Apis::ApphubV1::ListWorkloadsResponse
933
+ command.params['parent'] = parent unless parent.nil?
934
+ command.query['filter'] = filter unless filter.nil?
935
+ command.query['orderBy'] = order_by unless order_by.nil?
936
+ command.query['pageSize'] = page_size unless page_size.nil?
937
+ command.query['pageToken'] = page_token unless page_token.nil?
938
+ command.query['fields'] = fields unless fields.nil?
939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
940
+ execute_or_queue_command(command, &block)
941
+ end
942
+
943
+ # Updates a Workload in an Application.
944
+ # @param [String] name
945
+ # Identifier. The resource name of the Workload. Format: "projects/`host-project-
946
+ # id`/locations/`location`/applications/`application-id`/workloads/`workload-id`"
947
+ # @param [Google::Apis::ApphubV1::Workload] workload_object
948
+ # @param [String] request_id
949
+ # Optional. An optional request ID to identify requests. Specify a unique
950
+ # request ID so that if you must retry your request, the server will know to
951
+ # ignore the request if it has already been completed. The server will guarantee
952
+ # that for at least 60 minutes since the first request. For example, consider a
953
+ # situation where you make an initial request and the request times out. If you
954
+ # make the request again with the same request ID, the server can check if
955
+ # original operation with the same request ID was received, and if so, will
956
+ # ignore the second request. This prevents clients from accidentally creating
957
+ # duplicate commitments. The request ID must be a valid UUID with the exception
958
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
959
+ # @param [String] update_mask
960
+ # Required. Field mask is used to specify the fields to be overwritten in the
961
+ # Workload resource by the update. The fields specified in the update_mask are
962
+ # relative to the resource, not the full request. The API changes the values of
963
+ # the fields as specified in the update_mask. The API ignores the values of all
964
+ # fields not covered by the update_mask. You can also unset a field by not
965
+ # specifying it in the updated message, but adding the field to the mask. This
966
+ # clears whatever value the field previously had.
967
+ # @param [String] fields
968
+ # Selector specifying which fields to include in a partial response.
969
+ # @param [String] quota_user
970
+ # Available to use for quota purposes for server-side applications. Can be any
971
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
972
+ # @param [Google::Apis::RequestOptions] options
973
+ # Request-specific options
974
+ #
975
+ # @yield [result, err] Result & error if block supplied
976
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
977
+ # @yieldparam err [StandardError] error object if request failed
978
+ #
979
+ # @return [Google::Apis::ApphubV1::Operation]
980
+ #
981
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
982
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
983
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
984
+ def patch_project_location_application_workload(name, workload_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
985
+ command = make_simple_command(:patch, 'v1/{+name}', options)
986
+ command.request_representation = Google::Apis::ApphubV1::Workload::Representation
987
+ command.request_object = workload_object
988
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
989
+ command.response_class = Google::Apis::ApphubV1::Operation
990
+ command.params['name'] = name unless name.nil?
991
+ command.query['requestId'] = request_id unless request_id.nil?
992
+ command.query['updateMask'] = update_mask unless update_mask.nil?
993
+ command.query['fields'] = fields unless fields.nil?
994
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
995
+ execute_or_queue_command(command, &block)
996
+ end
997
+
998
+ # Gets a Discovered Service in a host project and location.
999
+ # @param [String] name
1000
+ # Required. Fully qualified name of the Discovered Service to fetch. Expected
1001
+ # format: `projects/`project`/locations/`location`/discoveredServices/`
1002
+ # discoveredService``.
1003
+ # @param [String] fields
1004
+ # Selector specifying which fields to include in a partial response.
1005
+ # @param [String] quota_user
1006
+ # Available to use for quota purposes for server-side applications. Can be any
1007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1008
+ # @param [Google::Apis::RequestOptions] options
1009
+ # Request-specific options
1010
+ #
1011
+ # @yield [result, err] Result & error if block supplied
1012
+ # @yieldparam result [Google::Apis::ApphubV1::DiscoveredService] parsed result object
1013
+ # @yieldparam err [StandardError] error object if request failed
1014
+ #
1015
+ # @return [Google::Apis::ApphubV1::DiscoveredService]
1016
+ #
1017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1020
+ def get_project_location_discovered_service(name, fields: nil, quota_user: nil, options: nil, &block)
1021
+ command = make_simple_command(:get, 'v1/{+name}', options)
1022
+ command.response_representation = Google::Apis::ApphubV1::DiscoveredService::Representation
1023
+ command.response_class = Google::Apis::ApphubV1::DiscoveredService
1024
+ command.params['name'] = name unless name.nil?
1025
+ command.query['fields'] = fields unless fields.nil?
1026
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1027
+ execute_or_queue_command(command, &block)
1028
+ end
1029
+
1030
+ # Lists Discovered Services that can be added to an Application in a host
1031
+ # project and location.
1032
+ # @param [String] parent
1033
+ # Required. Project and location to list Discovered Services on. Expected format:
1034
+ # `projects/`project`/locations/`location``.
1035
+ # @param [String] filter
1036
+ # Optional. Filtering results.
1037
+ # @param [String] order_by
1038
+ # Optional. Hint for how to order the results.
1039
+ # @param [Fixnum] page_size
1040
+ # Optional. Requested page size. Server may return fewer items than requested.
1041
+ # If unspecified, server will pick an appropriate default.
1042
+ # @param [String] page_token
1043
+ # Optional. A token identifying a page of results the server should return.
1044
+ # @param [String] fields
1045
+ # Selector specifying which fields to include in a partial response.
1046
+ # @param [String] quota_user
1047
+ # Available to use for quota purposes for server-side applications. Can be any
1048
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1049
+ # @param [Google::Apis::RequestOptions] options
1050
+ # Request-specific options
1051
+ #
1052
+ # @yield [result, err] Result & error if block supplied
1053
+ # @yieldparam result [Google::Apis::ApphubV1::ListDiscoveredServicesResponse] parsed result object
1054
+ # @yieldparam err [StandardError] error object if request failed
1055
+ #
1056
+ # @return [Google::Apis::ApphubV1::ListDiscoveredServicesResponse]
1057
+ #
1058
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1059
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1060
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1061
+ def list_project_location_discovered_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1062
+ command = make_simple_command(:get, 'v1/{+parent}/discoveredServices', options)
1063
+ command.response_representation = Google::Apis::ApphubV1::ListDiscoveredServicesResponse::Representation
1064
+ command.response_class = Google::Apis::ApphubV1::ListDiscoveredServicesResponse
1065
+ command.params['parent'] = parent unless parent.nil?
1066
+ command.query['filter'] = filter unless filter.nil?
1067
+ command.query['orderBy'] = order_by unless order_by.nil?
1068
+ command.query['pageSize'] = page_size unless page_size.nil?
1069
+ command.query['pageToken'] = page_token unless page_token.nil?
1070
+ command.query['fields'] = fields unless fields.nil?
1071
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1072
+ execute_or_queue_command(command, &block)
1073
+ end
1074
+
1075
+ # Lists a Discovered Service in a host project and location, with a given
1076
+ # resource URI.
1077
+ # @param [String] parent
1078
+ # Required. Host project ID and location to lookup Discovered Service in.
1079
+ # Expected format: `projects/`project`/locations/`location``.
1080
+ # @param [String] uri
1081
+ # Required. Resource URI to find DiscoveredService for. Accepts both project
1082
+ # number and project ID and does translation when needed.
1083
+ # @param [String] fields
1084
+ # Selector specifying which fields to include in a partial response.
1085
+ # @param [String] quota_user
1086
+ # Available to use for quota purposes for server-side applications. Can be any
1087
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1088
+ # @param [Google::Apis::RequestOptions] options
1089
+ # Request-specific options
1090
+ #
1091
+ # @yield [result, err] Result & error if block supplied
1092
+ # @yieldparam result [Google::Apis::ApphubV1::LookupDiscoveredServiceResponse] parsed result object
1093
+ # @yieldparam err [StandardError] error object if request failed
1094
+ #
1095
+ # @return [Google::Apis::ApphubV1::LookupDiscoveredServiceResponse]
1096
+ #
1097
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1098
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1099
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1100
+ def lookup_project_location_discovered_service(parent, uri: nil, fields: nil, quota_user: nil, options: nil, &block)
1101
+ command = make_simple_command(:get, 'v1/{+parent}/discoveredServices:lookup', options)
1102
+ command.response_representation = Google::Apis::ApphubV1::LookupDiscoveredServiceResponse::Representation
1103
+ command.response_class = Google::Apis::ApphubV1::LookupDiscoveredServiceResponse
1104
+ command.params['parent'] = parent unless parent.nil?
1105
+ command.query['uri'] = uri unless uri.nil?
1106
+ command.query['fields'] = fields unless fields.nil?
1107
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1108
+ execute_or_queue_command(command, &block)
1109
+ end
1110
+
1111
+ # Gets a Discovered Workload in a host project and location.
1112
+ # @param [String] name
1113
+ # Required. Fully qualified name of the Discovered Workload to fetch. Expected
1114
+ # format: `projects/`project`/locations/`location`/discoveredWorkloads/`
1115
+ # discoveredWorkload``.
1116
+ # @param [String] fields
1117
+ # Selector specifying which fields to include in a partial response.
1118
+ # @param [String] quota_user
1119
+ # Available to use for quota purposes for server-side applications. Can be any
1120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1121
+ # @param [Google::Apis::RequestOptions] options
1122
+ # Request-specific options
1123
+ #
1124
+ # @yield [result, err] Result & error if block supplied
1125
+ # @yieldparam result [Google::Apis::ApphubV1::DiscoveredWorkload] parsed result object
1126
+ # @yieldparam err [StandardError] error object if request failed
1127
+ #
1128
+ # @return [Google::Apis::ApphubV1::DiscoveredWorkload]
1129
+ #
1130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1133
+ def get_project_location_discovered_workload(name, fields: nil, quota_user: nil, options: nil, &block)
1134
+ command = make_simple_command(:get, 'v1/{+name}', options)
1135
+ command.response_representation = Google::Apis::ApphubV1::DiscoveredWorkload::Representation
1136
+ command.response_class = Google::Apis::ApphubV1::DiscoveredWorkload
1137
+ command.params['name'] = name unless name.nil?
1138
+ command.query['fields'] = fields unless fields.nil?
1139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1140
+ execute_or_queue_command(command, &block)
1141
+ end
1142
+
1143
+ # Lists Discovered Workloads that can be added to an Application in a host
1144
+ # project and location.
1145
+ # @param [String] parent
1146
+ # Required. Project and location to list Discovered Workloads on. Expected
1147
+ # format: `projects/`project`/locations/`location``.
1148
+ # @param [String] filter
1149
+ # Optional. Filtering results.
1150
+ # @param [String] order_by
1151
+ # Optional. Hint for how to order the results.
1152
+ # @param [Fixnum] page_size
1153
+ # Optional. Requested page size. Server may return fewer items than requested.
1154
+ # If unspecified, server will pick an appropriate default.
1155
+ # @param [String] page_token
1156
+ # Optional. A token identifying a page of results the server should return.
1157
+ # @param [String] fields
1158
+ # Selector specifying which fields to include in a partial response.
1159
+ # @param [String] quota_user
1160
+ # Available to use for quota purposes for server-side applications. Can be any
1161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1162
+ # @param [Google::Apis::RequestOptions] options
1163
+ # Request-specific options
1164
+ #
1165
+ # @yield [result, err] Result & error if block supplied
1166
+ # @yieldparam result [Google::Apis::ApphubV1::ListDiscoveredWorkloadsResponse] parsed result object
1167
+ # @yieldparam err [StandardError] error object if request failed
1168
+ #
1169
+ # @return [Google::Apis::ApphubV1::ListDiscoveredWorkloadsResponse]
1170
+ #
1171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1174
+ def list_project_location_discovered_workloads(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1175
+ command = make_simple_command(:get, 'v1/{+parent}/discoveredWorkloads', options)
1176
+ command.response_representation = Google::Apis::ApphubV1::ListDiscoveredWorkloadsResponse::Representation
1177
+ command.response_class = Google::Apis::ApphubV1::ListDiscoveredWorkloadsResponse
1178
+ command.params['parent'] = parent unless parent.nil?
1179
+ command.query['filter'] = filter unless filter.nil?
1180
+ command.query['orderBy'] = order_by unless order_by.nil?
1181
+ command.query['pageSize'] = page_size unless page_size.nil?
1182
+ command.query['pageToken'] = page_token unless page_token.nil?
1183
+ command.query['fields'] = fields unless fields.nil?
1184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1185
+ execute_or_queue_command(command, &block)
1186
+ end
1187
+
1188
+ # Lists a Discovered Workload in a host project and location, with a given
1189
+ # resource URI.
1190
+ # @param [String] parent
1191
+ # Required. Host project ID and location to lookup Discovered Workload in.
1192
+ # Expected format: `projects/`project`/locations/`location``.
1193
+ # @param [String] uri
1194
+ # Required. Resource URI to find Discovered Workload for. Accepts both project
1195
+ # number and project ID and does translation when needed.
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::ApphubV1::LookupDiscoveredWorkloadResponse] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::ApphubV1::LookupDiscoveredWorkloadResponse]
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 lookup_project_location_discovered_workload(parent, uri: nil, fields: nil, quota_user: nil, options: nil, &block)
1214
+ command = make_simple_command(:get, 'v1/{+parent}/discoveredWorkloads:lookup', options)
1215
+ command.response_representation = Google::Apis::ApphubV1::LookupDiscoveredWorkloadResponse::Representation
1216
+ command.response_class = Google::Apis::ApphubV1::LookupDiscoveredWorkloadResponse
1217
+ command.params['parent'] = parent unless parent.nil?
1218
+ command.query['uri'] = uri unless uri.nil?
1219
+ command.query['fields'] = fields unless fields.nil?
1220
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1221
+ execute_or_queue_command(command, &block)
1222
+ end
1223
+
1224
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1225
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1226
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1227
+ # Clients can use Operations.GetOperation or other methods to check whether the
1228
+ # cancellation succeeded or whether the operation completed despite cancellation.
1229
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1230
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1231
+ # corresponding to `Code.CANCELLED`.
1232
+ # @param [String] name
1233
+ # The name of the operation resource to be cancelled.
1234
+ # @param [Google::Apis::ApphubV1::CancelOperationRequest] cancel_operation_request_object
1235
+ # @param [String] fields
1236
+ # Selector specifying which fields to include in a partial response.
1237
+ # @param [String] quota_user
1238
+ # Available to use for quota purposes for server-side applications. Can be any
1239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1240
+ # @param [Google::Apis::RequestOptions] options
1241
+ # Request-specific options
1242
+ #
1243
+ # @yield [result, err] Result & error if block supplied
1244
+ # @yieldparam result [Google::Apis::ApphubV1::Empty] parsed result object
1245
+ # @yieldparam err [StandardError] error object if request failed
1246
+ #
1247
+ # @return [Google::Apis::ApphubV1::Empty]
1248
+ #
1249
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1250
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1251
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1252
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1253
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1254
+ command.request_representation = Google::Apis::ApphubV1::CancelOperationRequest::Representation
1255
+ command.request_object = cancel_operation_request_object
1256
+ command.response_representation = Google::Apis::ApphubV1::Empty::Representation
1257
+ command.response_class = Google::Apis::ApphubV1::Empty
1258
+ command.params['name'] = name unless name.nil?
1259
+ command.query['fields'] = fields unless fields.nil?
1260
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1261
+ execute_or_queue_command(command, &block)
1262
+ end
1263
+
1264
+ # Deletes a long-running operation. This method indicates that the client is no
1265
+ # longer interested in the operation result. It does not cancel the operation.
1266
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1267
+ # UNIMPLEMENTED`.
1268
+ # @param [String] name
1269
+ # The name of the operation resource to be deleted.
1270
+ # @param [String] fields
1271
+ # Selector specifying which fields to include in a partial response.
1272
+ # @param [String] quota_user
1273
+ # Available to use for quota purposes for server-side applications. Can be any
1274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1275
+ # @param [Google::Apis::RequestOptions] options
1276
+ # Request-specific options
1277
+ #
1278
+ # @yield [result, err] Result & error if block supplied
1279
+ # @yieldparam result [Google::Apis::ApphubV1::Empty] parsed result object
1280
+ # @yieldparam err [StandardError] error object if request failed
1281
+ #
1282
+ # @return [Google::Apis::ApphubV1::Empty]
1283
+ #
1284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1287
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1288
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1289
+ command.response_representation = Google::Apis::ApphubV1::Empty::Representation
1290
+ command.response_class = Google::Apis::ApphubV1::Empty
1291
+ command.params['name'] = name unless name.nil?
1292
+ command.query['fields'] = fields unless fields.nil?
1293
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1294
+ execute_or_queue_command(command, &block)
1295
+ end
1296
+
1297
+ # Gets the latest state of a long-running operation. Clients can use this method
1298
+ # to poll the operation result at intervals as recommended by the API service.
1299
+ # @param [String] name
1300
+ # The name of the operation resource.
1301
+ # @param [String] fields
1302
+ # Selector specifying which fields to include in a partial response.
1303
+ # @param [String] quota_user
1304
+ # Available to use for quota purposes for server-side applications. Can be any
1305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1306
+ # @param [Google::Apis::RequestOptions] options
1307
+ # Request-specific options
1308
+ #
1309
+ # @yield [result, err] Result & error if block supplied
1310
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
1311
+ # @yieldparam err [StandardError] error object if request failed
1312
+ #
1313
+ # @return [Google::Apis::ApphubV1::Operation]
1314
+ #
1315
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1316
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1317
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1318
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1319
+ command = make_simple_command(:get, 'v1/{+name}', options)
1320
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
1321
+ command.response_class = Google::Apis::ApphubV1::Operation
1322
+ command.params['name'] = name unless name.nil?
1323
+ command.query['fields'] = fields unless fields.nil?
1324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1325
+ execute_or_queue_command(command, &block)
1326
+ end
1327
+
1328
+ # Lists operations that match the specified filter in the request. If the server
1329
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1330
+ # @param [String] name
1331
+ # The name of the operation's parent resource.
1332
+ # @param [String] filter
1333
+ # The standard list filter.
1334
+ # @param [Fixnum] page_size
1335
+ # The standard list page size.
1336
+ # @param [String] page_token
1337
+ # The standard list page token.
1338
+ # @param [String] fields
1339
+ # Selector specifying which fields to include in a partial response.
1340
+ # @param [String] quota_user
1341
+ # Available to use for quota purposes for server-side applications. Can be any
1342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1343
+ # @param [Google::Apis::RequestOptions] options
1344
+ # Request-specific options
1345
+ #
1346
+ # @yield [result, err] Result & error if block supplied
1347
+ # @yieldparam result [Google::Apis::ApphubV1::ListOperationsResponse] parsed result object
1348
+ # @yieldparam err [StandardError] error object if request failed
1349
+ #
1350
+ # @return [Google::Apis::ApphubV1::ListOperationsResponse]
1351
+ #
1352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1355
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1356
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
1357
+ command.response_representation = Google::Apis::ApphubV1::ListOperationsResponse::Representation
1358
+ command.response_class = Google::Apis::ApphubV1::ListOperationsResponse
1359
+ command.params['name'] = name unless name.nil?
1360
+ command.query['filter'] = filter unless filter.nil?
1361
+ command.query['pageSize'] = page_size unless page_size.nil?
1362
+ command.query['pageToken'] = page_token unless page_token.nil?
1363
+ command.query['fields'] = fields unless fields.nil?
1364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1365
+ execute_or_queue_command(command, &block)
1366
+ end
1367
+
1368
+ # Attaches a service project to the host project.
1369
+ # @param [String] parent
1370
+ # Required. Host project ID and location to which service project is being
1371
+ # attached. Only global location is supported. Expected format: `projects/`
1372
+ # project`/locations/`location``.
1373
+ # @param [Google::Apis::ApphubV1::ServiceProjectAttachment] service_project_attachment_object
1374
+ # @param [String] request_id
1375
+ # Optional. An optional request ID to identify requests. Specify a unique
1376
+ # request ID so that if you must retry your request, the server will know to
1377
+ # ignore the request if it has already been completed. The server will guarantee
1378
+ # that for at least 60 minutes since the first request. For example, consider a
1379
+ # situation where you make an initial request and the request times out. If you
1380
+ # make the request again with the same request ID, the server can check if
1381
+ # original operation with the same request ID was received, and if so, will
1382
+ # ignore the second request. This prevents clients from accidentally creating
1383
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1384
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1385
+ # @param [String] service_project_attachment_id
1386
+ # Required. The service project attachment identifier must contain the project
1387
+ # id of the service project specified in the service_project_attachment.
1388
+ # service_project field.
1389
+ # @param [String] fields
1390
+ # Selector specifying which fields to include in a partial response.
1391
+ # @param [String] quota_user
1392
+ # Available to use for quota purposes for server-side applications. Can be any
1393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1394
+ # @param [Google::Apis::RequestOptions] options
1395
+ # Request-specific options
1396
+ #
1397
+ # @yield [result, err] Result & error if block supplied
1398
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
1399
+ # @yieldparam err [StandardError] error object if request failed
1400
+ #
1401
+ # @return [Google::Apis::ApphubV1::Operation]
1402
+ #
1403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1406
+ def create_project_location_service_project_attachment(parent, service_project_attachment_object = nil, request_id: nil, service_project_attachment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1407
+ command = make_simple_command(:post, 'v1/{+parent}/serviceProjectAttachments', options)
1408
+ command.request_representation = Google::Apis::ApphubV1::ServiceProjectAttachment::Representation
1409
+ command.request_object = service_project_attachment_object
1410
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
1411
+ command.response_class = Google::Apis::ApphubV1::Operation
1412
+ command.params['parent'] = parent unless parent.nil?
1413
+ command.query['requestId'] = request_id unless request_id.nil?
1414
+ command.query['serviceProjectAttachmentId'] = service_project_attachment_id unless service_project_attachment_id.nil?
1415
+ command.query['fields'] = fields unless fields.nil?
1416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1417
+ execute_or_queue_command(command, &block)
1418
+ end
1419
+
1420
+ # Deletes a service project attachment.
1421
+ # @param [String] name
1422
+ # Required. Fully qualified name of the service project attachment to delete.
1423
+ # Expected format: `projects/`project`/locations/`location`/
1424
+ # serviceProjectAttachments/`serviceProjectAttachment``.
1425
+ # @param [String] request_id
1426
+ # Optional. An optional request ID to identify requests. Specify a unique
1427
+ # request ID so that if you must retry your request, the server will know to
1428
+ # ignore the request if it has already been completed. The server will guarantee
1429
+ # that for at least 60 minutes after the first request. For example, consider a
1430
+ # situation where you make an initial request and the request times out. If you
1431
+ # make the request again with the same request ID, the server can check if
1432
+ # original operation with the same request ID was received, and if so, will
1433
+ # ignore the second request. This prevents clients from accidentally creating
1434
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1435
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1436
+ # @param [String] fields
1437
+ # Selector specifying which fields to include in a partial response.
1438
+ # @param [String] quota_user
1439
+ # Available to use for quota purposes for server-side applications. Can be any
1440
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1441
+ # @param [Google::Apis::RequestOptions] options
1442
+ # Request-specific options
1443
+ #
1444
+ # @yield [result, err] Result & error if block supplied
1445
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
1446
+ # @yieldparam err [StandardError] error object if request failed
1447
+ #
1448
+ # @return [Google::Apis::ApphubV1::Operation]
1449
+ #
1450
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1451
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1452
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1453
+ def delete_project_location_service_project_attachment(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1454
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1455
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
1456
+ command.response_class = Google::Apis::ApphubV1::Operation
1457
+ command.params['name'] = name unless name.nil?
1458
+ command.query['requestId'] = request_id unless request_id.nil?
1459
+ command.query['fields'] = fields unless fields.nil?
1460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1461
+ execute_or_queue_command(command, &block)
1462
+ end
1463
+
1464
+ # Gets a service project attachment.
1465
+ # @param [String] name
1466
+ # Required. Fully qualified name of the service project attachment to retrieve.
1467
+ # Expected format: `projects/`project`/locations/`location`/
1468
+ # serviceProjectAttachments/`serviceProjectAttachment``.
1469
+ # @param [String] fields
1470
+ # Selector specifying which fields to include in a partial response.
1471
+ # @param [String] quota_user
1472
+ # Available to use for quota purposes for server-side applications. Can be any
1473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1474
+ # @param [Google::Apis::RequestOptions] options
1475
+ # Request-specific options
1476
+ #
1477
+ # @yield [result, err] Result & error if block supplied
1478
+ # @yieldparam result [Google::Apis::ApphubV1::ServiceProjectAttachment] parsed result object
1479
+ # @yieldparam err [StandardError] error object if request failed
1480
+ #
1481
+ # @return [Google::Apis::ApphubV1::ServiceProjectAttachment]
1482
+ #
1483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1486
+ def get_project_location_service_project_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
1487
+ command = make_simple_command(:get, 'v1/{+name}', options)
1488
+ command.response_representation = Google::Apis::ApphubV1::ServiceProjectAttachment::Representation
1489
+ command.response_class = Google::Apis::ApphubV1::ServiceProjectAttachment
1490
+ command.params['name'] = name unless name.nil?
1491
+ command.query['fields'] = fields unless fields.nil?
1492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1493
+ execute_or_queue_command(command, &block)
1494
+ end
1495
+
1496
+ # Lists service projects attached to the host project.
1497
+ # @param [String] parent
1498
+ # Required. Host project ID and location to list service project attachments.
1499
+ # Only global location is supported. Expected format: `projects/`project`/
1500
+ # locations/`location``.
1501
+ # @param [String] filter
1502
+ # Optional. Filtering results.
1503
+ # @param [String] order_by
1504
+ # Optional. Hint for how to order the results.
1505
+ # @param [Fixnum] page_size
1506
+ # Optional. Requested page size. Server may return fewer items than requested.
1507
+ # If unspecified, server will pick an appropriate default.
1508
+ # @param [String] page_token
1509
+ # Optional. A token identifying a page of results the server should return.
1510
+ # @param [String] fields
1511
+ # Selector specifying which fields to include in a partial response.
1512
+ # @param [String] quota_user
1513
+ # Available to use for quota purposes for server-side applications. Can be any
1514
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1515
+ # @param [Google::Apis::RequestOptions] options
1516
+ # Request-specific options
1517
+ #
1518
+ # @yield [result, err] Result & error if block supplied
1519
+ # @yieldparam result [Google::Apis::ApphubV1::ListServiceProjectAttachmentsResponse] parsed result object
1520
+ # @yieldparam err [StandardError] error object if request failed
1521
+ #
1522
+ # @return [Google::Apis::ApphubV1::ListServiceProjectAttachmentsResponse]
1523
+ #
1524
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1525
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1526
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1527
+ def list_project_location_service_project_attachments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1528
+ command = make_simple_command(:get, 'v1/{+parent}/serviceProjectAttachments', options)
1529
+ command.response_representation = Google::Apis::ApphubV1::ListServiceProjectAttachmentsResponse::Representation
1530
+ command.response_class = Google::Apis::ApphubV1::ListServiceProjectAttachmentsResponse
1531
+ command.params['parent'] = parent unless parent.nil?
384
1532
  command.query['filter'] = filter unless filter.nil?
1533
+ command.query['orderBy'] = order_by unless order_by.nil?
385
1534
  command.query['pageSize'] = page_size unless page_size.nil?
386
1535
  command.query['pageToken'] = page_token unless page_token.nil?
387
1536
  command.query['fields'] = fields unless fields.nil?