# Google Cloud Security Command Center V1 Client - Class CloudArmor (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class CloudArmor.

Fields related to Google Cloud Armor findings.

Generated from protobuf message `google.cloud.securitycenter.v1.CloudArmor`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ security_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.SecurityPolicy` Information about the [Google Cloud Armor security policy](https://cloud.google.com/armor/docs/security-policy-overview) relevant to the finding. |
| `↳ requests` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Requests` Information about incoming requests evaluated by [Google Cloud Armor security policies](https://cloud.google.com/armor/docs/security-policy-overview). |
| `↳ adaptive_protection` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AdaptiveProtection` Information about potential Layer 7 DDoS attacks identified by [Google Cloud Armor Adaptive Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview). |
| `↳ attack` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Attack` Information about DDoS attack volume and classification. |
| `↳ threat_vector` | `string` Distinguish between volumetric \& protocol DDoS attack and application layer attacks. For example, "L3_4" for Layer 3 and Layer 4 DDoS attacks, or "L_7" for Layer 7 DDoS attacks. |
| `↳ duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Duration of attack from the start until the current moment (updated every 5 minutes). |

### getSecurityPolicy

Information about the [Google Cloud Armor security
policy](https://cloud.google.com/armor/docs/security-policy-overview)
relevant to the finding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.SecurityPolicy|null` |   |

### hasSecurityPolicy

### clearSecurityPolicy

### setSecurityPolicy

Information about the [Google Cloud Armor security
policy](https://cloud.google.com/armor/docs/security-policy-overview)
relevant to the finding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.SecurityPolicy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequests

Information about incoming requests evaluated by [Google Cloud Armor
security
policies](https://cloud.google.com/armor/docs/security-policy-overview).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Requests|null` |   |

### hasRequests

### clearRequests

### setRequests

Information about incoming requests evaluated by [Google Cloud Armor
security
policies](https://cloud.google.com/armor/docs/security-policy-overview).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Requests` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAdaptiveProtection

Information about potential Layer 7 DDoS attacks identified by [Google
Cloud Armor Adaptive
Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AdaptiveProtection|null` |   |

### hasAdaptiveProtection

### clearAdaptiveProtection

### setAdaptiveProtection

Information about potential Layer 7 DDoS attacks identified by [Google
Cloud Armor Adaptive
Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AdaptiveProtection` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAttack

Information about DDoS attack volume and classification.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Attack|null` |   |

### hasAttack

### clearAttack

### setAttack

Information about DDoS attack volume and classification.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Attack` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getThreatVector

Distinguish between volumetric \& protocol DDoS attack and
application layer attacks. For example, "L3_4" for Layer 3 and Layer 4 DDoS
attacks, or "L_7" for Layer 7 DDoS attacks.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setThreatVector

Distinguish between volumetric \& protocol DDoS attack and
application layer attacks. For example, "L3_4" for Layer 3 and Layer 4 DDoS
attacks, or "L_7" for Layer 7 DDoS attacks.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDuration

Duration of attack from the start until the current moment (updated every 5
minutes).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasDuration

### clearDuration

### setDuration

Duration of attack from the start until the current moment (updated every 5
minutes).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |