Class: Google::Apis::DataflowV1b3::Environment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Environment

Returns a new instance of Environment



1067
1068
1069
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1067

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

Instance Attribute Details

#cluster_manager_api_serviceString

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

Returns:

  • (String)


1001
1002
1003
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1001

def cluster_manager_api_service
  @cluster_manager_api_service
end

#datasetString

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

Returns:

  • (String)


1010
1011
1012
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1010

def dataset
  @dataset
end

#experimentsArray<String>

The list of experiments to enable. Corresponds to the JSON property experiments

Returns:

  • (Array<String>)


1015
1016
1017
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1015

def experiments
  @experiments
end

#internal_experimentsHash<String,Object>

Experimental settings. Corresponds to the JSON property internalExperiments

Returns:

  • (Hash<String,Object>)


1020
1021
1022
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1020

def internal_experiments
  @internal_experiments
end

#sdk_pipeline_optionsHash<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

Returns:

  • (Hash<String,Object>)


1028
1029
1030
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1028

def sdk_pipeline_options
  @sdk_pipeline_options
end

#service_account_emailString

Identity to run virtual machines as. Defaults to the default account. Corresponds to the JSON property serviceAccountEmail

Returns:

  • (String)


1033
1034
1035
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1033

def 
  @service_account_email
end

#temp_storage_prefixString

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

Returns:

  • (String)


1048
1049
1050
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1048

def temp_storage_prefix
  @temp_storage_prefix
end

#user_agentHash<String,Object>

A description of the process that generated the request. Corresponds to the JSON property userAgent

Returns:

  • (Hash<String,Object>)


1053
1054
1055
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1053

def user_agent
  @user_agent
end

#versionHash<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

Returns:

  • (Hash<String,Object>)


1059
1060
1061
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1059

def version
  @version
end

#worker_poolsArray<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



1065
1066
1067
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1065

def worker_pools
  @worker_pools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1072

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)
  @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)
  @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)
end