Class: Google::Apis::SecuritycenterV1beta2::Allowed

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

Overview

Allowed IP rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Allowed

Returns a new instance of Allowed.



409
410
411
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 409

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

Instance Attribute Details

#ip_rulesArray<Google::Apis::SecuritycenterV1beta2::IpRule>

Optional. Optional list of allowed IP rules. Corresponds to the JSON property ipRules



407
408
409
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 407

def ip_rules
  @ip_rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



414
415
416
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 414

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