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

package com.azure.analytics.purview.catalog.generated;

import com.azure.analytics.purview.catalog.GlossaryClient;
import com.azure.analytics.purview.catalog.GlossaryClientBuilder;
import com.azure.core.http.rest.RequestOptions;
import com.azure.core.http.rest.Response;
import com.azure.core.util.BinaryData;
import com.azure.identity.DefaultAzureCredentialBuilder;

public class GlossaryListRelatedTerms {
    public static void main(String[] args) {
        GlossaryClient glossaryClient =
                new GlossaryClientBuilder()
                        .credential(new DefaultAzureCredentialBuilder().build())
                        .endpoint("{Endpoint}")
                        .buildClient();
        // BEGIN:com.azure.analytics.purview.catalog.generated.glossarylistrelatedterms.glossarylistrelatedterms
        RequestOptions requestOptions =
                new RequestOptions()
                        .addQueryParam("limit", "-1")
                        .addQueryParam("offset", "0")
                        .addQueryParam("sort", "ASC");
        Response<BinaryData> response =
                glossaryClient.listRelatedTermsWithResponse("54688d39-b298-4104-9e80-f2a16f44aaea", requestOptions);
        // END:com.azure.analytics.purview.catalog.generated.glossarylistrelatedterms.glossarylistrelatedterms
    }
}
