Skip to content

Commit

Permalink
Add group name for common options
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar3tto committed Jun 4, 2024
1 parent b687c01 commit 7077ee6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ interface ReadOptions extends BigtableCommonOptions {

@TemplateParameter.Text(
order = 1,
groupName = "Source",
regexes = {"[a-z][a-z0-9\\-]+[a-z0-9]"},
description = "Source Bigtable Instance ID",
helpText = "The source Bigtable instance ID.")
Expand All @@ -156,6 +157,7 @@ interface ReadOptions extends BigtableCommonOptions {

@TemplateParameter.Text(
order = 2,
groupName = "Source",
description = "Source Cloud Bigtable table ID",
helpText = "The source Bigtable table ID.")
@Validation.Required
Expand All @@ -166,6 +168,7 @@ interface ReadOptions extends BigtableCommonOptions {
@TemplateParameter.ProjectId(
order = 3,
optional = true,
groupName = "Source",
description = "Source Cloud Bigtable Project ID",
helpText = "The Bigtable project ID. The default is the project for the Dataflow job.")
@Default.String("")
Expand All @@ -192,6 +195,7 @@ interface ReadChangeStreamOptions extends BigtableCommonOptions.ReadOptions {
@TemplateParameter.Text(
order = 1,
optional = true,
groupName = "Source",
description = "Cloud Bigtable change streams metadata instance ID",
helpText = "The Bigtable change streams metadata instance ID.")
@Default.String("")
Expand All @@ -202,6 +206,7 @@ interface ReadChangeStreamOptions extends BigtableCommonOptions.ReadOptions {
@TemplateParameter.Text(
order = 2,
optional = true,
groupName = "Source",
description = "Cloud Bigtable change streams metadata table ID",
helpText =
"The ID of the Bigtable change streams connector metadata table. If not "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public interface WriteToGCSAvroOptions extends PipelineOptions {

@TemplateParameter.GcsWriteFolder(
order = 1,
groupName = "Target",
description = "Output file directory in Cloud Storage",
helpText = "The path and filename prefix for writing output files. Must end with a slash.",
example = "gs://your-bucket/your-path")
Expand All @@ -112,6 +113,7 @@ public interface WriteToGCSAvroOptions extends PipelineOptions {
@TemplateParameter.Text(
order = 2,
optional = true,
groupName = "Target",
description = "Output filename prefix of the files to write",
helpText = "The prefix to place on each windowed file.",
example = "output-")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public interface WriteToGCSParquetOptions extends PipelineOptions {

@TemplateParameter.GcsWriteFolder(
order = 1,
groupName = "Target",
description = "Output file directory in Cloud Storage",
helpText = "The path and filename prefix for writing output files. Must end with a slash.",
example = "gs://your-bucket/your-path")
Expand All @@ -102,6 +103,7 @@ public interface WriteToGCSParquetOptions extends PipelineOptions {
@TemplateParameter.Text(
order = 2,
optional = true,
groupName = "Target",
description = "Output filename prefix of the files to write",
helpText = "The prefix to place on each windowed file.",
example = "output-")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public interface WriteToGCSTextOptions extends PipelineOptions {

@TemplateParameter.GcsWriteFolder(
order = 1,
groupName = "Target",
description = "Output file directory in Cloud Storage",
helpText = "The path and filename prefix for writing output files. Must end with a slash.",
example = "gs://your-bucket/your-path")
Expand All @@ -117,6 +118,7 @@ public interface WriteToGCSTextOptions extends PipelineOptions {
@TemplateParameter.Text(
order = 2,
optional = true,
groupName = "Target",
description = "Output filename prefix of the files to write",
helpText = "The prefix to place on each windowed file.",
example = "output-")
Expand Down

0 comments on commit 7077ee6

Please sign in to comment.