# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::CloudArmor (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::CloudArmor.

Fields related to Google Cloud Armor findings.

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #adaptive_protection

    def adaptive_protection() -> ::Google::Cloud::SecurityCenter::V2::AdaptiveProtection

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::AdaptiveProtection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AdaptiveProtection)) --- Information about potential Layer 7 DDoS attacks identified by [Google
  Cloud Armor Adaptive
  Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).

### #adaptive_protection=

    def adaptive_protection=(value) -> ::Google::Cloud::SecurityCenter::V2::AdaptiveProtection

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::AdaptiveProtection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AdaptiveProtection)) --- Information about potential Layer 7 DDoS attacks identified by [Google
  Cloud Armor Adaptive
  Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::AdaptiveProtection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-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

    def attack() -> ::Google::Cloud::SecurityCenter::V2::Attack

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::Attack](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Attack)) --- Information about DDoS attack volume and classification.

### #attack=

    def attack=(value) -> ::Google::Cloud::SecurityCenter::V2::Attack

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::Attack](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Attack)) --- Information about DDoS attack volume and classification.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::Attack](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Attack)) --- Information about DDoS attack volume and classification.

### #duration

    def duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Duration)) --- Duration of attack from the start until the current moment (updated every 5 minutes).

### #duration=

    def duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Duration)) --- Duration of attack from the start until the current moment (updated every 5 minutes).
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Duration)) --- Duration of attack from the start until the current moment (updated every 5 minutes).

### #requests

    def requests() -> ::Google::Cloud::SecurityCenter::V2::Requests

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::Requests](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Requests)) --- Information about incoming requests evaluated by [Google Cloud Armor
  security
  policies](https://cloud.google.com/armor/docs/security-policy-overview).

### #requests=

    def requests=(value) -> ::Google::Cloud::SecurityCenter::V2::Requests

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::Requests](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Requests)) --- Information about incoming requests evaluated by [Google Cloud Armor
  security
  policies](https://cloud.google.com/armor/docs/security-policy-overview).
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::Requests](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Requests)) --- Information about incoming requests evaluated by [Google Cloud Armor
  security
  policies](https://cloud.google.com/armor/docs/security-policy-overview).

### #security_policy

    def security_policy() -> ::Google::Cloud::SecurityCenter::V2::SecurityPolicy

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::SecurityPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-SecurityPolicy)) --- Information about the [Google Cloud Armor security
  policy](https://cloud.google.com/armor/docs/security-policy-overview) relevant to the finding.

### #security_policy=

    def security_policy=(value) -> ::Google::Cloud::SecurityCenter::V2::SecurityPolicy

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::SecurityPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-SecurityPolicy)) --- Information about the [Google Cloud Armor security
  policy](https://cloud.google.com/armor/docs/security-policy-overview) relevant to the finding.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::SecurityPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-SecurityPolicy)) --- Information about the [Google Cloud Armor security
  policy](https://cloud.google.com/armor/docs/security-policy-overview) relevant to the finding.

### #threat_vector

    def threat_vector() -> ::String

**Returns**

- (::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.

### #threat_vector=

    def threat_vector=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.