Class: Google::Apis::SecuritycenterV1::OrganizationSettings
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::OrganizationSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/securitycenter_v1/classes.rb,
generated/google/apis/securitycenter_v1/representations.rb,
generated/google/apis/securitycenter_v1/representations.rb
Overview
User specified settings that are attached to the Cloud Security Command Center (Cloud SCC) organization.
Instance Attribute Summary collapse
-
#asset_discovery_config ⇒ Google::Apis::SecuritycenterV1::AssetDiscoveryConfig
The configuration used for Asset Discovery runs.
-
#enable_asset_discovery ⇒ Boolean
(also: #enable_asset_discovery?)
A flag that indicates if Asset Discovery should be enabled.
-
#name ⇒ String
The relative resource name of the settings.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrganizationSettings
constructor
A new instance of OrganizationSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrganizationSettings
Returns a new instance of OrganizationSettings
1188 1189 1190 |
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 1188 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_discovery_config ⇒ Google::Apis::SecuritycenterV1::AssetDiscoveryConfig
The configuration used for Asset Discovery runs.
Corresponds to the JSON property assetDiscoveryConfig
1169 1170 1171 |
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 1169 def asset_discovery_config @asset_discovery_config end |
#enable_asset_discovery ⇒ Boolean Also known as: enable_asset_discovery?
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.
Corresponds to the JSON property
enableAssetDiscovery`
1177 1178 1179 |
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 1177 def enable_asset_discovery @enable_asset_discovery end |
#name ⇒ String
The relative resource name of the settings. See:
https://cloud.google.com/apis/design/resource_names#relative_resource_name
Example:
"organizations/123/organizationSettings".
Corresponds to the JSON property name
1186 1187 1188 |
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 1186 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1193 1194 1195 1196 1197 |
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 1193 def update!(**args) @asset_discovery_config = args[:asset_discovery_config] if args.key?(:asset_discovery_config) @enable_asset_discovery = args[:enable_asset_discovery] if args.key?(:enable_asset_discovery) @name = args[:name] if args.key?(:name) end |