Class: Google::Apis::ContainerV1::WorkloadPolicyConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

WorkloadPolicyConfig is the configuration of workload policy for autopilot clusters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadPolicyConfig

Returns a new instance of WorkloadPolicyConfig.



8225
8226
8227
# File 'lib/google/apis/container_v1/classes.rb', line 8225

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)


8222
8223
8224
# File 'lib/google/apis/container_v1/classes.rb', line 8222

def allow_net_admin
  @allow_net_admin
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8230
8231
8232
# File 'lib/google/apis/container_v1/classes.rb', line 8230

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