Class: Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties
- 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
-
#description ⇒ String
The description of the Compute Engine instance.
-
#machine_type ⇒ String
The machine type of the instance.
-
#name ⇒ String
Name of the compute instance backed up by the datasource.
-
#total_disk_count ⇒ Fixnum
The total number of disks attached to the Instance.
-
#total_disk_size_gb ⇒ Fixnum
The sum of all the disk sizes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeInstanceDataSourceProperties
constructor
A new instance of ComputeInstanceDataSourceProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeInstanceDataSourceProperties
Returns a new instance of ComputeInstanceDataSourceProperties.
1430 1431 1432 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1430 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the Compute Engine instance.
Corresponds to the JSON property description
1408 1409 1410 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1408 def description @description end |
#machine_type ⇒ String
The machine type of the instance.
Corresponds to the JSON property machineType
1413 1414 1415 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1413 def machine_type @machine_type end |
#name ⇒ String
Name of the compute instance backed up by the datasource.
Corresponds to the JSON property name
1418 1419 1420 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1418 def name @name end |
#total_disk_count ⇒ Fixnum
The total number of disks attached to the Instance.
Corresponds to the JSON property totalDiskCount
1423 1424 1425 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1423 def total_disk_count @total_disk_count end |
#total_disk_size_gb ⇒ Fixnum
The sum of all the disk sizes.
Corresponds to the JSON property totalDiskSizeGb
1428 1429 1430 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1428 def total_disk_size_gb @total_disk_size_gb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1435 1436 1437 1438 1439 1440 1441 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1435 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 |