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.



227
228
229
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 227

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)


172
173
174
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 172

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)


181
182
183
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 181

def dag_gcs_prefix
  @dag_gcs_prefix
end

#database_configGoogle::Apis::ComposerV1beta1::DatabaseConfig

The configuration of Cloud SQL instance that is used by the Apache Airflow software. Corresponds to the JSON property databaseConfig



187
188
189
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 187

def database_config
  @database_config
end

#gke_clusterString

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

Returns:

  • (String)


192
193
194
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 192

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



198
199
200
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 198

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)


204
205
206
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 204

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



210
211
212
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 210

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



215
216
217
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 215

def software_config
  @software_config
end

#web_server_configGoogle::Apis::ComposerV1beta1::WebServerConfig

The configuration settings for the Airflow web server App Engine instance. Corresponds to the JSON property webServerConfig



220
221
222
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 220

def web_server_config
  @web_server_config
end

#web_server_network_access_controlGoogle::Apis::ComposerV1beta1::WebServerNetworkAccessControl

Network-level access control policy for the Airflow web server. Corresponds to the JSON property webServerNetworkAccessControl



225
226
227
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 225

def web_server_network_access_control
  @web_server_network_access_control
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



232
233
234
235
236
237
238
239
240
241
242
243
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 232

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