# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::Process (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::Process.

Represents an operating system process.

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #args

    def args() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Process arguments as JSON encoded strings.

### #args=

    def args=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Process arguments as JSON encoded strings.
**Returns**

- (::Array\<::String\>) --- Process arguments as JSON encoded strings.

### #arguments_truncated

    def arguments_truncated() -> ::Boolean

**Returns**

- (::Boolean) --- True if `args` is incomplete.

### #arguments_truncated=

    def arguments_truncated=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- True if `args` is incomplete.
**Returns**

- (::Boolean) --- True if `args` is incomplete.

### #binary

    def binary() -> ::Google::Cloud::SecurityCenter::V2::File

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)) --- File information for the process executable.

### #binary=

    def binary=(value) -> ::Google::Cloud::SecurityCenter::V2::File

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)) --- File information for the process executable.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)) --- File information for the process executable.

### #env_variables

    def env_variables() -> ::Array<::Google::Cloud::SecurityCenter::V2::EnvironmentVariable>

**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::EnvironmentVariable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-EnvironmentVariable)\>) --- Process environment variables.

### #env_variables=

    def env_variables=(value) -> ::Array<::Google::Cloud::SecurityCenter::V2::EnvironmentVariable>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecurityCenter::V2::EnvironmentVariable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-EnvironmentVariable)\>) --- Process environment variables.
**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::EnvironmentVariable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-EnvironmentVariable)\>) --- Process environment variables.

### #env_variables_truncated

    def env_variables_truncated() -> ::Boolean

**Returns**

- (::Boolean) --- True if `env_variables` is incomplete.

### #env_variables_truncated=

    def env_variables_truncated=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- True if `env_variables` is incomplete.
**Returns**

- (::Boolean) --- True if `env_variables` is incomplete.

### #libraries

    def libraries() -> ::Array<::Google::Cloud::SecurityCenter::V2::File>

**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)\>) --- File information for libraries loaded by the process.

### #libraries=

    def libraries=(value) -> ::Array<::Google::Cloud::SecurityCenter::V2::File>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)\>) --- File information for libraries loaded by the process.
**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)\>) --- File information for libraries loaded by the process.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The process name, as displayed in utilities like `top` and `ps`. This name can be accessed through `/proc/[pid]/comm` and changed with `prctl(PR_SET_NAME)`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The process name, as displayed in utilities like `top` and `ps`. This name can be accessed through `/proc/[pid]/comm` and changed with `prctl(PR_SET_NAME)`.
**Returns**

- (::String) --- The process name, as displayed in utilities like `top` and `ps`. This name can be accessed through `/proc/[pid]/comm` and changed with `prctl(PR_SET_NAME)`.

### #parent_pid

    def parent_pid() -> ::Integer

**Returns**

- (::Integer) --- The parent process ID.

### #parent_pid=

    def parent_pid=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The parent process ID.
**Returns**

- (::Integer) --- The parent process ID.

### #pid

    def pid() -> ::Integer

**Returns**

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

### #pid=

    def pid=(value) -> ::Integer

**Parameter**

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

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

### #script

    def script() -> ::Google::Cloud::SecurityCenter::V2::File

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)) --- When the process represents the invocation of a script, `binary` provides information about the interpreter, while `script` provides information about the script file provided to the interpreter.

### #script=

    def script=(value) -> ::Google::Cloud::SecurityCenter::V2::File

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)) --- When the process represents the invocation of a script, `binary` provides information about the interpreter, while `script` provides information about the script file provided to the interpreter.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-File)) --- When the process represents the invocation of a script, `binary` provides information about the interpreter, while `script` provides information about the script file provided to the interpreter.

### #user_id

    def user_id() -> ::Integer

**Returns**

- (::Integer) --- The ID of the user that executed the process. E.g. If this is the root user this will always be 0.

### #user_id=

    def user_id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The ID of the user that executed the process. E.g. If this is the root user this will always be 0.
**Returns**

- (::Integer) --- The ID of the user that executed the process. E.g. If this is the root user this will always be 0.