All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.resources.Features Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import rx.Observable;

/**
 * Entry point to features management API.
 */
@Fluent
public interface Features extends
        SupportsListing {
    /**
     * Registers a feature in a resource provider.
     *
     * @param resourceProviderName the name of the resource provider
     * @param featureName the name of the feature
     * @return the registered feature
     */
    Feature register(String resourceProviderName, String featureName);
    /**
     * Registers a feature in a resource provider asynchronously.
     *
     * @param resourceProviderName the name of the resource provider
     * @param featureName the name of the feature
     * @return a representation of the deferred computation of this call returning the registered feature
     */
    Observable registerAsync(String resourceProviderName, String featureName);

    /**
     * Registers a feature in a resource provider asynchronously.
     *
     * @param resourceProviderName the name of the resource provider
     * @param featureName the name of the feature
     * @param callback the callback to call on success or failure
     * @return a handle to cancel the request
     */
    ServiceFuture registerAsync(String resourceProviderName, String featureName, ServiceCallback callback);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy