Class EnvironmentConfig


  • public final class EnvironmentConfig
    extends java.lang.Object
    • Method Detail

      • airflowUri

        public java.util.Optional<java.lang.String> airflowUri()
        Returns:
        The URI of the Apache Airflow Web UI hosted within this environment.
      • dagGcsPrefix

        public java.util.Optional<java.lang.String> dagGcsPrefix()
        Returns:
        The Cloud Storage prefix of the DAGs for this environment. Although Cloud Storage objects reside in a flat namespace, a hierarchical file tree can be simulated using '/'-delimited object name prefixes. DAG objects for this environment reside in a simulated directory with this prefix.
      • dataRetentionConfig

        public java.util.Optional<EnvironmentConfigDataRetentionConfig> dataRetentionConfig()
        Returns:
        The configuration setting for Airflow data retention mechanism. This field is supported for Cloud Composer environments in versions composer-2.0.32-airflow-2.1.4. or newer
      • databaseConfig

        public java.util.Optional<EnvironmentConfigDatabaseConfig> databaseConfig()
        Returns:
        The configuration of Cloud SQL instance that is used by the Apache Airflow software. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
      • enablePrivateBuildsOnly

        public java.util.Optional<java.lang.Boolean> enablePrivateBuildsOnly()
        Returns:
        Optional. If true, builds performed during operations that install Python packages have only private connectivity to Google services. If false, the builds also have access to the internet.
      • enablePrivateEnvironment

        public java.util.Optional<java.lang.Boolean> enablePrivateEnvironment()
        Returns:
        Optional. If true, a private Composer environment will be created.
      • encryptionConfig

        public java.util.Optional<EnvironmentConfigEncryptionConfig> encryptionConfig()
        Returns:
        The encryption options for the Composer environment and its dependencies.
      • environmentSize

        public java.util.Optional<java.lang.String> environmentSize()
        Returns:
        The size of the Cloud Composer environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.
      • gkeCluster

        public java.util.Optional<java.lang.String> gkeCluster()
        Returns:
        The Kubernetes Engine cluster used to run this environment.
      • masterAuthorizedNetworksConfig

        public java.util.Optional<EnvironmentConfigMasterAuthorizedNetworksConfig> masterAuthorizedNetworksConfig()
        Returns:
        Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs.
      • nodeConfig

        public java.util.Optional<EnvironmentConfigNodeConfig> nodeConfig()
        Returns:
        The configuration used for the Kubernetes Engine cluster.
      • nodeCount

        public java.util.Optional<java.lang.Integer> nodeCount()
        Returns:
        The number of nodes in the Kubernetes Engine cluster that will be used to run this environment. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
      • recoveryConfig

        public java.util.Optional<EnvironmentConfigRecoveryConfig> recoveryConfig()
        Returns:
        The recovery configuration settings for the Cloud Composer environment
      • resilienceMode

        public java.util.Optional<java.lang.String> resilienceMode()
        Returns:
        Whether high resilience is enabled or not. This field is supported for Cloud Composer environments in versions composer-2.1.15-airflow-*.*.* and newer.
      • softwareConfig

        public java.util.Optional<EnvironmentConfigSoftwareConfig> softwareConfig()
        Returns:
        The configuration settings for software inside the environment.
      • webServerConfig

        public java.util.Optional<EnvironmentConfigWebServerConfig> webServerConfig()
        Returns:
        The configuration settings for the Airflow web server App Engine instance. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
      • workloadsConfig

        public java.util.Optional<EnvironmentConfigWorkloadsConfig> workloadsConfig()
        Returns:
        The workloads configuration settings for the GKE cluster associated with the Cloud Composer environment. Supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.