Class: Google::Apis::ComposerV1beta1::EnvironmentConfig

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

Overview

Configuration information for an environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EnvironmentConfig

Returns a new instance of EnvironmentConfig



154
155
156
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 154

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#airflow_uriString

Output only. The URI of the Apache Airflow Web UI hosted within this environment (see Airflow web interface) . Corresponds to the JSON property airflowUri

Returns:

  • (String)


120
121
122
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 120

def airflow_uri
  @airflow_uri
end

#dag_gcs_prefixString

Output only. 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 the given prefix. Corresponds to the JSON property dagGcsPrefix

Returns:

  • (String)


129
130
131
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 129

def dag_gcs_prefix
  @dag_gcs_prefix
end

#gke_clusterString

Output only. The Kubernetes Engine cluster used to run this environment. Corresponds to the JSON property gkeCluster

Returns:

  • (String)


135
136
137
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 135

def gke_cluster
  @gke_cluster
end

#node_configGoogle::Apis::ComposerV1beta1::NodeConfig

The configuration information for the Kubernetes Engine nodes running the Apache Airflow software. Corresponds to the JSON property nodeConfig



141
142
143
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 141

def node_config
  @node_config
end

#node_countFixnum

The number of nodes in the Kubernetes Engine cluster that will be used to run this environment. Corresponds to the JSON property nodeCount

Returns:

  • (Fixnum)


147
148
149
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 147

def node_count
  @node_count
end

#software_configGoogle::Apis::ComposerV1beta1::SoftwareConfig

Specifies the selection and configuration of software inside the environment. Corresponds to the JSON property softwareConfig



152
153
154
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 152

def software_config
  @software_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



159
160
161
162
163
164
165
166
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 159

def update!(**args)
  @airflow_uri = args[:airflow_uri] if args.key?(:airflow_uri)
  @dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix)
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
  @node_config = args[:node_config] if args.key?(:node_config)
  @node_count = args[:node_count] if args.key?(:node_count)
  @software_config = args[:software_config] if args.key?(:software_config)
end