Class: Google::Apis::BackupdrV1::ComputeInstanceBackupProperties
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::ComputeInstanceBackupProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
ComputeInstanceBackupProperties represents Compute Engine instance backup properties.
Instance Attribute Summary collapse
-
#can_ip_forward ⇒ Boolean
(also: #can_ip_forward?)
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.
-
#description ⇒ String
An optional text description for the instances that are created from these properties.
-
#disk ⇒ Array<Google::Apis::BackupdrV1::AttachedDisk>
An array of disks that are associated with the instances that are created from these properties.
-
#guest_accelerator ⇒ Array<Google::Apis::BackupdrV1::AcceleratorConfig>
A list of guest accelerator cards' type and count to use for instances created from these properties.
-
#key_revocation_action_type ⇒ String
KeyRevocationActionType of the instance.
-
#labels ⇒ Hash<String,String>
Labels to apply to instances that are created from these properties.
-
#machine_type ⇒ String
The machine type to use for instances that are created from these properties.
-
#metadata ⇒ Google::Apis::BackupdrV1::Metadata
A metadata key/value entry.
-
#min_cpu_platform ⇒ String
Minimum cpu/platform to be used by instances.
-
#network_interface ⇒ Array<Google::Apis::BackupdrV1::NetworkInterface>
An array of network access configurations for this interface.
-
#scheduling ⇒ Google::Apis::BackupdrV1::Scheduling
Sets the scheduling options for an Instance.
-
#service_account ⇒ Array<Google::Apis::BackupdrV1::ServiceAccount>
A list of service accounts with specified scopes.
-
#source_instance ⇒ String
The source instance used to create this backup.
-
#tags ⇒ Google::Apis::BackupdrV1::Tags
A set of instance tags.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeInstanceBackupProperties
constructor
A new instance of ComputeInstanceBackupProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeInstanceBackupProperties
Returns a new instance of ComputeInstanceBackupProperties.
1377 1378 1379 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_ip_forward ⇒ Boolean Also known as: can_ip_forward?
Enables instances created based on these properties to send packets with
source IP addresses other than their own and receive packets with destination
IP addresses other than their own. If these instances will be used as an IP
gateway or it will be set as the next-hop in a Route resource, specify true.
If unsure, leave this set to false. See the https://cloud.google.com/vpc/
docs/using-routes#canipforward documentation for more information.
Corresponds to the JSON property canIpForward
1295 1296 1297 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1295 def can_ip_forward @can_ip_forward end |
#description ⇒ String
An optional text description for the instances that are created from these
properties.
Corresponds to the JSON property description
1302 1303 1304 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1302 def description @description end |
#disk ⇒ Array<Google::Apis::BackupdrV1::AttachedDisk>
An array of disks that are associated with the instances that are created from
these properties.
Corresponds to the JSON property disk
1308 1309 1310 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1308 def disk @disk end |
#guest_accelerator ⇒ Array<Google::Apis::BackupdrV1::AcceleratorConfig>
A list of guest accelerator cards' type and count to use for instances created
from these properties.
Corresponds to the JSON property guestAccelerator
1314 1315 1316 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1314 def guest_accelerator @guest_accelerator end |
#key_revocation_action_type ⇒ String
KeyRevocationActionType of the instance. Supported options are "STOP" and "
NONE". The default value is "NONE" if it is not specified.
Corresponds to the JSON property keyRevocationActionType
1320 1321 1322 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1320 def key_revocation_action_type @key_revocation_action_type end |
#labels ⇒ Hash<String,String>
Labels to apply to instances that are created from these properties.
Corresponds to the JSON property labels
1325 1326 1327 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1325 def labels @labels end |
#machine_type ⇒ String
The machine type to use for instances that are created from these properties.
Corresponds to the JSON property machineType
1330 1331 1332 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1330 def machine_type @machine_type end |
#metadata ⇒ Google::Apis::BackupdrV1::Metadata
A metadata key/value entry.
Corresponds to the JSON property metadata
1335 1336 1337 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1335 def @metadata end |
#min_cpu_platform ⇒ String
Minimum cpu/platform to be used by instances. The instance may be scheduled on
the specified or newer cpu/platform. Applicable values are the friendly names
of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform:
Intel Sandy Bridge. For more information, read https://cloud.google.com/
compute/docs/instances/specify-min-cpu-platform.
Corresponds to the JSON property minCpuPlatform
1344 1345 1346 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1344 def min_cpu_platform @min_cpu_platform end |
#network_interface ⇒ Array<Google::Apis::BackupdrV1::NetworkInterface>
An array of network access configurations for this interface.
Corresponds to the JSON property networkInterface
1349 1350 1351 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1349 def network_interface @network_interface end |
#scheduling ⇒ Google::Apis::BackupdrV1::Scheduling
Sets the scheduling options for an Instance.
Corresponds to the JSON property scheduling
1354 1355 1356 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1354 def scheduling @scheduling end |
#service_account ⇒ Array<Google::Apis::BackupdrV1::ServiceAccount>
A list of service accounts with specified scopes. Access tokens for these
service accounts are available to the instances that are created from these
properties. Use metadata queries to obtain the access tokens for these
instances.
Corresponds to the JSON property serviceAccount
1362 1363 1364 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1362 def service_account @service_account end |
#source_instance ⇒ String
The source instance used to create this backup. This can be a partial or full
URL to the resource. For example, the following are valid values: -https://www.
googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -
projects/project/zones/zone/instances/instance
Corresponds to the JSON property sourceInstance
1370 1371 1372 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1370 def source_instance @source_instance end |
#tags ⇒ Google::Apis::BackupdrV1::Tags
A set of instance tags.
Corresponds to the JSON property tags
1375 1376 1377 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1375 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1382 def update!(**args) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @description = args[:description] if args.key?(:description) @disk = args[:disk] if args.key?(:disk) @guest_accelerator = args[:guest_accelerator] if args.key?(:guest_accelerator) @key_revocation_action_type = args[:key_revocation_action_type] if args.key?(:key_revocation_action_type) @labels = args[:labels] if args.key?(:labels) @machine_type = args[:machine_type] if args.key?(:machine_type) @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_interface = args[:network_interface] if args.key?(:network_interface) @scheduling = args[:scheduling] if args.key?(:scheduling) @service_account = args[:service_account] if args.key?(:service_account) @source_instance = args[:source_instance] if args.key?(:source_instance) @tags = args[:tags] if args.key?(:tags) end |