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

package com.azure.resourcemanager.mediaservices.generated;

/** Samples for Assets List. */
public final class AssetsListSamples {
    /*
     * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-by-date.json
     */
    /**
     * Sample code: List Asset ordered by date.
     *
     * @param manager Entry point to MediaServicesManager.
     */
    public static void listAssetOrderedByDate(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
        manager
            .assets()
            .list("contosorg", "contosomedia", null, null, "properties/created", com.azure.core.util.Context.NONE);
    }

    /*
     * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-in-date-range.json
     */
    /**
     * Sample code: List Asset created in a date range.
     *
     * @param manager Entry point to MediaServicesManager.
     */
    public static void listAssetCreatedInADateRange(
        com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
        manager
            .assets()
            .list(
                "contosorg",
                "contosomedia",
                "properties/created gt 2012-06-01 and properties/created lt 2013-07-01",
                null,
                "properties/created",
                com.azure.core.util.Context.NONE);
    }

    /*
     * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-all.json
     */
    /**
     * Sample code: List all Assets.
     *
     * @param manager Entry point to MediaServicesManager.
     */
    public static void listAllAssets(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
        manager.assets().list("contosorg", "contosomedia", null, null, null, com.azure.core.util.Context.NONE);
    }
}
