Class: Google::Apis::DatastreamV1::Stream
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::Stream
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
A resource representing streaming data from a source to a destination.
Instance Attribute Summary collapse
-
#backfill_all ⇒ Google::Apis::DatastreamV1::BackfillAllStrategy
Backfill strategy to automatically backfill the Stream's objects.
-
#backfill_none ⇒ Google::Apis::DatastreamV1::BackfillNoneStrategy
Backfill strategy to disable automatic backfill for the Stream's objects.
-
#create_time ⇒ String
Output only.
-
#customer_managed_encryption_key ⇒ String
Immutable.
-
#destination_config ⇒ Google::Apis::DatastreamV1::DestinationConfig
The configuration of the stream destination.
-
#display_name ⇒ String
Required.
-
#errors ⇒ Array<Google::Apis::DatastreamV1::Error>
Output only.
-
#labels ⇒ Hash<String,String>
Labels.
-
#last_recovery_time ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#source_config ⇒ Google::Apis::DatastreamV1::SourceConfig
The configuration of the stream source.
-
#state ⇒ String
The state of the stream.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Stream
constructor
A new instance of Stream.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Stream
Returns a new instance of Stream.
2772 2773 2774 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2772 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backfill_all ⇒ Google::Apis::DatastreamV1::BackfillAllStrategy
Backfill strategy to automatically backfill the Stream's objects. Specific
objects can be excluded.
Corresponds to the JSON property backfillAll
2707 2708 2709 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2707 def backfill_all @backfill_all end |
#backfill_none ⇒ Google::Apis::DatastreamV1::BackfillNoneStrategy
Backfill strategy to disable automatic backfill for the Stream's objects.
Corresponds to the JSON property backfillNone
2712 2713 2714 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2712 def backfill_none @backfill_none end |
#create_time ⇒ String
Output only. The creation time of the stream.
Corresponds to the JSON property createTime
2717 2718 2719 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2717 def create_time @create_time end |
#customer_managed_encryption_key ⇒ String
Immutable. A reference to a KMS encryption key. If provided, it will be used
to encrypt the data. If left blank, data will be encrypted using an internal
Stream-specific encryption key provisioned through KMS.
Corresponds to the JSON property customerManagedEncryptionKey
2724 2725 2726 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2724 def customer_managed_encryption_key @customer_managed_encryption_key end |
#destination_config ⇒ Google::Apis::DatastreamV1::DestinationConfig
The configuration of the stream destination.
Corresponds to the JSON property destinationConfig
2729 2730 2731 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2729 def destination_config @destination_config end |
#display_name ⇒ String
Required. Display name.
Corresponds to the JSON property displayName
2734 2735 2736 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2734 def display_name @display_name end |
#errors ⇒ Array<Google::Apis::DatastreamV1::Error>
Output only. Errors on the Stream.
Corresponds to the JSON property errors
2739 2740 2741 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2739 def errors @errors end |
#labels ⇒ Hash<String,String>
Labels.
Corresponds to the JSON property labels
2744 2745 2746 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2744 def labels @labels end |
#last_recovery_time ⇒ String
Output only. If the stream was recovered, the time of the last recovery. Note:
This field is currently experimental.
Corresponds to the JSON property lastRecoveryTime
2750 2751 2752 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2750 def last_recovery_time @last_recovery_time end |
#name ⇒ String
Output only. The stream's name.
Corresponds to the JSON property name
2755 2756 2757 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2755 def name @name end |
#source_config ⇒ Google::Apis::DatastreamV1::SourceConfig
The configuration of the stream source.
Corresponds to the JSON property sourceConfig
2760 2761 2762 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2760 def source_config @source_config end |
#state ⇒ String
The state of the stream.
Corresponds to the JSON property state
2765 2766 2767 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2765 def state @state end |
#update_time ⇒ String
Output only. The last update time of the stream.
Corresponds to the JSON property updateTime
2770 2771 2772 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2770 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2777 def update!(**args) @backfill_all = args[:backfill_all] if args.key?(:backfill_all) @backfill_none = args[:backfill_none] if args.key?(:backfill_none) @create_time = args[:create_time] if args.key?(:create_time) @customer_managed_encryption_key = args[:customer_managed_encryption_key] if args.key?(:customer_managed_encryption_key) @destination_config = args[:destination_config] if args.key?(:destination_config) @display_name = args[:display_name] if args.key?(:display_name) @errors = args[:errors] if args.key?(:errors) @labels = args[:labels] if args.key?(:labels) @last_recovery_time = args[:last_recovery_time] if args.key?(:last_recovery_time) @name = args[:name] if args.key?(:name) @source_config = args[:source_config] if args.key?(:source_config) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |