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.



4506
4507
4508
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4506

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



4504
4505
4506
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4504

def workload_config
  @workload_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4511
4512
4513
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4511

def update!(**args)
  @workload_config = args[:workload_config] if args.key?(:workload_config)
end