Class: Google::Apis::SecuritycenterV1beta2::IpRules

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) ⇒ IpRules

Returns a new instance of IpRules.



9895
9896
9897
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9895

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

Instance Attribute Details

#allowedGoogle::Apis::SecuritycenterV1beta2::Allowed

Corresponds to the JSON property allowed



9868
9869
9870
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9868

def allowed
  @allowed
end

#deniedGoogle::Apis::SecuritycenterV1beta2::Denied

Corresponds to the JSON property denied



9873
9874
9875
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9873

def denied
  @denied
end

#destination_ip_rangesArray<String>

Corresponds to the JSON property destinationIpRanges

Returns:

  • (Array<String>)


9878
9879
9880
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9878

def destination_ip_ranges
  @destination_ip_ranges
end

#directionString

Corresponds to the JSON property direction

Returns:

  • (String)


9883
9884
9885
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9883

def direction
  @direction
end

#exposed_servicesArray<String>

Corresponds to the JSON property exposedServices

Returns:

  • (Array<String>)


9888
9889
9890
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9888

def exposed_services
  @exposed_services
end

#source_ip_rangesArray<String>

Corresponds to the JSON property sourceIpRanges

Returns:

  • (Array<String>)


9893
9894
9895
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9893

def source_ip_ranges
  @source_ip_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9900
9901
9902
9903
9904
9905
9906
9907
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9900

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