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.
432 433 434 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 432 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
416 417 418 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 416 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
423 424 425 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 423 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
430 431 432 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 430 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
437 438 439 440 441 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 437 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 |