Class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SasPortalDevice

Returns a new instance of SasPortalDevice.



261
262
263
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 261

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

Instance Attribute Details

#active_configGoogle::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceConfig

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



207
208
209
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 207

def active_config
  @active_config
end

#current_channelsArray<Google::Apis::ProdTtSasportalV1alpha1::SasPortalChannelWithScore>

Output only. Current channels with scores. Corresponds to the JSON property currentChannels



212
213
214
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 212

def current_channels
  @current_channels
end

#device_metadataGoogle::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceMetadata

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



217
218
219
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 217

def 
  @device_metadata
end

#display_nameString

Device display name. Corresponds to the JSON property displayName

Returns:

  • (String)


222
223
224
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 222

def display_name
  @display_name
end

#fcc_idString

The FCC identifier of the device. Refer to https://www.fcc.gov/oet/ea/fccid for FccID format. Accept underscores and periods because some test-SAS customers use them. Corresponds to the JSON property fccId

Returns:

  • (String)


229
230
231
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 229

def fcc_id
  @fcc_id
end

#grant_range_allowlistsArray<Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange>

Only ranges that are within the allowlists are available for new grants. Corresponds to the JSON property grantRangeAllowlists



234
235
236
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 234

def grant_range_allowlists
  @grant_range_allowlists
end

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

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



239
240
241
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 239

def grants
  @grants
end

#nameString

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

Returns:

  • (String)


244
245
246
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 244

def name
  @name
end

#preloaded_configGoogle::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceConfig

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



249
250
251
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 249

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)


254
255
256
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 254

def serial_number
  @serial_number
end

#stateString

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

Returns:

  • (String)


259
260
261
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 259

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



266
267
268
269
270
271
272
273
274
275
276
277
278
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 266

def update!(**args)
  @active_config = args[:active_config] if args.key?(:active_config)
  @current_channels = args[:current_channels] if args.key?(:current_channels)
  @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)
  @grant_range_allowlists = args[:grant_range_allowlists] if args.key?(:grant_range_allowlists)
  @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