Reference documentation and code samples for the Cloud Security Command Center V1 API module Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig::InclusionMode.
The mode of inclusion when running Asset Discovery.
Asset discovery can be limited by explicitly identifying projects to be
included or excluded. If INCLUDE_ONLY is set, then only those projects
within the organization and their children are discovered during asset
discovery. If EXCLUDE is set, then projects that don't match those
projects are discovered during asset discovery. If neither are set, then
all projects within the organization are discovered during asset
discovery.
Constants
INCLUSION_MODE_UNSPECIFIED
value: 0 Unspecified. Setting the mode with this value will disable
inclusion/exclusion filtering for Asset Discovery.
INCLUDE_ONLY
value: 1 Asset Discovery will capture only the resources within the projects
specified. All other resources will be ignored.
EXCLUDE
value: 2 Asset Discovery will ignore all resources under the projects specified.
All other resources will be retrieved.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Security Command Center V1 API - Module Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig::InclusionMode (v1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [1.4.1](/ruby/docs/reference/google-cloud-security_center-v1/1.4.1/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [1.3.0](/ruby/docs/reference/google-cloud-security_center-v1/1.3.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [1.2.0](/ruby/docs/reference/google-cloud-security_center-v1/1.2.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [1.1.0](/ruby/docs/reference/google-cloud-security_center-v1/1.1.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [1.0.0](/ruby/docs/reference/google-cloud-security_center-v1/1.0.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.41.0](/ruby/docs/reference/google-cloud-security_center-v1/0.41.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.40.0](/ruby/docs/reference/google-cloud-security_center-v1/0.40.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.39.0](/ruby/docs/reference/google-cloud-security_center-v1/0.39.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.38.0](/ruby/docs/reference/google-cloud-security_center-v1/0.38.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.37.0](/ruby/docs/reference/google-cloud-security_center-v1/0.37.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.36.0](/ruby/docs/reference/google-cloud-security_center-v1/0.36.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.35.0](/ruby/docs/reference/google-cloud-security_center-v1/0.35.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.34.2](/ruby/docs/reference/google-cloud-security_center-v1/0.34.2/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.33.0](/ruby/docs/reference/google-cloud-security_center-v1/0.33.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.32.0](/ruby/docs/reference/google-cloud-security_center-v1/0.32.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.31.1](/ruby/docs/reference/google-cloud-security_center-v1/0.31.1/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.30.0](/ruby/docs/reference/google-cloud-security_center-v1/0.30.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.29.1](/ruby/docs/reference/google-cloud-security_center-v1/0.29.1/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.28.0](/ruby/docs/reference/google-cloud-security_center-v1/0.28.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.27.0](/ruby/docs/reference/google-cloud-security_center-v1/0.27.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.26.0](/ruby/docs/reference/google-cloud-security_center-v1/0.26.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.25.1](/ruby/docs/reference/google-cloud-security_center-v1/0.25.1/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.24.0](/ruby/docs/reference/google-cloud-security_center-v1/0.24.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.23.0](/ruby/docs/reference/google-cloud-security_center-v1/0.23.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.22.0](/ruby/docs/reference/google-cloud-security_center-v1/0.22.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.21.0](/ruby/docs/reference/google-cloud-security_center-v1/0.21.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.20.0](/ruby/docs/reference/google-cloud-security_center-v1/0.20.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.19.0](/ruby/docs/reference/google-cloud-security_center-v1/0.19.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.18.0](/ruby/docs/reference/google-cloud-security_center-v1/0.18.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.17.0](/ruby/docs/reference/google-cloud-security_center-v1/0.17.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.16.0](/ruby/docs/reference/google-cloud-security_center-v1/0.16.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.15.0](/ruby/docs/reference/google-cloud-security_center-v1/0.15.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.14.0](/ruby/docs/reference/google-cloud-security_center-v1/0.14.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.13.0](/ruby/docs/reference/google-cloud-security_center-v1/0.13.0/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.12.1](/ruby/docs/reference/google-cloud-security_center-v1/0.12.1/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode)\n- [0.11.1](/ruby/docs/reference/google-cloud-security_center-v1/0.11.1/Google-Cloud-SecurityCenter-V1-OrganizationSettings-AssetDiscoveryConfig-InclusionMode) \nReference documentation and code samples for the Cloud Security Command Center V1 API module Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig::InclusionMode.\n\nThe mode of inclusion when running Asset Discovery.\nAsset discovery can be limited by explicitly identifying projects to be\nincluded or excluded. If INCLUDE_ONLY is set, then only those projects\nwithin the organization and their children are discovered during asset\ndiscovery. If EXCLUDE is set, then projects that don't match those\nprojects are discovered during asset discovery. If neither are set, then\nall projects within the organization are discovered during asset\ndiscovery.\n\nConstants\n---------\n\n### INCLUSION_MODE_UNSPECIFIED\n\n**value:** 0 \nUnspecified. Setting the mode with this value will disable\ninclusion/exclusion filtering for Asset Discovery.\n\n### INCLUDE_ONLY\n\n**value:** 1 \nAsset Discovery will capture only the resources within the projects\nspecified. All other resources will be ignored.\n\n### EXCLUDE\n\n**value:** 2 \nAsset Discovery will ignore all resources under the projects specified.\nAll other resources will be retrieved."]]