Skip to content

Commit

Permalink
add deprecation note
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Kinard <[email protected]>
  • Loading branch information
Polber committed Dec 4, 2024
1 parent f5102b4 commit 9219a49
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ protected Class<PubsubLiteReadSchemaTransformConfiguration> configurationClass()
return PubsubLiteReadSchemaTransformConfiguration.class;
}

@Override
public String description() {
return "Performs a read from Google Pub/Sub Lite.\n"
+ "\n"
+ "**Note**: This provider is deprecated. See Pub/Sub Lite <a href=\"https://cloud.google.com/pubsub/lite/docs\">documentation</a> for more information.";
}

public static class ErrorFn extends DoFn<SequencedMessage, Row> {
private final SerializableFunction<byte[], Row> valueMapper;
private final Counter errorCounter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ protected Class<PubsubLiteWriteSchemaTransformConfiguration> configurationClass(
return PubsubLiteWriteSchemaTransformConfiguration.class;
}

@Override
public String description() {
return "Performs a write to Google Pub/Sub Lite.\n"
+ "\n"
+ "**Note**: This provider is deprecated. See Pub/Sub Lite <a href=\"https://cloud.google.com/pubsub/lite/docs\">documentation</a> for more information.";
}

public static class ErrorCounterFn extends DoFn<Row, PubSubMessage> {
private final SerializableFunction<Row, byte[]> toBytesFn;
private final Counter errorCounter;
Expand Down
7 changes: 2 additions & 5 deletions sdks/python/apache_beam/yaml/generate_yaml_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,8 @@ def io_grouping_key(transform_name):
return 0, transform_name


# Deprecated providers
SKIP = {
'ReadFromPubSubLite',
'WriteToPubSubLite',
}
# Exclude providers
SKIP = {}


def transform_docs(transform_base, transforms, providers, extra_docs=''):
Expand Down

0 comments on commit 9219a49

Please sign in to comment.