# Google Cloud Security Compliance V1 Client - Class UpdateCmEnrollmentRequest (0.4.0)

0.4.0 (latest) 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class UpdateCmEnrollmentRequest.

The request message for UpdateCmEnrollment.

Generated from protobuf message `google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest`

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cm_enrollment` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CmEnrollment` Required. The Compliance Manager enrollment to update. The `name` field is used to identify the settings that you want to update. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The list of fields that you want to update. |

### getCmEnrollment

Required. The Compliance Manager enrollment to update.

The `name` field is used to identify the settings that you want to update.

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

### hasCmEnrollment

### clearCmEnrollment

### setCmEnrollment

Required. The Compliance Manager enrollment to update.

The `name` field is used to identify the settings that you want to update.

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

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

### getUpdateMask

Optional. The list of fields that you want to update.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. The list of fields that you want to update.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `cmEnrollment` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CmEnrollment` Required. The Compliance Manager enrollment to update. The `name` field is used to identify the settings that you want to update. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The list of fields that you want to update. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.UpdateCmEnrollmentRequest` |   |