Class: Google::Apis::SecuritycenterV1::CloudArmor

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

Returns a new instance of CloudArmor.



1328
1329
1330
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1328

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

Instance Attribute Details

#adaptive_protectionGoogle::Apis::SecuritycenterV1::AdaptiveProtection

Corresponds to the JSON property adaptiveProtection



1301
1302
1303
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1301

def adaptive_protection
  @adaptive_protection
end

#attackGoogle::Apis::SecuritycenterV1::Attack

Corresponds to the JSON property attack



1306
1307
1308
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1306

def attack
  @attack
end

#durationString

Corresponds to the JSON property duration

Returns:

  • (String)


1311
1312
1313
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1311

def duration
  @duration
end

#requestsGoogle::Apis::SecuritycenterV1::Requests

Corresponds to the JSON property requests



1316
1317
1318
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1316

def requests
  @requests
end

#security_policyGoogle::Apis::SecuritycenterV1::SecurityPolicy

Corresponds to the JSON property securityPolicy



1321
1322
1323
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1321

def security_policy
  @security_policy
end

#threat_vectorString

Corresponds to the JSON property threatVector

Returns:

  • (String)


1326
1327
1328
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1326

def threat_vector
  @threat_vector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1333
1334
1335
1336
1337
1338
1339
1340
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1333

def update!(**args)
  @adaptive_protection = args[:adaptive_protection] if args.key?(:adaptive_protection)
  @attack = args[:attack] if args.key?(:attack)
  @duration = args[:duration] if args.key?(:duration)
  @requests = args[:requests] if args.key?(:requests)
  @security_policy = args[:security_policy] if args.key?(:security_policy)
  @threat_vector = args[:threat_vector] if args.key?(:threat_vector)
end