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



157
158
159
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 157

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)


118
119
120
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 118

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)


127
128
129
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 127

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)


132
133
134
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 132

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



138
139
140
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 138

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)


144
145
146
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 144

def node_count
  @node_count
end

#private_environment_configGoogle::Apis::ComposerV1beta1::PrivateEnvironmentConfig

The configuration information for configuring a Private IP Cloud Composer environment. Corresponds to the JSON property privateEnvironmentConfig



150
151
152
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 150

def private_environment_config
  @private_environment_config
end

#software_configGoogle::Apis::ComposerV1beta1::SoftwareConfig

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



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

def software_config
  @software_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



162
163
164
165
166
167
168
169
170
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 162

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)
  @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
  @software_config = args[:software_config] if args.key?(:software_config)
end