Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo
- 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
CPU specs for a CPU.
Defined Under Namespace
Classes: LogicalCpu
Instance Attribute Summary collapse
-
#architecture ⇒ String
The CPU architecture.
-
#logical_cpus ⇒ Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu>
Information for the Logical CPUs Corresponds to the JSON property
logicalCpus. -
#max_clock_speed_khz ⇒ Fixnum
The max CPU clock speed in kHz.
-
#model ⇒ String
The CPU model name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CpuInfo
constructor
A new instance of CpuInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CpuInfo
Returns a new instance of CpuInfo.
1446 1447 1448 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1446 def initialize(**args) update!(**args) end |
Instance Attribute Details
#architecture ⇒ String
The CPU architecture.
Corresponds to the JSON property architecture
1429 1430 1431 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1429 def architecture @architecture end |
#logical_cpus ⇒ Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu>
Information for the Logical CPUs
Corresponds to the JSON property logicalCpus
1434 1435 1436 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1434 def logical_cpus @logical_cpus end |
#max_clock_speed_khz ⇒ Fixnum
The max CPU clock speed in kHz.
Corresponds to the JSON property maxClockSpeedKhz
1439 1440 1441 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1439 def max_clock_speed_khz @max_clock_speed_khz end |
#model ⇒ String
The CPU model name.
Corresponds to the JSON property model
1444 1445 1446 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1444 def model @model end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1451 1452 1453 1454 1455 1456 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1451 def update!(**args) @architecture = args[:architecture] if args.key?(:architecture) @logical_cpus = args[:logical_cpus] if args.key?(:logical_cpus) @max_clock_speed_khz = args[:max_clock_speed_khz] if args.key?(:max_clock_speed_khz) @model = args[:model] if args.key?(:model) end |