Interface VendorSkuPreviewsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<PreviewSubscriptionInner> 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<PreviewSubscriptionInner> 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PreviewSubscriptionInner>,PreviewSubscriptionInner> beginCreateOrUpdate(String vendorName, String skuName, String previewSubscription, PreviewSubscriptionInner parameters)
      Creates or updates preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the vendor sku.
      previewSubscription - Preview subscription ID.
      parameters - Parameters supplied to the create or update vendor preview subscription operation.
      Returns:
      the SyncPoller for polling of customer subscription which can use a 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PreviewSubscriptionInner>,PreviewSubscriptionInner> beginCreateOrUpdate(String vendorName, String skuName, String previewSubscription, PreviewSubscriptionInner parameters, com.azure.core.util.Context context)
      Creates or updates preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the vendor sku.
      previewSubscription - Preview subscription ID.
      parameters - Parameters supplied to the create or update vendor preview subscription operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of customer subscription which can use a 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.
    • createOrUpdate

      PreviewSubscriptionInner createOrUpdate(String vendorName, String skuName, String previewSubscription, PreviewSubscriptionInner parameters)
      Creates or updates preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the vendor sku.
      previewSubscription - Preview subscription ID.
      parameters - Parameters supplied to the create or update vendor preview subscription operation.
      Returns:
      customer subscription which can use a 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.
    • createOrUpdate

      PreviewSubscriptionInner createOrUpdate(String vendorName, String skuName, String previewSubscription, PreviewSubscriptionInner parameters, com.azure.core.util.Context context)
      Creates or updates preview information of a vendor sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the vendor sku.
      previewSubscription - Preview subscription ID.
      parameters - Parameters supplied to the create or update vendor preview subscription operation.
      context - The context to associate with this operation.
      Returns:
      customer subscription which can use a 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.
    • getWithResponse

      com.azure.core.http.rest.Response<PreviewSubscriptionInner> 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

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

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      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 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.
      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 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.