Interface CustomerSubscriptionsClient
public interface CustomerSubscriptionsClient
An instance of this class provides access to all the operations defined in CustomerSubscriptionsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String resourceGroup, String registrationName, String customerSubscriptionName, CustomerSubscriptionInner customerCreationParameters) Creates a new customer subscription under a registration.com.azure.core.http.rest.Response<CustomerSubscriptionInner>
createWithResponse
(String resourceGroup, String registrationName, String customerSubscriptionName, CustomerSubscriptionInner customerCreationParameters, com.azure.core.util.Context context) Creates a new customer subscription under a registration.void
Deletes a customer subscription under a registration.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.Returns the specified product.com.azure.core.http.rest.Response<CustomerSubscriptionInner>
getWithResponse
(String resourceGroup, String registrationName, String customerSubscriptionName, com.azure.core.util.Context context) Returns the specified product.com.azure.core.http.rest.PagedIterable<CustomerSubscriptionInner>
Returns a list of products.com.azure.core.http.rest.PagedIterable<CustomerSubscriptionInner>
Returns a list of products.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<CustomerSubscriptionInner> 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<CustomerSubscriptionInner> 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<CustomerSubscriptionInner> 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
CustomerSubscriptionInner 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
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.
-
createWithResponse
com.azure.core.http.rest.Response<CustomerSubscriptionInner> createWithResponse(String resourceGroup, String registrationName, String customerSubscriptionName, CustomerSubscriptionInner customerCreationParameters, com.azure.core.util.Context context) Creates a new customer subscription under a registration.- Parameters:
resourceGroup
- Name of the resource group.registrationName
- Name of the Azure Stack registration.customerSubscriptionName
- Name of the product.customerCreationParameters
- Parameters use to create a customer subscription.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.
-
create
CustomerSubscriptionInner create(String resourceGroup, String registrationName, String customerSubscriptionName, CustomerSubscriptionInner customerCreationParameters) Creates a new customer subscription under a registration.- Parameters:
resourceGroup
- Name of the resource group.registrationName
- Name of the Azure Stack registration.customerSubscriptionName
- Name of the product.customerCreationParameters
- Parameters use to create a customer subscription.- 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.
-