# Google Cloud Security Command Center V1 Client - Class OrganizationSettings (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class OrganizationSettings.

User specified settings that are attached to the Security Command
Center organization.

Generated from protobuf message `google.cloud.securitycenter.v1.OrganizationSettings`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The relative resource name of the settings. See: <https://cloud.google.com/apis/design/resource_names#relative_resource_name> Example: "organizations/{organization_id}/organizationSettings". |
| `↳ enable_asset_discovery` | `bool` A flag that indicates if Asset Discovery should be enabled. If the flag is set to `true`, then discovery of assets will occur. If it is set to `false`, all historical assets will remain, but discovery of future assets will not occur. |
| `↳ asset_discovery_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.OrganizationSettings.AssetDiscoveryConfig` The configuration used for Asset Discovery runs. |

### getName

The relative resource name of the settings. See:
<https://cloud.google.com/apis/design/resource_names#relative_resource_name>
Example:
"organizations/{organization_id}/organizationSettings".

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

### setName

The relative resource name of the settings. See:
<https://cloud.google.com/apis/design/resource_names#relative_resource_name>
Example:
"organizations/{organization_id}/organizationSettings".

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

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

### getEnableAssetDiscovery

A flag that indicates if Asset Discovery should be enabled. If the flag is
set to `true`, then discovery of assets will occur. If it is set to
`false`, all historical assets will remain, but discovery of future assets
will not occur.

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

### setEnableAssetDiscovery

A flag that indicates if Asset Discovery should be enabled. If the flag is
set to `true`, then discovery of assets will occur. If it is set to
`false`, all historical assets will remain, but discovery of future assets
will not occur.

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

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

### getAssetDiscoveryConfig

The configuration used for Asset Discovery runs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.OrganizationSettings.AssetDiscoveryConfig|null` |   |

### hasAssetDiscoveryConfig

### clearAssetDiscoveryConfig

### setAssetDiscoveryConfig

The configuration used for Asset Discovery runs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.OrganizationSettings.AssetDiscoveryConfig` |

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