Interface RegistrationsClient
public interface RegistrationsClient
An instance of this class provides access to all the operations defined in RegistrationsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroup, String registrationName, RegistrationParameter token) Create or update an Azure Stack registration.com.azure.core.http.rest.Response<RegistrationInner>createOrUpdateWithResponse(String resourceGroup, String registrationName, RegistrationParameter token, com.azure.core.util.Context context) Create or update an Azure Stack registration.voidDelete the requested Azure Stack registration.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context) Delete the requested Azure Stack registration.voidenableRemoteManagement(String resourceGroup, String registrationName) Enables remote management for device under the Azure Stack registration.com.azure.core.http.rest.Response<Void>enableRemoteManagementWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context) Enables remote management for device under the Azure Stack registration.getActivationKey(String resourceGroup, String registrationName) Returns Azure Stack Activation Key.com.azure.core.http.rest.Response<ActivationKeyResultInner>getActivationKeyWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context) Returns Azure Stack Activation Key.getByResourceGroup(String resourceGroup, String registrationName) Returns the properties of an Azure Stack registration.com.azure.core.http.rest.Response<RegistrationInner>getByResourceGroupWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context) Returns the properties of an Azure Stack registration.com.azure.core.http.rest.PagedIterable<RegistrationInner>list()Returns a list of all registrations under current subscription.com.azure.core.http.rest.PagedIterable<RegistrationInner>list(com.azure.core.util.Context context) Returns a list of all registrations under current subscription.com.azure.core.http.rest.PagedIterable<RegistrationInner>listByResourceGroup(String resourceGroup) Returns a list of all registrations.com.azure.core.http.rest.PagedIterable<RegistrationInner>listByResourceGroup(String resourceGroup, com.azure.core.util.Context context) Returns a list of all registrations.update(String resourceGroup, String registrationName, RegistrationParameter token) Patch an Azure Stack registration.com.azure.core.http.rest.Response<RegistrationInner>updateWithResponse(String resourceGroup, String registrationName, RegistrationParameter token, com.azure.core.util.Context context) Patch an Azure Stack registration.
-
Method Details
-
listByResourceGroup
Returns a list of all registrations.- Parameters:
resourceGroup- Name of the resource group.- Returns:
- pageable list of registrations 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<RegistrationInner> listByResourceGroup(String resourceGroup, com.azure.core.util.Context context) Returns a list of all registrations.- Parameters:
resourceGroup- Name of the resource group.context- The context to associate with this operation.- Returns:
- pageable list of registrations 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<RegistrationInner> list()Returns a list of all registrations under current subscription.- Returns:
- pageable list of registrations as paginated response with
PagedIterable. - Throws:
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
Returns a list of all registrations under current subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- pageable list of registrations 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<RegistrationInner> getByResourceGroupWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context) Returns the properties of an Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.context- The context to associate with this operation.- Returns:
- registration information 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.
-
getByResourceGroup
Returns the properties of an Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.- Returns:
- registration information.
- 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, com.azure.core.util.Context context) Delete the requested Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.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
Delete the requested Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.- 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<RegistrationInner> createOrUpdateWithResponse(String resourceGroup, String registrationName, RegistrationParameter token, com.azure.core.util.Context context) Create or update an Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.token- Registration token.context- The context to associate with this operation.- Returns:
- registration information 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.
-
createOrUpdate
RegistrationInner createOrUpdate(String resourceGroup, String registrationName, RegistrationParameter token) Create or update an Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.token- Registration token.- Returns:
- registration information.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<RegistrationInner> updateWithResponse(String resourceGroup, String registrationName, RegistrationParameter token, com.azure.core.util.Context context) Patch an Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.token- Registration token.context- The context to associate with this operation.- Returns:
- registration information 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.
-
update
RegistrationInner update(String resourceGroup, String registrationName, RegistrationParameter token) Patch an Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.token- Registration token.- Returns:
- registration information.
- 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.
-
getActivationKeyWithResponse
com.azure.core.http.rest.Response<ActivationKeyResultInner> getActivationKeyWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context) Returns Azure Stack Activation Key.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.context- The context to associate with this operation.- Returns:
- the resource containing the Azure Stack activation key 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.
-
getActivationKey
Returns Azure Stack Activation Key.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.- Returns:
- the resource containing the Azure Stack activation key.
- 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.
-
enableRemoteManagementWithResponse
com.azure.core.http.rest.Response<Void> enableRemoteManagementWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context) Enables remote management for device under the Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.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.
-
enableRemoteManagement
Enables remote management for device under the Azure Stack registration.- Parameters:
resourceGroup- Name of the resource group.registrationName- Name of the Azure Stack registration.- 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.
-