google-apis-chromemanagement_v1 0.69.0 → 0.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -292,6 +292,228 @@ module Google
292
292
  execute_or_queue_command(command, &block)
293
293
  end
294
294
 
295
+ # Claims a certificate provisioning process. For each certificate provisioning
296
+ # process, this operation can succeed only for one `caller_instance_id`.
297
+ # @param [String] name
298
+ # Required. Resource name of the `CertificateProvisioningProcess` to claim. The
299
+ # name pattern is given as `customers/`customer`/
300
+ # certificateProvisioningProcesses/`certificate_provisioning_process`` with ``
301
+ # customer`` being the obfuscated customer id and ``
302
+ # certificate_provisioning_process`` being the certificate provisioning process
303
+ # id.
304
+ # @param [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessRequest] google_chrome_management_versions_v1_claim_certificate_provisioning_process_request_object
305
+ # @param [String] fields
306
+ # Selector specifying which fields to include in a partial response.
307
+ # @param [String] quota_user
308
+ # Available to use for quota purposes for server-side applications. Can be any
309
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
310
+ # @param [Google::Apis::RequestOptions] options
311
+ # Request-specific options
312
+ #
313
+ # @yield [result, err] Result & error if block supplied
314
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse] parsed result object
315
+ # @yieldparam err [StandardError] error object if request failed
316
+ #
317
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse]
318
+ #
319
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
320
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
321
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
322
+ def claim_customer_certificate_provisioning_process(name, google_chrome_management_versions_v1_claim_certificate_provisioning_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
323
+ command = make_simple_command(:post, 'v1/{+name}:claim', options)
324
+ command.request_representation = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessRequest::Representation
325
+ command.request_object = google_chrome_management_versions_v1_claim_certificate_provisioning_process_request_object
326
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse::Representation
327
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse
328
+ command.params['name'] = name unless name.nil?
329
+ command.query['fields'] = fields unless fields.nil?
330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
331
+ execute_or_queue_command(command, &block)
332
+ end
333
+
334
+ # Retrieves a certificate provisioning process.
335
+ # @param [String] name
336
+ # Required. Resource name of the `CertificateProvisioningProcess` to return. The
337
+ # name pattern is given as `customers/`customer`/
338
+ # certificateProvisioningProcesses/`certificate_provisioning_process`` with ``
339
+ # customer`` being the obfuscated customer id and ``
340
+ # certificate_provisioning_process`` being the certificate provisioning process
341
+ # id.
342
+ # @param [String] fields
343
+ # Selector specifying which fields to include in a partial response.
344
+ # @param [String] quota_user
345
+ # Available to use for quota purposes for server-side applications. Can be any
346
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
347
+ # @param [Google::Apis::RequestOptions] options
348
+ # Request-specific options
349
+ #
350
+ # @yield [result, err] Result & error if block supplied
351
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1CertificateProvisioningProcess] parsed result object
352
+ # @yieldparam err [StandardError] error object if request failed
353
+ #
354
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1CertificateProvisioningProcess]
355
+ #
356
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
357
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
359
+ def get_customer_certificate_provisioning_process(name, fields: nil, quota_user: nil, options: nil, &block)
360
+ command = make_simple_command(:get, 'v1/{+name}', options)
361
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1CertificateProvisioningProcess::Representation
362
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1CertificateProvisioningProcess
363
+ command.params['name'] = name unless name.nil?
364
+ command.query['fields'] = fields unless fields.nil?
365
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
366
+ execute_or_queue_command(command, &block)
367
+ end
368
+
369
+ # Marks a certificate provisioning process as failed.
370
+ # @param [String] name
371
+ # Required. Resource name of the `CertificateProvisioningProcess` to return. The
372
+ # name pattern is given as `customers/`customer`/
373
+ # certificateProvisioningProcesses/`certificate_provisioning_process`` with ``
374
+ # customer`` being the obfuscated customer id and ``
375
+ # certificate_provisioning_process`` being the certificate provisioning process
376
+ # id.
377
+ # @param [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1SetFailureRequest] google_chrome_management_versions_v1_set_failure_request_object
378
+ # @param [String] fields
379
+ # Selector specifying which fields to include in a partial response.
380
+ # @param [String] quota_user
381
+ # Available to use for quota purposes for server-side applications. Can be any
382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
383
+ # @param [Google::Apis::RequestOptions] options
384
+ # Request-specific options
385
+ #
386
+ # @yield [result, err] Result & error if block supplied
387
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1SetFailureResponse] parsed result object
388
+ # @yieldparam err [StandardError] error object if request failed
389
+ #
390
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1SetFailureResponse]
391
+ #
392
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
393
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
394
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
395
+ def set_customer_certificate_provisioning_process_failure(name, google_chrome_management_versions_v1_set_failure_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
396
+ command = make_simple_command(:post, 'v1/{+name}:setFailure', options)
397
+ command.request_representation = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1SetFailureRequest::Representation
398
+ command.request_object = google_chrome_management_versions_v1_set_failure_request_object
399
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1SetFailureResponse::Representation
400
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1SetFailureResponse
401
+ command.params['name'] = name unless name.nil?
402
+ command.query['fields'] = fields unless fields.nil?
403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
404
+ execute_or_queue_command(command, &block)
405
+ end
406
+
407
+ # Requests the client that initiated a certificate provisioning process to sign
408
+ # data. This should only be called after `ClaimCertificateProvisioningProcess`
409
+ # has been successfully executed.
410
+ # @param [String] name
411
+ # Required. Resource name of the `CertificateProvisioningProcess` to return. The
412
+ # name pattern is given as `customers/`customer`/
413
+ # certificateProvisioningProcesses/`certificate_provisioning_process`` with ``
414
+ # customer`` being the obfuscated customer id and ``
415
+ # certificate_provisioning_process`` being the certificate provisioning process
416
+ # id.
417
+ # @param [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1SignDataRequest] google_chrome_management_versions_v1_sign_data_request_object
418
+ # @param [String] fields
419
+ # Selector specifying which fields to include in a partial response.
420
+ # @param [String] quota_user
421
+ # Available to use for quota purposes for server-side applications. Can be any
422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
423
+ # @param [Google::Apis::RequestOptions] options
424
+ # Request-specific options
425
+ #
426
+ # @yield [result, err] Result & error if block supplied
427
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleLongrunningOperation] parsed result object
428
+ # @yieldparam err [StandardError] error object if request failed
429
+ #
430
+ # @return [Google::Apis::ChromemanagementV1::GoogleLongrunningOperation]
431
+ #
432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
435
+ def sign_customer_certificate_provisioning_process_data(name, google_chrome_management_versions_v1_sign_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
436
+ command = make_simple_command(:post, 'v1/{+name}:signData', options)
437
+ command.request_representation = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1SignDataRequest::Representation
438
+ command.request_object = google_chrome_management_versions_v1_sign_data_request_object
439
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleLongrunningOperation::Representation
440
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleLongrunningOperation
441
+ command.params['name'] = name unless name.nil?
442
+ command.query['fields'] = fields unless fields.nil?
443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
444
+ execute_or_queue_command(command, &block)
445
+ end
446
+
447
+ # Uploads a successfully issued certificate for a certificate provisioning
448
+ # process.
449
+ # @param [String] name
450
+ # Required. Resource name of the `CertificateProvisioningProcess` to return. The
451
+ # name pattern is given as `customers/`customer`/
452
+ # certificateProvisioningProcesses/`certificate_provisioning_process`` with ``
453
+ # customer`` being the obfuscated customer id and ``
454
+ # certificate_provisioning_process`` being the certificate provisioning process
455
+ # id.
456
+ # @param [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1UploadCertificateRequest] google_chrome_management_versions_v1_upload_certificate_request_object
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
459
+ # @param [String] quota_user
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1UploadCertificateResponse] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1UploadCertificateResponse]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def upload_customer_certificate_provisioning_process_certificate(name, google_chrome_management_versions_v1_upload_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:post, 'v1/{+name}:uploadCertificate', options)
476
+ command.request_representation = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1UploadCertificateRequest::Representation
477
+ command.request_object = google_chrome_management_versions_v1_upload_certificate_request_object
478
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1UploadCertificateResponse::Representation
479
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1UploadCertificateResponse
480
+ command.params['name'] = name unless name.nil?
481
+ command.query['fields'] = fields unless fields.nil?
482
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ execute_or_queue_command(command, &block)
484
+ end
485
+
486
+ # Gets the latest state of a long-running operation. Clients can use this method
487
+ # to poll the operation result at intervals as recommended by the API service.
488
+ # @param [String] name
489
+ # The name of the operation resource.
490
+ # @param [String] fields
491
+ # Selector specifying which fields to include in a partial response.
492
+ # @param [String] quota_user
493
+ # Available to use for quota purposes for server-side applications. Can be any
494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
495
+ # @param [Google::Apis::RequestOptions] options
496
+ # Request-specific options
497
+ #
498
+ # @yield [result, err] Result & error if block supplied
499
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleLongrunningOperation] parsed result object
500
+ # @yieldparam err [StandardError] error object if request failed
501
+ #
502
+ # @return [Google::Apis::ChromemanagementV1::GoogleLongrunningOperation]
503
+ #
504
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
507
+ def get_customer_certificate_provisioning_process_operation(name, fields: nil, quota_user: nil, options: nil, &block)
508
+ command = make_simple_command(:get, 'v1/{+name}', options)
509
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleLongrunningOperation::Representation
510
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleLongrunningOperation
511
+ command.params['name'] = name unless name.nil?
512
+ command.query['fields'] = fields unless fields.nil?
513
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
514
+ execute_or_queue_command(command, &block)
515
+ end
516
+
295
517
  # Deletes the data collected from a Chrome browser profile.
296
518
  # @param [String] name
297
519
  # Required. Format: customers/`customer_id`/profiles/`profile_permanent_id`
@@ -1429,6 +1651,127 @@ module Google
1429
1651
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1430
1652
  execute_or_queue_command(command, &block)
1431
1653
  end
1654
+
1655
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1656
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1657
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1658
+ # Clients can use Operations.GetOperation or other methods to check whether the
1659
+ # cancellation succeeded or whether the operation completed despite cancellation.
1660
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1661
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1662
+ # , corresponding to `Code.CANCELLED`.
1663
+ # @param [String] name
1664
+ # The name of the operation resource to be cancelled.
1665
+ # @param [Google::Apis::ChromemanagementV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
1666
+ # @param [String] fields
1667
+ # Selector specifying which fields to include in a partial response.
1668
+ # @param [String] quota_user
1669
+ # Available to use for quota purposes for server-side applications. Can be any
1670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1671
+ # @param [Google::Apis::RequestOptions] options
1672
+ # Request-specific options
1673
+ #
1674
+ # @yield [result, err] Result & error if block supplied
1675
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleProtobufEmpty] parsed result object
1676
+ # @yieldparam err [StandardError] error object if request failed
1677
+ #
1678
+ # @return [Google::Apis::ChromemanagementV1::GoogleProtobufEmpty]
1679
+ #
1680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1683
+ def cancel_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1684
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1685
+ command.request_representation = Google::Apis::ChromemanagementV1::GoogleLongrunningCancelOperationRequest::Representation
1686
+ command.request_object = google_longrunning_cancel_operation_request_object
1687
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleProtobufEmpty::Representation
1688
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleProtobufEmpty
1689
+ command.params['name'] = name unless name.nil?
1690
+ command.query['fields'] = fields unless fields.nil?
1691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1692
+ execute_or_queue_command(command, &block)
1693
+ end
1694
+
1695
+ # Deletes a long-running operation. This method indicates that the client is no
1696
+ # longer interested in the operation result. It does not cancel the operation.
1697
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1698
+ # UNIMPLEMENTED`.
1699
+ # @param [String] name
1700
+ # The name of the operation resource to be deleted.
1701
+ # @param [String] fields
1702
+ # Selector specifying which fields to include in a partial response.
1703
+ # @param [String] quota_user
1704
+ # Available to use for quota purposes for server-side applications. Can be any
1705
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1706
+ # @param [Google::Apis::RequestOptions] options
1707
+ # Request-specific options
1708
+ #
1709
+ # @yield [result, err] Result & error if block supplied
1710
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleProtobufEmpty] parsed result object
1711
+ # @yieldparam err [StandardError] error object if request failed
1712
+ #
1713
+ # @return [Google::Apis::ChromemanagementV1::GoogleProtobufEmpty]
1714
+ #
1715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1718
+ def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1719
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1720
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleProtobufEmpty::Representation
1721
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleProtobufEmpty
1722
+ command.params['name'] = name unless name.nil?
1723
+ command.query['fields'] = fields unless fields.nil?
1724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1725
+ execute_or_queue_command(command, &block)
1726
+ end
1727
+
1728
+ # Lists operations that match the specified filter in the request. If the server
1729
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1730
+ # @param [String] name
1731
+ # The name of the operation's parent resource.
1732
+ # @param [String] filter
1733
+ # The standard list filter.
1734
+ # @param [Fixnum] page_size
1735
+ # The standard list page size.
1736
+ # @param [String] page_token
1737
+ # The standard list page token.
1738
+ # @param [Boolean] return_partial_success
1739
+ # When set to `true`, operations that are reachable are returned as normal, and
1740
+ # those that are unreachable are returned in the [ListOperationsResponse.
1741
+ # unreachable] field. This can only be `true` when reading across collections e.
1742
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
1743
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
1744
+ # explicitly documented otherwise in service or product specific documentation.
1745
+ # @param [String] fields
1746
+ # Selector specifying which fields to include in a partial response.
1747
+ # @param [String] quota_user
1748
+ # Available to use for quota purposes for server-side applications. Can be any
1749
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1750
+ # @param [Google::Apis::RequestOptions] options
1751
+ # Request-specific options
1752
+ #
1753
+ # @yield [result, err] Result & error if block supplied
1754
+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleLongrunningListOperationsResponse] parsed result object
1755
+ # @yieldparam err [StandardError] error object if request failed
1756
+ #
1757
+ # @return [Google::Apis::ChromemanagementV1::GoogleLongrunningListOperationsResponse]
1758
+ #
1759
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1760
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1761
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1762
+ def list_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
1763
+ command = make_simple_command(:get, 'v1/{+name}', options)
1764
+ command.response_representation = Google::Apis::ChromemanagementV1::GoogleLongrunningListOperationsResponse::Representation
1765
+ command.response_class = Google::Apis::ChromemanagementV1::GoogleLongrunningListOperationsResponse
1766
+ command.params['name'] = name unless name.nil?
1767
+ command.query['filter'] = filter unless filter.nil?
1768
+ command.query['pageSize'] = page_size unless page_size.nil?
1769
+ command.query['pageToken'] = page_token unless page_token.nil?
1770
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
1771
+ command.query['fields'] = fields unless fields.nil?
1772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1773
+ execute_or_queue_command(command, &block)
1774
+ end
1432
1775
 
1433
1776
  protected
1434
1777
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chromemanagement_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.69.0
4
+ version: 0.71.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromemanagement_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-chromemanagement_v1/v0.69.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chromemanagement_v1/v0.71.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromemanagement_v1
62
62
  rdoc_options: []
63
63
  require_paths: