Class: Google::Apis::ContainerV1::WorkloadPolicyConfig
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContainerV1::WorkloadPolicyConfig
 
 
- 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
- 
  
    
      #allow_net_admin  ⇒ Boolean 
    
    
      (also: #allow_net_admin?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
If true, workloads can use NET_ADMIN capability.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ WorkloadPolicyConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of WorkloadPolicyConfig.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ WorkloadPolicyConfig
Returns a new instance of WorkloadPolicyConfig.
      7767 7768 7769  | 
    
      # File 'lib/google/apis/container_v1/classes.rb', line 7767 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#allow_net_admin ⇒ Boolean Also known as: allow_net_admin?
If true, workloads can use NET_ADMIN capability.
Corresponds to the JSON property allowNetAdmin
      7764 7765 7766  | 
    
      # File 'lib/google/apis/container_v1/classes.rb', line 7764 def allow_net_admin @allow_net_admin end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      7772 7773 7774  | 
    
      # File 'lib/google/apis/container_v1/classes.rb', line 7772 def update!(**args) @allow_net_admin = args[:allow_net_admin] if args.key?(:allow_net_admin) end  |