Class: Google::Apis::VmmigrationV1::ComputeEngineDisksTargetDefaults
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::ComputeEngineDisksTargetDefaults
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb
Overview
ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.
Instance Attribute Summary collapse
-
#disks ⇒ Array<Google::Apis::VmmigrationV1::PersistentDiskDefaults>
The details of each Persistent Disk to create.
-
#target_project ⇒ String
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks.
-
#zone ⇒ String
The zone in which to create the Persistent Disks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeEngineDisksTargetDefaults
constructor
A new instance of ComputeEngineDisksTargetDefaults.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeEngineDisksTargetDefaults
Returns a new instance of ComputeEngineDisksTargetDefaults.
944 945 946 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 944 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disks ⇒ Array<Google::Apis::VmmigrationV1::PersistentDiskDefaults>
The details of each Persistent Disk to create.
Corresponds to the JSON property disks
931 932 933 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 931 def disks @disks end |
#target_project ⇒ String
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
937 938 939 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 937 def target_project @target_project end |
#zone ⇒ String
The zone in which to create the Persistent Disks.
Corresponds to the JSON property zone
942 943 944 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 942 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
949 950 951 952 953 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 949 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 |