Class: Google::Apis::PubsubV1::CreateSnapshotRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::CreateSnapshotRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsub_v1/classes.rb,
generated/google/apis/pubsub_v1/representations.rb,
generated/google/apis/pubsub_v1/representations.rb
Overview
Request for the CreateSnapshot
method.
ALPHA: This feature is part of an alpha release. This API might be
changed in
backward-incompatible ways and is not recommended for production use.
It is not subject to any SLA or deprecation policy.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
User labels.
-
#subscription ⇒ String
The subscription whose backlog the snapshot retains.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateSnapshotRequest
constructor
A new instance of CreateSnapshotRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateSnapshotRequest
Returns a new instance of CreateSnapshotRequest
111 112 113 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 111 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
User labels.
Corresponds to the JSON property labels
96 97 98 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 96 def labels @labels end |
#subscription ⇒ String
The subscription whose backlog the snapshot retains.
Specifically, the created snapshot is guaranteed to retain:
(a) The existing backlog on the subscription. More precisely, this is
defined as the messages in the subscription's backlog that are
unacknowledged upon the successful completion of the
CreateSnapshot
request; as well as:
(b) Any messages published to the subscription's topic following the
successful completion of the CreateSnapshot request.
Format is projects/
project/subscriptions/
sub`.
Corresponds to the JSON property
subscription`
109 110 111 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 109 def subscription @subscription end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
116 117 118 119 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 116 def update!(**args) @labels = args[:labels] if args.key?(:labels) @subscription = args[:subscription] if args.key?(:subscription) end |