Class: Google::Apis::VmmigrationV1alpha1::ComputeEngineDisksTargetDefaults

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

Overview

ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeEngineDisksTargetDefaults

Returns a new instance of ComputeEngineDisksTargetDefaults.



674
675
676
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 674

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

Instance Attribute Details

#disksArray<Google::Apis::VmmigrationV1alpha1::PersistentDiskDefaults>

The details of each Persistent Disk to create. Corresponds to the JSON property disks



661
662
663
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 661

def disks
  @disks
end

#target_projectString

The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks. Corresponds to the JSON property targetProject

Returns:

  • (String)


667
668
669
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 667

def target_project
  @target_project
end

#zoneString

The zone in which to create the Persistent Disks. Corresponds to the JSON property zone

Returns:

  • (String)


672
673
674
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 672

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



679
680
681
682
683
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 679

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