As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

Types for Google Cloud Oslogin Common API

class google.cloud.oslogin_v1.common.OperatingSystemType(value)[source]

Bases: proto.enums.Enum

The operating system options for account entries.

LINUX = 1
OPERATING_SYSTEM_TYPE_UNSPECIFIED = 0
WINDOWS = 2
class google.cloud.oslogin_v1.common.PosixAccount(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

The POSIX account information associated with a Google account.

primary

Only one POSIX account can be marked as primary.

Type

bool

username

The username of the POSIX account.

Type

str

uid

The user ID.

Type

int

gid

The default group ID.

Type

int

home_directory

The path to the home directory for this account.

Type

str

shell

The path to the logic shell for this account.

Type

str

gecos

The GECOS (user information) entry for this account.

Type

str

system_id

System identifier for which account the username or uid applies to. By default, the empty value is used.

Type

str

account_id

Output only. A POSIX account identifier.

Type

str

operating_system_type

The operating system type where this account applies.

Type

google.cloud.oslogin.v1.types.OperatingSystemType

name

Output only. The canonical resource name.

Type

str

class google.cloud.oslogin_v1.common.SshPublicKey(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

The SSH public key information associated with a Google account.

key

Public key text in SSH format, defined by RFC4253 section 6.6.

Type

str

expiration_time_usec

An expiration time in microseconds since epoch.

Type

int

fingerprint

Output only. The SHA-256 fingerprint of the SSH public key.

Type

str

name

Output only. The canonical resource name.

Type

str