Class: Google::Apis::SecuritycenterV1beta2::CloudArmor

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

Returns a new instance of CloudArmor.



1013
1014
1015
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1013

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

Instance Attribute Details

#adaptive_protectionGoogle::Apis::SecuritycenterV1beta2::AdaptiveProtection

Corresponds to the JSON property adaptiveProtection



986
987
988
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 986

def adaptive_protection
  @adaptive_protection
end

#attackGoogle::Apis::SecuritycenterV1beta2::Attack

Corresponds to the JSON property attack



991
992
993
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 991

def attack
  @attack
end

#durationString

Corresponds to the JSON property duration

Returns:

  • (String)


996
997
998
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 996

def duration
  @duration
end

#requestsGoogle::Apis::SecuritycenterV1beta2::Requests

Corresponds to the JSON property requests



1001
1002
1003
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1001

def requests
  @requests
end

#security_policyGoogle::Apis::SecuritycenterV1beta2::SecurityPolicy

Corresponds to the JSON property securityPolicy



1006
1007
1008
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1006

def security_policy
  @security_policy
end

#threat_vectorString

Corresponds to the JSON property threatVector

Returns:

  • (String)


1011
1012
1013
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1011

def threat_vector
  @threat_vector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1018
1019
1020
1021
1022
1023
1024
1025
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1018

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