Generated from protobuf messagegoogle.cloud.securitycenter.v1.SecurityPolicy
Namespace
Google \ Cloud \ SecurityCenter \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The name of the Google Cloud Armor security policy, for example, "my-security-policy".
↳ 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'.
↳ preview
bool
Whether or not the associated rule or policy is in preview mode.
getName
The name of the Google Cloud Armor security policy, for example,
"my-security-policy".
Returns
Type
Description
string
setName
The name of the Google Cloud Armor security policy, for example,
"my-security-policy".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getType
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
Type
Description
string
setType
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'.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPreview
Whether or not the associated rule or policy is in preview mode.
Returns
Type
Description
bool
setPreview
Whether or not the associated rule or policy is in preview mode.
[[["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-04 UTC."],[],[],null,["# Google Cloud Security Command Center V1 Client - Class SecurityPolicy (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.SecurityPolicy)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.SecurityPolicy)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.SecurityPolicy)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.SecurityPolicy)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.SecurityPolicy)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.SecurityPolicy)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.SecurityPolicy)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.SecurityPolicy)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.SecurityPolicy)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.SecurityPolicy)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.SecurityPolicy)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.SecurityPolicy)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.SecurityPolicy)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.SecurityPolicy)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.SecurityPolicy)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.SecurityPolicy)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.SecurityPolicy)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.SecurityPolicy) \nReference documentation and code samples for the Google Cloud Security Command Center V1 Client class SecurityPolicy.\n\nInformation about the [Google Cloud Armor security\npolicy](https://cloud.google.com/armor/docs/security-policy-overview)\nrelevant to the finding.\n\nGenerated from protobuf message `google.cloud.securitycenter.v1.SecurityPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe name of the Google Cloud Armor security policy, for example,\n\"my-security-policy\".\n\n### setName\n\nThe name of the Google Cloud Armor security policy, for example,\n\"my-security-policy\".\n\n### getType\n\nThe type of Google Cloud Armor security policy for example, 'backend\nsecurity policy', 'edge security policy', 'network edge security policy',\nor 'always-on DDoS protection'.\n\n### setType\n\nThe type of Google Cloud Armor security policy for example, 'backend\nsecurity policy', 'edge security policy', 'network edge security policy',\nor 'always-on DDoS protection'.\n\n### getPreview\n\nWhether or not the associated rule or policy is in preview mode.\n\n### setPreview\n\nWhether or not the associated rule or policy is in preview mode."]]