Interface Licenses
public interface Licenses
Resource collection API of Licenses.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new License resource.voidThe operation to delete a license.voiddeleteById(String id) The operation to delete a license.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) The operation to delete a license.voiddeleteByResourceGroup(String resourceGroupName, String licenseName) The operation to delete a license.Retrieves information about the view of a license.com.azure.core.http.rest.Response<License> getByIdWithResponse(String id, com.azure.core.util.Context context) Retrieves information about the view of a license.getByResourceGroup(String resourceGroupName, String licenseName) Retrieves information about the view of a license.com.azure.core.http.rest.Response<License> getByResourceGroupWithResponse(String resourceGroupName, String licenseName, com.azure.core.util.Context context) Retrieves information about the view of a license.com.azure.core.http.rest.PagedIterable<License> list()The operation to get all licenses of a non-Azure machine.com.azure.core.http.rest.PagedIterable<License> list(com.azure.core.util.Context context) The operation to get all licenses of a non-Azure machine.com.azure.core.http.rest.PagedIterable<License> listByResourceGroup(String resourceGroupName) The operation to get all licenses of a non-Azure machine.com.azure.core.http.rest.PagedIterable<License> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) The operation to get all licenses of a non-Azure machine.validateLicense(LicenseInner parameters) The operation to validate a license.validateLicense(LicenseInner parameters, com.azure.core.util.Context context) The operation to validate a license.
-
Method Details
-
validateLicense
The operation to validate a license.- Parameters:
parameters- Parameters supplied to the license validation operation.- Returns:
- describes a license in a hybrid machine.
- 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.
-
validateLicense
The operation to validate a license.- Parameters:
parameters- Parameters supplied to the license validation operation.context- The context to associate with this operation.- Returns:
- describes a license in a hybrid machine.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<License> getByResourceGroupWithResponse(String resourceGroupName, String licenseName, com.azure.core.util.Context context) Retrieves information about the view of a license.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.licenseName- The name of the license.context- The context to associate with this operation.- Returns:
- describes a license in a hybrid machine 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.
-
getByResourceGroup
Retrieves information about the view of a license.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.licenseName- The name of the license.- Returns:
- describes a license in a hybrid machine.
- 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.
-
deleteByResourceGroup
The operation to delete a license.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.licenseName- The name of the license.- 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
The operation to delete a license.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.licenseName- The name of the license.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.
-
listByResourceGroup
The operation to get all licenses of a non-Azure machine.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the List license operation response 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<License> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) The operation to get all licenses of a non-Azure machine.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- the List license operation response 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<License> list()The operation to get all licenses of a non-Azure machine.- Returns:
- the List license operation response as paginated response with
PagedIterable. - Throws:
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
The operation to get all licenses of a non-Azure machine.- Parameters:
context- The context to associate with this operation.- Returns:
- the List license operation response 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
Retrieves information about the view of a license.- Parameters:
id- the resource ID.- Returns:
- describes a license in a hybrid machine 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<License> getByIdWithResponse(String id, com.azure.core.util.Context context) Retrieves information about the view of a license.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- describes a license in a hybrid machine 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 a license.- 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 a license.- 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 License resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new License definition.
-