# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE: This class is auto generated by the elixir code generator program. # Do not edit the class manually. defmodule GoogleApi.Plus.V1.Model.Comment do @moduledoc """ ## Attributes * `actor` (*type:* `GoogleApi.Plus.V1.Model.CommentActor.t`, *default:* `nil`) - The person who posted this comment. * `etag` (*type:* `String.t`, *default:* `nil`) - ETag of this response for caching purposes. * `id` (*type:* `String.t`, *default:* `nil`) - The ID of this comment. * `inReplyTo` (*type:* `list(GoogleApi.Plus.V1.Model.CommentInReplyTo.t)`, *default:* `nil`) - The activity this comment replied to. * `kind` (*type:* `String.t`, *default:* `plus#comment`) - Identifies this resource as a comment. Value: "plus#comment". * `object` (*type:* `GoogleApi.Plus.V1.Model.CommentObject.t`, *default:* `nil`) - The object of this comment. * `plusoners` (*type:* `GoogleApi.Plus.V1.Model.CommentPlusoners.t`, *default:* `nil`) - People who +1'd this comment. * `published` (*type:* `DateTime.t`, *default:* `nil`) - The time at which this comment was initially published. Formatted as an RFC 3339 timestamp. * `selfLink` (*type:* `String.t`, *default:* `nil`) - Link to this comment resource. * `updated` (*type:* `DateTime.t`, *default:* `nil`) - The time at which this comment was last updated. Formatted as an RFC 3339 timestamp. * `verb` (*type:* `String.t`, *default:* `post`) - This comment's verb, indicating what action was performed. Possible values are: - "post" - Publish content to the stream. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :actor => GoogleApi.Plus.V1.Model.CommentActor.t(), :etag => String.t(), :id => String.t(), :inReplyTo => list(GoogleApi.Plus.V1.Model.CommentInReplyTo.t()), :kind => String.t(), :object => GoogleApi.Plus.V1.Model.CommentObject.t(), :plusoners => GoogleApi.Plus.V1.Model.CommentPlusoners.t(), :published => DateTime.t(), :selfLink => String.t(), :updated => DateTime.t(), :verb => String.t() } field(:actor, as: GoogleApi.Plus.V1.Model.CommentActor) field(:etag) field(:id) field(:inReplyTo, as: GoogleApi.Plus.V1.Model.CommentInReplyTo, type: :list) field(:kind) field(:object, as: GoogleApi.Plus.V1.Model.CommentObject) field(:plusoners, as: GoogleApi.Plus.V1.Model.CommentPlusoners) field(:published, as: DateTime) field(:selfLink) field(:updated, as: DateTime) field(:verb) end defimpl Poison.Decoder, for: GoogleApi.Plus.V1.Model.Comment do def decode(value, options) do GoogleApi.Plus.V1.Model.Comment.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Plus.V1.Model.Comment do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end