Interface CustomerSubscriptions


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

    • list

      com.azure.core.http.rest.PagedIterable<CustomerSubscription> list(String resourceGroup, String registrationName)
      Returns a list of products.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      Returns:
      pageable list of customer subscriptions 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<CustomerSubscription> list(String resourceGroup, String registrationName, com.azure.core.util.Context context)
      Returns a list of products.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      context - The context to associate with this operation.
      Returns:
      pageable list of customer subscriptions 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.
    • getWithResponse

      com.azure.core.http.rest.Response<CustomerSubscription> getWithResponse(String resourceGroup, String registrationName, String customerSubscriptionName, com.azure.core.util.Context context)
      Returns the specified product.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      customerSubscriptionName - Name of the product.
      context - The context to associate with this operation.
      Returns:
      customer subscription 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.
    • get

      CustomerSubscription get(String resourceGroup, String registrationName, String customerSubscriptionName)
      Returns the specified product.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      customerSubscriptionName - Name of the product.
      Returns:
      customer subscription.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroup, String registrationName, String customerSubscriptionName, com.azure.core.util.Context context)
      Deletes a customer subscription under a registration.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      customerSubscriptionName - Name of the product.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • delete

      void delete(String resourceGroup, String registrationName, String customerSubscriptionName)
      Deletes a customer subscription under a registration.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      customerSubscriptionName - Name of the product.
      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

      Returns the specified product.
      Parameters:
      id - the resource ID.
      Returns:
      customer subscription 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<CustomerSubscription> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Returns the specified product.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      customer subscription 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)
      Deletes a customer subscription under a registration.
      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

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes a customer subscription under a registration.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • define

      Begins definition for a new CustomerSubscription resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new CustomerSubscription definition.