# Google Cloud Network Management V1 Client - Class UpdateVpcFlowLogsConfigRequest (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Management V1 Client class UpdateVpcFlowLogsConfigRequest.

Request for the `UpdateVpcFlowLogsConfig` method.

Generated from protobuf message `google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest`

## Namespace

Google \\ Cloud \\ NetworkManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Mask of fields to update. At least one path must be supplied in this field. For example, to change the state of the configuration to ENABLED, specify `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = { name = "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = "ENABLED" }` |
| `↳ vpc_flow_logs_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.VpcFlowLogsConfig` Required. Only fields specified in update_mask are updated. |

### getUpdateMask

Required. Mask of fields to update. At least one path must be supplied in
this field.

For example, to change the state of the configuration to ENABLED, specify
`update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
`vpc_flow_logs_config = {
name =
"projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
state = "ENABLED" }`

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. Mask of fields to update. At least one path must be supplied in
this field.

For example, to change the state of the configuration to ENABLED, specify
`update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
`vpc_flow_logs_config = {
name =
"projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
state = "ENABLED" }`

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

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

### getVpcFlowLogsConfig

Required. Only fields specified in update_mask are updated.

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

### hasVpcFlowLogsConfig

### clearVpcFlowLogsConfig

### setVpcFlowLogsConfig

Required. Only fields specified in update_mask are updated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `vpcFlowLogsConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.VpcFlowLogsConfig` Required. Only fields specified in update_mask are updated. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Mask of fields to update. At least one path must be supplied in this field. For example, to change the state of the configuration to ENABLED, specify `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = { name = "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = "ENABLED" }` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.UpdateVpcFlowLogsConfigRequest` |   |