Package io.unitycatalog.client.model
Enum Class Privilege
- All Implemented Interfaces:
Serializable,Comparable<Privilege>,Constable
The privilege to grant.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCREATE CATALOG: Enables users to create new catalogs in a metastore.CREATE EXTERNAL LOCATION: Required privilege on both the metastore and referenced storage credential to create external locations.CREATE EXTERNAL TABLE: Enables creating external tables through external locations.CREATE EXTERNAL VOLUME: Enables creating external volumes through external locations.CREATE FUNCTION: Allows users to create functions or procedures within a schema.CREATE MANAGED STORAGE: Allows designating managed storage locations at catalog or schema levels.CREATE MODEL: Permits establishing MLflow registered models in a schema.CREATE SCHEMA: Enables users to create new schemas in a catalog.CREATE STORAGE CREDENTIAL: Required privilege on the metastore to create storage credentials.CREATE TABLE: Allows creating tables or views in a schema.CREATE VOLUME: Enables creating volumes in a schema.EXECUTE: Permits invoking user-defined functions or loading models for inference.MODIFY: Enables adding, updating, and deleting data within tables (requires SELECT privilege also).READ FILES: Grants direct read access to files in cloud storage configured as external locations.READ VOLUME: Permits reading files and directories within volumes.SELECT: Enables querying tables, views, materialized views.USE CATALOG: Required to interact with any object within a catalog.USE SCHEMA: Required to interact with any object within a schema.WRITE FILES: Grants direct write access to files in cloud storage configured as external locations. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivilegegetValue()toString()toUrlQueryString(String prefix) Convert the instance into URL query string.static PrivilegeReturns the enum constant of this class with the specified name.static Privilege[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE_CATALOG
CREATE CATALOG: Enables users to create new catalogs in a metastore. -
USE_CATALOG
USE CATALOG: Required to interact with any object within a catalog. -
CREATE_SCHEMA
CREATE SCHEMA: Enables users to create new schemas in a catalog. -
USE_SCHEMA
USE SCHEMA: Required to interact with any object within a schema. -
CREATE_TABLE
CREATE TABLE: Allows creating tables or views in a schema. -
SELECT
SELECT: Enables querying tables, views, materialized views. -
MODIFY
MODIFY: Enables adding, updating, and deleting data within tables (requires SELECT privilege also). -
CREATE_FUNCTION
CREATE FUNCTION: Allows users to create functions or procedures within a schema. -
EXECUTE
EXECUTE: Permits invoking user-defined functions or loading models for inference. -
CREATE_VOLUME
CREATE VOLUME: Enables creating volumes in a schema. -
READ_VOLUME
READ VOLUME: Permits reading files and directories within volumes. -
CREATE_MODEL
CREATE MODEL: Permits establishing MLflow registered models in a schema. -
CREATE_EXTERNAL_LOCATION
CREATE EXTERNAL LOCATION: Required privilege on both the metastore and referenced storage credential to create external locations. -
READ_FILES
READ FILES: Grants direct read access to files in cloud storage configured as external locations. -
WRITE_FILES
WRITE FILES: Grants direct write access to files in cloud storage configured as external locations. -
CREATE_EXTERNAL_TABLE
CREATE EXTERNAL TABLE: Enables creating external tables through external locations. -
CREATE_EXTERNAL_VOLUME
CREATE EXTERNAL VOLUME: Enables creating external volumes through external locations. -
CREATE_MANAGED_STORAGE
CREATE MANAGED STORAGE: Allows designating managed storage locations at catalog or schema levels. -
CREATE_STORAGE_CREDENTIAL
CREATE STORAGE CREDENTIAL: Required privilege on the metastore to create storage credentials. -
UNKNOWN_DEFAULT_OPEN_API
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
-
fromValue
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-