Class: Google::Apis::ComputeAlpha::SchedulingVsockMode

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

Overview

Message to control the enablement of the vsock device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchedulingVsockMode

Returns a new instance of SchedulingVsockMode.



66735
66736
66737
# File 'lib/google/apis/compute_alpha/classes.rb', line 66735

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

Instance Attribute Details

#modeString

Corresponds to the JSON property mode

Returns:

  • (String)


66733
66734
66735
# File 'lib/google/apis/compute_alpha/classes.rb', line 66733

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



66740
66741
66742
# File 'lib/google/apis/compute_alpha/classes.rb', line 66740

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