Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Allowed

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

Overview

Allowed IP rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Allowed

Returns a new instance of GoogleCloudSecuritycenterV2Allowed.



5126
5127
5128
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5126

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

Instance Attribute Details

#ip_rulesArray<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IpRule>

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



5124
5125
5126
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5124

def ip_rules
  @ip_rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5131
5132
5133
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5131

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