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

package com.azure.resourcemanager.eventgrid.generated;

import com.azure.resourcemanager.eventgrid.models.Partner;
import java.time.OffsetDateTime;
import java.util.UUID;

/** Samples for PartnerConfigurations UnauthorizePartner. */
public final class PartnerConfigurationsUnauthorizePartnerSamples {
    /*
     * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2023-06-01-preview/examples/PartnerConfigurations_UnauthorizePartner.json
     */
    /**
     * Sample code: PartnerConfigurations_UnauthorizePartner.
     *
     * @param manager Entry point to EventGridManager.
     */
    public static void partnerConfigurationsUnauthorizePartner(
        com.azure.resourcemanager.eventgrid.EventGridManager manager) {
        manager
            .partnerConfigurations()
            .unauthorizePartnerWithResponse(
                "examplerg",
                new Partner()
                    .withPartnerRegistrationImmutableId(UUID.fromString("941892bc-f5d0-4d1c-8fb5-477570fc2b71"))
                    .withPartnerName("Contoso.Finance")
                    .withAuthorizationExpirationTimeInUtc(OffsetDateTime.parse("2022-01-28T01:20:55.142Z")),
                com.azure.core.util.Context.NONE);
    }
}
