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.



7226
7227
7228
# File 'generated/google/apis/compute_v1/classes.rb', line 7226

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)


7213
7214
7215
# File 'generated/google/apis/compute_v1/classes.rb', line 7213

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)


7219
7220
7221
# File 'generated/google/apis/compute_v1/classes.rb', line 7219

def kind
  @kind
end

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

Returns:

  • (String)


7224
7225
7226
# File 'generated/google/apis/compute_v1/classes.rb', line 7224

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7231
7232
7233
7234
7235
# File 'generated/google/apis/compute_v1/classes.rb', line 7231

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