Class: Google::Apis::ComposerV1::IpAllocationPolicy
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComposerV1::IpAllocationPolicy
 
- 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
Configuration for controlling how IPs are allocated in the GKE cluster running the Apache Airflow software.
Instance Attribute Summary collapse
- 
  
    
      #cluster_ipv4_cidr_block  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #cluster_secondary_range_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #services_ipv4_cidr_block  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #services_secondary_range_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #use_ip_aliases  ⇒ Boolean 
    
    
      (also: #use_ip_aliases?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ IpAllocationPolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of IpAllocationPolicy. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ IpAllocationPolicy
Returns a new instance of IpAllocationPolicy.
| 674 675 676 | # File 'lib/google/apis/composer_v1/classes.rb', line 674 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#cluster_ipv4_cidr_block ⇒ String
Optional. The IP address range used to allocate IP addresses to pods in the
GKE cluster. For Cloud Composer environments in versions composer-1..-
airflow-..*, this field is applicable only when use_ip_aliases is true.
Set to blank to have GKE choose a range with the default size. Set to /netmask
(e.g. /14) to have GKE choose a range with a specific netmask. Set to a 
CIDR notation (
e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 
172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
Corresponds to the JSON property clusterIpv4CidrBlock
| 636 637 638 | # File 'lib/google/apis/composer_v1/classes.rb', line 636 def cluster_ipv4_cidr_block @cluster_ipv4_cidr_block end | 
#cluster_secondary_range_name ⇒ String
Optional. The name of the GKE cluster's secondary range used to allocate IP
addresses to pods. For Cloud Composer environments in versions composer-1..-
airflow-..*, this field is applicable only when use_ip_aliases is true.
Corresponds to the JSON property clusterSecondaryRangeName
| 643 644 645 | # File 'lib/google/apis/composer_v1/classes.rb', line 643 def cluster_secondary_range_name @cluster_secondary_range_name end | 
#services_ipv4_cidr_block ⇒ String
Optional. The IP address range of the services IP addresses in this GKE
cluster. For Cloud Composer environments in versions composer-1..-airflow-.
.*, this field is applicable only when use_ip_aliases is true. Set to blank
to have GKE choose a range with the default size. Set to /netmask (e.g. /14)
to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/
14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 
192.168.0.0/16) to pick a specific range to use.
Corresponds to the JSON property servicesIpv4CidrBlock
| 655 656 657 | # File 'lib/google/apis/composer_v1/classes.rb', line 655 def services_ipv4_cidr_block @services_ipv4_cidr_block end | 
#services_secondary_range_name ⇒ String
Optional. The name of the services' secondary range used to allocate IP
addresses to the GKE cluster. For Cloud Composer environments in versions
composer-1..-airflow-..*, this field is applicable only when 
use_ip_aliases is true.
Corresponds to the JSON property servicesSecondaryRangeName
| 663 664 665 | # File 'lib/google/apis/composer_v1/classes.rb', line 663 def services_secondary_range_name @services_secondary_range_name end | 
#use_ip_aliases ⇒ Boolean Also known as: use_ip_aliases?
Optional. Whether or not to enable Alias IPs in the GKE cluster. If true, a
VPC-native cluster is created. This field is only supported for Cloud Composer
environments in versions composer-1..-airflow-..*. Environments in newer
versions always use VPC-native GKE clusters.
Corresponds to the JSON property useIpAliases
| 671 672 673 | # File 'lib/google/apis/composer_v1/classes.rb', line 671 def use_ip_aliases @use_ip_aliases end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 679 680 681 682 683 684 685 | # File 'lib/google/apis/composer_v1/classes.rb', line 679 def update!(**args) @cluster_ipv4_cidr_block = args[:cluster_ipv4_cidr_block] if args.key?(:cluster_ipv4_cidr_block) @cluster_secondary_range_name = args[:cluster_secondary_range_name] if args.key?(:cluster_secondary_range_name) @services_ipv4_cidr_block = args[:services_ipv4_cidr_block] if args.key?(:services_ipv4_cidr_block) @services_secondary_range_name = args[:services_secondary_range_name] if args.key?(:services_secondary_range_name) @use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases) end |