Interface AuthorizationRule
public interface AuthorizationRule
An immutable client-side representation of AuthorizationRule.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
The entirety of the AuthorizationRule definition.static interface
The AuthorizationRule definition stages.static interface
The template for AuthorizationRule update.static interface
The AuthorizationRule update stages. -
Method Summary
Modifier and TypeMethodDescriptionid()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.relay.fluent.models.AuthorizationRuleInner object.listKeys()
Primary and secondary connection strings to the namespace.com.azure.core.http.rest.Response<AccessKeys>
listKeysWithResponse
(com.azure.core.util.Context context) Primary and secondary connection strings to the namespace.name()
Gets the name property: The name of the resource.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.regenerateKeys
(RegenerateAccessKeyParameters parameters) Regenerates the primary or secondary connection strings to the namespace.com.azure.core.http.rest.Response<AccessKeys>
regenerateKeysWithResponse
(RegenerateAccessKeyParameters parameters, com.azure.core.util.Context context) Regenerates the primary or secondary connection strings to the namespace.Gets the name of the resource group.rights()
Gets the rights property: The rights associated with the rule.type()
Gets the type property: The type of the resource.update()
Begins update for the AuthorizationRule resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
rights
List<AccessRights> rights()Gets the rights property: The rights associated with the rule.- Returns:
- the rights value.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
AuthorizationRuleInner innerModel()Gets the inner com.azure.resourcemanager.relay.fluent.models.AuthorizationRuleInner object.- Returns:
- the inner object.
-
update
AuthorizationRule.Update update()Begins update for the AuthorizationRule resource.- Returns:
- the stage of resource update.
-
refresh
AuthorizationRule refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
listKeys
AccessKeys listKeys()Primary and secondary connection strings to the namespace.- Returns:
- namespace/Relay Connection String.
- 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.
-
listKeysWithResponse
com.azure.core.http.rest.Response<AccessKeys> listKeysWithResponse(com.azure.core.util.Context context) Primary and secondary connection strings to the namespace.- Parameters:
context
- The context to associate with this operation.- Returns:
- namespace/Relay Connection String 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.
-
regenerateKeys
Regenerates the primary or secondary connection strings to the namespace.- Parameters:
parameters
- Parameters supplied to regenerate authorization rule.- Returns:
- namespace/Relay Connection String.
- 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.
-
regenerateKeysWithResponse
com.azure.core.http.rest.Response<AccessKeys> regenerateKeysWithResponse(RegenerateAccessKeyParameters parameters, com.azure.core.util.Context context) Regenerates the primary or secondary connection strings to the namespace.- Parameters:
parameters
- Parameters supplied to regenerate authorization rule.context
- The context to associate with this operation.- Returns:
- namespace/Relay Connection String 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.
-