Class: Google::Apis::VmmigrationV1::ComputeEngineDisk

Inherits:
Object
  • Object
show all
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

Compute Engine disk target details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeEngineDisk

Returns a new instance of ComputeEngineDisk.



1115
1116
1117
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1115

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

Instance Attribute Details

#disk_idString

Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/ project/zones/zone/disks/disk1 "disk1" is the resource ID for the disk. Corresponds to the JSON property diskId

Returns:

  • (String)


1095
1096
1097
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1095

def disk_id
  @disk_id
end

#disk_typeString

Required. The disk type to use. Corresponds to the JSON property diskType

Returns:

  • (String)


1100
1101
1102
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1100

def disk_type
  @disk_type
end

#replica_zonesArray<String>

Optional. Replication zones of the regional disk. Should be of the form: projects/target-project/locations/replica-zone Currently only one replica zone is supported. Corresponds to the JSON property replicaZones

Returns:

  • (Array<String>)


1107
1108
1109
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1107

def replica_zones
  @replica_zones
end

#zoneString

Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/target-project/locations/zone Corresponds to the JSON property zone

Returns:

  • (String)


1113
1114
1115
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1113

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1120
1121
1122
1123
1124
1125
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1120

def update!(**args)
  @disk_id = args[:disk_id] if args.key?(:disk_id)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
  @zone = args[:zone] if args.key?(:zone)
end