Class: Google::Apis::ProximitybeaconV1beta1::Diagnostics

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

Overview

Diagnostics for a single beacon.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Diagnostics

Returns a new instance of Diagnostics.


592
593
594
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 592

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

Instance Attribute Details

#alertsArray<String>

An unordered list of Alerts that the beacon has. Corresponds to the JSON property alerts

Returns:

  • (Array<String>)

590
591
592
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 590

def alerts
  @alerts
end

#beacon_nameString

Resource name of the beacon. For Eddystone-EID beacons, this may be the beacon' s current EID, or the beacon's "stable" Eddystone-UID. Corresponds to the JSON property beaconName

Returns:

  • (String)

574
575
576
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 574

def beacon_name
  @beacon_name
end

#estimated_low_battery_dateGoogle::Apis::ProximitybeaconV1beta1::Date

Represents a whole calendar date, e.g. date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a year and month where the day is not significant, e.g. credit card expiration date. The year may be 0 to represent a month and day independent of year, e.g. anniversary date. Related types are google.type.TimeOfDay and google.protobuf. Timestamp. Corresponds to the JSON property estimatedLowBatteryDate


585
586
587
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 585

def estimated_low_battery_date
  @estimated_low_battery_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


597
598
599
600
601
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 597

def update!(**args)
  @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
  @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
  @alerts = args[:alerts] if args.key?(:alerts)
end