View Source GoogleApi.ContentWarehouse.V1.Model.SocialCommonAttachmentAttachment (google_api_content_warehouse v0.3.0)

An Attachment represents a linked entity associated with a piece of social content. This may be a 1st-party or 3rd-party entity. In the Papyrus context, an Attachment is part of a Cent, and sits alongside the main content of the cent, which is represented as a sequence of Segments. Right now an Attachment is just a wrapper around an Embed, but we provide the extra layer of abstraction since, as Embeds move to separate storage in Briefcase, we may want to add additional fields that are not part of the Embed proper, but that (for example) relate to the usage of the linked content within the particular post/cent.

Attributes

  • embedItem (type: GoogleApi.ContentWarehouse.V1.Model.EmbedsEmbedClientItem.t, default: nil) - An embed represents an external entity. See go/es-embeds.
  • id (type: String.t, default: nil) - An id to uniquely identify an attachment when several attachments are in a collection.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.SocialCommonAttachmentAttachment{
  embedItem:
    GoogleApi.ContentWarehouse.V1.Model.EmbedsEmbedClientItem.t() | nil,
  id: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.