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.



7933
7934
7935
# File 'lib/google/apis/container_v1beta1/classes.rb', line 7933

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



7926
7927
7928
# File 'lib/google/apis/container_v1beta1/classes.rb', line 7926

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)


7931
7932
7933
# File 'lib/google/apis/container_v1beta1/classes.rb', line 7931

def workload_vulnerability_mode
  @workload_vulnerability_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7938
7939
7940
7941
# File 'lib/google/apis/container_v1beta1/classes.rb', line 7938

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