Interface AliasClient
public interface AliasClient
An instance of this class provides access to all the operations defined in AliasClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PutAliasResponseInner>,
PutAliasResponseInner> beginCreate
(String aliasName, PutAliasRequest body) Create Alias Subscription.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PutAliasResponseInner>,
PutAliasResponseInner> beginCreate
(String aliasName, PutAliasRequest body, com.azure.core.util.Context context) Create Alias Subscription.create
(String aliasName, PutAliasRequest body) Create Alias Subscription.create
(String aliasName, PutAliasRequest body, com.azure.core.util.Context context) Create Alias Subscription.void
Delete Alias.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String aliasName, com.azure.core.util.Context context) Delete Alias.Get Alias Subscription.com.azure.core.http.rest.Response<PutAliasResponseInner>
getWithResponse
(String aliasName, com.azure.core.util.Context context) Get Alias Subscription.list()
Get Alias Subscription.com.azure.core.http.rest.Response<PutAliasListResultInner>
listWithResponse
(com.azure.core.util.Context context) Get Alias Subscription.
-
Method Details
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PutAliasResponseInner>,PutAliasResponseInner> beginCreate(String aliasName, PutAliasRequest body) Create Alias Subscription.- Parameters:
aliasName
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.body
- The parameters required to create a new subscription.- Returns:
- the
SyncPoller
for polling of subscription Information with the alias. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PutAliasResponseInner>,PutAliasResponseInner> beginCreate(String aliasName, PutAliasRequest body, com.azure.core.util.Context context) Create Alias Subscription.- Parameters:
aliasName
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.body
- The parameters required to create a new subscription.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of subscription Information with the alias. - 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
Create Alias Subscription.- Parameters:
aliasName
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.body
- The parameters required to create a new subscription.- Returns:
- subscription Information with the alias.
- 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
PutAliasResponseInner create(String aliasName, PutAliasRequest body, com.azure.core.util.Context context) Create Alias Subscription.- Parameters:
aliasName
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.body
- The parameters required to create a new subscription.context
- The context to associate with this operation.- Returns:
- subscription Information with the alias.
- 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<PutAliasResponseInner> getWithResponse(String aliasName, com.azure.core.util.Context context) Get Alias Subscription.- Parameters:
aliasName
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.context
- The context to associate with this operation.- Returns:
- alias 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
Get Alias Subscription.- Parameters:
aliasName
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.- Returns:
- alias 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 aliasName, com.azure.core.util.Context context) Delete Alias.- Parameters:
aliasName
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.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 Alias.- Parameters:
aliasName
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.- 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.
-
listWithResponse
com.azure.core.http.rest.Response<PutAliasListResultInner> listWithResponse(com.azure.core.util.Context context) Get Alias Subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- alias 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.
-
list
PutAliasListResultInner list()Get Alias Subscription.- Returns:
- alias Subscription.
- 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.
-