Class: Google::Apis::ContainerV1beta1::ProtectConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::ProtectConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
ProtectConfig defines the flags needed to enable/disable features for the Protect API.
Instance Attribute Summary collapse
-
#workload_config ⇒ Google::Apis::ContainerV1beta1::WorkloadConfig
WorkloadConfig defines the flags to enable or disable the workload configurations for the cluster.
-
#workload_vulnerability_mode ⇒ String
Sets which mode to use for Protect workload vulnerability scanning feature.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProtectConfig
constructor
A new instance of ProtectConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProtectConfig
Returns a new instance of ProtectConfig.
6056 6057 6058 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6056 def initialize(**args) update!(**args) end |
Instance Attribute Details
#workload_config ⇒ Google::Apis::ContainerV1beta1::WorkloadConfig
WorkloadConfig defines the flags to enable or disable the workload
configurations for the cluster.
Corresponds to the JSON property workloadConfig
6049 6050 6051 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6049 def workload_config @workload_config end |
#workload_vulnerability_mode ⇒ String
Sets which mode to use for Protect workload vulnerability scanning feature.
Corresponds to the JSON property workloadVulnerabilityMode
6054 6055 6056 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6054 def workload_vulnerability_mode @workload_vulnerability_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6061 6062 6063 6064 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6061 def update!(**args) @workload_config = args[:workload_config] if args.key?(:workload_config) @workload_vulnerability_mode = args[:workload_vulnerability_mode] if args.key?(:workload_vulnerability_mode) end |