Class: Google::Apis::BackupdrV1::AcceleratorConfig

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

A specification of the type and number of accelerator cards attached to the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AcceleratorConfig

Returns a new instance of AcceleratorConfig.



69
70
71
# File 'lib/google/apis/backupdr_v1/classes.rb', line 69

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

Instance Attribute Details

#accelerator_countFixnum

Optional. The number of the guest accelerator cards exposed to this instance. Corresponds to the JSON property acceleratorCount

Returns:

  • (Fixnum)


61
62
63
# File 'lib/google/apis/backupdr_v1/classes.rb', line 61

def accelerator_count
  @accelerator_count
end

#accelerator_typeString

Optional. Full or partial URL of the accelerator type resource to attach to this instance. Corresponds to the JSON property acceleratorType

Returns:

  • (String)


67
68
69
# File 'lib/google/apis/backupdr_v1/classes.rb', line 67

def accelerator_type
  @accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



74
75
76
77
# File 'lib/google/apis/backupdr_v1/classes.rb', line 74

def update!(**args)
  @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
end