Class KeyVaultRoleScope
java.lang.Object
com.azure.core.util.ExpandableStringEnum<KeyVaultRoleScope>
com.azure.security.keyvault.administration.models.KeyVaultRoleScope
A class that defines the scope of a role.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final KeyVaultRoleScope
Global role scope.static final KeyVaultRoleScope
Keys role scope. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultRoleScope
fromString
(String name) Creates or finds aKeyVaultRoleScope
from its string representation.static KeyVaultRoleScope
Creates or finds aKeyVaultRoleScope
from its string representation.static KeyVaultRoleScope
Creates or finds aKeyVaultRoleScope
from its string representation.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
GLOBAL
Global role scope. -
KEYS
Keys role scope.
-
-
Constructor Details
-
KeyVaultRoleScope
public KeyVaultRoleScope()
-
-
Method Details
-
fromString
Creates or finds aKeyVaultRoleScope
from its string representation.- Parameters:
name
- A name to look for.- Returns:
- The corresponding
KeyVaultRoleScope
.
-
fromUrl
Creates or finds aKeyVaultRoleScope
from its string representation.- Parameters:
url
- A string representing a URL containing the name of the scope to look for.- Returns:
- The corresponding
KeyVaultRoleScope
. - Throws:
IllegalArgumentException
- If the givenURL String
is malformed.
-
fromUrl
Creates or finds aKeyVaultRoleScope
from its string representation.- Parameters:
url
- A URL containing the name of the scope to look for.- Returns:
- The corresponding
KeyVaultRoleScope
.
-