Class: Google::Apis::PubsubV1::NoWrapper

Inherits:
Object
  • Object
show all
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

Sets the data field as the HTTP body for delivery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NoWrapper

Returns a new instance of NoWrapper.



742
743
744
# File 'lib/google/apis/pubsub_v1/classes.rb', line 742

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#write_metadataBoolean Also known as: write_metadata?

When true, writes the Pub/Sub message metadata to x-goog-pubsub-: headers of the HTTP request. Writes the Pub/Sub message attributes to : headers of the HTTP request. Corresponds to the JSON property writeMetadata

Returns:

  • (Boolean)


739
740
741
# File 'lib/google/apis/pubsub_v1/classes.rb', line 739

def 
  @write_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



747
748
749
# File 'lib/google/apis/pubsub_v1/classes.rb', line 747

def update!(**args)
  @write_metadata = args[:write_metadata] if args.key?(:write_metadata)
end