Class: Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties

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

ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeInstanceDataSourceProperties

Returns a new instance of ComputeInstanceDataSourceProperties.



1443
1444
1445
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1443

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

Instance Attribute Details

#descriptionString

The description of the Compute Engine instance. Corresponds to the JSON property description

Returns:

  • (String)


1421
1422
1423
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1421

def description
  @description
end

#machine_typeString

The machine type of the instance. Corresponds to the JSON property machineType

Returns:

  • (String)


1426
1427
1428
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1426

def machine_type
  @machine_type
end

#nameString

Name of the compute instance backed up by the datasource. Corresponds to the JSON property name

Returns:

  • (String)


1431
1432
1433
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1431

def name
  @name
end

#total_disk_countFixnum

The total number of disks attached to the Instance. Corresponds to the JSON property totalDiskCount

Returns:

  • (Fixnum)


1436
1437
1438
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1436

def total_disk_count
  @total_disk_count
end

#total_disk_size_gbFixnum

The sum of all the disk sizes. Corresponds to the JSON property totalDiskSizeGb

Returns:

  • (Fixnum)


1441
1442
1443
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1441

def total_disk_size_gb
  @total_disk_size_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1448
1449
1450
1451
1452
1453
1454
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1448

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @name = args[:name] if args.key?(:name)
  @total_disk_count = args[:total_disk_count] if args.key?(:total_disk_count)
  @total_disk_size_gb = args[:total_disk_size_gb] if args.key?(:total_disk_size_gb)
end