Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2CloudArmor

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

Returns a new instance of GoogleCloudSecuritycenterV2CloudArmor.



5079
5080
5081
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5079

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

Instance Attribute Details

#adaptive_protectionGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AdaptiveProtection

Corresponds to the JSON property adaptiveProtection



5052
5053
5054
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5052

def adaptive_protection
  @adaptive_protection
end

#attackGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Attack

Corresponds to the JSON property attack



5057
5058
5059
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5057

def attack
  @attack
end

#durationString

Corresponds to the JSON property duration

Returns:

  • (String)


5062
5063
5064
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5062

def duration
  @duration
end

#requestsGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Requests

Corresponds to the JSON property requests



5067
5068
5069
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5067

def requests
  @requests
end

#security_policyGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPolicy

Corresponds to the JSON property securityPolicy



5072
5073
5074
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5072

def security_policy
  @security_policy
end

#threat_vectorString

Corresponds to the JSON property threatVector

Returns:

  • (String)


5077
5078
5079
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5077

def threat_vector
  @threat_vector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5084
5085
5086
5087
5088
5089
5090
5091
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5084

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