Interface VendorSkus


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

    • deleteByResourceGroup

      void deleteByResourceGroup(String vendorName, String skuName)
      Deletes the specified sku. This operation can take up to 2 hours to complete. This is expected service behavior.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the 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, com.azure.core.util.Context context)
      Deletes the specified sku. This operation can take up to 2 hours to complete. This is expected service behavior.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the sku.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<VendorSku> getWithResponse(String vendorName, String skuName, com.azure.core.util.Context context)
      Gets information about the specified sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the sku.
      context - The context to associate with this operation.
      Returns:
      information about the specified 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

      VendorSku get(String vendorName, String skuName)
      Gets information about the specified sku.
      Parameters:
      vendorName - The name of the vendor.
      skuName - The name of the sku.
      Returns:
      information about the specified 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.
    • list

      com.azure.core.http.rest.PagedIterable<VendorSku> list(String vendorName)
      Lists all the skus of a vendor.
      Parameters:
      vendorName - The name of the vendor.
      Returns:
      response for list vendor sku API service call 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<VendorSku> list(String vendorName, com.azure.core.util.Context context)
      Lists all the skus of a vendor.
      Parameters:
      vendorName - The name of the vendor.
      context - The context to associate with this operation.
      Returns:
      response for list vendor sku API service call 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

      VendorSku getById(String id)
      Gets information about the specified sku.
      Parameters:
      id - the resource ID.
      Returns:
      information about the specified 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<VendorSku> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets information about the specified sku.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      information about the specified 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 specified sku. This operation can take up to 2 hours to complete. This is expected service behavior.
      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 specified sku. This operation can take up to 2 hours to complete. This is expected service behavior.
      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 VendorSku resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new VendorSku definition.