google-api-ruby-client/generated/google/apis/appsactivity_v1/representations.rb

185 lines
6.7 KiB
Ruby

# 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 AppsactivityV1
class Activity
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Event
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListActivitiesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Move
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Parent
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Permission
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PermissionChange
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Photo
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Rename
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Target
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class User
class Representation < Google::Apis::Core::JsonRepresentation; end
end
# @private
class Activity
class Representation < Google::Apis::Core::JsonRepresentation
property :combined_event, as: 'combinedEvent', class: Google::Apis::AppsactivityV1::Event, decorator: Google::Apis::AppsactivityV1::Event::Representation
collection :single_events, as: 'singleEvents', class: Google::Apis::AppsactivityV1::Event, decorator: Google::Apis::AppsactivityV1::Event::Representation
end
end
# @private
class Event
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_event_types, as: 'additionalEventTypes'
property :event_time_millis, as: 'eventTimeMillis'
property :from_user_deletion, as: 'fromUserDeletion'
property :move, as: 'move', class: Google::Apis::AppsactivityV1::Move, decorator: Google::Apis::AppsactivityV1::Move::Representation
collection :permission_changes, as: 'permissionChanges', class: Google::Apis::AppsactivityV1::PermissionChange, decorator: Google::Apis::AppsactivityV1::PermissionChange::Representation
property :primary_event_type, as: 'primaryEventType'
property :rename, as: 'rename', class: Google::Apis::AppsactivityV1::Rename, decorator: Google::Apis::AppsactivityV1::Rename::Representation
property :target, as: 'target', class: Google::Apis::AppsactivityV1::Target, decorator: Google::Apis::AppsactivityV1::Target::Representation
property :user, as: 'user', class: Google::Apis::AppsactivityV1::User, decorator: Google::Apis::AppsactivityV1::User::Representation
end
end
# @private
class ListActivitiesResponse
class Representation < Google::Apis::Core::JsonRepresentation
collection :activities, as: 'activities', class: Google::Apis::AppsactivityV1::Activity, decorator: Google::Apis::AppsactivityV1::Activity::Representation
property :next_page_token, as: 'nextPageToken'
end
end
# @private
class Move
class Representation < Google::Apis::Core::JsonRepresentation
collection :added_parents, as: 'addedParents', class: Google::Apis::AppsactivityV1::Parent, decorator: Google::Apis::AppsactivityV1::Parent::Representation
collection :removed_parents, as: 'removedParents', class: Google::Apis::AppsactivityV1::Parent, decorator: Google::Apis::AppsactivityV1::Parent::Representation
end
end
# @private
class Parent
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :is_root, as: 'isRoot'
property :title, as: 'title'
end
end
# @private
class Permission
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :permission_id, as: 'permissionId'
property :role, as: 'role'
property :type, as: 'type'
property :user, as: 'user', class: Google::Apis::AppsactivityV1::User, decorator: Google::Apis::AppsactivityV1::User::Representation
property :with_link, as: 'withLink'
end
end
# @private
class PermissionChange
class Representation < Google::Apis::Core::JsonRepresentation
collection :added_permissions, as: 'addedPermissions', class: Google::Apis::AppsactivityV1::Permission, decorator: Google::Apis::AppsactivityV1::Permission::Representation
collection :removed_permissions, as: 'removedPermissions', class: Google::Apis::AppsactivityV1::Permission, decorator: Google::Apis::AppsactivityV1::Permission::Representation
end
end
# @private
class Photo
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
end
end
# @private
class Rename
class Representation < Google::Apis::Core::JsonRepresentation
property :new_title, as: 'newTitle'
property :old_title, as: 'oldTitle'
end
end
# @private
class Target
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :mime_type, as: 'mimeType'
property :name, as: 'name'
end
end
# @private
class User
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :photo, as: 'photo', class: Google::Apis::AppsactivityV1::Photo, decorator: Google::Apis::AppsactivityV1::Photo::Representation
end
end
end
end
end