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.



10977
10978
10979
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10977

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)


10975
10976
10977
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10975

def audit_mode
  @audit_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10982
10983
10984
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10982

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