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.



4307
4308
4309
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4307

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



4305
4306
4307
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4305

def workload_config
  @workload_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4312
4313
4314
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4312

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