public interface DefaultAccounts
Modifier and Type | Method and Description |
---|---|
DefaultAccountPayload |
get(UUID scopeTenantId,
ScopeType scopeType)
Get the default account for the scope.
|
com.azure.core.http.rest.Response<DefaultAccountPayload> |
getWithResponse(UUID scopeTenantId,
ScopeType scopeType,
String scope,
com.azure.core.util.Context context)
Get the default account for the scope.
|
void |
remove(UUID scopeTenantId,
ScopeType scopeType)
Removes the default account from the scope.
|
com.azure.core.http.rest.Response<Void> |
removeWithResponse(UUID scopeTenantId,
ScopeType scopeType,
String scope,
com.azure.core.util.Context context)
Removes the default account from the scope.
|
DefaultAccountPayload |
set(DefaultAccountPayloadInner defaultAccountPayload)
Sets the default account for the scope.
|
com.azure.core.http.rest.Response<DefaultAccountPayload> |
setWithResponse(DefaultAccountPayloadInner defaultAccountPayload,
com.azure.core.util.Context context)
Sets the default account for the scope.
|
DefaultAccountPayload get(UUID scopeTenantId, ScopeType scopeType)
scopeTenantId
- The tenant ID.scopeType
- The scope for the default account.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.com.azure.core.http.rest.Response<DefaultAccountPayload> getWithResponse(UUID scopeTenantId, ScopeType scopeType, String scope, com.azure.core.util.Context context)
scopeTenantId
- The tenant ID.scopeType
- The scope for the default account.scope
- The Id of the scope object, for example if the scope is "Subscription" then it is the ID of that
subscription.context
- The context to associate with this operation.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.DefaultAccountPayload set(DefaultAccountPayloadInner defaultAccountPayload)
defaultAccountPayload
- The payload containing the default account information and the scope.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.com.azure.core.http.rest.Response<DefaultAccountPayload> setWithResponse(DefaultAccountPayloadInner defaultAccountPayload, com.azure.core.util.Context context)
defaultAccountPayload
- The payload containing the default account information and the scope.context
- The context to associate with this operation.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.void remove(UUID scopeTenantId, ScopeType scopeType)
scopeTenantId
- The tenant ID.scopeType
- The scope for the default account.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.com.azure.core.http.rest.Response<Void> removeWithResponse(UUID scopeTenantId, ScopeType scopeType, String scope, com.azure.core.util.Context context)
scopeTenantId
- The tenant ID.scopeType
- The scope for the default account.scope
- The Id of the scope object, for example if the scope is "Subscription" then it is the ID of that
subscription.context
- The context to associate with this operation.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.Copyright © 2021 Microsoft Corporation. All rights reserved.