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

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

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

Returns a new instance of SasPortalDevice.



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

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



160
161
162
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 160

def active_config
  @active_config
end

#display_nameString

Device display name. Corresponds to the JSON property displayName

Returns:

  • (String)


165
166
167
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 165

def display_name
  @display_name
end

#fcc_idString

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

Returns:

  • (String)


170
171
172
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 170

def fcc_id
  @fcc_id
end

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

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



175
176
177
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 175

def grants
  @grants
end

#nameString

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

Returns:

  • (String)


180
181
182
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 180

def name
  @name
end

#preloaded_configGoogle::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceConfig

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



185
186
187
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 185

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)


191
192
193
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 191

def serial_number
  @serial_number
end

#stateString

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

Returns:

  • (String)


196
197
198
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 196

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



203
204
205
206
207
208
209
210
211
212
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 203

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