Class DefaultGcpRegionFactory
- java.lang.Object
-
- org.apache.beam.runners.dataflow.options.DefaultGcpRegionFactory
-
- All Implemented Interfaces:
org.apache.beam.sdk.options.DefaultValueFactory<java.lang.String>
public class DefaultGcpRegionFactory extends java.lang.Object implements org.apache.beam.sdk.options.DefaultValueFactory<java.lang.String>Factory for a default value for Google Cloud region according to https://cloud.google.com/compute/docs/gcloud-compute/#default-properties. If no other default can be found, returns the empty string.
-
-
Constructor Summary
Constructors Constructor Description DefaultGcpRegionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcreate(org.apache.beam.sdk.options.PipelineOptions options)static java.lang.StringgetRegionFromEnvironment()
-