Class: Google::Apis::SecuritycenterV1beta2::NodePool

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodePool

Returns a new instance of NodePool.



10273
10274
10275
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10273

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


10266
10267
10268
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10266

def name
  @name
end

#nodesArray<Google::Apis::SecuritycenterV1beta2::Node>

Corresponds to the JSON property nodes



10271
10272
10273
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10271

def nodes
  @nodes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10278
10279
10280
10281
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10278

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