// 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.administration.generated;

import com.azure.analytics.purview.administration.MetadataRolesClient;
import com.azure.analytics.purview.administration.MetadataRolesClientBuilder;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.RequestOptions;
import com.azure.core.util.BinaryData;
import com.azure.identity.DefaultAzureCredentialBuilder;

public class MetadataRolesList {
    public static void main(String[] args) {
        MetadataRolesClient metadataRolesClient =
                new MetadataRolesClientBuilder()
                        .credential(new DefaultAzureCredentialBuilder().build())
                        .endpoint("{Endpoint}")
                        .buildClient();
        // BEGIN:com.azure.analytics.purview.administration.generated.metadataroleslist.metadataroleslist
        RequestOptions requestOptions = new RequestOptions();
        PagedIterable<BinaryData> response = metadataRolesClient.list(requestOptions);
        // END:com.azure.analytics.purview.administration.generated.metadataroleslist.metadataroleslist
    }
}
