Class: Google::Apis::DataflowV1b3::FlexTemplateRuntimeEnvironment

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

Overview

The environment values to be set at runtime for flex template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FlexTemplateRuntimeEnvironment

Returns a new instance of FlexTemplateRuntimeEnvironment.



1601
1602
1603
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1601

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

Instance Attribute Details

#additional_experimentsArray<String>

Additional experiment flags for the job. Corresponds to the JSON property additionalExperiments

Returns:

  • (Array<String>)


1454
1455
1456
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1454

def additional_experiments
  @additional_experiments
end

#additional_user_labelsHash<String,String>

Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the labeling restrictions page. An object containing a list of "key": value pairs. Example: "name": "wrench", "mass": " 1kg", "count": "3". Corresponds to the JSON property additionalUserLabels

Returns:

  • (Hash<String,String>)


1463
1464
1465
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1463

def additional_user_labels
  @additional_user_labels
end

#autoscaling_algorithmString

The algorithm to use for autoscaling Corresponds to the JSON property autoscalingAlgorithm

Returns:

  • (String)


1468
1469
1470
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1468

def autoscaling_algorithm
  @autoscaling_algorithm
end

#disk_size_gbFixnum

Worker disk size, in gigabytes. Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


1473
1474
1475
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1473

def disk_size_gb
  @disk_size_gb
end

#dump_heap_on_oomBoolean Also known as: dump_heap_on_oom?

If true, save a heap dump before killing a thread or process which is GC thrashing or out of memory. The location of the heap file will either be echoed back to the user, or the user will be given the opportunity to download the heap file. Corresponds to the JSON property dumpHeapOnOom

Returns:

  • (Boolean)


1481
1482
1483
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1481

def dump_heap_on_oom
  @dump_heap_on_oom
end

#enable_streaming_engineBoolean Also known as: enable_streaming_engine?

Whether to enable Streaming Engine for the job. Corresponds to the JSON property enableStreamingEngine

Returns:

  • (Boolean)


1487
1488
1489
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1487

def enable_streaming_engine
  @enable_streaming_engine
end

#flexrs_goalString

Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/ flexrs Corresponds to the JSON property flexrsGoal

Returns:

  • (String)


1494
1495
1496
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1494

def flexrs_goal
  @flexrs_goal
end

#ip_configurationString

Configuration for VM IPs. Corresponds to the JSON property ipConfiguration

Returns:

  • (String)


1499
1500
1501
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1499

def ip_configuration
  @ip_configuration
end

#kms_key_nameString

Name for the Cloud KMS key for the job. Key format is: projects//locations// keyRings//cryptoKeys/ Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


1505
1506
1507
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1505

def kms_key_name
  @kms_key_name
end

#launcher_machine_typeString

The machine type to use for launching the job. The default is n1-standard-1. Corresponds to the JSON property launcherMachineType

Returns:

  • (String)


1510
1511
1512
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1510

def launcher_machine_type
  @launcher_machine_type
end

#machine_typeString

The machine type to use for the job. Defaults to the value from the template if not specified. Corresponds to the JSON property machineType

Returns:

  • (String)


1516
1517
1518
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1516

def machine_type
  @machine_type
end

#max_workersFixnum

The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. Corresponds to the JSON property maxWorkers

Returns:

  • (Fixnum)


1522
1523
1524
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1522

def max_workers
  @max_workers
end

#networkString

Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". Corresponds to the JSON property network

Returns:

  • (String)


1528
1529
1530
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1528

def network
  @network
end

#num_workersFixnum

The initial number of Google Compute Engine instances for the job. Corresponds to the JSON property numWorkers

Returns:

  • (Fixnum)


1533
1534
1535
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1533

def num_workers
  @num_workers
end

#save_heap_dumps_to_gcs_pathString

Cloud Storage bucket (directory) to upload heap dumps to the given location. Enabling this implies that heap dumps should be generated on OOM ( dump_heap_on_oom is set to true). Corresponds to the JSON property saveHeapDumpsToGcsPath

Returns:

  • (String)


1540
1541
1542
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1540

def save_heap_dumps_to_gcs_path
  @save_heap_dumps_to_gcs_path
end

#sdk_container_imageString

Docker registry location of container image to use for the 'worker harness. Default is the container for the version of the SDK. Note this field is only valid for portable pipelines. Corresponds to the JSON property sdkContainerImage

Returns:

  • (String)


1547
1548
1549
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1547

def sdk_container_image
  @sdk_container_image
end

#service_account_emailString

The email address of the service account to run the job as. Corresponds to the JSON property serviceAccountEmail

Returns:

  • (String)


1552
1553
1554
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1552

def 
  @service_account_email
end

#staging_locationString

The Cloud Storage path for staging local files. Must be a valid Cloud Storage URL, beginning with gs://. Corresponds to the JSON property stagingLocation

Returns:

  • (String)


1558
1559
1560
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1558

def staging_location
  @staging_location
end

#subnetworkString

Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/ regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/ SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. Corresponds to the JSON property subnetwork

Returns:

  • (String)


1568
1569
1570
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1568

def subnetwork
  @subnetwork
end

#temp_locationString

The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with gs://. Corresponds to the JSON property tempLocation

Returns:

  • (String)


1574
1575
1576
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1574

def temp_location
  @temp_location
end

#worker_regionString

The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/ regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. Corresponds to the JSON property workerRegion

Returns:

  • (String)


1582
1583
1584
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1582

def worker_region
  @worker_region
end

#worker_zoneString

The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/ regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. If both worker_zone and zone are set, worker_zone takes precedence. Corresponds to the JSON property workerZone

Returns:

  • (String)


1592
1593
1594
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1592

def worker_zone
  @worker_zone
end

#zoneString

The Compute Engine availability zone for launching worker instances to run your pipeline. In the future, worker_zone will take precedence. Corresponds to the JSON property zone

Returns:

  • (String)


1599
1600
1601
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1599

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1606

def update!(**args)
  @additional_experiments = args[:additional_experiments] if args.key?(:additional_experiments)
  @additional_user_labels = args[:additional_user_labels] if args.key?(:additional_user_labels)
  @autoscaling_algorithm = args[:autoscaling_algorithm] if args.key?(:autoscaling_algorithm)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @dump_heap_on_oom = args[:dump_heap_on_oom] if args.key?(:dump_heap_on_oom)
  @enable_streaming_engine = args[:enable_streaming_engine] if args.key?(:enable_streaming_engine)
  @flexrs_goal = args[:flexrs_goal] if args.key?(:flexrs_goal)
  @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
  @launcher_machine_type = args[:launcher_machine_type] if args.key?(:launcher_machine_type)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @max_workers = args[:max_workers] if args.key?(:max_workers)
  @network = args[:network] if args.key?(:network)
  @num_workers = args[:num_workers] if args.key?(:num_workers)
  @save_heap_dumps_to_gcs_path = args[:save_heap_dumps_to_gcs_path] if args.key?(:save_heap_dumps_to_gcs_path)
  @sdk_container_image = args[:sdk_container_image] if args.key?(:sdk_container_image)
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
  @staging_location = args[:staging_location] if args.key?(:staging_location)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
  @temp_location = args[:temp_location] if args.key?(:temp_location)
  @worker_region = args[:worker_region] if args.key?(:worker_region)
  @worker_zone = args[:worker_zone] if args.key?(:worker_zone)
  @zone = args[:zone] if args.key?(:zone)
end