google-apis-apphub_v1 0.3.0 → 0.4.0

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