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

PiperOrigin-RevId: 522096199

Source-Link: googleapis/googleapis@d9592ed

Source-Link: googleapis/googleapis-gen@0ab428e
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHkuUHJpdmF0ZUNBLlYxLy5Pd2xCb3QueWFtbCIsImgiOiIwYWI0MjhlMzkzNDk4MWRiOWM4YzdiZjE3YjFmZWE1ZDc0NjgyYWZiIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Apr 6, 2023
1 parent 440c8ca commit ca8e6ba
Show file tree
Hide file tree
Showing 11 changed files with 474 additions and 330 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public async Task DeleteCaPoolRequestObjectAsync()
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public void DeleteCaPoolRequestObject()
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCaPool(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public async Task DeleteCertificateAuthorityRequestObjectAsync()
RequestId = "",
IgnoreActiveCertificates = false,
SkipGracePeriod = false,
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void DeleteCertificateAuthorityRequestObject()
RequestId = "",
IgnoreActiveCertificates = false,
SkipGracePeriod = false,
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateAuthority(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public async Task DisableCertificateAuthorityRequestObjectAsync()
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public void DisableCertificateAuthorityRequestObject()
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DisableCertificateAuthority(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2066,12 +2066,12 @@
"segments": [
{
"start": 20,
"end": 62,
"end": 63,
"type": "FULL"
},
{
"start": 35,
"end": 60,
"end": 61,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -2115,12 +2115,12 @@
"segments": [
{
"start": 20,
"end": 63,
"end": 64,
"type": "FULL"
},
{
"start": 36,
"end": 61,
"end": 62,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -3820,12 +3820,12 @@
"segments": [
{
"start": 20,
"end": 64,
"end": 65,
"type": "FULL"
},
{
"start": 35,
"end": 62,
"end": 63,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -3869,12 +3869,12 @@
"segments": [
{
"start": 20,
"end": 65,
"end": 66,
"type": "FULL"
},
{
"start": 36,
"end": 63,
"end": 64,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -5432,12 +5432,12 @@
"segments": [
{
"start": 20,
"end": 63,
"end": 64,
"type": "FULL"
},
{
"start": 36,
"end": 61,
"end": 62,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -5481,12 +5481,12 @@
"segments": [
{
"start": 20,
"end": 64,
"end": 65,
"type": "FULL"
},
{
"start": 37,
"end": 62,
"end": 63,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,7 @@ public void DisableCertificateAuthorityRequestObject()
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DisableCertificateAuthority(request);
Expand Down Expand Up @@ -1087,6 +1088,7 @@ public async Task DisableCertificateAuthorityRequestObjectAsync()
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(request);
Expand Down Expand Up @@ -2064,6 +2066,7 @@ public void DeleteCertificateAuthorityRequestObject()
RequestId = "",
IgnoreActiveCertificates = false,
SkipGracePeriod = false,
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateAuthority(request);
Expand Down Expand Up @@ -2100,6 +2103,7 @@ public async Task DeleteCertificateAuthorityRequestObjectAsync()
RequestId = "",
IgnoreActiveCertificates = false,
SkipGracePeriod = false,
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(request);
Expand Down Expand Up @@ -3075,6 +3079,7 @@ public void DeleteCaPoolRequestObject()
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCaPool(request);
Expand Down Expand Up @@ -3109,6 +3114,7 @@ public async Task DeleteCaPoolRequestObjectAsync()
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public enum SubjectRequestMode {
[pbr::OriginalName("DEFAULT")] Default = 1,
/// <summary>
/// A mode reserved for special cases. Indicates that the certificate should
/// have one or more SPIFFE
/// have one SPIFFE
/// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set
/// by the service based on the caller's identity. This mode will ignore any
/// explicitly specified [Subject][google.cloud.security.privateca.v1.Subject]
Expand Down
Loading

0 comments on commit ca8e6ba

Please sign in to comment.