Class: Google::Apis::PubsubV1::CreateSnapshotRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::CreateSnapshotRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb
Overview
Request for the CreateSnapshot method.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
Optional.
-
#subscription ⇒ String
Required.
-
#tags ⇒ Hash<String,String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateSnapshotRequest
constructor
A new instance of CreateSnapshotRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateSnapshotRequest
Returns a new instance of CreateSnapshotRequest.
733 734 735 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 733 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
Optional. See Creating and managing labels.
Corresponds to the JSON property labels
713 714 715 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 713 def labels @labels end |
#subscription ⇒ String
Required. Identifier. 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 propertysubscription`
724 725 726 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 724 def subscription @subscription end |
#tags ⇒ Hash<String,String>
Optional. Input only. Immutable. Tag keys/values directly bound to this
resource. For example: "123/environment": "production", "123/costCenter": "
marketing"
Corresponds to the JSON property tags
731 732 733 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 731 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
738 739 740 741 742 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 738 def update!(**args) @labels = args[:labels] if args.key?(:labels) @subscription = args[:subscription] if args.key?(:subscription) @tags = args[:tags] if args.key?(:tags) end |