Interface VendorSkuPreviews


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

    • list

      com.azure.core.http.rest.PagedIterable<PreviewSubscription> list(String vendorName, String skuName)
      Lists all the preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the sku.
      Returns:
      a list of customer subscriptions which can use a sku 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<PreviewSubscription> list(String vendorName, String skuName, com.azure.core.util.Context context)
      Lists all the preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the sku.
      context - The context to associate with this operation.
      Returns:
      a list of customer subscriptions which can use a sku 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<PreviewSubscription> getWithResponse(String vendorName, String skuName, String previewSubscription, com.azure.core.util.Context context)
      Gets the preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the vendor sku.
      previewSubscription - Preview subscription ID.
      context - The context to associate with this operation.
      Returns:
      the preview information of a vendor sku 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

      PreviewSubscription get(String vendorName, String skuName, String previewSubscription)
      Gets the preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the vendor sku.
      previewSubscription - Preview subscription ID.
      Returns:
      the preview information of a vendor sku.
      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 vendorName, String skuName, String previewSubscription)
      Deletes the preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the vendor sku.
      previewSubscription - Preview subscription 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.
    • delete

      void delete(String vendorName, String skuName, String previewSubscription, com.azure.core.util.Context context)
      Deletes the preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the vendor sku.
      previewSubscription - Preview subscription 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.
    • getById

      Gets the preview information of a vendor sku.
      Parameters:
      id - the resource ID.
      Returns:
      the preview information of a vendor sku 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<PreviewSubscription> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the preview information of a vendor sku.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the preview information of a vendor sku 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 the preview information of a vendor sku.
      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)
      Deletes the preview information of a vendor sku.
      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 PreviewSubscription resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new PreviewSubscription definition.