GrantState class
Input properties used for looking up and filtering Grant resources.
Constructors
-
GrantState({Input<
List< ? columns, Input<String> >String> ? database, Input<String> ? objectType, Input<List< ? objects, Input<String> >List< ? privileges, Input<String> >String> ? role, Input<String> ? schema, Input<bool> ? withGrantOption}) -
Creates a new GrantState.
columnsThe columns upon which to grant the privileges. Required whenobjectTypeiscolumn. You cannot specify this option if theobjectTypeis notcolumn.databaseThe database to grant privileges on for this role.objectTypeThe PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server, column).objectsThe objects upon which to grant the privileges. An empty list (the default) means to grant permissions on all objects of the specified type. You cannot specify this option if theobjectTypeisdatabaseorschema. WhenobjectTypeiscolumn, only one value is allowed.privilegesThe list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE. An empty list could be provided to revoke all privileges for this role.roleThe name of the role to grant privileges on, Set it to "public" for all roles.schemaThe database schema to grant privileges on for this role (Required except if objectType is "database")withGrantOptionWhether the recipient of these privileges can grant the same privileges to others. Defaults to false.const -
GrantState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
columns
→ Input<
List< ?String> > -
The columns upon which to grant the privileges. Required when
objectTypeiscolumn. You cannot specify this option if theobjectTypeis notcolumn.final -
database
→ Input<
String> ? -
The database to grant privileges on for this role.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
objects
→ Input<
List< ?String> > -
The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on all objects of the specified type. You cannot specify this option if the
objectTypeisdatabaseorschema. WhenobjectTypeiscolumn, only one value is allowed.final -
objectType
→ Input<
String> ? -
The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server, column).
final
-
privileges
→ Input<
List< ?String> > -
The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE. An empty list could be provided to revoke all privileges for this role.
final
-
role
→ Input<
String> ? -
The name of the role to grant privileges on, Set it to "public" for all roles.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schema
→ Input<
String> ? -
The database schema to grant privileges on for this role (Required except if objectType is "database")
final
-
withGrantOption
→ Input<
bool> ? -
Whether the recipient of these privileges can grant the same privileges to others. Defaults to false.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited