Class KeyVaultRoleScope
java.lang.Object
com.azure.core.util.ExpandableStringEnum<KeyVaultRoleScope>
com.azure.security.keyvault.administration.models.KeyVaultRoleScope
public final class KeyVaultRoleScope
extends com.azure.core.util.ExpandableStringEnum<KeyVaultRoleScope>
A class that defines the scope of a role.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyVaultRoleScopeGlobal role scope.static final KeyVaultRoleScopeKeys role scope. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultRoleScopefromString(String name) Creates or finds aKeyVaultRoleScopefrom its string representation.static KeyVaultRoleScopeCreates or finds aKeyVaultRoleScopefrom its string representation.static KeyVaultRoleScopeCreates or finds aKeyVaultRoleScopefrom 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 aKeyVaultRoleScopefrom its string representation.- Parameters:
name- A name to look for.- Returns:
- The corresponding
KeyVaultRoleScope.
-
fromUrl
Creates or finds aKeyVaultRoleScopefrom 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 Stringis malformed.
-
fromUrl
Creates or finds aKeyVaultRoleScopefrom its string representation.- Parameters:
url- A URL containing the name of the scope to look for.- Returns:
- The corresponding
KeyVaultRoleScope.
-