Skip to content

Commit

Permalink
feat: added ignore_dependent_resources to DeleteCaPoolRequest, Delete…
Browse files Browse the repository at this point in the history
…CertificateAuthorityRequest, DisableCertificateAuthorityRequest (#6036)

PiperOrigin-RevId: 522096199
Source-Link: googleapis/googleapis@d9592ed
Source-Link: googleapis/googleapis-gen@0ab428e
Copy-Tag: eyJwIjoiU2VjdXJpdHlQcml2YXRlQ2EvLk93bEJvdC55YW1sIiwiaCI6IjBhYjQyOGUzOTM0OTgxZGI5YzhjN2JmMTdiMWZlYTVkNzQ2ODJhZmIifQ==
  • Loading branch information
gcf-owl-bot[bot] authored Apr 7, 2023
1 parent 519cc5b commit 8fe7410
Show file tree
Hide file tree
Showing 6 changed files with 178 additions and 9 deletions.
20 changes: 12 additions & 8 deletions SecurityPrivateCa/metadata/V1/Service.php

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

46 changes: 46 additions & 0 deletions SecurityPrivateCa/src/V1/DeleteCaPoolRequest.php

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

46 changes: 46 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.

46 changes: 46 additions & 0 deletions SecurityPrivateCa/src/V1/DisableCertificateAuthorityRequest.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 @@ -1078,6 +1078,11 @@ public function createCertificateTemplate($parent, $certificateTemplateId, $cert
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
* @type bool $ignoreDependentResources
* Optional. This field allows this pool to be deleted even if it's being
* depended on by another resource. However, doing so may result in unintended
* and unrecoverable effects on any dependent resource(s) since the pool will
* no longer be able to issue certificates.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand All @@ -1098,6 +1103,10 @@ public function deleteCaPool($name, array $optionalArgs = [])
$request->setRequestId($optionalArgs['requestId']);
}

if (isset($optionalArgs['ignoreDependentResources'])) {
$request->setIgnoreDependentResources($optionalArgs['ignoreDependentResources']);
}

$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
return $this->startOperationsCall('DeleteCaPool', $optionalArgs, $request, $this->getOperationsClient())->wait();
Expand Down Expand Up @@ -1170,6 +1179,11 @@ public function deleteCaPool($name, array $optionalArgs = [])
* 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 bool $ignoreDependentResources
* Optional. This field allows this ca to be deleted even if it's being
* depended on by another resource. However, doing so may result in unintended
* and unrecoverable effects on any dependent resource(s) since the CA will
* no longer be able to issue certificates.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand Down Expand Up @@ -1198,6 +1212,10 @@ public function deleteCertificateAuthority($name, array $optionalArgs = [])
$request->setSkipGracePeriod($optionalArgs['skipGracePeriod']);
}

if (isset($optionalArgs['ignoreDependentResources'])) {
$request->setIgnoreDependentResources($optionalArgs['ignoreDependentResources']);
}

$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 @@ -1346,6 +1364,11 @@ public function deleteCertificateTemplate($name, array $optionalArgs = [])
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
* @type bool $ignoreDependentResources
* Optional. This field allows this CA to be disabled even if it's being
* depended on by another resource. However, doing so may result in unintended
* and unrecoverable effects on any dependent resource(s) since the CA will
* no longer be able to issue certificates.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand All @@ -1366,6 +1389,10 @@ public function disableCertificateAuthority($name, array $optionalArgs = [])
$request->setRequestId($optionalArgs['requestId']);
}

if (isset($optionalArgs['ignoreDependentResources'])) {
$request->setIgnoreDependentResources($optionalArgs['ignoreDependentResources']);
}

$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
return $this->startOperationsCall('DisableCertificateAuthority', $optionalArgs, $request, $this->getOperationsClient())->wait();
Expand Down
2 changes: 1 addition & 1 deletion SecurityPrivateCa/src/V1/SubjectRequestMode.php

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

0 comments on commit 8fe7410

Please sign in to comment.