Class: Google::Apis::ComputeAlpha::ManagedInstanceOverrideDiskOverride

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

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) ⇒ ManagedInstanceOverrideDiskOverride

Returns a new instance of ManagedInstanceOverrideDiskOverride



14688
14689
14690
# File 'generated/google/apis/compute_alpha/classes.rb', line 14688

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

Instance Attribute Details

#device_nameString

The name of the device on the VM Corresponds to the JSON property deviceName

Returns:

  • (String)


14675
14676
14677
# File 'generated/google/apis/compute_alpha/classes.rb', line 14675

def device_name
  @device_name
end

#modeString

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Corresponds to the JSON property mode

Returns:

  • (String)


14681
14682
14683
# File 'generated/google/apis/compute_alpha/classes.rb', line 14681

def mode
  @mode
end

#sourceString

The disk that is/will be mounted Corresponds to the JSON property source

Returns:

  • (String)


14686
14687
14688
# File 'generated/google/apis/compute_alpha/classes.rb', line 14686

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14693
14694
14695
14696
14697
# File 'generated/google/apis/compute_alpha/classes.rb', line 14693

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