Class: Google::Apis::ContainerV1beta1::ProtectConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_configGoogle::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_modeString

Sets which mode to use for Protect workload vulnerability scanning feature. Corresponds to the JSON property workloadVulnerabilityMode

Returns:

  • (String)


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