Class: Google::Apis::HomegraphV1::EveUtilityTrait

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EveUtilityTrait

Returns a new instance of EveUtilityTrait.



536
537
538
# File 'lib/google/apis/homegraph_v1/classes.rb', line 536

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

Instance Attribute Details

#accepted_command_listArray<String>

Required. Output only. Accepted command list for this trait Corresponds to the JSON property acceptedCommandList

Returns:

  • (Array<String>)


415
416
417
# File 'lib/google/apis/homegraph_v1/classes.rb', line 415

def accepted_command_list
  @accepted_command_list
end

#accumulated_control_pointFixnum

Corresponds to the JSON property accumulatedControlPoint

Returns:

  • (Fixnum)


420
421
422
# File 'lib/google/apis/homegraph_v1/classes.rb', line 420

def accumulated_control_point
  @accumulated_control_point
end

#air_pressureFloat

Corresponds to the JSON property airPressure

Returns:

  • (Float)


425
426
427
# File 'lib/google/apis/homegraph_v1/classes.rb', line 425

def air_pressure
  @air_pressure
end

#altitudeFloat

Corresponds to the JSON property altitude

Returns:

  • (Float)


430
431
432
# File 'lib/google/apis/homegraph_v1/classes.rb', line 430

def altitude
  @altitude
end

#child_lockBoolean Also known as: child_lock?

Corresponds to the JSON property childLock

Returns:

  • (Boolean)


435
436
437
# File 'lib/google/apis/homegraph_v1/classes.rb', line 435

def child_lock
  @child_lock
end

#currentFloat

Corresponds to the JSON property current

Returns:

  • (Float)


441
442
443
# File 'lib/google/apis/homegraph_v1/classes.rb', line 441

def current
  @current
end

#get_configString

Corresponds to the JSON property getConfig NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


447
448
449
# File 'lib/google/apis/homegraph_v1/classes.rb', line 447

def get_config
  @get_config
end

#hold_positionBoolean Also known as: hold_position?

Corresponds to the JSON property holdPosition

Returns:

  • (Boolean)


452
453
454
# File 'lib/google/apis/homegraph_v1/classes.rb', line 452

def hold_position
  @hold_position
end

#last_event_timeFixnum

Corresponds to the JSON property lastEventTime

Returns:

  • (Fixnum)


458
459
460
# File 'lib/google/apis/homegraph_v1/classes.rb', line 458

def last_event_time
  @last_event_time
end

#logging_control_pointString

Corresponds to the JSON property loggingControlPoint NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


464
465
466
# File 'lib/google/apis/homegraph_v1/classes.rb', line 464

def logging_control_point
  @logging_control_point
end

#logging_dataString

Corresponds to the JSON property loggingData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


470
471
472
# File 'lib/google/apis/homegraph_v1/classes.rb', line 470

def logging_data
  @logging_data
end

#logging_metadataString

Corresponds to the JSON property loggingMetadata NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


476
477
478
# File 'lib/google/apis/homegraph_v1/classes.rb', line 476

def 
  @logging_metadata
end

#logging_timeString

Corresponds to the JSON property loggingTime NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


482
483
484
# File 'lib/google/apis/homegraph_v1/classes.rb', line 482

def logging_time
  @logging_time
end

#motion_sensitivityFixnum

Corresponds to the JSON property motionSensitivity

Returns:

  • (Fixnum)


487
488
489
# File 'lib/google/apis/homegraph_v1/classes.rb', line 487

def motion_sensitivity
  @motion_sensitivity
end

#obstruction_detectedBoolean Also known as: obstruction_detected?

Corresponds to the JSON property obstructionDetected

Returns:

  • (Boolean)


492
493
494
# File 'lib/google/apis/homegraph_v1/classes.rb', line 492

def obstruction_detected
  @obstruction_detected
end

#open_countFixnum

Corresponds to the JSON property openCount

Returns:

  • (Fixnum)


498
499
500
# File 'lib/google/apis/homegraph_v1/classes.rb', line 498

def open_count
  @open_count
end

#rloc16Fixnum

Corresponds to the JSON property rloc16

Returns:

  • (Fixnum)


503
504
505
# File 'lib/google/apis/homegraph_v1/classes.rb', line 503

def rloc16
  @rloc16
end

#set_configString

Corresponds to the JSON property setConfig NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


509
510
511
# File 'lib/google/apis/homegraph_v1/classes.rb', line 509

def set_config
  @set_config
end

#status_faultFixnum

Corresponds to the JSON property statusFault

Returns:

  • (Fixnum)


514
515
516
# File 'lib/google/apis/homegraph_v1/classes.rb', line 514

def status_fault
  @status_fault
end

#voltageFloat

Corresponds to the JSON property voltage

Returns:

  • (Float)


519
520
521
# File 'lib/google/apis/homegraph_v1/classes.rb', line 519

def voltage
  @voltage
end

#wattFloat

Corresponds to the JSON property watt

Returns:

  • (Float)


524
525
526
# File 'lib/google/apis/homegraph_v1/classes.rb', line 524

def watt
  @watt
end

#watt_accumulatedFloat

Corresponds to the JSON property wattAccumulated

Returns:

  • (Float)


529
530
531
# File 'lib/google/apis/homegraph_v1/classes.rb', line 529

def watt_accumulated
  @watt_accumulated
end

#weather_trendFixnum

Corresponds to the JSON property weatherTrend

Returns:

  • (Fixnum)


534
535
536
# File 'lib/google/apis/homegraph_v1/classes.rb', line 534

def weather_trend
  @weather_trend
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
# File 'lib/google/apis/homegraph_v1/classes.rb', line 541

def update!(**args)
  @accepted_command_list = args[:accepted_command_list] if args.key?(:accepted_command_list)
  @accumulated_control_point = args[:accumulated_control_point] if args.key?(:accumulated_control_point)
  @air_pressure = args[:air_pressure] if args.key?(:air_pressure)
  @altitude = args[:altitude] if args.key?(:altitude)
  @child_lock = args[:child_lock] if args.key?(:child_lock)
  @current = args[:current] if args.key?(:current)
  @get_config = args[:get_config] if args.key?(:get_config)
  @hold_position = args[:hold_position] if args.key?(:hold_position)
  @last_event_time = args[:last_event_time] if args.key?(:last_event_time)
  @logging_control_point = args[:logging_control_point] if args.key?(:logging_control_point)
  @logging_data = args[:logging_data] if args.key?(:logging_data)
  @logging_metadata = args[:logging_metadata] if args.key?(:logging_metadata)
  @logging_time = args[:logging_time] if args.key?(:logging_time)
  @motion_sensitivity = args[:motion_sensitivity] if args.key?(:motion_sensitivity)
  @obstruction_detected = args[:obstruction_detected] if args.key?(:obstruction_detected)
  @open_count = args[:open_count] if args.key?(:open_count)
  @rloc16 = args[:rloc16] if args.key?(:rloc16)
  @set_config = args[:set_config] if args.key?(:set_config)
  @status_fault = args[:status_fault] if args.key?(:status_fault)
  @voltage = args[:voltage] if args.key?(:voltage)
  @watt = args[:watt] if args.key?(:watt)
  @watt_accumulated = args[:watt_accumulated] if args.key?(:watt_accumulated)
  @weather_trend = args[:weather_trend] if args.key?(:weather_trend)
end