Class: Google::Apis::StoragetransferV1::EventStream
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::EventStream
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/google/apis/storagetransfer_v1/representations.rb
Overview
Specifies the Event-driven transfer options. Event-driven transfers listen to an event stream to transfer updated files.
Instance Attribute Summary collapse
-
#event_stream_expiration_time ⇒ String
Specifies the data and time at which Storage Transfer Service stops listening for events from this stream.
-
#event_stream_start_time ⇒ String
Specifies the date and time that Storage Transfer Service starts listening for events from this stream.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventStream
constructor
A new instance of EventStream.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventStream
Returns a new instance of EventStream.
460 461 462 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 460 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_stream_expiration_time ⇒ String
Specifies the data and time at which Storage Transfer Service stops listening
for events from this stream. After this time, any transfers in progress will
complete, but no new transfers are initiated.
Corresponds to the JSON property eventStreamExpirationTime
444 445 446 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 444 def event_stream_expiration_time @event_stream_expiration_time end |
#event_stream_start_time ⇒ String
Specifies the date and time that Storage Transfer Service starts listening for
events from this stream. If no start time is specified or start time is in the
past, Storage Transfer Service starts listening immediately.
Corresponds to the JSON property eventStreamStartTime
451 452 453 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 451 def event_stream_start_time @event_stream_start_time end |
#name ⇒ String
Required. Specifies a unique name of the resource such as AWS SQS ARN in the
form 'arn:aws:sqs:region:account_id:queue_name', or Pub/Sub subscription
resource name in the form 'projects/project/subscriptions/sub'.
Corresponds to the JSON property name
458 459 460 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 458 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
465 466 467 468 469 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 465 def update!(**args) @event_stream_expiration_time = args[:event_stream_expiration_time] if args.key?(:event_stream_expiration_time) @event_stream_start_time = args[:event_stream_start_time] if args.key?(:event_stream_start_time) @name = args[:name] if args.key?(:name) end |