Class: Google::Apis::DataflowV1b3::WorkerSettings

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

Provides data to pass through to the worker harness.

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) ⇒ WorkerSettings

Returns a new instance of WorkerSettings.


730
731
732
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 730

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

Instance Attribute Details

#base_urlString

The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, “Relative Uniform Resource Locators”. If not specified, the default value is “http://www.googleapis.com/” Corresponds to the JSON property baseUrl

Returns:

  • (String)

698
699
700
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 698

def base_url
  @base_url
end

#reporting_enabledBoolean Also known as: reporting_enabled?

Send work progress updates to service. Corresponds to the JSON property reportingEnabled

Returns:

  • (Boolean)

703
704
705
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 703

def reporting_enabled
  @reporting_enabled
end

#service_pathString

The Dataflow service path relative to the root URL, for example, “dataflow/ v1b3/projects”. Corresponds to the JSON property servicePath

Returns:

  • (String)

710
711
712
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 710

def service_path
  @service_path
end

#shuffle_service_pathString

The Shuffle service path relative to the root URL, for example, “shuffle/ v1beta1”. Corresponds to the JSON property shuffleServicePath

Returns:

  • (String)

716
717
718
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 716

def shuffle_service_path
  @shuffle_service_path
end

#temp_storage_prefixString

The prefix of the resources the system should use for temporary storage. 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)

728
729
730
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 728

def temp_storage_prefix
  @temp_storage_prefix
end

#worker_idString

ID of the worker running this pipeline. Corresponds to the JSON property workerId

Returns:

  • (String)

721
722
723
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 721

def worker_id
  @worker_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


735
736
737
738
739
740
741
742
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 735

def update!(**args)
  @base_url = args[:base_url] if args.key?(:base_url)
  @reporting_enabled = args[:reporting_enabled] if args.key?(:reporting_enabled)
  @service_path = args[:service_path] if args.key?(:service_path)
  @shuffle_service_path = args[:shuffle_service_path] if args.key?(:shuffle_service_path)
  @worker_id = args[:worker_id] if args.key?(:worker_id)
  @temp_storage_prefix = args[:temp_storage_prefix] if args.key?(:temp_storage_prefix)
end