Class: Google::Apis::SpectrumV1explorer::DeviceValidity
- Inherits:
-
Object
- Object
- Google::Apis::SpectrumV1explorer::DeviceValidity
- 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
-
#device_desc ⇒ Google::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.
-
#is_valid ⇒ Boolean
(also: #is_valid?)
The validity status: true if the device is valid for operation, false otherwise.
-
#reason ⇒ String
If the device identifier is not valid, the database may include a reason.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceValidity
constructor
A new instance of DeviceValidity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_desc ⇒ Google::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_valid ⇒ Boolean 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
292 293 294 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 292 def is_valid @is_valid end |
#reason ⇒ String
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
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 |