SDK reference / Models / Databases
PostgresRole
Kind: class
Namespace: Egulu.Sdk.Models.Databases
A login or group role inside a managed cluster. Passwords are never stored or listed: :rotatePassword makes a new one and shows it once.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Access | Models.Databases.PostgresRole_access? | access | read (SELECT everywhere the role is granted), write (also INSERT, UPDATE, DELETE) or none. |
CanLogin | bool? | canLogin | Whether the role may sign in. |
ConnectionLimit | int? | connectionLimit | At most this many connections at once; omitted or -1 for no limit. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
Etag | string? | etag | `"{generation}"`; send it back in `If-Match`. |
FailureReason | string? | failureReason | Why a change did not apply. |
Grants | List<Models.Databases.PostgresDatabaseGrant>? | grants | Per-database privileges. |
Managed | bool? | managed | True for the roles the platform keeps (`app`, the manager role, the leases): they are listed and cannot be changed. |
Name | string? | name | Resource name: `projects/{project}/locations/{location}/postgresClusters/{cluster}/roles/{role}`. |
PasswordExpiresAt | DateTimeOffset? | passwordExpiresAt | When the current password stops working. |
PasswordRotatedAt | DateTimeOffset? | passwordRotatedAt | When the role's password was last rotated. |
RoleName | string? | roleName | The role's name inside PostgreSQL: lowercase letters, digits and underscores, starting with a letter, at most 63 characters. |
State | Models.Databases.PostgresRole_state? | state | The state property |
Uid | string? | uid | The uid property |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |