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

NameTypeJSON nameDescription
AccessModels.Databases.PostgresRole_access?accessread (SELECT everywhere the role is granted), write (also INSERT, UPDATE, DELETE) or none.
CanLoginbool?canLoginWhether the role may sign in.
ConnectionLimitint?connectionLimitAt most this many connections at once; omitted or -1 for no limit.
CreateTimeDateTimeOffset?createTimeThe createTime property
Etagstring?etag`"{generation}"`; send it back in `If-Match`.
FailureReasonstring?failureReasonWhy a change did not apply.
GrantsList<Models.Databases.PostgresDatabaseGrant>?grantsPer-database privileges.
Managedbool?managedTrue for the roles the platform keeps (`app`, the manager role, the leases): they are listed and cannot be changed.
Namestring?nameResource name: `projects/{project}/locations/{location}/postgresClusters/{cluster}/roles/{role}`.
PasswordExpiresAtDateTimeOffset?passwordExpiresAtWhen the current password stops working.
PasswordRotatedAtDateTimeOffset?passwordRotatedAtWhen the role's password was last rotated.
RoleNamestring?roleNameThe role's name inside PostgreSQL: lowercase letters, digits and underscores, starting with a letter, at most 63 characters.
StateModels.Databases.PostgresRole_state?stateThe state property
Uidstring?uidThe uid property
UpdateTimeDateTimeOffset?updateTimeThe updateTime property