Interface LicensesClient


public interface LicensesClient
An instance of this class provides access to all the operations defined in LicensesClient.
  • Method Details

    • beginValidateLicense

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LicenseInner>,LicenseInner> beginValidateLicense(LicenseInner parameters)
      The operation to validate a license.
      Parameters:
      parameters - Parameters supplied to the license validation operation.
      Returns:
      the SyncPoller for polling of 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.
    • beginValidateLicense

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LicenseInner>,LicenseInner> beginValidateLicense(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:
      the SyncPoller for polling of 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

      LicenseInner 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

      LicenseInner 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LicenseInner>,LicenseInner> beginCreateOrUpdate(String resourceGroupName, String licenseName, LicenseInner parameters)
      The operation to create or update a license.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      licenseName - The name of the license.
      parameters - Parameters supplied to the Create license operation.
      Returns:
      the SyncPoller for polling of 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LicenseInner>,LicenseInner> beginCreateOrUpdate(String resourceGroupName, String licenseName, LicenseInner parameters, com.azure.core.util.Context context)
      The operation to create or update a license.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      licenseName - The name of the license.
      parameters - Parameters supplied to the Create license operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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.
    • createOrUpdate

      LicenseInner createOrUpdate(String resourceGroupName, String licenseName, LicenseInner parameters)
      The operation to create or update a license.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      licenseName - The name of the license.
      parameters - Parameters supplied to the Create license 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.
    • createOrUpdate

      LicenseInner createOrUpdate(String resourceGroupName, String licenseName, LicenseInner parameters, com.azure.core.util.Context context)
      The operation to create or update a license.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      licenseName - The name of the license.
      parameters - Parameters supplied to the Create license 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LicenseInner>,LicenseInner> beginUpdate(String resourceGroupName, String licenseName, LicenseUpdate parameters)
      The operation to update a license.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      licenseName - The name of the license.
      parameters - Parameters supplied to the Update license operation.
      Returns:
      the SyncPoller for polling of 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LicenseInner>,LicenseInner> beginUpdate(String resourceGroupName, String licenseName, LicenseUpdate parameters, com.azure.core.util.Context context)
      The operation to update a license.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      licenseName - The name of the license.
      parameters - Parameters supplied to the Update license operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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.
    • update

      LicenseInner update(String resourceGroupName, String licenseName, LicenseUpdate parameters)
      The operation to update a license.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      licenseName - The name of the license.
      parameters - Parameters supplied to the Update license 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.
    • update

      LicenseInner update(String resourceGroupName, String licenseName, LicenseUpdate parameters, com.azure.core.util.Context context)
      The operation to update a license.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      licenseName - The name of the license.
      parameters - Parameters supplied to the Update license 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<LicenseInner> 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

      LicenseInner 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      Returns:
      the SyncPoller for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      Returns:
      the SyncPoller for polling of long-running 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.
    • delete

      void delete(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<LicenseInner> 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<LicenseInner> 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<LicenseInner> 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<LicenseInner> 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.