Skip to content

Commit d9592ed

Browse files
Google APIscopybara-github
authored andcommitted
feat: added ignore_dependent_resources to DeleteCaPoolRequest, DeleteCertificateAuthorityRequest, DisableCertificateAuthorityRequest
PiperOrigin-RevId: 522096199
1 parent a32790c commit d9592ed

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

google/cloud/security/privateca/v1/resources.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -1431,7 +1431,7 @@ enum SubjectRequestMode {
14311431
DEFAULT = 1;
14321432

14331433
// A mode reserved for special cases. Indicates that the certificate should
1434-
// have one or more SPIFFE
1434+
// have one SPIFFE
14351435
// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set
14361436
// by the service based on the caller's identity. This mode will ignore any
14371437
// explicitly specified [Subject][google.cloud.security.privateca.v1.Subject]

google/cloud/security/privateca/v1/service.proto

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323
import "google/cloud/security/privateca/v1/resources.proto";
2424
import "google/longrunning/operations.proto";
25+
import "google/protobuf/empty.proto";
2526
import "google/protobuf/field_mask.proto";
2627
import "google/protobuf/timestamp.proto";
2728

@@ -720,6 +721,12 @@ message DisableCertificateAuthorityRequest {
720721
// The request ID must be a valid UUID with the exception that zero UUID is
721722
// not supported (00000000-0000-0000-0000-000000000000).
722723
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
724+
725+
// Optional. This field allows this CA to be disabled even if it's being
726+
// depended on by another resource. However, doing so may result in unintended
727+
// and unrecoverable effects on any dependent resource(s) since the CA will
728+
// no longer be able to issue certificates.
729+
bool ignore_dependent_resources = 3 [(google.api.field_behavior) = OPTIONAL];
723730
}
724731

725732
// Request message for
@@ -903,6 +910,12 @@ message DeleteCertificateAuthorityRequest {
903910
// soon as possible without a 30-day grace period where undeletion would have
904911
// been allowed. If you proceed, there will be no way to recover this CA.
905912
bool skip_grace_period = 5 [(google.api.field_behavior) = OPTIONAL];
913+
914+
// Optional. This field allows this ca to be deleted even if it's being
915+
// depended on by another resource. However, doing so may result in unintended
916+
// and unrecoverable effects on any dependent resource(s) since the CA will
917+
// no longer be able to issue certificates.
918+
bool ignore_dependent_resources = 6 [(google.api.field_behavior) = OPTIONAL];
906919
}
907920

908921
// Request message for
@@ -1025,6 +1038,12 @@ message DeleteCaPoolRequest {
10251038
// The request ID must be a valid UUID with the exception that zero UUID is
10261039
// not supported (00000000-0000-0000-0000-000000000000).
10271040
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1041+
1042+
// Optional. This field allows this pool to be deleted even if it's being
1043+
// depended on by another resource. However, doing so may result in unintended
1044+
// and unrecoverable effects on any dependent resource(s) since the pool will
1045+
// no longer be able to issue certificates.
1046+
bool ignore_dependent_resources = 4 [(google.api.field_behavior) = OPTIONAL];
10281047
}
10291048

10301049
// Request message for

0 commit comments

Comments
 (0)