Class: Google::Apis::SpectrumV1explorer::DeviceValidity

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

Overview

The device validity element describes whether a particular device is valid to operate in the regulatory domain.

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) ⇒ DeviceValidity

Returns a new instance of DeviceValidity



302
303
304
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 302

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

Instance Attribute Details

#device_descGoogle::Apis::SpectrumV1explorer::DeviceDescriptor

The device descriptor contains parameters that identify the specific device, such as its manufacturer serial number, regulatory-specific identifier (e.g., FCC ID), and any other device characteristics required by regulatory domains. Corresponds to the JSON property deviceDesc



286
287
288
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 286

def device_desc
  @device_desc
end

#is_validBoolean Also known as: is_valid?

The validity status: true if the device is valid for operation, false otherwise. It will always be present. Corresponds to the JSON property isValid

Returns:

  • (Boolean)


292
293
294
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 292

def is_valid
  @is_valid
end

#reasonString

If the device identifier is not valid, the database may include a reason. The reason may be in any language. The length of the value should not exceed 128 characters. Corresponds to the JSON property reason

Returns:

  • (String)


300
301
302
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 300

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



307
308
309
310
311
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 307

def update!(**args)
  @device_desc = args[:device_desc] if args.key?(:device_desc)
  @is_valid = args[:is_valid] if args.key?(:is_valid)
  @reason = args[:reason] if args.key?(:reason)
end