# Copyright 2017 Google Inc. # # 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 swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule GoogleApi.Plus.V1.Model.Activity do @moduledoc """ ## Attributes - access (Acl): Identifies who has access to see this activity. Defaults to: `null`. - actor (ActivityActor): Defaults to: `null`. - address (String.t): Street address where this activity occurred. Defaults to: `null`. - annotation (String.t): Additional content added by the person who shared this activity, applicable only when resharing an activity. Defaults to: `null`. - crosspostSource (String.t): If this activity is a crosspost from another system, this property specifies the ID of the original activity. Defaults to: `null`. - etag (String.t): ETag of this response for caching purposes. Defaults to: `null`. - geocode (String.t): Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated. Defaults to: `null`. - id (String.t): The ID of this activity. Defaults to: `null`. - kind (String.t): Identifies this resource as an activity. Value: \"plus#activity\". Defaults to: `null`. - location (Place): The location where this activity occurred. Defaults to: `null`. - object (ActivityObject): Defaults to: `null`. - placeId (String.t): ID of the place where this activity occurred. Defaults to: `null`. - placeName (String.t): Name of the place where this activity occurred. Defaults to: `null`. - provider (ActivityProvider): Defaults to: `null`. - published (DateTime.t): The time at which this activity was initially published. Formatted as an RFC 3339 timestamp. Defaults to: `null`. - radius (String.t): Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode. Defaults to: `null`. - title (String.t): Title of this activity. Defaults to: `null`. - updated (DateTime.t): The time at which this activity was last updated. Formatted as an RFC 3339 timestamp. Defaults to: `null`. - url (String.t): The link to this activity. Defaults to: `null`. - verb (String.t): This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values: - \"post\" - Publish content to the stream. - \"share\" - Reshare an activity. Defaults to: `null`. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :access => GoogleApi.Plus.V1.Model.Acl.t(), :actor => GoogleApi.Plus.V1.Model.ActivityActor.t(), :address => any(), :annotation => any(), :crosspostSource => any(), :etag => any(), :geocode => any(), :id => any(), :kind => any(), :location => GoogleApi.Plus.V1.Model.Place.t(), :object => GoogleApi.Plus.V1.Model.ActivityObject.t(), :placeId => any(), :placeName => any(), :provider => GoogleApi.Plus.V1.Model.ActivityProvider.t(), :published => DateTime.t(), :radius => any(), :title => any(), :updated => DateTime.t(), :url => any(), :verb => any() } field(:access, as: GoogleApi.Plus.V1.Model.Acl) field(:actor, as: GoogleApi.Plus.V1.Model.ActivityActor) field(:address) field(:annotation) field(:crosspostSource) field(:etag) field(:geocode) field(:id) field(:kind) field(:location, as: GoogleApi.Plus.V1.Model.Place) field(:object, as: GoogleApi.Plus.V1.Model.ActivityObject) field(:placeId) field(:placeName) field(:provider, as: GoogleApi.Plus.V1.Model.ActivityProvider) field(:published, as: DateTime) field(:radius) field(:title) field(:updated, as: DateTime) field(:url) field(:verb) end defimpl Poison.Decoder, for: GoogleApi.Plus.V1.Model.Activity do def decode(value, options) do GoogleApi.Plus.V1.Model.Activity.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Plus.V1.Model.Activity do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end