Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Overview

Status of a single C-state. C-states are various modes the CPU can transition to in order to use more or less power.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CState

Returns a new instance of CState.



1439
1440
1441
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1439

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

Name of the state. Corresponds to the JSON property displayName

Returns:

  • (String)


1432
1433
1434
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1432

def display_name
  @display_name
end

#session_durationString

Time spent in the state since the last reboot. Corresponds to the JSON property sessionDuration

Returns:

  • (String)


1437
1438
1439
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1437

def session_duration
  @session_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1444
1445
1446
1447
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1444

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @session_duration = args[:session_duration] if args.key?(:session_duration)
end