Class: Google::Apis::DataflowV1b3::PubsubLocation
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::PubsubLocation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Identifies a pubsub location to use for transferring data into or out of a streaming Dataflow job.
Instance Attribute Summary collapse
-
#drop_late_data ⇒ Boolean
(also: #drop_late_data?)
Indicates whether the pipeline allows late-arriving data.
-
#dynamic_destinations ⇒ Boolean
(also: #dynamic_destinations?)
If true, then this location represents dynamic topics.
-
#id_label ⇒ String
If set, contains a pubsub label from which to extract record ids.
-
#subscription ⇒ String
A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions//" Corresponds to the JSON property
subscription. -
#timestamp_label ⇒ String
If set, contains a pubsub label from which to extract record timestamps.
-
#topic ⇒ String
A pubsub topic, in the form of "pubsub.googleapis.com/topics//" Corresponds to the JSON property
topic. -
#tracking_subscription ⇒ String
If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.
-
#with_attributes ⇒ Boolean
(also: #with_attributes?)
If true, then the client has requested to get pubsub attributes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubsubLocation
constructor
A new instance of PubsubLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PubsubLocation
Returns a new instance of PubsubLocation.
3751 3752 3753 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3751 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drop_late_data ⇒ Boolean Also known as: drop_late_data?
Indicates whether the pipeline allows late-arriving data.
Corresponds to the JSON property dropLateData
3708 3709 3710 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3708 def drop_late_data @drop_late_data end |
#dynamic_destinations ⇒ Boolean Also known as: dynamic_destinations?
If true, then this location represents dynamic topics.
Corresponds to the JSON property dynamicDestinations
3714 3715 3716 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3714 def dynamic_destinations @dynamic_destinations end |
#id_label ⇒ String
If set, contains a pubsub label from which to extract record ids. If left
empty, record deduplication will be strictly best effort.
Corresponds to the JSON property idLabel
3721 3722 3723 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3721 def id_label @id_label end |
#subscription ⇒ String
A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions//"
Corresponds to the JSON property subscription
3726 3727 3728 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3726 def subscription @subscription end |
#timestamp_label ⇒ String
If set, contains a pubsub label from which to extract record timestamps. If
left empty, record timestamps will be generated upon arrival.
Corresponds to the JSON property timestampLabel
3732 3733 3734 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3732 def @timestamp_label end |
#topic ⇒ String
A pubsub topic, in the form of "pubsub.googleapis.com/topics//"
Corresponds to the JSON property topic
3737 3738 3739 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3737 def topic @topic end |
#tracking_subscription ⇒ String
If set, specifies the pubsub subscription that will be used for tracking
custom time timestamps for watermark estimation.
Corresponds to the JSON property trackingSubscription
3743 3744 3745 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3743 def tracking_subscription @tracking_subscription end |
#with_attributes ⇒ Boolean Also known as: with_attributes?
If true, then the client has requested to get pubsub attributes.
Corresponds to the JSON property withAttributes
3748 3749 3750 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3748 def with_attributes @with_attributes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3756 def update!(**args) @drop_late_data = args[:drop_late_data] if args.key?(:drop_late_data) @dynamic_destinations = args[:dynamic_destinations] if args.key?(:dynamic_destinations) @id_label = args[:id_label] if args.key?(:id_label) @subscription = args[:subscription] if args.key?(:subscription) @timestamp_label = args[:timestamp_label] if args.key?(:timestamp_label) @topic = args[:topic] if args.key?(:topic) @tracking_subscription = args[:tracking_subscription] if args.key?(:tracking_subscription) @with_attributes = args[:with_attributes] if args.key?(:with_attributes) end |