Class: Google::Apis::ComputeV1::SerialPortOutput

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

Overview

An instance's serial console output.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SerialPortOutput

Returns a new instance of SerialPortOutput



9228
9229
9230
# File 'generated/google/apis/compute_v1/classes.rb', line 9228

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

Instance Attribute Details

#contentsString

[Output Only] The contents of the console output. Corresponds to the JSON property contents

Returns:

  • (String)


9201
9202
9203
# File 'generated/google/apis/compute_v1/classes.rb', line 9201

def contents
  @contents
end

#kindString

[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output. Corresponds to the JSON property kind

Returns:

  • (String)


9207
9208
9209
# File 'generated/google/apis/compute_v1/classes.rb', line 9207

def kind
  @kind
end

#nextFixnum

[Output Only] The position of the next byte of content from the serial console output. Use this value in the next request as the start parameter. Corresponds to the JSON property next

Returns:

  • (Fixnum)


9213
9214
9215
# File 'generated/google/apis/compute_v1/classes.rb', line 9213

def next
  @next
end

[Output Only] Server-defined URL for this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


9218
9219
9220
# File 'generated/google/apis/compute_v1/classes.rb', line 9218

def self_link
  @self_link
end

#startFixnum

The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer, older output will be overwritten by newer content and the start values will be mismatched. Corresponds to the JSON property start

Returns:

  • (Fixnum)


9226
9227
9228
# File 'generated/google/apis/compute_v1/classes.rb', line 9226

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9233
9234
9235
9236
9237
9238
9239
# File 'generated/google/apis/compute_v1/classes.rb', line 9233

def update!(**args)
  @contents = args[:contents] if args.key?(:contents)
  @kind = args[:kind] if args.key?(:kind)
  @next = args[:next] if args.key?(:next)
  @self_link = args[:self_link] if args.key?(:self_link)
  @start = args[:start] if args.key?(:start)
end