(::String) — The name of the Google Cloud Armor security policy, for example,
"my-security-policy".
#name=
defname=(value)->::String
Parameter
value (::String) — The name of the Google Cloud Armor security policy, for example,
"my-security-policy".
Returns
(::String) — The name of the Google Cloud Armor security policy, for example,
"my-security-policy".
#preview
defpreview()->::Boolean
Returns
(::Boolean) — Whether or not the associated rule or policy is in preview mode.
#preview=
defpreview=(value)->::Boolean
Parameter
value (::Boolean) — Whether or not the associated rule or policy is in preview mode.
Returns
(::Boolean) — Whether or not the associated rule or policy is in preview mode.
#type
deftype()->::String
Returns
(::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'.
#type=
deftype=(value)->::String
Parameter
value (::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'.
Returns
(::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'.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::SecurityPolicy (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [1.2.0](/ruby/docs/reference/google-cloud-security_center-v2/1.2.0/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [1.1.1](/ruby/docs/reference/google-cloud-security_center-v2/1.1.1/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [1.0.0](/ruby/docs/reference/google-cloud-security_center-v2/1.0.0/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [0.6.0](/ruby/docs/reference/google-cloud-security_center-v2/0.6.0/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [0.5.0](/ruby/docs/reference/google-cloud-security_center-v2/0.5.0/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [0.4.1](/ruby/docs/reference/google-cloud-security_center-v2/0.4.1/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [0.3.0](/ruby/docs/reference/google-cloud-security_center-v2/0.3.0/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [0.2.0](/ruby/docs/reference/google-cloud-security_center-v2/0.2.0/Google-Cloud-SecurityCenter-V2-SecurityPolicy)\n- [0.1.0](/ruby/docs/reference/google-cloud-security_center-v2/0.1.0/Google-Cloud-SecurityCenter-V2-SecurityPolicy) \nReference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::SecurityPolicy.\n\nInformation about the [Google Cloud Armor security\npolicy](https://cloud.google.com/armor/docs/security-policy-overview)\nrelevant to the finding. \n\nInherits\n--------\n\n- [Object](./Google-Cloud-SecurityCenter-V2-Kubernetes-Object) \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of the Google Cloud Armor security policy, for example, \"my-security-policy\".\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name of the Google Cloud Armor security policy, for example, \"my-security-policy\". \n**Returns**\n\n- (::String) --- The name of the Google Cloud Armor security policy, for example, \"my-security-policy\".\n\n### #preview\n\n def preview() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Whether or not the associated rule or policy is in preview mode.\n\n### #preview=\n\n def preview=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Whether or not the associated rule or policy is in preview mode. \n**Returns**\n\n- (::Boolean) --- Whether or not the associated rule or policy is in preview mode.\n\n### #type\n\n def type() -\u003e ::String\n\n**Returns**\n\n- (::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'.\n\n### #type=\n\n def type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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'. \n**Returns**\n\n- (::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'."]]