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

com.microsoft.azure.management.resources.Providers 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.apigeneration.Method;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.ServiceResponse;
import rx.Observable;

/**
 * Entry point to providers management API.
 */
@Fluent
public interface Providers extends
        SupportsListing,
        SupportsGettingByName {
    /**
     * Unregisters provider from a subscription.
     *
     * @param resourceProviderNamespace Namespace of the resource provider
     * @return the ProviderInner object wrapped in {@link ServiceResponse} if successful
     */
    Provider unregister(String resourceProviderNamespace);

    /**
     * Unregisters provider from a subscription asynchronously.
     *
     * @param resourceProviderNamespace Namespace of the resource provider
     * @return a representation of the deferred computation of this call returning the unregistered Provider if successful
     */
    Observable unregisterAsync(String resourceProviderNamespace);

    /**
     * Unregisters provider from a subscription asynchronously.
     *
     * @param resourceProviderNamespace namespace of the resource provider
     * @param callback the callback to call on success or failure with the ProviderInner object wrapped as parameter if successful
     * @return a handle to cancel the request
     */
    @Method
    ServiceFuture unregisterAsync(String resourceProviderNamespace, ServiceCallback callback);

    /**
     * Registers provider to be used with a subscription.
     *
     * @param resourceProviderNamespace namespace of the resource provider
     * @return the registered provider
     */
    Provider register(String resourceProviderNamespace);

    /**
     * Registers provider to be used with a subscription asynchronously.
     *
     * @param resourceProviderNamespace Namespace of the resource provider
     * @return a representation of the deferred computation of this call returning the registered provider if successful
     */
    Observable registerAsync(String resourceProviderNamespace);

    /**
     * Registers provider to be used with a subscription asynchronously.
     *
     * @param resourceProviderNamespace Namespace of the resource provider
     * @param callback the callback to call on success or failure with the ProviderInner object wrapped as parameter if successful
     * @return a handle to cancel the request
     */
    ServiceFuture registerAsync(String resourceProviderNamespace, ServiceCallback callback);

    /**
     * Gets the information about a provider from Azure based on the provider name.
     *
     * @param name the name of the provider
     * @return a representation of the deferred computation of this call returning the found provider, if any
     */
    Observable getByNameAsync(String name);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy