Interface MachineExtensions
public interface MachineExtensions
Resource collection API of MachineExtensions.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new MachineExtension resource.void
The operation to delete the extension.void
delete
(String resourceGroupName, String name, String extensionName, com.azure.core.util.Context context) The operation to delete the extension.void
deleteById
(String id) The operation to delete the extension.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) The operation to delete the extension.The operation to get the extension.The operation to get the extension.com.azure.core.http.rest.Response<MachineExtension>
getByIdWithResponse
(String id, com.azure.core.util.Context context) The operation to get the extension.com.azure.core.http.rest.Response<MachineExtension>
getWithResponse
(String resourceGroupName, String name, String extensionName, com.azure.core.util.Context context) The operation to get the extension.com.azure.core.http.rest.PagedIterable<MachineExtension>
The operation to get all extensions of a non-Azure machine.com.azure.core.http.rest.PagedIterable<MachineExtension>
The operation to get all extensions of a non-Azure machine.
-
Method Details
-
delete
The operation to delete the extension.- Parameters:
resourceGroupName
- The Resource Group Name.name
- The name of the machine where the extension should be deleted.extensionName
- The name of the machine extension.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String name, String extensionName, com.azure.core.util.Context context) The operation to delete the extension.- Parameters:
resourceGroupName
- The Resource Group Name.name
- The name of the machine where the extension should be deleted.extensionName
- The name of the machine extension.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
The operation to get the extension.- Parameters:
resourceGroupName
- The Resource Group Name.name
- The name of the machine containing the extension.extensionName
- The name of the machine extension.- Returns:
- describes a Machine Extension.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<MachineExtension> getWithResponse(String resourceGroupName, String name, String extensionName, com.azure.core.util.Context context) The operation to get the extension.- Parameters:
resourceGroupName
- The Resource Group Name.name
- The name of the machine containing the extension.extensionName
- The name of the machine extension.context
- The context to associate with this operation.- Returns:
- describes a Machine Extension along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<MachineExtension> list(String resourceGroupName, String name) The operation to get all extensions of a non-Azure machine.- Parameters:
resourceGroupName
- The Resource Group Name.name
- The name of the machine containing the extension.- Returns:
- describes the Machine Extensions List Result as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<MachineExtension> list(String resourceGroupName, String name, String expand, com.azure.core.util.Context context) The operation to get all extensions of a non-Azure machine.- Parameters:
resourceGroupName
- The Resource Group Name.name
- The name of the machine containing the extension.expand
- The expand expression to apply on the operation.context
- The context to associate with this operation.- Returns:
- describes the Machine Extensions List Result as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
The operation to get the extension.- Parameters:
id
- the resource ID.- Returns:
- describes a Machine Extension along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<MachineExtension> getByIdWithResponse(String id, com.azure.core.util.Context context) The operation to get the extension.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- describes a Machine Extension along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
The operation to delete the extension.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
The operation to delete the extension.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new MachineExtension resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new MachineExtension definition.
-