Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPolicy
- 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
Overview
Information about the Google Cloud Armor security policy relevant to the finding.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the Google Cloud Armor security policy, for example, "my-security- policy".
-
#preview ⇒ Boolean
(also: #preview?)
Whether or not the associated rule or policy is in preview mode.
-
#type ⇒ String
The type of Google Cloud Armor security policy for example, 'backend security policy', 'edge security policy', 'network edge security policy', or 'always-on DDoS protection'.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityPolicy
constructor
A new instance of GoogleCloudSecuritycenterV2SecurityPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityPolicy
Returns a new instance of GoogleCloudSecuritycenterV2SecurityPolicy.
6676 6677 6678 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6676 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the Google Cloud Armor security policy, for example, "my-security-
policy".
Corresponds to the JSON property name
6661 6662 6663 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6661 def name @name end |
#preview ⇒ Boolean Also known as: preview?
Whether or not the associated rule or policy is in preview mode.
Corresponds to the JSON property preview
6666 6667 6668 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6666 def preview @preview end |
#type ⇒ String
The type of Google Cloud Armor security policy for example, 'backend security
policy', 'edge security policy', 'network edge security policy', or 'always-on
DDoS protection'.
Corresponds to the JSON property type
6674 6675 6676 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6674 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6681 6682 6683 6684 6685 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6681 def update!(**args) @name = args[:name] if args.key?(:name) @preview = args[:preview] if args.key?(:preview) @type = args[:type] if args.key?(:type) end |