Class: Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

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

Overview

Resource capturing the settings for the Container Threat Detection service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContainerThreatDetectionSettings

Returns a new instance of ContainerThreatDetectionSettings.



1138
1139
1140
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1138

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

Instance Attribute Details

#modulesHash<String,Google::Apis::SecuritycenterV1beta2::Config>

The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's configuration. Corresponds to the JSON property modules



1109
1110
1111
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1109

def modules
  @modules
end

#nameString

Identifier. The resource name of the ContainerThreatDetectionSettings. Formats:

  • organizations/organization/containerThreatDetectionSettings * folders/ folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings Corresponds to the JSON property name

Returns:

  • (String)


1118
1119
1120
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1118

def name
  @name
end

#service_accountString

Output only. The service account used by Container Threat Detection for scanning. Service accounts are scoped at the project level meaning this field will be empty at any level above a project. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1125
1126
1127
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1125

def 
  @service_account
end

#service_enablement_stateString

The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED. Corresponds to the JSON property serviceEnablementState

Returns:

  • (String)


1131
1132
1133
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1131

def service_enablement_state
  @service_enablement_state
end

#update_timeString

Output only. The time the settings were last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1136
1137
1138
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1136

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1143
1144
1145
1146
1147
1148
1149
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1143

def update!(**args)
  @modules = args[:modules] if args.key?(:modules)
  @name = args[:name] if args.key?(:name)
  @service_account = args[:service_account] if args.key?(:service_account)
  @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state)
  @update_time = args[:update_time] if args.key?(:update_time)
end