Class: Google::Apis::ComposerV1::WorkloadsConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComposerV1::WorkloadsConfig
 
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/composer_v1/classes.rb,
 lib/google/apis/composer_v1/representations.rb,
 lib/google/apis/composer_v1/representations.rb
Overview
The Kubernetes workloads configuration for GKE cluster associated with the Cloud Composer environment. Supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.
Instance Attribute Summary collapse
- 
  
    
      #scheduler  ⇒ Google::Apis::ComposerV1::SchedulerResource 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Configuration for resources used by Airflow schedulers. 
- 
  
    
      #web_server  ⇒ Google::Apis::ComposerV1::WebServerResource 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Configuration for resources used by Airflow web server. 
- 
  
    
      #worker  ⇒ Google::Apis::ComposerV1::WorkerResource 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Configuration for resources used by Airflow workers. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ WorkloadsConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of WorkloadsConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ WorkloadsConfig
Returns a new instance of WorkloadsConfig.
| 1570 1571 1572 | # File 'lib/google/apis/composer_v1/classes.rb', line 1570 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#scheduler ⇒ Google::Apis::ComposerV1::SchedulerResource
Configuration for resources used by Airflow schedulers.
Corresponds to the JSON property scheduler
| 1558 1559 1560 | # File 'lib/google/apis/composer_v1/classes.rb', line 1558 def scheduler @scheduler end | 
#web_server ⇒ Google::Apis::ComposerV1::WebServerResource
Configuration for resources used by Airflow web server.
Corresponds to the JSON property webServer
| 1563 1564 1565 | # File 'lib/google/apis/composer_v1/classes.rb', line 1563 def web_server @web_server end | 
#worker ⇒ Google::Apis::ComposerV1::WorkerResource
Configuration for resources used by Airflow workers.
Corresponds to the JSON property worker
| 1568 1569 1570 | # File 'lib/google/apis/composer_v1/classes.rb', line 1568 def worker @worker end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1575 1576 1577 1578 1579 | # File 'lib/google/apis/composer_v1/classes.rb', line 1575 def update!(**args) @scheduler = args[:scheduler] if args.key?(:scheduler) @web_server = args[:web_server] if args.key?(:web_server) @worker = args[:worker] if args.key?(:worker) end |