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

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

Overview

Configuration information for an environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnvironmentConfig

Returns a new instance of EnvironmentConfig.



431
432
433
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 431

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)


336
337
338
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 336

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)


344
345
346
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 344

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



350
351
352
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 350

def database_config
  @database_config
end

#encryption_configGoogle::Apis::ComposerV1beta1::EncryptionConfig

The encryption options for the Cloud Composer environment and its dependencies. Supported for Cloud Composer environments in versions composer-1..-airflow-* ... Corresponds to the JSON property encryptionConfig



357
358
359
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 357

def encryption_config
  @encryption_config
end

#environment_sizeString

Optional. The size of the Cloud Composer environment. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer. Corresponds to the JSON property environmentSize

Returns:

  • (String)


364
365
366
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 364

def environment_size
  @environment_size
end

#gke_clusterString

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

Returns:

  • (String)


369
370
371
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 369

def gke_cluster
  @gke_cluster
end

#maintenance_windowGoogle::Apis::ComposerV1beta1::MaintenanceWindow

The configuration settings for Cloud Composer maintenance window. The following example: ` "startTime":"2019-08-01T01:00:00Z" "endTime":"2019-08- 01T07:00:00Z" "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE" ` would define a maintenance window between 01 and 07 hours UTC during each Tuesday and Wednesday. Corresponds to the JSON property maintenanceWindow



378
379
380
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 378

def maintenance_window
  @maintenance_window
end

#master_authorized_networks_configGoogle::Apis::ComposerV1beta1::MasterAuthorizedNetworksConfig

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. Corresponds to the JSON property masterAuthorizedNetworksConfig



386
387
388
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 386

def master_authorized_networks_config
  @master_authorized_networks_config
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



392
393
394
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 392

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. This field is supported for Cloud Composer environments in versions composer-1..-airflow-..*. Corresponds to the JSON property nodeCount

Returns:

  • (Fixnum)


399
400
401
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 399

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



405
406
407
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 405

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



410
411
412
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 410

def software_config
  @software_config
end

#web_server_configGoogle::Apis::ComposerV1beta1::WebServerConfig

The configuration settings for the Airflow web server App Engine instance. Supported for Cloud Composer environments in versions composer-1..-airflow-. *.. Corresponds to the JSON property webServerConfig



417
418
419
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 417

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



422
423
424
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 422

def web_server_network_access_control
  @web_server_network_access_control
end

#workloads_configGoogle::Apis::ComposerV1beta1::WorkloadsConfig

The Kubernetes workloads configuration for GKE cluster associated with the Cloud Composer environment. Supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer. Corresponds to the JSON property workloadsConfig



429
430
431
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 429

def workloads_config
  @workloads_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 436

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)
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
  @environment_size = args[:environment_size] if args.key?(:environment_size)
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
  @master_authorized_networks_config = args[:master_authorized_networks_config] if args.key?(:master_authorized_networks_config)
  @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)
  @workloads_config = args[:workloads_config] if args.key?(:workloads_config)
end