# Cloud Security Compliance V1 API - Class Google::Cloud::CloudSecurityCompliance::V1::CloudControl (v0.5.0)

0.5.0 (latest) 0.4.1 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Cloud Security Compliance V1 API class Google::Cloud::CloudSecurityCompliance::V1::CloudControl.

A cloud control is a set of rules and associated metadata that you can
use to define your organization's security or compliance intent.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #categories

    def categories() -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::CloudControlCategory>

**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::CloudControlCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-CloudControlCategory)\>) --- Optional. The categories for the cloud control.

### #categories=

    def categories=(value) -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::CloudControlCategory>

**Parameter**

- **value** (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::CloudControlCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-CloudControlCategory)\>) --- Optional. The categories for the cloud control.
**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::CloudControlCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-CloudControlCategory)\>) --- Optional. The categories for the cloud control.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time that the cloud control was last updated. `create_time` is used because a new cloud control is created whenever an existing cloud control is updated.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. A description of the cloud control. The maximum length is 2000 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A description of the cloud control. The maximum length is 2000 characters.
**Returns**

- (::String) --- Optional. A description of the cloud control. The maximum length is 2000 characters.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Optional. The friendly name of the cloud control. The maximum length is 200 characters.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The friendly name of the cloud control. The maximum length is 200 characters.
**Returns**

- (::String) --- Optional. The friendly name of the cloud control. The maximum length is 200 characters.

### #finding_category

    def finding_category() -> ::String

**Returns**

- (::String) --- Optional. The finding category for the cloud control findings. The maximum length is 255 characters.

### #finding_category=

    def finding_category=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The finding category for the cloud control findings. The maximum length is 255 characters.
**Returns**

- (::String) --- Optional. The finding category for the cloud control findings. The maximum length is 255 characters.

### #major_revision_id

    def major_revision_id() -> ::Integer

**Returns**

- (::Integer) --- Output only. The major version of the cloud control, which is incremented in ascending order.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. Identifier. The name of the cloud control, in either of the formats: `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` or `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.


  The only supported location is `global`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Identifier. The name of the cloud control, in either of the formats: `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` or `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.


  The only supported location is `global`.
**Returns**

- (::String) --- Required. Identifier. The name of the cloud control, in either of the formats: `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` or `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.


  The only supported location is `global`.

### #parameter_spec

    def parameter_spec() -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::ParameterSpec>

**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::ParameterSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-ParameterSpec)\>) --- Optional. The parameter specifications for the cloud control.

### #parameter_spec=

    def parameter_spec=(value) -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::ParameterSpec>

**Parameter**

- **value** (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::ParameterSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-ParameterSpec)\>) --- Optional. The parameter specifications for the cloud control.
**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::ParameterSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-ParameterSpec)\>) --- Optional. The parameter specifications for the cloud control.

### #related_frameworks

    def related_frameworks() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. The frameworks that include this cloud control.

### #remediation_steps

    def remediation_steps() -> ::String

**Returns**

- (::String) --- Optional. The remediation steps for the cloud control findings. The maximum length is 400 characters.

### #remediation_steps=

    def remediation_steps=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The remediation steps for the cloud control findings. The maximum length is 400 characters.
**Returns**

- (::String) --- Optional. The remediation steps for the cloud control findings. The maximum length is 400 characters.

### #rules

    def rules() -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::Rule>

**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-Rule)\>) --- Optional. The rules that you can enforce to meet your security or compliance intent.

### #rules=

    def rules=(value) -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::Rule>

**Parameter**

- **value** (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-Rule)\>) --- Optional. The rules that you can enforce to meet your security or compliance intent.
**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-Rule)\>) --- Optional. The rules that you can enforce to meet your security or compliance intent.

### #severity

    def severity() -> ::Google::Cloud::CloudSecurityCompliance::V1::Severity

**Returns**

- ([::Google::Cloud::CloudSecurityCompliance::V1::Severity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-Severity)) --- Optional. The severity of the findings that are generated by the cloud control.

### #severity=

    def severity=(value) -> ::Google::Cloud::CloudSecurityCompliance::V1::Severity

**Parameter**

- **value** ([::Google::Cloud::CloudSecurityCompliance::V1::Severity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-Severity)) --- Optional. The severity of the findings that are generated by the cloud control.
**Returns**

- ([::Google::Cloud::CloudSecurityCompliance::V1::Severity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-Severity)) --- Optional. The severity of the findings that are generated by the cloud control.

### #supported_cloud_providers

    def supported_cloud_providers() -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::CloudProvider>

**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::CloudProvider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-CloudProvider)\>) --- Optional. The supported cloud providers.

### #supported_cloud_providers=

    def supported_cloud_providers=(value) -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::CloudProvider>

**Parameter**

- **value** (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::CloudProvider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-CloudProvider)\>) --- Optional. The supported cloud providers.
**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::CloudProvider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-CloudProvider)\>) --- Optional. The supported cloud providers.

### #supported_enforcement_modes

    def supported_enforcement_modes() -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::EnforcementMode>

**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::EnforcementMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-EnforcementMode)\>) --- Output only. The supported enforcement modes for the cloud control.

### #supported_target_resource_types

    def supported_target_resource_types() -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceType>

**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-TargetResourceType)\>) --- Optional. The target resource types that are supported by the cloud control.

### #supported_target_resource_types=

    def supported_target_resource_types=(value) -> ::Array<::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-TargetResourceType)\>) --- Optional. The target resource types that are supported by the cloud control.
**Returns**

- (::Array\<[::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_security_compliance-v1/latest/Google-Cloud-CloudSecurityCompliance-V1-TargetResourceType)\>) --- Optional. The target resource types that are supported by the cloud control.