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.



11397
11398
11399
# File 'lib/google/apis/container_v1beta1/classes.rb', line 11397

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)


11388
11389
11390
# File 'lib/google/apis/container_v1beta1/classes.rb', line 11388

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)


11394
11395
11396
# File 'lib/google/apis/container_v1beta1/classes.rb', line 11394

def autopilot_compatibility_auditing_enabled
  @autopilot_compatibility_auditing_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11402
11403
11404
11405
# File 'lib/google/apis/container_v1beta1/classes.rb', line 11402

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