Class: Google::Apis::VmmigrationV1::ComputeEngineTargetDefaults

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

ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeEngineTargetDefaults

Returns a new instance of ComputeEngineTargetDefaults.



1075
1076
1077
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1075

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

Instance Attribute Details

#additional_licensesArray<String>

Additional licenses to assign to the VM. Corresponds to the JSON property additionalLicenses

Returns:

  • (Array<String>)


984
985
986
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 984

def additional_licenses
  @additional_licenses
end

#applied_licenseGoogle::Apis::VmmigrationV1::AppliedLicense

AppliedLicense holds the license data returned by adaptation module report. Corresponds to the JSON property appliedLicense



989
990
991
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 989

def applied_license
  @applied_license
end

#boot_optionString

Output only. The VM Boot Option, as set in the source VM. Corresponds to the JSON property bootOption

Returns:

  • (String)


994
995
996
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 994

def boot_option
  @boot_option
end

#compute_schedulingGoogle::Apis::VmmigrationV1::ComputeScheduling

Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. Corresponds to the JSON property computeScheduling



1000
1001
1002
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1000

def compute_scheduling
  @compute_scheduling
end

#disk_typeString

The disk type to use in the VM. Corresponds to the JSON property diskType

Returns:

  • (String)


1005
1006
1007
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1005

def disk_type
  @disk_type
end

#hostnameString

The hostname to assign to the VM. Corresponds to the JSON property hostname

Returns:

  • (String)


1010
1011
1012
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1010

def hostname
  @hostname
end

#labelsHash<String,String>

A map of labels to associate with the VM. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1015
1016
1017
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1015

def labels
  @labels
end

#license_typeString

The license type to use in OS adaptation. Corresponds to the JSON property licenseType

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1020

def license_type
  @license_type
end

#machine_typeString

The machine type to create the VM with. Corresponds to the JSON property machineType

Returns:

  • (String)


1025
1026
1027
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1025

def machine_type
  @machine_type
end

#machine_type_seriesString

The machine type series to create the VM with. Corresponds to the JSON property machineTypeSeries

Returns:

  • (String)


1030
1031
1032
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1030

def machine_type_series
  @machine_type_series
end

#metadataHash<String,String>

The metadata key/value pairs to assign to the VM. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


1035
1036
1037
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1035

def 
  @metadata
end

#network_interfacesArray<Google::Apis::VmmigrationV1::NetworkInterface>

List of NICs connected to this VM. Corresponds to the JSON property networkInterfaces



1040
1041
1042
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1040

def network_interfaces
  @network_interfaces
end

#network_tagsArray<String>

A list of network tags to associate with the VM. Corresponds to the JSON property networkTags

Returns:

  • (Array<String>)


1045
1046
1047
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1045

def network_tags
  @network_tags
end

#secure_bootBoolean Also known as: secure_boot?

Defines whether the instance has Secure Boot enabled. This can be set to true only if the VM boot option is EFI. Corresponds to the JSON property secureBoot

Returns:

  • (Boolean)


1051
1052
1053
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1051

def secure_boot
  @secure_boot
end

#service_accountString

The service account to associate the VM with. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1057
1058
1059
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1057

def 
  @service_account
end

#target_projectString

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

Returns:

  • (String)


1063
1064
1065
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1063

def target_project
  @target_project
end

#vm_nameString

The name of the VM to create. Corresponds to the JSON property vmName

Returns:

  • (String)


1068
1069
1070
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1068

def vm_name
  @vm_name
end

#zoneString

The zone in which to create the VM. Corresponds to the JSON property zone

Returns:

  • (String)


1073
1074
1075
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1073

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1080

def update!(**args)
  @additional_licenses = args[:additional_licenses] if args.key?(:additional_licenses)
  @applied_license = args[:applied_license] if args.key?(:applied_license)
  @boot_option = args[:boot_option] if args.key?(:boot_option)
  @compute_scheduling = args[:compute_scheduling] if args.key?(:compute_scheduling)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @hostname = args[:hostname] if args.key?(:hostname)
  @labels = args[:labels] if args.key?(:labels)
  @license_type = args[:license_type] if args.key?(:license_type)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @machine_type_series = args[:machine_type_series] if args.key?(:machine_type_series)
  @metadata = args[:metadata] if args.key?(:metadata)
  @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
  @network_tags = args[:network_tags] if args.key?(:network_tags)
  @secure_boot = args[:secure_boot] if args.key?(:secure_boot)
  @service_account = args[:service_account] if args.key?(:service_account)
  @target_project = args[:target_project] if args.key?(:target_project)
  @vm_name = args[:vm_name] if args.key?(:vm_name)
  @zone = args[:zone] if args.key?(:zone)
end