Class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceModel

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

Overview

Information about the model of the device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SasPortalDeviceModel

Returns a new instance of SasPortalDeviceModel.



536
537
538
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 536

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

Instance Attribute Details

#firmware_versionString

The firmware version of the device. Corresponds to the JSON property firmwareVersion

Returns:

  • (String)


514
515
516
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 514

def firmware_version
  @firmware_version
end

#hardware_versionString

The hardware version of the device. Corresponds to the JSON property hardwareVersion

Returns:

  • (String)


519
520
521
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 519

def hardware_version
  @hardware_version
end

#nameString

The name of the device model. Corresponds to the JSON property name

Returns:

  • (String)


524
525
526
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 524

def name
  @name
end

#software_versionString

The software version of the device. Corresponds to the JSON property softwareVersion

Returns:

  • (String)


529
530
531
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 529

def software_version
  @software_version
end

#vendorString

The name of the device vendor. Corresponds to the JSON property vendor

Returns:

  • (String)


534
535
536
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 534

def vendor
  @vendor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



541
542
543
544
545
546
547
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 541

def update!(**args)
  @firmware_version = args[:firmware_version] if args.key?(:firmware_version)
  @hardware_version = args[:hardware_version] if args.key?(:hardware_version)
  @name = args[:name] if args.key?(:name)
  @software_version = args[:software_version] if args.key?(:software_version)
  @vendor = args[:vendor] if args.key?(:vendor)
end