Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo

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

CPU specs for a CPU.

Defined Under Namespace

Classes: LogicalCpu

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CpuInfo

Returns a new instance of CpuInfo.



1177
1178
1179
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1177

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

Instance Attribute Details

#architectureString

The CPU architecture. Corresponds to the JSON property architecture

Returns:

  • (String)


1160
1161
1162
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1160

def architecture
  @architecture
end

#logical_cpusArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu>

Information for the Logical CPUs Corresponds to the JSON property logicalCpus



1165
1166
1167
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1165

def logical_cpus
  @logical_cpus
end

#max_clock_speed_khzFixnum

The max CPU clock speed in kHz. Corresponds to the JSON property maxClockSpeedKhz

Returns:

  • (Fixnum)


1170
1171
1172
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1170

def max_clock_speed_khz
  @max_clock_speed_khz
end

#modelString

The CPU model name. Corresponds to the JSON property model

Returns:

  • (String)


1175
1176
1177
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1175

def model
  @model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1182
1183
1184
1185
1186
1187
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1182

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