Skip to content

Commit

Permalink
feat: Add skip_grace_period flag to DeleteCertificateAuthority API (#…
Browse files Browse the repository at this point in the history
…5153)

* feat: AuditConfig for IAM v1

PiperOrigin-RevId: 439356405

Source-Link: googleapis/googleapis@afa2ba1

Source-Link: googleapis/googleapis-gen@3e40c17
Copy-Tag: eyJwIjoiU2VjdXJpdHlQcml2YXRlQ2EvLk93bEJvdC55YW1sIiwiaCI6IjNlNDBjMTdlMTUxMGM5NWZhYjU4ZmMyMTQzY2NiNjFjY2VjYTU5ODkifQ==

feat: Add `skip_grace_period` flag to DeleteCertificateAuthority API

PiperOrigin-RevId: 433526535

Source-Link: googleapis/googleapis@6c2ecea

Source-Link: googleapis/googleapis-gen@0ce0054
Copy-Tag: eyJwIjoiU2VjdXJpdHlQcml2YXRlQ2EvLk93bEJvdC55YW1sIiwiaCI6IjBjZTAwNTQ5YWRjMmMwYjVlNmM5YjI4NGJlN2FhMWI3ZGQxZTU0NjAifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored May 16, 2022
1 parent 2a31925 commit d62e976
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 5 deletions.
Binary file modified SecurityPrivateCa/metadata/V1/Resources.php
Binary file not shown.
8 changes: 4 additions & 4 deletions SecurityPrivateCa/metadata/V1/Service.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions SecurityPrivateCa/src/V1/DeleteCertificateAuthorityRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,10 @@ public function deleteCaPool($name, array $optionalArgs = [])
* @type bool $ignoreActiveCertificates
* Optional. This field allows the CA to be deleted even if the CA has
* active certs. Active certs include both unrevoked and unexpired certs.
* @type bool $skipGracePeriod
* Optional. If this flag is set, the Certificate Authority will be deleted as soon as
* possible without a 30-day grace period where undeletion would have been
* allowed. If you proceed, there will be no way to recover this CA.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
* {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
Expand All @@ -1175,6 +1179,10 @@ public function deleteCertificateAuthority($name, array $optionalArgs = [])
$request->setIgnoreActiveCertificates($optionalArgs['ignoreActiveCertificates']);
}

if (isset($optionalArgs['skipGracePeriod'])) {
$request->setSkipGracePeriod($optionalArgs['skipGracePeriod']);
}

$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
return $this->startOperationsCall('DeleteCertificateAuthority', $optionalArgs, $request, $this->getOperationsClient())->wait();
Expand Down Expand Up @@ -2736,7 +2744,7 @@ public function updateCertificateTemplate($certificateTemplate, $updateMask, arr
*
* @type GetPolicyOptions $options
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`. This field is only used by Cloud IAM.
* `GetIamPolicy`.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
* {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
Expand Down Expand Up @@ -2791,6 +2799,12 @@ public function getIamPolicy($resource, array $optionalArgs = [])
* @param array $optionalArgs {
* Optional.
*
* @type FieldMask $updateMask
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
*
* `paths: "bindings, etag"`
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
* {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
Expand All @@ -2809,6 +2823,10 @@ public function setIamPolicy($resource, $policy, array $optionalArgs = [])
$request->setResource($resource);
$request->setPolicy($policy);
$requestParamHeaders['resource'] = $resource;
if (isset($optionalArgs['updateMask'])) {
$request->setUpdateMask($optionalArgs['updateMask']);
}

$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
return $this->startCall('SetIamPolicy', Policy::class, $optionalArgs, $request, Call::UNARY_CALL, 'google.iam.v1.IAMPolicy')->wait();
Expand Down

0 comments on commit d62e976

Please sign in to comment.