Class: Google::Apis::DataflowV1b3::Environment
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::Environment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb
Overview
Describes the environment in which a Dataflow Job runs.
Instance Attribute Summary collapse
-
#cluster_manager_api_service ⇒ String
The type of cluster manager API to use.
-
#dataset ⇒ String
The dataset for the current project where various workflow related tables are stored.
-
#experiments ⇒ Array<String>
The list of experiments to enable.
-
#flex_resource_scheduling_goal ⇒ String
Which Flexible Resource Scheduling mode to run in.
-
#internal_experiments ⇒ Hash<String,Object>
Experimental settings.
-
#sdk_pipeline_options ⇒ Hash<String,Object>
The Cloud Dataflow SDK pipeline options specified by the user.
-
#service_account_email ⇒ String
Identity to run virtual machines as.
-
#service_kms_key_name ⇒ String
If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK).
-
#temp_storage_prefix ⇒ String
The prefix of the resources the system should use for temporary storage.
-
#user_agent ⇒ Hash<String,Object>
A description of the process that generated the request.
-
#version ⇒ Hash<String,Object>
A structure describing which components and their versions of the service are required in order to run the job.
-
#worker_pools ⇒ Array<Google::Apis::DataflowV1b3::WorkerPool>
The worker pools.
-
#worker_region ⇒ String
The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g.
-
#worker_zone ⇒ String
The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Environment
constructor
A new instance of Environment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Environment
Returns a new instance of Environment.
1238 1239 1240 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1238 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_manager_api_service ⇒ String
The type of cluster manager API to use. If unknown or
unspecified, the service will attempt to choose a reasonable
default. This should be in the form of the API service name,
e.g. "compute.googleapis.com".
Corresponds to the JSON property clusterManagerApiService
1141 1142 1143 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1141 def cluster_manager_api_service @cluster_manager_api_service end |
#dataset ⇒ String
The dataset for the current project where various workflow
related tables are stored.
The supported resource type is:
Google BigQuery:
bigquery.googleapis.com/dataset
Corresponds to the JSON property dataset
1150 1151 1152 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1150 def dataset @dataset end |
#experiments ⇒ Array<String>
The list of experiments to enable.
Corresponds to the JSON property experiments
1155 1156 1157 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1155 def experiments @experiments end |
#flex_resource_scheduling_goal ⇒ String
Which Flexible Resource Scheduling mode to run in.
Corresponds to the JSON property flexResourceSchedulingGoal
1160 1161 1162 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1160 def flex_resource_scheduling_goal @flex_resource_scheduling_goal end |
#internal_experiments ⇒ Hash<String,Object>
Experimental settings.
Corresponds to the JSON property internalExperiments
1165 1166 1167 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1165 def internal_experiments @internal_experiments end |
#sdk_pipeline_options ⇒ Hash<String,Object>
The Cloud Dataflow SDK pipeline options specified by the user. These
options are passed through the service and are used to recreate the
SDK pipeline options on the worker in a language agnostic and platform
independent way.
Corresponds to the JSON property sdkPipelineOptions
1173 1174 1175 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1173 def @sdk_pipeline_options end |
#service_account_email ⇒ String
Identity to run virtual machines as. Defaults to the default account.
Corresponds to the JSON property serviceAccountEmail
1178 1179 1180 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1178 def service_account_email @service_account_email end |
#service_kms_key_name ⇒ String
If set, contains the Cloud KMS key identifier used to encrypt data
at rest, AKA a Customer Managed Encryption Key (CMEK).
Format:
projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
Corresponds to the JSON property serviceKmsKeyName
1186 1187 1188 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1186 def service_kms_key_name @service_kms_key_name end |
#temp_storage_prefix ⇒ String
The prefix of the resources the system should use for temporary
storage. The system will append the suffix "/temp-JOBNAME
to
this resource prefix, where JOBNAME
is the value of the
job_name field. The resulting bucket and object prefix is used
as the prefix of the resources used to store temporary data
needed during the job execution. NOTE: This will override the
value in taskrunner_settings.
The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/bucket
/object
bucket.storage.googleapis.com/object
Corresponds to the JSON property tempStoragePrefix
1201 1202 1203 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1201 def temp_storage_prefix @temp_storage_prefix end |
#user_agent ⇒ Hash<String,Object>
A description of the process that generated the request.
Corresponds to the JSON property userAgent
1206 1207 1208 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1206 def user_agent @user_agent end |
#version ⇒ Hash<String,Object>
A structure describing which components and their versions of the service
are required in order to run the job.
Corresponds to the JSON property version
1212 1213 1214 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1212 def version @version end |
#worker_pools ⇒ Array<Google::Apis::DataflowV1b3::WorkerPool>
The worker pools. At least one "harness" worker pool must be
specified in order for the job to have workers.
Corresponds to the JSON property workerPools
1218 1219 1220 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1218 def worker_pools @worker_pools end |
#worker_region ⇒ String
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
1227 1228 1229 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1227 def worker_region @worker_region end |
#worker_zone ⇒ String
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.
Corresponds to the JSON property workerZone
1236 1237 1238 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1236 def worker_zone @worker_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1243 def update!(**args) @cluster_manager_api_service = args[:cluster_manager_api_service] if args.key?(:cluster_manager_api_service) @dataset = args[:dataset] if args.key?(:dataset) @experiments = args[:experiments] if args.key?(:experiments) @flex_resource_scheduling_goal = args[:flex_resource_scheduling_goal] if args.key?(:flex_resource_scheduling_goal) @internal_experiments = args[:internal_experiments] if args.key?(:internal_experiments) @sdk_pipeline_options = args[:sdk_pipeline_options] if args.key?(:sdk_pipeline_options) @service_account_email = args[:service_account_email] if args.key?(:service_account_email) @service_kms_key_name = args[:service_kms_key_name] if args.key?(:service_kms_key_name) @temp_storage_prefix = args[:temp_storage_prefix] if args.key?(:temp_storage_prefix) @user_agent = args[:user_agent] if args.key?(:user_agent) @version = args[:version] if args.key?(:version) @worker_pools = args[:worker_pools] if args.key?(:worker_pools) @worker_region = args[:worker_region] if args.key?(:worker_region) @worker_zone = args[:worker_zone] if args.key?(:worker_zone) end |