public interface Licenses
Resource collection API of Licenses.
  • Method Details

    • validateLicense

      License validateLicense(LicenseInner parameters)
      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

      License validateLicense(LicenseInner parameters, com.azure.core.util.Context context)
      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

      License getByResourceGroup(String resourceGroupName, String licenseName)
      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

      void deleteByResourceGroup(String resourceGroupName, String licenseName)
      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

      void delete(String resourceGroupName, String licenseName, com.azure.core.util.Context context)
      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

      com.azure.core.http.rest.PagedIterable<License> listByResourceGroup(String resourceGroupName)
      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

      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.
      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

      License getById(String id)
      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

      void deleteById(String id)
      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

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      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.