# Google Cloud Gke Hub V1 Client - Class OciConfig (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 OciConfig.

OCI repo configuration for a single cluster

Generated from protobuf message `google.cloud.gkehub.configmanagement.v1.OciConfig`

## Namespace

Google \\ Cloud \\ GkeHub \\ ConfigManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ sync_repo` | `string` The OCI image repository URL for the package to sync from. e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. |
| `↳ policy_dir` | `string` The absolute path of the directory that contains the local resources. Default: the root directory of the image. |
| `↳ sync_wait_secs` | `int|string` Period in seconds between consecutive syncs. Default: 15. |
| `↳ secret_type` | `string` Type of secret configured for access to the Git repo. |
| `↳ gcp_service_account_email` | `string` The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount. |

### getSyncRepo

The OCI image repository URL for the package to sync from.

e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.

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

### setSyncRepo

The OCI image repository URL for the package to sync from.

e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.

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

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

### getPolicyDir

The absolute path of the directory that contains
the local resources. Default: the root directory of the image.

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

### setPolicyDir

The absolute path of the directory that contains
the local resources. Default: the root directory of the image.

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

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

### getSyncWaitSecs

Period in seconds between consecutive syncs. Default: 15.

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

### setSyncWaitSecs

Period in seconds between consecutive syncs. Default: 15.

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

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

### getSecretType

Type of secret configured for access to the Git repo.

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

### setSecretType

Type of secret configured for access to the Git repo.

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

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

### getGcpServiceAccountEmail

The Google Cloud Service Account Email used for auth when secret_type is
gcpServiceAccount.

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

### setGcpServiceAccountEmail

The Google Cloud Service Account Email used for auth when secret_type is
gcpServiceAccount.

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

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