Class: Google::Apis::SecuritycenterV1beta1::OrganizationSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/securitycenter_v1beta1/classes.rb,
generated/google/apis/securitycenter_v1beta1/representations.rb,
generated/google/apis/securitycenter_v1beta1/representations.rb

Overview

User specified settings that are attached to the Cloud Security Command Center (Cloud SCC) organization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrganizationSettings

Returns a new instance of OrganizationSettings.



1510
1511
1512
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1510

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#asset_discovery_configGoogle::Apis::SecuritycenterV1beta1::AssetDiscoveryConfig

The configuration used for Asset Discovery runs. Corresponds to the JSON property assetDiscoveryConfig



1491
1492
1493
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1491

def asset_discovery_config
  @asset_discovery_config
end

#enable_asset_discoveryBoolean 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 propertyenableAssetDiscovery`

Returns:

  • (Boolean)


1499
1500
1501
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1499

def enable_asset_discovery
  @enable_asset_discovery
end

#nameString

The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/organization_id/organizationSettings". Corresponds to the JSON property name

Returns:

  • (String)


1508
1509
1510
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1508

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1515
1516
1517
1518
1519
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1515

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