# Copyright 2015 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. require 'date' require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module PlusDomainsV1 class Acl class Representation < Google::Apis::Core::JsonRepresentation; end end class Activity class Representation < Google::Apis::Core::JsonRepresentation; end class Actor class Representation < Google::Apis::Core::JsonRepresentation; end class Image class Representation < Google::Apis::Core::JsonRepresentation; end end class Name class Representation < Google::Apis::Core::JsonRepresentation; end end end class Object class Representation < Google::Apis::Core::JsonRepresentation; end class Actor class Representation < Google::Apis::Core::JsonRepresentation; end class Image class Representation < Google::Apis::Core::JsonRepresentation; end end end class Attachment class Representation < Google::Apis::Core::JsonRepresentation; end class Embed class Representation < Google::Apis::Core::JsonRepresentation; end end class FullImage class Representation < Google::Apis::Core::JsonRepresentation; end end class Image class Representation < Google::Apis::Core::JsonRepresentation; end end class PreviewThumbnail class Representation < Google::Apis::Core::JsonRepresentation; end end class Thumbnail class Representation < Google::Apis::Core::JsonRepresentation; end class Image class Representation < Google::Apis::Core::JsonRepresentation; end end end end class Plusoners class Representation < Google::Apis::Core::JsonRepresentation; end end class Replies class Representation < Google::Apis::Core::JsonRepresentation; end end class Resharers class Representation < Google::Apis::Core::JsonRepresentation; end end class StatusForViewer class Representation < Google::Apis::Core::JsonRepresentation; end end end class Provider class Representation < Google::Apis::Core::JsonRepresentation; end end end class ActivityFeed class Representation < Google::Apis::Core::JsonRepresentation; end end class Audience class Representation < Google::Apis::Core::JsonRepresentation; end end class AudiencesFeed class Representation < Google::Apis::Core::JsonRepresentation; end end class Circle class Representation < Google::Apis::Core::JsonRepresentation; end class People class Representation < Google::Apis::Core::JsonRepresentation; end end end class CircleFeed class Representation < Google::Apis::Core::JsonRepresentation; end end class Comment class Representation < Google::Apis::Core::JsonRepresentation; end class Actor class Representation < Google::Apis::Core::JsonRepresentation; end class Image class Representation < Google::Apis::Core::JsonRepresentation; end end end class InReplyTo class Representation < Google::Apis::Core::JsonRepresentation; end end class Object class Representation < Google::Apis::Core::JsonRepresentation; end end class Plusoners class Representation < Google::Apis::Core::JsonRepresentation; end end end class CommentFeed class Representation < Google::Apis::Core::JsonRepresentation; end end class Media class Representation < Google::Apis::Core::JsonRepresentation; end class Author class Representation < Google::Apis::Core::JsonRepresentation; end class Image class Representation < Google::Apis::Core::JsonRepresentation; end end end class Exif class Representation < Google::Apis::Core::JsonRepresentation; end end end class PeopleFeed class Representation < Google::Apis::Core::JsonRepresentation; end end class Person class Representation < Google::Apis::Core::JsonRepresentation; end class Cover class Representation < Google::Apis::Core::JsonRepresentation; end class CoverInfo class Representation < Google::Apis::Core::JsonRepresentation; end end class CoverPhoto class Representation < Google::Apis::Core::JsonRepresentation; end end end class Email class Representation < Google::Apis::Core::JsonRepresentation; end end class Image class Representation < Google::Apis::Core::JsonRepresentation; end end class Name class Representation < Google::Apis::Core::JsonRepresentation; end end class Organization class Representation < Google::Apis::Core::JsonRepresentation; end end class PlacesLived class Representation < Google::Apis::Core::JsonRepresentation; end end class Url class Representation < Google::Apis::Core::JsonRepresentation; end end end class Place class Representation < Google::Apis::Core::JsonRepresentation; end class Address class Representation < Google::Apis::Core::JsonRepresentation; end end class Position class Representation < Google::Apis::Core::JsonRepresentation; end end end class PlusDomainsAclentryResource class Representation < Google::Apis::Core::JsonRepresentation; end end class Videostream class Representation < Google::Apis::Core::JsonRepresentation; end end # @private class Acl class Representation < Google::Apis::Core::JsonRepresentation property :description, as: 'description' property :domain_restricted, as: 'domainRestricted' collection :items, as: 'items', class: Google::Apis::PlusDomainsV1::PlusDomainsAclentryResource, decorator: Google::Apis::PlusDomainsV1::PlusDomainsAclentryResource::Representation property :kind, as: 'kind' end end # @private class Activity class Representation < Google::Apis::Core::JsonRepresentation property :access, as: 'access', class: Google::Apis::PlusDomainsV1::Acl, decorator: Google::Apis::PlusDomainsV1::Acl::Representation property :actor, as: 'actor', class: Google::Apis::PlusDomainsV1::Activity::Actor, decorator: Google::Apis::PlusDomainsV1::Activity::Actor::Representation property :address, as: 'address' property :annotation, as: 'annotation' property :crosspost_source, as: 'crosspostSource' property :etag, as: 'etag' property :geocode, as: 'geocode' property :id, as: 'id' property :kind, as: 'kind' property :location, as: 'location', class: Google::Apis::PlusDomainsV1::Place, decorator: Google::Apis::PlusDomainsV1::Place::Representation property :object, as: 'object', class: Google::Apis::PlusDomainsV1::Activity::Object, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Representation property :place_id, as: 'placeId' property :place_name, as: 'placeName' property :provider, as: 'provider', class: Google::Apis::PlusDomainsV1::Activity::Provider, decorator: Google::Apis::PlusDomainsV1::Activity::Provider::Representation property :published, as: 'published', type: DateTime property :radius, as: 'radius' property :title, as: 'title' property :updated, as: 'updated', type: DateTime property :url, as: 'url' property :verb, as: 'verb' end # @private class Actor class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Activity::Actor::Image, decorator: Google::Apis::PlusDomainsV1::Activity::Actor::Image::Representation property :name, as: 'name', class: Google::Apis::PlusDomainsV1::Activity::Actor::Name, decorator: Google::Apis::PlusDomainsV1::Activity::Actor::Name::Representation property :url, as: 'url' end # @private class Image class Representation < Google::Apis::Core::JsonRepresentation property :url, as: 'url' end end # @private class Name class Representation < Google::Apis::Core::JsonRepresentation property :family_name, as: 'familyName' property :given_name, as: 'givenName' end end end # @private class Object class Representation < Google::Apis::Core::JsonRepresentation property :actor, as: 'actor', class: Google::Apis::PlusDomainsV1::Activity::Object::Actor, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Actor::Representation collection :attachments, as: 'attachments', class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Representation property :content, as: 'content' property :id, as: 'id' property :object_type, as: 'objectType' property :original_content, as: 'originalContent' property :plusoners, as: 'plusoners', class: Google::Apis::PlusDomainsV1::Activity::Object::Plusoners, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Plusoners::Representation property :replies, as: 'replies', class: Google::Apis::PlusDomainsV1::Activity::Object::Replies, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Replies::Representation property :resharers, as: 'resharers', class: Google::Apis::PlusDomainsV1::Activity::Object::Resharers, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Resharers::Representation property :status_for_viewer, as: 'statusForViewer', class: Google::Apis::PlusDomainsV1::Activity::Object::StatusForViewer, decorator: Google::Apis::PlusDomainsV1::Activity::Object::StatusForViewer::Representation property :url, as: 'url' end # @private class Actor class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Activity::Object::Actor::Image, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Actor::Image::Representation property :url, as: 'url' end # @private class Image class Representation < Google::Apis::Core::JsonRepresentation property :url, as: 'url' end end end # @private class Attachment class Representation < Google::Apis::Core::JsonRepresentation property :content, as: 'content' property :display_name, as: 'displayName' property :embed, as: 'embed', class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Embed, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Embed::Representation property :full_image, as: 'fullImage', class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::FullImage, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::FullImage::Representation property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Image, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Image::Representation property :object_type, as: 'objectType' collection :preview_thumbnails, as: 'previewThumbnails', class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::PreviewThumbnail, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::PreviewThumbnail::Representation collection :thumbnails, as: 'thumbnails', class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Thumbnail, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Thumbnail::Representation property :url, as: 'url' end # @private class Embed class Representation < Google::Apis::Core::JsonRepresentation property :type, as: 'type' property :url, as: 'url' end end # @private class FullImage class Representation < Google::Apis::Core::JsonRepresentation property :height, as: 'height' property :type, as: 'type' property :url, as: 'url' property :width, as: 'width' end end # @private class Image class Representation < Google::Apis::Core::JsonRepresentation property :height, as: 'height' property :type, as: 'type' property :url, as: 'url' property :width, as: 'width' end end # @private class PreviewThumbnail class Representation < Google::Apis::Core::JsonRepresentation property :url, as: 'url' end end # @private class Thumbnail class Representation < Google::Apis::Core::JsonRepresentation property :description, as: 'description' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Thumbnail::Image, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Thumbnail::Image::Representation property :url, as: 'url' end # @private class Image class Representation < Google::Apis::Core::JsonRepresentation property :height, as: 'height' property :type, as: 'type' property :url, as: 'url' property :width, as: 'width' end end end end # @private class Plusoners class Representation < Google::Apis::Core::JsonRepresentation property :self_link, as: 'selfLink' property :total_items, as: 'totalItems' end end # @private class Replies class Representation < Google::Apis::Core::JsonRepresentation property :self_link, as: 'selfLink' property :total_items, as: 'totalItems' end end # @private class Resharers class Representation < Google::Apis::Core::JsonRepresentation property :self_link, as: 'selfLink' property :total_items, as: 'totalItems' end end # @private class StatusForViewer class Representation < Google::Apis::Core::JsonRepresentation property :can_comment, as: 'canComment' property :can_plusone, as: 'canPlusone' property :can_update, as: 'canUpdate' property :is_plus_oned, as: 'isPlusOned' property :resharing_disabled, as: 'resharingDisabled' end end end # @private class Provider class Representation < Google::Apis::Core::JsonRepresentation property :title, as: 'title' end end end # @private class ActivityFeed class Representation < Google::Apis::Core::JsonRepresentation property :etag, as: 'etag' property :id, as: 'id' collection :items, as: 'items', class: Google::Apis::PlusDomainsV1::Activity, decorator: Google::Apis::PlusDomainsV1::Activity::Representation property :kind, as: 'kind' property :next_link, as: 'nextLink' property :next_page_token, as: 'nextPageToken' property :self_link, as: 'selfLink' property :title, as: 'title' property :updated, as: 'updated', type: DateTime end end # @private class Audience class Representation < Google::Apis::Core::JsonRepresentation property :etag, as: 'etag' property :item, as: 'item', class: Google::Apis::PlusDomainsV1::PlusDomainsAclentryResource, decorator: Google::Apis::PlusDomainsV1::PlusDomainsAclentryResource::Representation property :kind, as: 'kind' property :member_count, as: 'memberCount' property :visibility, as: 'visibility' end end # @private class AudiencesFeed class Representation < Google::Apis::Core::JsonRepresentation property :etag, as: 'etag' collection :items, as: 'items', class: Google::Apis::PlusDomainsV1::Audience, decorator: Google::Apis::PlusDomainsV1::Audience::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' property :total_items, as: 'totalItems' end end # @private class Circle class Representation < Google::Apis::Core::JsonRepresentation property :description, as: 'description' property :display_name, as: 'displayName' property :etag, as: 'etag' property :id, as: 'id' property :kind, as: 'kind' property :people, as: 'people', class: Google::Apis::PlusDomainsV1::Circle::People, decorator: Google::Apis::PlusDomainsV1::Circle::People::Representation property :self_link, as: 'selfLink' end # @private class People class Representation < Google::Apis::Core::JsonRepresentation property :total_items, as: 'totalItems' end end end # @private class CircleFeed class Representation < Google::Apis::Core::JsonRepresentation property :etag, as: 'etag' collection :items, as: 'items', class: Google::Apis::PlusDomainsV1::Circle, decorator: Google::Apis::PlusDomainsV1::Circle::Representation property :kind, as: 'kind' property :next_link, as: 'nextLink' property :next_page_token, as: 'nextPageToken' property :self_link, as: 'selfLink' property :title, as: 'title' property :total_items, as: 'totalItems' end end # @private class Comment class Representation < Google::Apis::Core::JsonRepresentation property :actor, as: 'actor', class: Google::Apis::PlusDomainsV1::Comment::Actor, decorator: Google::Apis::PlusDomainsV1::Comment::Actor::Representation property :etag, as: 'etag' property :id, as: 'id' collection :in_reply_to, as: 'inReplyTo', class: Google::Apis::PlusDomainsV1::Comment::InReplyTo, decorator: Google::Apis::PlusDomainsV1::Comment::InReplyTo::Representation property :kind, as: 'kind' property :object, as: 'object', class: Google::Apis::PlusDomainsV1::Comment::Object, decorator: Google::Apis::PlusDomainsV1::Comment::Object::Representation property :plusoners, as: 'plusoners', class: Google::Apis::PlusDomainsV1::Comment::Plusoners, decorator: Google::Apis::PlusDomainsV1::Comment::Plusoners::Representation property :published, as: 'published', type: DateTime property :self_link, as: 'selfLink' property :updated, as: 'updated', type: DateTime property :verb, as: 'verb' end # @private class Actor class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Comment::Actor::Image, decorator: Google::Apis::PlusDomainsV1::Comment::Actor::Image::Representation property :url, as: 'url' end # @private class Image class Representation < Google::Apis::Core::JsonRepresentation property :url, as: 'url' end end end # @private class InReplyTo class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :url, as: 'url' end end # @private class Object class Representation < Google::Apis::Core::JsonRepresentation property :content, as: 'content' property :object_type, as: 'objectType' property :original_content, as: 'originalContent' end end # @private class Plusoners class Representation < Google::Apis::Core::JsonRepresentation property :total_items, as: 'totalItems' end end end # @private class CommentFeed class Representation < Google::Apis::Core::JsonRepresentation property :etag, as: 'etag' property :id, as: 'id' collection :items, as: 'items', class: Google::Apis::PlusDomainsV1::Comment, decorator: Google::Apis::PlusDomainsV1::Comment::Representation property :kind, as: 'kind' property :next_link, as: 'nextLink' property :next_page_token, as: 'nextPageToken' property :title, as: 'title' property :updated, as: 'updated', type: DateTime end end # @private class Media class Representation < Google::Apis::Core::JsonRepresentation property :author, as: 'author', class: Google::Apis::PlusDomainsV1::Media::Author, decorator: Google::Apis::PlusDomainsV1::Media::Author::Representation property :display_name, as: 'displayName' property :etag, as: 'etag' property :exif, as: 'exif', class: Google::Apis::PlusDomainsV1::Media::Exif, decorator: Google::Apis::PlusDomainsV1::Media::Exif::Representation property :height, as: 'height' property :id, as: 'id' property :kind, as: 'kind' property :media_created_time, as: 'mediaCreatedTime', type: DateTime property :media_url, as: 'mediaUrl' property :published, as: 'published', type: DateTime property :size_bytes, as: 'sizeBytes' collection :streams, as: 'streams', class: Google::Apis::PlusDomainsV1::Videostream, decorator: Google::Apis::PlusDomainsV1::Videostream::Representation property :summary, as: 'summary' property :updated, as: 'updated', type: DateTime property :url, as: 'url' property :video_duration, as: 'videoDuration' property :video_status, as: 'videoStatus' property :width, as: 'width' end # @private class Author class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Media::Author::Image, decorator: Google::Apis::PlusDomainsV1::Media::Author::Image::Representation property :url, as: 'url' end # @private class Image class Representation < Google::Apis::Core::JsonRepresentation property :url, as: 'url' end end end # @private class Exif class Representation < Google::Apis::Core::JsonRepresentation property :time, as: 'time', type: DateTime end end end # @private class PeopleFeed class Representation < Google::Apis::Core::JsonRepresentation property :etag, as: 'etag' collection :items, as: 'items', class: Google::Apis::PlusDomainsV1::Person, decorator: Google::Apis::PlusDomainsV1::Person::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' property :self_link, as: 'selfLink' property :title, as: 'title' property :total_items, as: 'totalItems' end end # @private class Person class Representation < Google::Apis::Core::JsonRepresentation property :about_me, as: 'aboutMe' property :birthday, as: 'birthday' property :bragging_rights, as: 'braggingRights' property :circled_by_count, as: 'circledByCount' property :cover, as: 'cover', class: Google::Apis::PlusDomainsV1::Person::Cover, decorator: Google::Apis::PlusDomainsV1::Person::Cover::Representation property :current_location, as: 'currentLocation' property :display_name, as: 'displayName' property :domain, as: 'domain' collection :emails, as: 'emails', class: Google::Apis::PlusDomainsV1::Person::Email, decorator: Google::Apis::PlusDomainsV1::Person::Email::Representation property :etag, as: 'etag' property :gender, as: 'gender' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Person::Image, decorator: Google::Apis::PlusDomainsV1::Person::Image::Representation property :is_plus_user, as: 'isPlusUser' property :kind, as: 'kind' property :name, as: 'name', class: Google::Apis::PlusDomainsV1::Person::Name, decorator: Google::Apis::PlusDomainsV1::Person::Name::Representation property :nickname, as: 'nickname' property :object_type, as: 'objectType' property :occupation, as: 'occupation' collection :organizations, as: 'organizations', class: Google::Apis::PlusDomainsV1::Person::Organization, decorator: Google::Apis::PlusDomainsV1::Person::Organization::Representation collection :places_lived, as: 'placesLived', class: Google::Apis::PlusDomainsV1::Person::PlacesLived, decorator: Google::Apis::PlusDomainsV1::Person::PlacesLived::Representation property :plus_one_count, as: 'plusOneCount' property :relationship_status, as: 'relationshipStatus' property :skills, as: 'skills' property :tagline, as: 'tagline' property :url, as: 'url' collection :urls, as: 'urls', class: Google::Apis::PlusDomainsV1::Person::Url, decorator: Google::Apis::PlusDomainsV1::Person::Url::Representation property :verified, as: 'verified' end # @private class Cover class Representation < Google::Apis::Core::JsonRepresentation property :cover_info, as: 'coverInfo', class: Google::Apis::PlusDomainsV1::Person::Cover::CoverInfo, decorator: Google::Apis::PlusDomainsV1::Person::Cover::CoverInfo::Representation property :cover_photo, as: 'coverPhoto', class: Google::Apis::PlusDomainsV1::Person::Cover::CoverPhoto, decorator: Google::Apis::PlusDomainsV1::Person::Cover::CoverPhoto::Representation property :layout, as: 'layout' end # @private class CoverInfo class Representation < Google::Apis::Core::JsonRepresentation property :left_image_offset, as: 'leftImageOffset' property :top_image_offset, as: 'topImageOffset' end end # @private class CoverPhoto class Representation < Google::Apis::Core::JsonRepresentation property :height, as: 'height' property :url, as: 'url' property :width, as: 'width' end end end # @private class Email class Representation < Google::Apis::Core::JsonRepresentation property :type, as: 'type' property :value, as: 'value' end end # @private class Image class Representation < Google::Apis::Core::JsonRepresentation property :is_default, as: 'isDefault' property :url, as: 'url' end end # @private class Name class Representation < Google::Apis::Core::JsonRepresentation property :family_name, as: 'familyName' property :formatted, as: 'formatted' property :given_name, as: 'givenName' property :honorific_prefix, as: 'honorificPrefix' property :honorific_suffix, as: 'honorificSuffix' property :middle_name, as: 'middleName' end end # @private class Organization class Representation < Google::Apis::Core::JsonRepresentation property :department, as: 'department' property :description, as: 'description' property :end_date, as: 'endDate' property :location, as: 'location' property :name, as: 'name' property :primary, as: 'primary' property :start_date, as: 'startDate' property :title, as: 'title' property :type, as: 'type' end end # @private class PlacesLived class Representation < Google::Apis::Core::JsonRepresentation property :primary, as: 'primary' property :value, as: 'value' end end # @private class Url class Representation < Google::Apis::Core::JsonRepresentation property :label, as: 'label' property :type, as: 'type' property :value, as: 'value' end end end # @private class Place class Representation < Google::Apis::Core::JsonRepresentation property :address, as: 'address', class: Google::Apis::PlusDomainsV1::Place::Address, decorator: Google::Apis::PlusDomainsV1::Place::Address::Representation property :display_name, as: 'displayName' property :id, as: 'id' property :kind, as: 'kind' property :position, as: 'position', class: Google::Apis::PlusDomainsV1::Place::Position, decorator: Google::Apis::PlusDomainsV1::Place::Position::Representation end # @private class Address class Representation < Google::Apis::Core::JsonRepresentation property :formatted, as: 'formatted' end end # @private class Position class Representation < Google::Apis::Core::JsonRepresentation property :latitude, as: 'latitude' property :longitude, as: 'longitude' end end end # @private class PlusDomainsAclentryResource class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :id, as: 'id' property :type, as: 'type' end end # @private class Videostream class Representation < Google::Apis::Core::JsonRepresentation property :height, as: 'height' property :type, as: 'type' property :url, as: 'url' property :width, as: 'width' end end end end end