Class: Google::Apis::SasportalV1alpha1::SasPortalDevice

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SasPortalDevice

Returns a new instance of SasPortalDevice.



200
201
202
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 200

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

Instance Attribute Details

#active_configGoogle::Apis::SasportalV1alpha1::SasPortalDeviceConfig

Information about the device configuration. Corresponds to the JSON property activeConfig



158
159
160
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 158

def active_config
  @active_config
end

#device_metadataGoogle::Apis::SasportalV1alpha1::SasPortalDeviceMetadata

Device data overridable by both SAS Portal and registration requests. Corresponds to the JSON property deviceMetadata



163
164
165
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 163

def 
  @device_metadata
end

#display_nameString

Device display name. Corresponds to the JSON property displayName

Returns:

  • (String)


168
169
170
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 168

def display_name
  @display_name
end

#fcc_idString

The FCC identifier of the device. Corresponds to the JSON property fccId

Returns:

  • (String)


173
174
175
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 173

def fcc_id
  @fcc_id
end

#grantsArray<Google::Apis::SasportalV1alpha1::SasPortalDeviceGrant>

Output only. Grants held by the device. Corresponds to the JSON property grants



178
179
180
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 178

def grants
  @grants
end

#nameString

Output only. The resource path name. Corresponds to the JSON property name

Returns:

  • (String)


183
184
185
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 183

def name
  @name
end

#preloaded_configGoogle::Apis::SasportalV1alpha1::SasPortalDeviceConfig

Information about the device configuration. Corresponds to the JSON property preloadedConfig



188
189
190
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 188

def preloaded_config
  @preloaded_config
end

#serial_numberString

A serial number assigned to the device by the device manufacturer. Corresponds to the JSON property serialNumber

Returns:

  • (String)


193
194
195
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 193

def serial_number
  @serial_number
end

#stateString

Output only. Device state. Corresponds to the JSON property state

Returns:

  • (String)


198
199
200
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 198

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



205
206
207
208
209
210
211
212
213
214
215
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 205

def update!(**args)
  @active_config = args[:active_config] if args.key?(:active_config)
  @device_metadata = args[:device_metadata] if args.key?(:device_metadata)
  @display_name = args[:display_name] if args.key?(:display_name)
  @fcc_id = args[:fcc_id] if args.key?(:fcc_id)
  @grants = args[:grants] if args.key?(:grants)
  @name = args[:name] if args.key?(:name)
  @preloaded_config = args[:preloaded_config] if args.key?(:preloaded_config)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @state = args[:state] if args.key?(:state)
end