Class DefaultGcpRegionFactory
java.lang.Object
org.apache.beam.runners.dataflow.options.DefaultGcpRegionFactory
- All Implemented Interfaces:
DefaultValueFactory<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 -
Method Summary
Modifier and TypeMethodDescriptioncreate(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory.static String
-
Constructor Details
-
DefaultGcpRegionFactory
public DefaultGcpRegionFactory()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactoryCreates a default value for a getter marked withDefault.InstanceFactory.- Specified by:
createin interfaceDefaultValueFactory<String>- Parameters:
options- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-
getRegionFromEnvironment
-