GrantState class

Input properties used for looking up and filtering Grant resources.

Constructors

GrantState({Input<List<String>>? columns, Input<String>? database, Input<String>? objectType, Input<List<String>>? objects, Input<List<String>>? privileges, Input<String>? role, Input<String>? schema, Input<bool>? withGrantOption})
Creates a new GrantState. columns The columns upon which to grant the privileges. Required when objectType is column. You cannot specify this option if the objectType is not column. database The database to grant privileges on for this role. objectType The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server, column). objects 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 objectType is database or schema. When objectType is column, only one value is allowed. privileges 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. role The name of the role to grant privileges on, Set it to "public" for all roles. schema The database schema to grant privileges on for this role (Required except if objectType is "database") withGrantOption Whether 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 objectType is column. You cannot specify this option if the objectType is not column.
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 objectType is database or schema. When objectType is column, 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