Class: Google::Apis::ContainerV1beta1::WorkloadPolicyConfig

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

WorkloadPolicyConfig is the configuration related to GCW workload policy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadPolicyConfig

Returns a new instance of WorkloadPolicyConfig.



12120
12121
12122
# File 'lib/google/apis/container_v1beta1/classes.rb', line 12120

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

Instance Attribute Details

#allow_net_adminBoolean Also known as: allow_net_admin?

If true, workloads can use NET_ADMIN capability. Corresponds to the JSON property allowNetAdmin

Returns:

  • (Boolean)


12111
12112
12113
# File 'lib/google/apis/container_v1beta1/classes.rb', line 12111

def allow_net_admin
  @allow_net_admin
end

#autopilot_compatibility_auditing_enabledBoolean Also known as: autopilot_compatibility_auditing_enabled?

If true, enables the GCW Auditor that audits workloads on standard clusters. Corresponds to the JSON property autopilotCompatibilityAuditingEnabled

Returns:

  • (Boolean)


12117
12118
12119
# File 'lib/google/apis/container_v1beta1/classes.rb', line 12117

def autopilot_compatibility_auditing_enabled
  @autopilot_compatibility_auditing_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12125
12126
12127
12128
# File 'lib/google/apis/container_v1beta1/classes.rb', line 12125

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