Class: Google::Apis::SecuritycenterV1::IpRules

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IpRules

Returns a new instance of IpRules.



11035
11036
11037
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11035

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

Instance Attribute Details

#allowedGoogle::Apis::SecuritycenterV1::Allowed

Corresponds to the JSON property allowed



11008
11009
11010
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11008

def allowed
  @allowed
end

#deniedGoogle::Apis::SecuritycenterV1::Denied

Corresponds to the JSON property denied



11013
11014
11015
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11013

def denied
  @denied
end

#destination_ip_rangesArray<String>

Corresponds to the JSON property destinationIpRanges

Returns:

  • (Array<String>)


11018
11019
11020
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11018

def destination_ip_ranges
  @destination_ip_ranges
end

#directionString

Corresponds to the JSON property direction

Returns:

  • (String)


11023
11024
11025
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11023

def direction
  @direction
end

#exposed_servicesArray<String>

Corresponds to the JSON property exposedServices

Returns:

  • (Array<String>)


11028
11029
11030
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11028

def exposed_services
  @exposed_services
end

#source_ip_rangesArray<String>

Corresponds to the JSON property sourceIpRanges

Returns:

  • (Array<String>)


11033
11034
11035
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11033

def source_ip_ranges
  @source_ip_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11040
11041
11042
11043
11044
11045
11046
11047
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11040

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