Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IpRules

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2IpRules

Returns a new instance of GoogleCloudSecuritycenterV2IpRules.



7261
7262
7263
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7261

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

Instance Attribute Details

#allowedGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Allowed

Corresponds to the JSON property allowed



7234
7235
7236
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7234

def allowed
  @allowed
end

#deniedGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Denied

Corresponds to the JSON property denied



7239
7240
7241
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7239

def denied
  @denied
end

#destination_ip_rangesArray<String>

Corresponds to the JSON property destinationIpRanges

Returns:

  • (Array<String>)


7244
7245
7246
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7244

def destination_ip_ranges
  @destination_ip_ranges
end

#directionString

Corresponds to the JSON property direction

Returns:

  • (String)


7249
7250
7251
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7249

def direction
  @direction
end

#exposed_servicesArray<String>

Corresponds to the JSON property exposedServices

Returns:

  • (Array<String>)


7254
7255
7256
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7254

def exposed_services
  @exposed_services
end

#source_ip_rangesArray<String>

Corresponds to the JSON property sourceIpRanges

Returns:

  • (Array<String>)


7259
7260
7261
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7259

def source_ip_ranges
  @source_ip_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7266
7267
7268
7269
7270
7271
7272
7273
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7266

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