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.
503 504 505 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 503 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
487 488 489 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 487 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
494 495 496 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 494 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
501 502 503 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 501 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
508 509 510 511 512 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 508 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 |