Class: Google::Apis::SecuritycenterV1::IpRules
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::IpRules
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Instance Attribute Summary collapse
-
#allowed ⇒ Google::Apis::SecuritycenterV1::Allowed
Corresponds to the JSON property
allowed. -
#denied ⇒ Google::Apis::SecuritycenterV1::Denied
Corresponds to the JSON property
denied. -
#destination_ip_ranges ⇒ Array<String>
Corresponds to the JSON property
destinationIpRanges. -
#direction ⇒ String
Corresponds to the JSON property
direction. -
#exposed_services ⇒ Array<String>
Corresponds to the JSON property
exposedServices. -
#source_ip_ranges ⇒ Array<String>
Corresponds to the JSON property
sourceIpRanges.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IpRules
constructor
A new instance of IpRules.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IpRules
Returns a new instance of IpRules.
10725 10726 10727 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10725 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed ⇒ Google::Apis::SecuritycenterV1::Allowed
Corresponds to the JSON property allowed
10698 10699 10700 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10698 def allowed @allowed end |
#denied ⇒ Google::Apis::SecuritycenterV1::Denied
Corresponds to the JSON property denied
10703 10704 10705 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10703 def denied @denied end |
#destination_ip_ranges ⇒ Array<String>
Corresponds to the JSON property destinationIpRanges
10708 10709 10710 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10708 def destination_ip_ranges @destination_ip_ranges end |
#direction ⇒ String
Corresponds to the JSON property direction
10713 10714 10715 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10713 def direction @direction end |
#exposed_services ⇒ Array<String>
Corresponds to the JSON property exposedServices
10718 10719 10720 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10718 def exposed_services @exposed_services end |
#source_ip_ranges ⇒ Array<String>
Corresponds to the JSON property sourceIpRanges
10723 10724 10725 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10723 def source_ip_ranges @source_ip_ranges end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10730 10731 10732 10733 10734 10735 10736 10737 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10730 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @denied = args[:denied] if args.key?(:denied) @destination_ip_ranges = args[:destination_ip_ranges] if args.key?(:destination_ip_ranges) @direction = args[:direction] if args.key?(:direction) @exposed_services = args[:exposed_services] if args.key?(:exposed_services) @source_ip_ranges = args[:source_ip_ranges] if args.key?(:source_ip_ranges) end |