Class: Google::Apis::SecuritycenterV1beta2::CloudArmor
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::CloudArmor
- 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
-
#adaptive_protection ⇒ Google::Apis::SecuritycenterV1beta2::AdaptiveProtection
Corresponds to the JSON property
adaptiveProtection. -
#attack ⇒ Google::Apis::SecuritycenterV1beta2::Attack
Corresponds to the JSON property
attack. -
#duration ⇒ String
Corresponds to the JSON property
duration. -
#requests ⇒ Google::Apis::SecuritycenterV1beta2::Requests
Corresponds to the JSON property
requests. -
#security_policy ⇒ Google::Apis::SecuritycenterV1beta2::SecurityPolicy
Corresponds to the JSON property
securityPolicy. -
#threat_vector ⇒ String
Corresponds to the JSON property
threatVector.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudArmor
constructor
A new instance of CloudArmor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudArmor
Returns a new instance of CloudArmor.
938 939 940 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adaptive_protection ⇒ Google::Apis::SecuritycenterV1beta2::AdaptiveProtection
Corresponds to the JSON property adaptiveProtection
911 912 913 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 911 def adaptive_protection @adaptive_protection end |
#attack ⇒ Google::Apis::SecuritycenterV1beta2::Attack
Corresponds to the JSON property attack
916 917 918 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 916 def attack @attack end |
#duration ⇒ String
Corresponds to the JSON property duration
921 922 923 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 921 def duration @duration end |
#requests ⇒ Google::Apis::SecuritycenterV1beta2::Requests
Corresponds to the JSON property requests
926 927 928 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 926 def requests @requests end |
#security_policy ⇒ Google::Apis::SecuritycenterV1beta2::SecurityPolicy
Corresponds to the JSON property securityPolicy
931 932 933 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 931 def security_policy @security_policy end |
#threat_vector ⇒ String
Corresponds to the JSON property threatVector
936 937 938 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 936 def threat_vector @threat_vector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
943 944 945 946 947 948 949 950 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 943 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 |