Class: Google::Apis::BaremetalsolutionV1alpha1::SerialPortOutput

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#contentsString

The serial port output. Corresponds to the JSON property contents

Returns:

  • (String)


823
824
825
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 823

def contents
  @contents
end

#next_start_byteFixnum

The byte index to use in a subsequent call to ReadSerialPortOutput to get more output. Corresponds to the JSON property nextStartByte

Returns:

  • (Fixnum)


829
830
831
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 829

def next_start_byte
  @next_start_byte
end

#startFixnum

The start byte index of the included contents. Corresponds to the JSON property start

Returns:

  • (Fixnum)


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