Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1UsbPeripheralReport

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

Overview

USB connected peripheral report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromeManagementV1UsbPeripheralReport

Returns a new instance of GoogleChromeManagementV1UsbPeripheralReport.



4002
4003
4004
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 4002

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

Instance Attribute Details

#categoriesArray<String>

Output only. Categories the device belongs to https://www.usb.org/defined- class-codes Corresponds to the JSON property categories

Returns:

  • (Array<String>)


3965
3966
3967
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 3965

def categories
  @categories
end

#class_idFixnum

Output only. Class ID https://www.usb.org/defined-class-codes Corresponds to the JSON property classId

Returns:

  • (Fixnum)


3970
3971
3972
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 3970

def class_id
  @class_id
end

#firmware_versionString

Output only. Firmware version Corresponds to the JSON property firmwareVersion

Returns:

  • (String)


3975
3976
3977
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 3975

def firmware_version
  @firmware_version
end

#nameString

Output only. Device name, model name, or product name Corresponds to the JSON property name

Returns:

  • (String)


3980
3981
3982
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 3980

def name
  @name
end

#pidFixnum

Output only. Product ID Corresponds to the JSON property pid

Returns:

  • (Fixnum)


3985
3986
3987
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 3985

def pid
  @pid
end

#subclass_idFixnum

Output only. Subclass ID https://www.usb.org/defined-class-codes Corresponds to the JSON property subclassId

Returns:

  • (Fixnum)


3990
3991
3992
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 3990

def subclass_id
  @subclass_id
end

#vendorString

Output only. Vendor name Corresponds to the JSON property vendor

Returns:

  • (String)


3995
3996
3997
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 3995

def vendor
  @vendor
end

#vidFixnum

Output only. Vendor ID Corresponds to the JSON property vid

Returns:

  • (Fixnum)


4000
4001
4002
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 4000

def vid
  @vid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 4007

def update!(**args)
  @categories = args[:categories] if args.key?(:categories)
  @class_id = args[:class_id] if args.key?(:class_id)
  @firmware_version = args[:firmware_version] if args.key?(:firmware_version)
  @name = args[:name] if args.key?(:name)
  @pid = args[:pid] if args.key?(:pid)
  @subclass_id = args[:subclass_id] if args.key?(:subclass_id)
  @vendor = args[:vendor] if args.key?(:vendor)
  @vid = args[:vid] if args.key?(:vid)
end