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.



2874
2875
2876
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2874

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


2837
2838
2839
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2837

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)


2842
2843
2844
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2842

def class_id
  @class_id
end

#firmware_versionString

Output only. Firmware version Corresponds to the JSON property firmwareVersion

Returns:

  • (String)


2847
2848
2849
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2847

def firmware_version
  @firmware_version
end

#nameString

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

Returns:

  • (String)


2852
2853
2854
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2852

def name
  @name
end

#pidFixnum

Output only. Product ID Corresponds to the JSON property pid

Returns:

  • (Fixnum)


2857
2858
2859
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2857

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)


2862
2863
2864
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2862

def subclass_id
  @subclass_id
end

#vendorString

Output only. Vendor name Corresponds to the JSON property vendor

Returns:

  • (String)


2867
2868
2869
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2867

def vendor
  @vendor
end

#vidFixnum

Output only. Vendor ID Corresponds to the JSON property vid

Returns:

  • (Fixnum)


2872
2873
2874
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2872

def vid
  @vid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2879

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