namespace Google.Cloud.Security.PrivateCA.V1.Snippets
{
    // [START privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async_flattened]
    using Google.Cloud.Security.PrivateCA.V1;
    using System.Threading.Tasks;

    public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets
    {
        /// <summary>Snippet for RevokeCertificateAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task RevokeCertificateAsync()
        {
            // Create client
            CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]";
            // Make the request
            Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);
        }
    }
    // [END privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async_flattened]
}
