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

package com.azure.resourcemanager.consumption.generated;

import com.azure.core.util.Context;

/** Samples for Marketplaces List. */
public final class MarketplacesListSamples {
    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesByBillingAccountListForBillingPeriod.json
     */
    /**
     * Sample code: BillingAccountMarketplacesListForBillingPeriod.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void billingAccountMarketplacesListForBillingPeriod(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .marketplaces()
            .list("providers/Microsoft.Billing/billingAccounts/123456", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json
     */
    /**
     * Sample code: EnrollmentAccountMarketplacesListForBillingPeriod.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void enrollmentAccountMarketplacesListForBillingPeriod(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .marketplaces()
            .list("providers/Microsoft.Billing/enrollmentAccounts/123456", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesList.json
     */
    /**
     * Sample code: SubscriptionMarketplacesList.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void subscriptionMarketplacesList(com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .marketplaces()
            .list("subscriptions/00000000-0000-0000-0000-000000000000", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesByEnrollmentAccountList.json
     */
    /**
     * Sample code: EnrollmentAccountMarketplacesList.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void enrollmentAccountMarketplacesList(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .marketplaces()
            .list("providers/Microsoft.Billing/enrollmentAccounts/123456", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesByDepartment_ListByBillingPeriod.json
     */
    /**
     * Sample code: DepartmentMarketplacesListForBillingPeriod.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void departmentMarketplacesListForBillingPeriod(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager.marketplaces().list("providers/Microsoft.Billing/departments/123456", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesByManagementGroupList.json
     */
    /**
     * Sample code: ManagementGroupMarketplacesList.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void managementGroupMarketplacesList(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .marketplaces()
            .list("subscriptions/00000000-0000-0000-0000-000000000000", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesListForBillingPeriod.json
     */
    /**
     * Sample code: SubscriptionMarketplacesListForBillingPeriod.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void subscriptionMarketplacesListForBillingPeriod(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .marketplaces()
            .list("subscriptions/00000000-0000-0000-0000-000000000000", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesByDepartmentList.json
     */
    /**
     * Sample code: DepartmentMarketplacesList.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void departmentMarketplacesList(com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager.marketplaces().list("providers/Microsoft.Billing/departments/123456", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesByManagementGroup_ListForBillingPeriod.json
     */
    /**
     * Sample code: ManagementGroupMarketplacesListForBillingPeriod.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void managementGroupMarketplacesListForBillingPeriod(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .marketplaces()
            .list("subscriptions/00000000-0000-0000-0000-000000000000", null, null, null, Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/MarketplacesByBillingAccountList.json
     */
    /**
     * Sample code: BillingAccountMarketplacesList.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void billingAccountMarketplacesList(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .marketplaces()
            .list("providers/Microsoft.Billing/billingAccounts/123456", null, null, null, Context.NONE);
    }
}
