Class: Google::Apis::SecuritycenterV1beta1::CloudArmor

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

Returns a new instance of CloudArmor.



1106
1107
1108
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1106

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

Instance Attribute Details

#adaptive_protectionGoogle::Apis::SecuritycenterV1beta1::AdaptiveProtection

Corresponds to the JSON property adaptiveProtection



1079
1080
1081
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1079

def adaptive_protection
  @adaptive_protection
end

#attackGoogle::Apis::SecuritycenterV1beta1::Attack

Corresponds to the JSON property attack



1084
1085
1086
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1084

def attack
  @attack
end

#durationString

Corresponds to the JSON property duration

Returns:

  • (String)


1089
1090
1091
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1089

def duration
  @duration
end

#requestsGoogle::Apis::SecuritycenterV1beta1::Requests

Corresponds to the JSON property requests



1094
1095
1096
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1094

def requests
  @requests
end

#security_policyGoogle::Apis::SecuritycenterV1beta1::SecurityPolicy

Corresponds to the JSON property securityPolicy



1099
1100
1101
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1099

def security_policy
  @security_policy
end

#threat_vectorString

Corresponds to the JSON property threatVector

Returns:

  • (String)


1104
1105
1106
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1104

def threat_vector
  @threat_vector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1111
1112
1113
1114
1115
1116
1117
1118
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1111

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