Class: Google::Apis::BaremetalsolutionV1alpha1::SerialPortOutput
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::SerialPortOutput
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
Response for ReadSerialPortOutput.
Instance Attribute Summary collapse
-
#contents ⇒ String
The serial port output.
-
#next_start_byte ⇒ Fixnum
The byte index to use in a subsequent call to ReadSerialPortOutput to get more output.
-
#start ⇒ Fixnum
The start byte index of the included contents.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SerialPortOutput
constructor
A new instance of SerialPortOutput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SerialPortOutput
Returns a new instance of SerialPortOutput.
836 837 838 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 836 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ String
The serial port output.
Corresponds to the JSON property contents
823 824 825 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 823 def contents @contents end |
#next_start_byte ⇒ Fixnum
The byte index to use in a subsequent call to ReadSerialPortOutput to get more
output.
Corresponds to the JSON property nextStartByte
829 830 831 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 829 def next_start_byte @next_start_byte end |
#start ⇒ Fixnum
The start byte index of the included contents.
Corresponds to the JSON property start
834 835 836 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 834 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
841 842 843 844 845 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 841 def update!(**args) @contents = args[:contents] if args.key?(:contents) @next_start_byte = args[:next_start_byte] if args.key?(:next_start_byte) @start = args[:start] if args.key?(:start) end |