# Google Cloud Secure Source Manager V1 Client - Class PrivateConfig (1.8.0)

1.8.0 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.3 1.2.0 1.1.0 1.0.0 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class PrivateConfig.

PrivateConfig includes settings for private instance.

Generated from protobuf message `google.cloud.securesourcemanager.v1.Instance.PrivateConfig`

## Namespace

Google \\ Cloud \\ SecureSourceManager \\ V1 \\ Instance

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ is_private` | `bool` Required. Immutable. Indicate if it's private instance. |
| `↳ ca_pool` | `string` Optional. Immutable. CA pool resource, resource must in the format of `projects/{project}/locations/{location}/caPools/{ca_pool}`. |
| `↳ http_service_attachment` | `string` Output only. Service Attachment for HTTP, resource is in the format of `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`. |
| `↳ ssh_service_attachment` | `string` Output only. Service Attachment for SSH, resource is in the format of `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`. |
| `↳ psc_allowed_projects` | `string[]` Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list. |
| `↳ custom_host_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.Instance.PrivateConfig.CustomHostConfig` Optional. Custom host config for the instance. |

### getIsPrivate

Required. Immutable. Indicate if it's private instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIsPrivate

Required. Immutable. Indicate if it's private instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getCaPool

Optional. Immutable. CA pool resource, resource must in the format of
`projects/{project}/locations/{location}/caPools/{ca_pool}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCaPool

Optional. Immutable. CA pool resource, resource must in the format of
`projects/{project}/locations/{location}/caPools/{ca_pool}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getHttpServiceAttachment

Output only. Service Attachment for HTTP, resource is in the format of
`projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setHttpServiceAttachment

Output only. Service Attachment for HTTP, resource is in the format of
`projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getSshServiceAttachment

Output only. Service Attachment for SSH, resource is in the format of
`projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSshServiceAttachment

Output only. Service Attachment for SSH, resource is in the format of
`projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getPscAllowedProjects

Optional. Additional allowed projects for setting up PSC connections.

Instance host project is automatically allowed and does not need to be
included in this list.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setPscAllowedProjects

Optional. Additional allowed projects for setting up PSC connections.

Instance host project is automatically allowed and does not need to be
included in this list.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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

### getCustomHostConfig

Optional. Custom host config for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.Instance.PrivateConfig.CustomHostConfig|null` |   |

### hasCustomHostConfig

### clearCustomHostConfig

### setCustomHostConfig

Optional. Custom host config for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.Instance.PrivateConfig.CustomHostConfig` |

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