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.



11205
11206
11207
# File 'lib/google/apis/container_v1beta1/classes.rb', line 11205

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)


11196
11197
11198
# File 'lib/google/apis/container_v1beta1/classes.rb', line 11196

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)


11202
11203
11204
# File 'lib/google/apis/container_v1beta1/classes.rb', line 11202

def autopilot_compatibility_auditing_enabled
  @autopilot_compatibility_auditing_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11210
11211
11212
11213
# File 'lib/google/apis/container_v1beta1/classes.rb', line 11210

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