# Cloud OS Login V1beta API - Class Google::Cloud::OsLogin::Common::PosixAccount (v0.22.0)

0.22.0 (latest) 0.21.1 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.2 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud OS Login V1beta API class Google::Cloud::OsLogin::Common::PosixAccount.

The POSIX account information associated with a Google account.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #account_id

    def account_id() -> ::String

**Returns**

- (::String) --- Output only. A POSIX account identifier.

### #gecos

    def gecos() -> ::String

**Returns**

- (::String) --- The GECOS (user information) entry for this account.

### #gecos=

    def gecos=(value) -> ::String

**Parameter**

- **value** (::String) --- The GECOS (user information) entry for this account.
**Returns**

- (::String) --- The GECOS (user information) entry for this account.

### #gid

    def gid() -> ::Integer

**Returns**

- (::Integer) --- The default group ID.

### #gid=

    def gid=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The default group ID.
**Returns**

- (::Integer) --- The default group ID.

### #home_directory

    def home_directory() -> ::String

**Returns**

- (::String) --- The path to the home directory for this account.

### #home_directory=

    def home_directory=(value) -> ::String

**Parameter**

- **value** (::String) --- The path to the home directory for this account.
**Returns**

- (::String) --- The path to the home directory for this account.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The canonical resource name.

### #operating_system_type

    def operating_system_type() -> ::Google::Cloud::OsLogin::Common::OperatingSystemType

**Returns**

- ([::Google::Cloud::OsLogin::Common::OperatingSystemType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-OperatingSystemType)) --- The operating system type where this account applies.

### #operating_system_type=

    def operating_system_type=(value) -> ::Google::Cloud::OsLogin::Common::OperatingSystemType

**Parameter**

- **value** ([::Google::Cloud::OsLogin::Common::OperatingSystemType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-OperatingSystemType)) --- The operating system type where this account applies.
**Returns**

- ([::Google::Cloud::OsLogin::Common::OperatingSystemType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-OperatingSystemType)) --- The operating system type where this account applies.

### #primary

    def primary() -> ::Boolean

**Returns**

- (::Boolean) --- Only one POSIX account can be marked as primary.

### #primary=

    def primary=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Only one POSIX account can be marked as primary.
**Returns**

- (::Boolean) --- Only one POSIX account can be marked as primary.

### #shell

    def shell() -> ::String

**Returns**

- (::String) --- The path to the logic shell for this account.

### #shell=

    def shell=(value) -> ::String

**Parameter**

- **value** (::String) --- The path to the logic shell for this account.
**Returns**

- (::String) --- The path to the logic shell for this account.

### #system_id

    def system_id() -> ::String

**Returns**

- (::String) --- System identifier for which account the username or uid applies to. By default, the empty value is used.

### #system_id=

    def system_id=(value) -> ::String

**Parameter**

- **value** (::String) --- System identifier for which account the username or uid applies to. By default, the empty value is used.
**Returns**

- (::String) --- System identifier for which account the username or uid applies to. By default, the empty value is used.

### #uid

    def uid() -> ::Integer

**Returns**

- (::Integer) --- The user ID.

### #uid=

    def uid=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The user ID.
**Returns**

- (::Integer) --- The user ID.

### #username

    def username() -> ::String

**Returns**

- (::String) --- The username of the POSIX account.

### #username=

    def username=(value) -> ::String

**Parameter**

- **value** (::String) --- The username of the POSIX account.
**Returns**

- (::String) --- The username of the POSIX account.