// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appservice.generated;

import com.azure.resourcemanager.appservice.models.RenewCertificateOrderRequest;

/** Samples for AppServiceCertificateOrders Renew. */
public final class AppServiceCertificateOrdersRenewSamples {
    /*
     * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/RenewAppServiceCertificateOrder.json
     */
    /**
     * Sample code: Renew App Service Certificate Order.
     *
     * @param azure The entry point for accessing resource management APIs in Azure.
     */
    public static void renewAppServiceCertificateOrder(com.azure.resourcemanager.AzureResourceManager azure) {
        azure
            .webApps()
            .manager()
            .serviceClient()
            .getAppServiceCertificateOrders()
            .renewWithResponse(
                "testrg123",
                "SampleCertificateOrderName",
                new RenewCertificateOrderRequest()
                    .withKeySize(2048)
                    .withCsr("CSR1223238Value")
                    .withIsPrivateKeyExternal(false),
                com.azure.core.util.Context.NONE);
    }
}
