# Google Cloud Gke Hub V1 Client - Class DefaultClusterConfig (1.3.1)

1.3.1 (latest) 1.3.0 1.2.2 1.1.0 1.0.6 0.10.0 0.9.5 0.8.2 0.7.1 0.6.3 0.5.6 Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class DefaultClusterConfig.

DefaultClusterConfig describes the default cluster configurations to be
applied to all clusters born-in-fleet.

Generated from protobuf message `google.cloud.gkehub.v1.DefaultClusterConfig`

## Namespace

Google \\ Cloud \\ GkeHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ security_posture_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/V1.SecurityPostureConfig` Enable/Disable Security Posture features for the cluster. |
| `↳ binary_authorization_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/V1.BinaryAuthorizationConfig` Optional. Enable/Disable binary authorization features for the cluster. |
| `↳ compliance_posture_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/V1.CompliancePostureConfig` Optional. Enable/Disable Compliance Posture features for the cluster. Note that on UpdateFleet, only full replacement of this field is allowed. Users are not allowed for partial updates through field mask. |

### getSecurityPostureConfig

Enable/Disable Security Posture features for the cluster.

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

### hasSecurityPostureConfig

### clearSecurityPostureConfig

### setSecurityPostureConfig

Enable/Disable Security Posture features for the cluster.

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

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

### getBinaryAuthorizationConfig

Optional. Enable/Disable binary authorization features for the cluster.

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

### hasBinaryAuthorizationConfig

### clearBinaryAuthorizationConfig

### setBinaryAuthorizationConfig

Optional. Enable/Disable binary authorization features for the cluster.

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

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

### getCompliancePostureConfig

Optional. Enable/Disable Compliance Posture features for the cluster.

Note that on UpdateFleet, only full replacement of this field is allowed.
Users are not allowed for partial updates through field mask.

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

### hasCompliancePostureConfig

### clearCompliancePostureConfig

### setCompliancePostureConfig

Optional. Enable/Disable Compliance Posture features for the cluster.

Note that on UpdateFleet, only full replacement of this field is allowed.
Users are not allowed for partial updates through field mask.

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

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