Interface VendorSkus
public interface VendorSkus
Resource collection API of VendorSkus.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new VendorSku resource.void
Deletes the specified sku.void
deleteById
(String id) Deletes the specified sku.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes the specified sku.void
deleteByResourceGroup
(String vendorName, String skuName) Deletes the specified sku.Gets information about the specified sku.Gets information about the specified sku.com.azure.core.http.rest.Response<VendorSku>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets information about the specified sku.com.azure.core.http.rest.Response<VendorSku>
getWithResponse
(String vendorName, String skuName, com.azure.core.util.Context context) Gets information about the specified sku.com.azure.core.http.rest.PagedIterable<VendorSku>
Lists all the skus of a vendor.com.azure.core.http.rest.PagedIterable<VendorSku>
Lists all the skus of a vendor.
-
Method Details
-
deleteByResourceGroup
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
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
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
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
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
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
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.
-