Class: Google::Apis::ContainerV1beta1::WorkloadConfig

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

WorkloadConfig defines the flags to enable or disable the workload configurations for the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadConfig

Returns a new instance of WorkloadConfig.



8577
8578
8579
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8577

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audit_modeString

Sets which mode of auditing should be used for the cluster's workloads. Corresponds to the JSON property auditMode

Returns:

  • (String)


8575
8576
8577
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8575

def audit_mode
  @audit_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8582
8583
8584
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8582

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