Class MetadataExchangeRequest (0.1.4)

MetadataExchangeRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Message used by AlloyDB connectors to exchange client and connection metadata with the server after a successful TLS handshake. This metadata includes an IAM token, which is used to authenticate users based on their IAM identity. The sole purpose of this message is for the use of AlloyDB connectors. Clients should not rely on this message directly as there can be breaking changes in the future.

Attributes

NameDescription
user_agent str
Optional. Connector information.
auth_type google.cloud.alloydb.connectors_v1.types.MetadataExchangeRequest.AuthType
Authentication type.
oauth2_token str
IAM token used for both IAM user authentiation and alloydb.instances.connect permission check.

Classes

AuthType

AuthType(value)

AuthType contains all supported authentication types.

Values: AUTH_TYPE_UNSPECIFIED (0): Authentication type is unspecified and DB_NATIVE is used by default DB_NATIVE (1): Database native authentication (user/password) AUTO_IAM (2): Automatic IAM authentication