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.



1181
1182
1183
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1181

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

Instance Attribute Details

#adaptive_protectionGoogle::Apis::SecuritycenterV1beta1::AdaptiveProtection

Corresponds to the JSON property adaptiveProtection



1154
1155
1156
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1154

def adaptive_protection
  @adaptive_protection
end

#attackGoogle::Apis::SecuritycenterV1beta1::Attack

Corresponds to the JSON property attack



1159
1160
1161
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1159

def attack
  @attack
end

#durationString

Corresponds to the JSON property duration

Returns:

  • (String)


1164
1165
1166
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1164

def duration
  @duration
end

#requestsGoogle::Apis::SecuritycenterV1beta1::Requests

Corresponds to the JSON property requests



1169
1170
1171
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1169

def requests
  @requests
end

#security_policyGoogle::Apis::SecuritycenterV1beta1::SecurityPolicy

Corresponds to the JSON property securityPolicy



1174
1175
1176
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1174

def security_policy
  @security_policy
end

#threat_vectorString

Corresponds to the JSON property threatVector

Returns:

  • (String)


1179
1180
1181
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1179

def threat_vector
  @threat_vector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1186
1187
1188
1189
1190
1191
1192
1193
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1186

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