Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* 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.arm.collection;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import rx.Completable;
Provides access to deleting a resource from Azure, identifying it by its resource ID.
(Note: this interface is not intended to be implemented by user code)
/**
* Provides access to deleting a resource from Azure, identifying it by its resource ID.
* <p>
* (Note: this interface is not intended to be implemented by user code)
*/
@LangDefinition(ContainerName = "CollectionActions", CreateAsyncMethods = true)
public interface SupportsDeletingById {
Deletes a resource from Azure, identifying it by its resource ID.
Params: - id – the resource ID of the resource to delete
/**
* Deletes a resource from Azure, identifying it by its resource ID.
*
* @param id the resource ID of the resource to delete
*/
void deleteById(String id);
Asynchronously delete a resource from Azure, identifying it by its resource ID.
Params: - id – the resource ID of the resource to delete
- callback – the callback on success or failure
Returns: a handle to cancel the request
/**
* Asynchronously delete a resource from Azure, identifying it by its resource ID.
*
* @param id the resource ID of the resource to delete
* @param callback the callback on success or failure
* @return a handle to cancel the request
*/
ServiceFuture<Void> deleteByIdAsync(String id, ServiceCallback<Void> callback);
Asynchronously delete a resource from Azure, identifying it by its resource ID.
Params: - id – the resource ID of the resource to delete
Returns: a representation of the deferred computation of this call
/**
* Asynchronously delete a resource from Azure, identifying it by its resource ID.
*
* @param id the resource ID of the resource to delete
* @return a representation of the deferred computation of this call
*/
Completable deleteByIdAsync(String id);
}