Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,253 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class About extends \Google\Collection
{
protected $collection_key = 'teamDriveThemes';
/**
* @var bool
*/
public $appInstalled;
/**
* @var bool
*/
public $canCreateDrives;
/**
* @var bool
*/
public $canCreateTeamDrives;
protected $driveThemesType = AboutDriveThemes::class;
protected $driveThemesDataType = 'array';
/**
* @var string[]
*/
public $exportFormats;
/**
* @var string[]
*/
public $folderColorPalette;
/**
* @var string[]
*/
public $importFormats;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $maxImportSizes;
/**
* @var string
*/
public $maxUploadSize;
protected $storageQuotaType = AboutStorageQuota::class;
protected $storageQuotaDataType = '';
protected $teamDriveThemesType = AboutTeamDriveThemes::class;
protected $teamDriveThemesDataType = 'array';
protected $userType = User::class;
protected $userDataType = '';
/**
* @param bool
*/
public function setAppInstalled($appInstalled)
{
$this->appInstalled = $appInstalled;
}
/**
* @return bool
*/
public function getAppInstalled()
{
return $this->appInstalled;
}
/**
* @param bool
*/
public function setCanCreateDrives($canCreateDrives)
{
$this->canCreateDrives = $canCreateDrives;
}
/**
* @return bool
*/
public function getCanCreateDrives()
{
return $this->canCreateDrives;
}
/**
* @param bool
*/
public function setCanCreateTeamDrives($canCreateTeamDrives)
{
$this->canCreateTeamDrives = $canCreateTeamDrives;
}
/**
* @return bool
*/
public function getCanCreateTeamDrives()
{
return $this->canCreateTeamDrives;
}
/**
* @param AboutDriveThemes[]
*/
public function setDriveThemes($driveThemes)
{
$this->driveThemes = $driveThemes;
}
/**
* @return AboutDriveThemes[]
*/
public function getDriveThemes()
{
return $this->driveThemes;
}
/**
* @param string[]
*/
public function setExportFormats($exportFormats)
{
$this->exportFormats = $exportFormats;
}
/**
* @return string[]
*/
public function getExportFormats()
{
return $this->exportFormats;
}
/**
* @param string[]
*/
public function setFolderColorPalette($folderColorPalette)
{
$this->folderColorPalette = $folderColorPalette;
}
/**
* @return string[]
*/
public function getFolderColorPalette()
{
return $this->folderColorPalette;
}
/**
* @param string[]
*/
public function setImportFormats($importFormats)
{
$this->importFormats = $importFormats;
}
/**
* @return string[]
*/
public function getImportFormats()
{
return $this->importFormats;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setMaxImportSizes($maxImportSizes)
{
$this->maxImportSizes = $maxImportSizes;
}
/**
* @return string[]
*/
public function getMaxImportSizes()
{
return $this->maxImportSizes;
}
/**
* @param string
*/
public function setMaxUploadSize($maxUploadSize)
{
$this->maxUploadSize = $maxUploadSize;
}
/**
* @return string
*/
public function getMaxUploadSize()
{
return $this->maxUploadSize;
}
/**
* @param AboutStorageQuota
*/
public function setStorageQuota(AboutStorageQuota $storageQuota)
{
$this->storageQuota = $storageQuota;
}
/**
* @return AboutStorageQuota
*/
public function getStorageQuota()
{
return $this->storageQuota;
}
/**
* @param AboutTeamDriveThemes[]
*/
public function setTeamDriveThemes($teamDriveThemes)
{
$this->teamDriveThemes = $teamDriveThemes;
}
/**
* @return AboutTeamDriveThemes[]
*/
public function getTeamDriveThemes()
{
return $this->teamDriveThemes;
}
/**
* @param User
*/
public function setUser(User $user)
{
$this->user = $user;
}
/**
* @return User
*/
public function getUser()
{
return $this->user;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(About::class, 'Google_Service_Drive_About');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class AboutDriveThemes extends \Google\Model
{
/**
* @var string
*/
public $backgroundImageLink;
/**
* @var string
*/
public $colorRgb;
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setBackgroundImageLink($backgroundImageLink)
{
$this->backgroundImageLink = $backgroundImageLink;
}
/**
* @return string
*/
public function getBackgroundImageLink()
{
return $this->backgroundImageLink;
}
/**
* @param string
*/
public function setColorRgb($colorRgb)
{
$this->colorRgb = $colorRgb;
}
/**
* @return string
*/
public function getColorRgb()
{
return $this->colorRgb;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AboutDriveThemes::class, 'Google_Service_Drive_AboutDriveThemes');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class AboutStorageQuota extends \Google\Model
{
/**
* @var string
*/
public $limit;
/**
* @var string
*/
public $usage;
/**
* @var string
*/
public $usageInDrive;
/**
* @var string
*/
public $usageInDriveTrash;
/**
* @param string
*/
public function setLimit($limit)
{
$this->limit = $limit;
}
/**
* @return string
*/
public function getLimit()
{
return $this->limit;
}
/**
* @param string
*/
public function setUsage($usage)
{
$this->usage = $usage;
}
/**
* @return string
*/
public function getUsage()
{
return $this->usage;
}
/**
* @param string
*/
public function setUsageInDrive($usageInDrive)
{
$this->usageInDrive = $usageInDrive;
}
/**
* @return string
*/
public function getUsageInDrive()
{
return $this->usageInDrive;
}
/**
* @param string
*/
public function setUsageInDriveTrash($usageInDriveTrash)
{
$this->usageInDriveTrash = $usageInDriveTrash;
}
/**
* @return string
*/
public function getUsageInDriveTrash()
{
return $this->usageInDriveTrash;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AboutStorageQuota::class, 'Google_Service_Drive_AboutStorageQuota');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class AboutTeamDriveThemes extends \Google\Model
{
/**
* @var string
*/
public $backgroundImageLink;
/**
* @var string
*/
public $colorRgb;
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setBackgroundImageLink($backgroundImageLink)
{
$this->backgroundImageLink = $backgroundImageLink;
}
/**
* @return string
*/
public function getBackgroundImageLink()
{
return $this->backgroundImageLink;
}
/**
* @param string
*/
public function setColorRgb($colorRgb)
{
$this->colorRgb = $colorRgb;
}
/**
* @return string
*/
public function getColorRgb()
{
return $this->colorRgb;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AboutTeamDriveThemes::class, 'Google_Service_Drive_AboutTeamDriveThemes');
@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class AccessProposal extends \Google\Collection
{
protected $collection_key = 'rolesAndViews';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $fileId;
/**
* @var string
*/
public $proposalId;
/**
* @var string
*/
public $recipientEmailAddress;
/**
* @var string
*/
public $requestMessage;
/**
* @var string
*/
public $requesterEmailAddress;
protected $rolesAndViewsType = AccessProposalRoleAndView::class;
protected $rolesAndViewsDataType = 'array';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setFileId($fileId)
{
$this->fileId = $fileId;
}
/**
* @return string
*/
public function getFileId()
{
return $this->fileId;
}
/**
* @param string
*/
public function setProposalId($proposalId)
{
$this->proposalId = $proposalId;
}
/**
* @return string
*/
public function getProposalId()
{
return $this->proposalId;
}
/**
* @param string
*/
public function setRecipientEmailAddress($recipientEmailAddress)
{
$this->recipientEmailAddress = $recipientEmailAddress;
}
/**
* @return string
*/
public function getRecipientEmailAddress()
{
return $this->recipientEmailAddress;
}
/**
* @param string
*/
public function setRequestMessage($requestMessage)
{
$this->requestMessage = $requestMessage;
}
/**
* @return string
*/
public function getRequestMessage()
{
return $this->requestMessage;
}
/**
* @param string
*/
public function setRequesterEmailAddress($requesterEmailAddress)
{
$this->requesterEmailAddress = $requesterEmailAddress;
}
/**
* @return string
*/
public function getRequesterEmailAddress()
{
return $this->requesterEmailAddress;
}
/**
* @param AccessProposalRoleAndView[]
*/
public function setRolesAndViews($rolesAndViews)
{
$this->rolesAndViews = $rolesAndViews;
}
/**
* @return AccessProposalRoleAndView[]
*/
public function getRolesAndViews()
{
return $this->rolesAndViews;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessProposal::class, 'Google_Service_Drive_AccessProposal');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class AccessProposalRoleAndView extends \Google\Model
{
/**
* @var string
*/
public $role;
/**
* @var string
*/
public $view;
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @param string
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return string
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessProposalRoleAndView::class, 'Google_Service_Drive_AccessProposalRoleAndView');
@@ -0,0 +1,457 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class App extends \Google\Collection
{
protected $collection_key = 'secondaryMimeTypes';
/**
* @var bool
*/
public $authorized;
/**
* @var string
*/
public $createInFolderTemplate;
/**
* @var string
*/
public $createUrl;
/**
* @var bool
*/
public $hasDriveWideScope;
protected $iconsType = AppIcons::class;
protected $iconsDataType = 'array';
/**
* @var string
*/
public $id;
/**
* @var bool
*/
public $installed;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $longDescription;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $objectType;
/**
* @var string
*/
public $openUrlTemplate;
/**
* @var string[]
*/
public $primaryFileExtensions;
/**
* @var string[]
*/
public $primaryMimeTypes;
/**
* @var string
*/
public $productId;
/**
* @var string
*/
public $productUrl;
/**
* @var string[]
*/
public $secondaryFileExtensions;
/**
* @var string[]
*/
public $secondaryMimeTypes;
/**
* @var string
*/
public $shortDescription;
/**
* @var bool
*/
public $supportsCreate;
/**
* @var bool
*/
public $supportsImport;
/**
* @var bool
*/
public $supportsMultiOpen;
/**
* @var bool
*/
public $supportsOfflineCreate;
/**
* @var bool
*/
public $useByDefault;
/**
* @param bool
*/
public function setAuthorized($authorized)
{
$this->authorized = $authorized;
}
/**
* @return bool
*/
public function getAuthorized()
{
return $this->authorized;
}
/**
* @param string
*/
public function setCreateInFolderTemplate($createInFolderTemplate)
{
$this->createInFolderTemplate = $createInFolderTemplate;
}
/**
* @return string
*/
public function getCreateInFolderTemplate()
{
return $this->createInFolderTemplate;
}
/**
* @param string
*/
public function setCreateUrl($createUrl)
{
$this->createUrl = $createUrl;
}
/**
* @return string
*/
public function getCreateUrl()
{
return $this->createUrl;
}
/**
* @param bool
*/
public function setHasDriveWideScope($hasDriveWideScope)
{
$this->hasDriveWideScope = $hasDriveWideScope;
}
/**
* @return bool
*/
public function getHasDriveWideScope()
{
return $this->hasDriveWideScope;
}
/**
* @param AppIcons[]
*/
public function setIcons($icons)
{
$this->icons = $icons;
}
/**
* @return AppIcons[]
*/
public function getIcons()
{
return $this->icons;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param bool
*/
public function setInstalled($installed)
{
$this->installed = $installed;
}
/**
* @return bool
*/
public function getInstalled()
{
return $this->installed;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLongDescription($longDescription)
{
$this->longDescription = $longDescription;
}
/**
* @return string
*/
public function getLongDescription()
{
return $this->longDescription;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setObjectType($objectType)
{
$this->objectType = $objectType;
}
/**
* @return string
*/
public function getObjectType()
{
return $this->objectType;
}
/**
* @param string
*/
public function setOpenUrlTemplate($openUrlTemplate)
{
$this->openUrlTemplate = $openUrlTemplate;
}
/**
* @return string
*/
public function getOpenUrlTemplate()
{
return $this->openUrlTemplate;
}
/**
* @param string[]
*/
public function setPrimaryFileExtensions($primaryFileExtensions)
{
$this->primaryFileExtensions = $primaryFileExtensions;
}
/**
* @return string[]
*/
public function getPrimaryFileExtensions()
{
return $this->primaryFileExtensions;
}
/**
* @param string[]
*/
public function setPrimaryMimeTypes($primaryMimeTypes)
{
$this->primaryMimeTypes = $primaryMimeTypes;
}
/**
* @return string[]
*/
public function getPrimaryMimeTypes()
{
return $this->primaryMimeTypes;
}
/**
* @param string
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* @param string
*/
public function setProductUrl($productUrl)
{
$this->productUrl = $productUrl;
}
/**
* @return string
*/
public function getProductUrl()
{
return $this->productUrl;
}
/**
* @param string[]
*/
public function setSecondaryFileExtensions($secondaryFileExtensions)
{
$this->secondaryFileExtensions = $secondaryFileExtensions;
}
/**
* @return string[]
*/
public function getSecondaryFileExtensions()
{
return $this->secondaryFileExtensions;
}
/**
* @param string[]
*/
public function setSecondaryMimeTypes($secondaryMimeTypes)
{
$this->secondaryMimeTypes = $secondaryMimeTypes;
}
/**
* @return string[]
*/
public function getSecondaryMimeTypes()
{
return $this->secondaryMimeTypes;
}
/**
* @param string
*/
public function setShortDescription($shortDescription)
{
$this->shortDescription = $shortDescription;
}
/**
* @return string
*/
public function getShortDescription()
{
return $this->shortDescription;
}
/**
* @param bool
*/
public function setSupportsCreate($supportsCreate)
{
$this->supportsCreate = $supportsCreate;
}
/**
* @return bool
*/
public function getSupportsCreate()
{
return $this->supportsCreate;
}
/**
* @param bool
*/
public function setSupportsImport($supportsImport)
{
$this->supportsImport = $supportsImport;
}
/**
* @return bool
*/
public function getSupportsImport()
{
return $this->supportsImport;
}
/**
* @param bool
*/
public function setSupportsMultiOpen($supportsMultiOpen)
{
$this->supportsMultiOpen = $supportsMultiOpen;
}
/**
* @return bool
*/
public function getSupportsMultiOpen()
{
return $this->supportsMultiOpen;
}
/**
* @param bool
*/
public function setSupportsOfflineCreate($supportsOfflineCreate)
{
$this->supportsOfflineCreate = $supportsOfflineCreate;
}
/**
* @return bool
*/
public function getSupportsOfflineCreate()
{
return $this->supportsOfflineCreate;
}
/**
* @param bool
*/
public function setUseByDefault($useByDefault)
{
$this->useByDefault = $useByDefault;
}
/**
* @return bool
*/
public function getUseByDefault()
{
return $this->useByDefault;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(App::class, 'Google_Service_Drive_App');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class AppIcons extends \Google\Model
{
/**
* @var string
*/
public $category;
/**
* @var string
*/
public $iconUrl;
/**
* @var int
*/
public $size;
/**
* @param string
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* @param string
*/
public function setIconUrl($iconUrl)
{
$this->iconUrl = $iconUrl;
}
/**
* @return string
*/
public function getIconUrl()
{
return $this->iconUrl;
}
/**
* @param int
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return int
*/
public function getSize()
{
return $this->size;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppIcons::class, 'Google_Service_Drive_AppIcons');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class AppList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string[]
*/
public $defaultAppIds;
protected $itemsType = App::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $selfLink;
/**
* @param string[]
*/
public function setDefaultAppIds($defaultAppIds)
{
$this->defaultAppIds = $defaultAppIds;
}
/**
* @return string[]
*/
public function getDefaultAppIds()
{
return $this->defaultAppIds;
}
/**
* @param App[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return App[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppList::class, 'Google_Service_Drive_AppList');
@@ -0,0 +1,218 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Change extends \Google\Model
{
/**
* @var string
*/
public $changeType;
protected $driveType = Drive::class;
protected $driveDataType = '';
/**
* @var string
*/
public $driveId;
protected $fileType = DriveFile::class;
protected $fileDataType = '';
/**
* @var string
*/
public $fileId;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $removed;
protected $teamDriveType = TeamDrive::class;
protected $teamDriveDataType = '';
/**
* @var string
*/
public $teamDriveId;
/**
* @var string
*/
public $time;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setChangeType($changeType)
{
$this->changeType = $changeType;
}
/**
* @return string
*/
public function getChangeType()
{
return $this->changeType;
}
/**
* @param Drive
*/
public function setDrive(Drive $drive)
{
$this->drive = $drive;
}
/**
* @return Drive
*/
public function getDrive()
{
return $this->drive;
}
/**
* @param string
*/
public function setDriveId($driveId)
{
$this->driveId = $driveId;
}
/**
* @return string
*/
public function getDriveId()
{
return $this->driveId;
}
/**
* @param DriveFile
*/
public function setFile(DriveFile $file)
{
$this->file = $file;
}
/**
* @return DriveFile
*/
public function getFile()
{
return $this->file;
}
/**
* @param string
*/
public function setFileId($fileId)
{
$this->fileId = $fileId;
}
/**
* @return string
*/
public function getFileId()
{
return $this->fileId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setRemoved($removed)
{
$this->removed = $removed;
}
/**
* @return bool
*/
public function getRemoved()
{
return $this->removed;
}
/**
* @param TeamDrive
*/
public function setTeamDrive(TeamDrive $teamDrive)
{
$this->teamDrive = $teamDrive;
}
/**
* @return TeamDrive
*/
public function getTeamDrive()
{
return $this->teamDrive;
}
/**
* @param string
*/
public function setTeamDriveId($teamDriveId)
{
$this->teamDriveId = $teamDriveId;
}
/**
* @return string
*/
public function getTeamDriveId()
{
return $this->teamDriveId;
}
/**
* @param string
*/
public function setTime($time)
{
$this->time = $time;
}
/**
* @return string
*/
public function getTime()
{
return $this->time;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Change::class, 'Google_Service_Drive_Change');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class ChangeList extends \Google\Collection
{
protected $collection_key = 'changes';
protected $changesType = Change::class;
protected $changesDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $newStartPageToken;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Change[]
*/
public function setChanges($changes)
{
$this->changes = $changes;
}
/**
* @return Change[]
*/
public function getChanges()
{
return $this->changes;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNewStartPageToken($newStartPageToken)
{
$this->newStartPageToken = $newStartPageToken;
}
/**
* @return string
*/
public function getNewStartPageToken()
{
return $this->newStartPageToken;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChangeList::class, 'Google_Service_Drive_ChangeList');
@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Channel extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $expiration;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $params;
/**
* @var bool
*/
public $payload;
/**
* @var string
*/
public $resourceId;
/**
* @var string
*/
public $resourceUri;
/**
* @var string
*/
public $token;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setExpiration($expiration)
{
$this->expiration = $expiration;
}
/**
* @return string
*/
public function getExpiration()
{
return $this->expiration;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return string[]
*/
public function getParams()
{
return $this->params;
}
/**
* @param bool
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return bool
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param string
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channel::class, 'Google_Service_Drive_Channel');
@@ -0,0 +1,237 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Comment extends \Google\Collection
{
protected $collection_key = 'replies';
/**
* @var string
*/
public $anchor;
protected $authorType = User::class;
protected $authorDataType = '';
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $createdTime;
/**
* @var bool
*/
public $deleted;
/**
* @var string
*/
public $htmlContent;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $modifiedTime;
protected $quotedFileContentType = CommentQuotedFileContent::class;
protected $quotedFileContentDataType = '';
protected $repliesType = Reply::class;
protected $repliesDataType = 'array';
/**
* @var bool
*/
public $resolved;
/**
* @param string
*/
public function setAnchor($anchor)
{
$this->anchor = $anchor;
}
/**
* @return string
*/
public function getAnchor()
{
return $this->anchor;
}
/**
* @param User
*/
public function setAuthor(User $author)
{
$this->author = $author;
}
/**
* @return User
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setCreatedTime($createdTime)
{
$this->createdTime = $createdTime;
}
/**
* @return string
*/
public function getCreatedTime()
{
return $this->createdTime;
}
/**
* @param bool
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* @param string
*/
public function setHtmlContent($htmlContent)
{
$this->htmlContent = $htmlContent;
}
/**
* @return string
*/
public function getHtmlContent()
{
return $this->htmlContent;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setModifiedTime($modifiedTime)
{
$this->modifiedTime = $modifiedTime;
}
/**
* @return string
*/
public function getModifiedTime()
{
return $this->modifiedTime;
}
/**
* @param CommentQuotedFileContent
*/
public function setQuotedFileContent(CommentQuotedFileContent $quotedFileContent)
{
$this->quotedFileContent = $quotedFileContent;
}
/**
* @return CommentQuotedFileContent
*/
public function getQuotedFileContent()
{
return $this->quotedFileContent;
}
/**
* @param Reply[]
*/
public function setReplies($replies)
{
$this->replies = $replies;
}
/**
* @return Reply[]
*/
public function getReplies()
{
return $this->replies;
}
/**
* @param bool
*/
public function setResolved($resolved)
{
$this->resolved = $resolved;
}
/**
* @return bool
*/
public function getResolved()
{
return $this->resolved;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Comment::class, 'Google_Service_Drive_Comment');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class CommentList extends \Google\Collection
{
protected $collection_key = 'comments';
protected $commentsType = Comment::class;
protected $commentsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Comment[]
*/
public function setComments($comments)
{
$this->comments = $comments;
}
/**
* @return Comment[]
*/
public function getComments()
{
return $this->comments;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentList::class, 'Google_Service_Drive_CommentList');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class CommentQuotedFileContent extends \Google\Model
{
/**
* @var string
*/
public $mimeType;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentQuotedFileContent::class, 'Google_Service_Drive_CommentQuotedFileContent');
@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class ContentRestriction extends \Google\Model
{
/**
* @var bool
*/
public $ownerRestricted;
/**
* @var bool
*/
public $readOnly;
/**
* @var string
*/
public $reason;
protected $restrictingUserType = User::class;
protected $restrictingUserDataType = '';
/**
* @var string
*/
public $restrictionTime;
/**
* @var bool
*/
public $systemRestricted;
/**
* @var string
*/
public $type;
/**
* @param bool
*/
public function setOwnerRestricted($ownerRestricted)
{
$this->ownerRestricted = $ownerRestricted;
}
/**
* @return bool
*/
public function getOwnerRestricted()
{
return $this->ownerRestricted;
}
/**
* @param bool
*/
public function setReadOnly($readOnly)
{
$this->readOnly = $readOnly;
}
/**
* @return bool
*/
public function getReadOnly()
{
return $this->readOnly;
}
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* @param User
*/
public function setRestrictingUser(User $restrictingUser)
{
$this->restrictingUser = $restrictingUser;
}
/**
* @return User
*/
public function getRestrictingUser()
{
return $this->restrictingUser;
}
/**
* @param string
*/
public function setRestrictionTime($restrictionTime)
{
$this->restrictionTime = $restrictionTime;
}
/**
* @return string
*/
public function getRestrictionTime()
{
return $this->restrictionTime;
}
/**
* @param bool
*/
public function setSystemRestricted($systemRestricted)
{
$this->systemRestricted = $systemRestricted;
}
/**
* @return bool
*/
public function getSystemRestricted()
{
return $this->systemRestricted;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContentRestriction::class, 'Google_Service_Drive_ContentRestriction');
@@ -0,0 +1,236 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Drive extends \Google\Model
{
protected $backgroundImageFileType = DriveBackgroundImageFile::class;
protected $backgroundImageFileDataType = '';
/**
* @var string
*/
public $backgroundImageLink;
protected $capabilitiesType = DriveCapabilities::class;
protected $capabilitiesDataType = '';
/**
* @var string
*/
public $colorRgb;
/**
* @var string
*/
public $createdTime;
/**
* @var bool
*/
public $hidden;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $orgUnitId;
protected $restrictionsType = DriveRestrictions::class;
protected $restrictionsDataType = '';
/**
* @var string
*/
public $themeId;
/**
* @param DriveBackgroundImageFile
*/
public function setBackgroundImageFile(DriveBackgroundImageFile $backgroundImageFile)
{
$this->backgroundImageFile = $backgroundImageFile;
}
/**
* @return DriveBackgroundImageFile
*/
public function getBackgroundImageFile()
{
return $this->backgroundImageFile;
}
/**
* @param string
*/
public function setBackgroundImageLink($backgroundImageLink)
{
$this->backgroundImageLink = $backgroundImageLink;
}
/**
* @return string
*/
public function getBackgroundImageLink()
{
return $this->backgroundImageLink;
}
/**
* @param DriveCapabilities
*/
public function setCapabilities(DriveCapabilities $capabilities)
{
$this->capabilities = $capabilities;
}
/**
* @return DriveCapabilities
*/
public function getCapabilities()
{
return $this->capabilities;
}
/**
* @param string
*/
public function setColorRgb($colorRgb)
{
$this->colorRgb = $colorRgb;
}
/**
* @return string
*/
public function getColorRgb()
{
return $this->colorRgb;
}
/**
* @param string
*/
public function setCreatedTime($createdTime)
{
$this->createdTime = $createdTime;
}
/**
* @return string
*/
public function getCreatedTime()
{
return $this->createdTime;
}
/**
* @param bool
*/
public function setHidden($hidden)
{
$this->hidden = $hidden;
}
/**
* @return bool
*/
public function getHidden()
{
return $this->hidden;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOrgUnitId($orgUnitId)
{
$this->orgUnitId = $orgUnitId;
}
/**
* @return string
*/
public function getOrgUnitId()
{
return $this->orgUnitId;
}
/**
* @param DriveRestrictions
*/
public function setRestrictions(DriveRestrictions $restrictions)
{
$this->restrictions = $restrictions;
}
/**
* @return DriveRestrictions
*/
public function getRestrictions()
{
return $this->restrictions;
}
/**
* @param string
*/
public function setThemeId($themeId)
{
$this->themeId = $themeId;
}
/**
* @return string
*/
public function getThemeId()
{
return $this->themeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Drive::class, 'Google_Service_Drive_Drive');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveBackgroundImageFile extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var float
*/
public $width;
/**
* @var float
*/
public $xCoordinate;
/**
* @var float
*/
public $yCoordinate;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param float
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return float
*/
public function getWidth()
{
return $this->width;
}
/**
* @param float
*/
public function setXCoordinate($xCoordinate)
{
$this->xCoordinate = $xCoordinate;
}
/**
* @return float
*/
public function getXCoordinate()
{
return $this->xCoordinate;
}
/**
* @param float
*/
public function setYCoordinate($yCoordinate)
{
$this->yCoordinate = $yCoordinate;
}
/**
* @return float
*/
public function getYCoordinate()
{
return $this->yCoordinate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveBackgroundImageFile::class, 'Google_Service_Drive_DriveBackgroundImageFile');
@@ -0,0 +1,386 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveCapabilities extends \Google\Model
{
/**
* @var bool
*/
public $canAddChildren;
/**
* @var bool
*/
public $canChangeCopyRequiresWriterPermissionRestriction;
/**
* @var bool
*/
public $canChangeDomainUsersOnlyRestriction;
/**
* @var bool
*/
public $canChangeDriveBackground;
/**
* @var bool
*/
public $canChangeDriveMembersOnlyRestriction;
/**
* @var bool
*/
public $canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
/**
* @var bool
*/
public $canComment;
/**
* @var bool
*/
public $canCopy;
/**
* @var bool
*/
public $canDeleteChildren;
/**
* @var bool
*/
public $canDeleteDrive;
/**
* @var bool
*/
public $canDownload;
/**
* @var bool
*/
public $canEdit;
/**
* @var bool
*/
public $canListChildren;
/**
* @var bool
*/
public $canManageMembers;
/**
* @var bool
*/
public $canReadRevisions;
/**
* @var bool
*/
public $canRename;
/**
* @var bool
*/
public $canRenameDrive;
/**
* @var bool
*/
public $canResetDriveRestrictions;
/**
* @var bool
*/
public $canShare;
/**
* @var bool
*/
public $canTrashChildren;
/**
* @param bool
*/
public function setCanAddChildren($canAddChildren)
{
$this->canAddChildren = $canAddChildren;
}
/**
* @return bool
*/
public function getCanAddChildren()
{
return $this->canAddChildren;
}
/**
* @param bool
*/
public function setCanChangeCopyRequiresWriterPermissionRestriction($canChangeCopyRequiresWriterPermissionRestriction)
{
$this->canChangeCopyRequiresWriterPermissionRestriction = $canChangeCopyRequiresWriterPermissionRestriction;
}
/**
* @return bool
*/
public function getCanChangeCopyRequiresWriterPermissionRestriction()
{
return $this->canChangeCopyRequiresWriterPermissionRestriction;
}
/**
* @param bool
*/
public function setCanChangeDomainUsersOnlyRestriction($canChangeDomainUsersOnlyRestriction)
{
$this->canChangeDomainUsersOnlyRestriction = $canChangeDomainUsersOnlyRestriction;
}
/**
* @return bool
*/
public function getCanChangeDomainUsersOnlyRestriction()
{
return $this->canChangeDomainUsersOnlyRestriction;
}
/**
* @param bool
*/
public function setCanChangeDriveBackground($canChangeDriveBackground)
{
$this->canChangeDriveBackground = $canChangeDriveBackground;
}
/**
* @return bool
*/
public function getCanChangeDriveBackground()
{
return $this->canChangeDriveBackground;
}
/**
* @param bool
*/
public function setCanChangeDriveMembersOnlyRestriction($canChangeDriveMembersOnlyRestriction)
{
$this->canChangeDriveMembersOnlyRestriction = $canChangeDriveMembersOnlyRestriction;
}
/**
* @return bool
*/
public function getCanChangeDriveMembersOnlyRestriction()
{
return $this->canChangeDriveMembersOnlyRestriction;
}
/**
* @param bool
*/
public function setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction($canChangeSharingFoldersRequiresOrganizerPermissionRestriction)
{
$this->canChangeSharingFoldersRequiresOrganizerPermissionRestriction = $canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
}
/**
* @return bool
*/
public function getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction()
{
return $this->canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
}
/**
* @param bool
*/
public function setCanComment($canComment)
{
$this->canComment = $canComment;
}
/**
* @return bool
*/
public function getCanComment()
{
return $this->canComment;
}
/**
* @param bool
*/
public function setCanCopy($canCopy)
{
$this->canCopy = $canCopy;
}
/**
* @return bool
*/
public function getCanCopy()
{
return $this->canCopy;
}
/**
* @param bool
*/
public function setCanDeleteChildren($canDeleteChildren)
{
$this->canDeleteChildren = $canDeleteChildren;
}
/**
* @return bool
*/
public function getCanDeleteChildren()
{
return $this->canDeleteChildren;
}
/**
* @param bool
*/
public function setCanDeleteDrive($canDeleteDrive)
{
$this->canDeleteDrive = $canDeleteDrive;
}
/**
* @return bool
*/
public function getCanDeleteDrive()
{
return $this->canDeleteDrive;
}
/**
* @param bool
*/
public function setCanDownload($canDownload)
{
$this->canDownload = $canDownload;
}
/**
* @return bool
*/
public function getCanDownload()
{
return $this->canDownload;
}
/**
* @param bool
*/
public function setCanEdit($canEdit)
{
$this->canEdit = $canEdit;
}
/**
* @return bool
*/
public function getCanEdit()
{
return $this->canEdit;
}
/**
* @param bool
*/
public function setCanListChildren($canListChildren)
{
$this->canListChildren = $canListChildren;
}
/**
* @return bool
*/
public function getCanListChildren()
{
return $this->canListChildren;
}
/**
* @param bool
*/
public function setCanManageMembers($canManageMembers)
{
$this->canManageMembers = $canManageMembers;
}
/**
* @return bool
*/
public function getCanManageMembers()
{
return $this->canManageMembers;
}
/**
* @param bool
*/
public function setCanReadRevisions($canReadRevisions)
{
$this->canReadRevisions = $canReadRevisions;
}
/**
* @return bool
*/
public function getCanReadRevisions()
{
return $this->canReadRevisions;
}
/**
* @param bool
*/
public function setCanRename($canRename)
{
$this->canRename = $canRename;
}
/**
* @return bool
*/
public function getCanRename()
{
return $this->canRename;
}
/**
* @param bool
*/
public function setCanRenameDrive($canRenameDrive)
{
$this->canRenameDrive = $canRenameDrive;
}
/**
* @return bool
*/
public function getCanRenameDrive()
{
return $this->canRenameDrive;
}
/**
* @param bool
*/
public function setCanResetDriveRestrictions($canResetDriveRestrictions)
{
$this->canResetDriveRestrictions = $canResetDriveRestrictions;
}
/**
* @return bool
*/
public function getCanResetDriveRestrictions()
{
return $this->canResetDriveRestrictions;
}
/**
* @param bool
*/
public function setCanShare($canShare)
{
$this->canShare = $canShare;
}
/**
* @return bool
*/
public function getCanShare()
{
return $this->canShare;
}
/**
* @param bool
*/
public function setCanTrashChildren($canTrashChildren)
{
$this->canTrashChildren = $canTrashChildren;
}
/**
* @return bool
*/
public function getCanTrashChildren()
{
return $this->canTrashChildren;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveCapabilities::class, 'Google_Service_Drive_DriveCapabilities');
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,764 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileCapabilities extends \Google\Model
{
/**
* @var bool
*/
public $canAcceptOwnership;
/**
* @var bool
*/
public $canAddChildren;
/**
* @var bool
*/
public $canAddFolderFromAnotherDrive;
/**
* @var bool
*/
public $canAddMyDriveParent;
/**
* @var bool
*/
public $canChangeCopyRequiresWriterPermission;
/**
* @var bool
*/
public $canChangeSecurityUpdateEnabled;
/**
* @var bool
*/
public $canChangeViewersCanCopyContent;
/**
* @var bool
*/
public $canComment;
/**
* @var bool
*/
public $canCopy;
/**
* @var bool
*/
public $canDelete;
/**
* @var bool
*/
public $canDeleteChildren;
/**
* @var bool
*/
public $canDownload;
/**
* @var bool
*/
public $canEdit;
/**
* @var bool
*/
public $canListChildren;
/**
* @var bool
*/
public $canModifyContent;
/**
* @var bool
*/
public $canModifyContentRestriction;
/**
* @var bool
*/
public $canModifyEditorContentRestriction;
/**
* @var bool
*/
public $canModifyLabels;
/**
* @var bool
*/
public $canModifyOwnerContentRestriction;
/**
* @var bool
*/
public $canMoveChildrenOutOfDrive;
/**
* @var bool
*/
public $canMoveChildrenOutOfTeamDrive;
/**
* @var bool
*/
public $canMoveChildrenWithinDrive;
/**
* @var bool
*/
public $canMoveChildrenWithinTeamDrive;
/**
* @var bool
*/
public $canMoveItemIntoTeamDrive;
/**
* @var bool
*/
public $canMoveItemOutOfDrive;
/**
* @var bool
*/
public $canMoveItemOutOfTeamDrive;
/**
* @var bool
*/
public $canMoveItemWithinDrive;
/**
* @var bool
*/
public $canMoveItemWithinTeamDrive;
/**
* @var bool
*/
public $canMoveTeamDriveItem;
/**
* @var bool
*/
public $canReadDrive;
/**
* @var bool
*/
public $canReadLabels;
/**
* @var bool
*/
public $canReadRevisions;
/**
* @var bool
*/
public $canReadTeamDrive;
/**
* @var bool
*/
public $canRemoveChildren;
/**
* @var bool
*/
public $canRemoveContentRestriction;
/**
* @var bool
*/
public $canRemoveMyDriveParent;
/**
* @var bool
*/
public $canRename;
/**
* @var bool
*/
public $canShare;
/**
* @var bool
*/
public $canTrash;
/**
* @var bool
*/
public $canTrashChildren;
/**
* @var bool
*/
public $canUntrash;
/**
* @param bool
*/
public function setCanAcceptOwnership($canAcceptOwnership)
{
$this->canAcceptOwnership = $canAcceptOwnership;
}
/**
* @return bool
*/
public function getCanAcceptOwnership()
{
return $this->canAcceptOwnership;
}
/**
* @param bool
*/
public function setCanAddChildren($canAddChildren)
{
$this->canAddChildren = $canAddChildren;
}
/**
* @return bool
*/
public function getCanAddChildren()
{
return $this->canAddChildren;
}
/**
* @param bool
*/
public function setCanAddFolderFromAnotherDrive($canAddFolderFromAnotherDrive)
{
$this->canAddFolderFromAnotherDrive = $canAddFolderFromAnotherDrive;
}
/**
* @return bool
*/
public function getCanAddFolderFromAnotherDrive()
{
return $this->canAddFolderFromAnotherDrive;
}
/**
* @param bool
*/
public function setCanAddMyDriveParent($canAddMyDriveParent)
{
$this->canAddMyDriveParent = $canAddMyDriveParent;
}
/**
* @return bool
*/
public function getCanAddMyDriveParent()
{
return $this->canAddMyDriveParent;
}
/**
* @param bool
*/
public function setCanChangeCopyRequiresWriterPermission($canChangeCopyRequiresWriterPermission)
{
$this->canChangeCopyRequiresWriterPermission = $canChangeCopyRequiresWriterPermission;
}
/**
* @return bool
*/
public function getCanChangeCopyRequiresWriterPermission()
{
return $this->canChangeCopyRequiresWriterPermission;
}
/**
* @param bool
*/
public function setCanChangeSecurityUpdateEnabled($canChangeSecurityUpdateEnabled)
{
$this->canChangeSecurityUpdateEnabled = $canChangeSecurityUpdateEnabled;
}
/**
* @return bool
*/
public function getCanChangeSecurityUpdateEnabled()
{
return $this->canChangeSecurityUpdateEnabled;
}
/**
* @param bool
*/
public function setCanChangeViewersCanCopyContent($canChangeViewersCanCopyContent)
{
$this->canChangeViewersCanCopyContent = $canChangeViewersCanCopyContent;
}
/**
* @return bool
*/
public function getCanChangeViewersCanCopyContent()
{
return $this->canChangeViewersCanCopyContent;
}
/**
* @param bool
*/
public function setCanComment($canComment)
{
$this->canComment = $canComment;
}
/**
* @return bool
*/
public function getCanComment()
{
return $this->canComment;
}
/**
* @param bool
*/
public function setCanCopy($canCopy)
{
$this->canCopy = $canCopy;
}
/**
* @return bool
*/
public function getCanCopy()
{
return $this->canCopy;
}
/**
* @param bool
*/
public function setCanDelete($canDelete)
{
$this->canDelete = $canDelete;
}
/**
* @return bool
*/
public function getCanDelete()
{
return $this->canDelete;
}
/**
* @param bool
*/
public function setCanDeleteChildren($canDeleteChildren)
{
$this->canDeleteChildren = $canDeleteChildren;
}
/**
* @return bool
*/
public function getCanDeleteChildren()
{
return $this->canDeleteChildren;
}
/**
* @param bool
*/
public function setCanDownload($canDownload)
{
$this->canDownload = $canDownload;
}
/**
* @return bool
*/
public function getCanDownload()
{
return $this->canDownload;
}
/**
* @param bool
*/
public function setCanEdit($canEdit)
{
$this->canEdit = $canEdit;
}
/**
* @return bool
*/
public function getCanEdit()
{
return $this->canEdit;
}
/**
* @param bool
*/
public function setCanListChildren($canListChildren)
{
$this->canListChildren = $canListChildren;
}
/**
* @return bool
*/
public function getCanListChildren()
{
return $this->canListChildren;
}
/**
* @param bool
*/
public function setCanModifyContent($canModifyContent)
{
$this->canModifyContent = $canModifyContent;
}
/**
* @return bool
*/
public function getCanModifyContent()
{
return $this->canModifyContent;
}
/**
* @param bool
*/
public function setCanModifyContentRestriction($canModifyContentRestriction)
{
$this->canModifyContentRestriction = $canModifyContentRestriction;
}
/**
* @return bool
*/
public function getCanModifyContentRestriction()
{
return $this->canModifyContentRestriction;
}
/**
* @param bool
*/
public function setCanModifyEditorContentRestriction($canModifyEditorContentRestriction)
{
$this->canModifyEditorContentRestriction = $canModifyEditorContentRestriction;
}
/**
* @return bool
*/
public function getCanModifyEditorContentRestriction()
{
return $this->canModifyEditorContentRestriction;
}
/**
* @param bool
*/
public function setCanModifyLabels($canModifyLabels)
{
$this->canModifyLabels = $canModifyLabels;
}
/**
* @return bool
*/
public function getCanModifyLabels()
{
return $this->canModifyLabels;
}
/**
* @param bool
*/
public function setCanModifyOwnerContentRestriction($canModifyOwnerContentRestriction)
{
$this->canModifyOwnerContentRestriction = $canModifyOwnerContentRestriction;
}
/**
* @return bool
*/
public function getCanModifyOwnerContentRestriction()
{
return $this->canModifyOwnerContentRestriction;
}
/**
* @param bool
*/
public function setCanMoveChildrenOutOfDrive($canMoveChildrenOutOfDrive)
{
$this->canMoveChildrenOutOfDrive = $canMoveChildrenOutOfDrive;
}
/**
* @return bool
*/
public function getCanMoveChildrenOutOfDrive()
{
return $this->canMoveChildrenOutOfDrive;
}
/**
* @param bool
*/
public function setCanMoveChildrenOutOfTeamDrive($canMoveChildrenOutOfTeamDrive)
{
$this->canMoveChildrenOutOfTeamDrive = $canMoveChildrenOutOfTeamDrive;
}
/**
* @return bool
*/
public function getCanMoveChildrenOutOfTeamDrive()
{
return $this->canMoveChildrenOutOfTeamDrive;
}
/**
* @param bool
*/
public function setCanMoveChildrenWithinDrive($canMoveChildrenWithinDrive)
{
$this->canMoveChildrenWithinDrive = $canMoveChildrenWithinDrive;
}
/**
* @return bool
*/
public function getCanMoveChildrenWithinDrive()
{
return $this->canMoveChildrenWithinDrive;
}
/**
* @param bool
*/
public function setCanMoveChildrenWithinTeamDrive($canMoveChildrenWithinTeamDrive)
{
$this->canMoveChildrenWithinTeamDrive = $canMoveChildrenWithinTeamDrive;
}
/**
* @return bool
*/
public function getCanMoveChildrenWithinTeamDrive()
{
return $this->canMoveChildrenWithinTeamDrive;
}
/**
* @param bool
*/
public function setCanMoveItemIntoTeamDrive($canMoveItemIntoTeamDrive)
{
$this->canMoveItemIntoTeamDrive = $canMoveItemIntoTeamDrive;
}
/**
* @return bool
*/
public function getCanMoveItemIntoTeamDrive()
{
return $this->canMoveItemIntoTeamDrive;
}
/**
* @param bool
*/
public function setCanMoveItemOutOfDrive($canMoveItemOutOfDrive)
{
$this->canMoveItemOutOfDrive = $canMoveItemOutOfDrive;
}
/**
* @return bool
*/
public function getCanMoveItemOutOfDrive()
{
return $this->canMoveItemOutOfDrive;
}
/**
* @param bool
*/
public function setCanMoveItemOutOfTeamDrive($canMoveItemOutOfTeamDrive)
{
$this->canMoveItemOutOfTeamDrive = $canMoveItemOutOfTeamDrive;
}
/**
* @return bool
*/
public function getCanMoveItemOutOfTeamDrive()
{
return $this->canMoveItemOutOfTeamDrive;
}
/**
* @param bool
*/
public function setCanMoveItemWithinDrive($canMoveItemWithinDrive)
{
$this->canMoveItemWithinDrive = $canMoveItemWithinDrive;
}
/**
* @return bool
*/
public function getCanMoveItemWithinDrive()
{
return $this->canMoveItemWithinDrive;
}
/**
* @param bool
*/
public function setCanMoveItemWithinTeamDrive($canMoveItemWithinTeamDrive)
{
$this->canMoveItemWithinTeamDrive = $canMoveItemWithinTeamDrive;
}
/**
* @return bool
*/
public function getCanMoveItemWithinTeamDrive()
{
return $this->canMoveItemWithinTeamDrive;
}
/**
* @param bool
*/
public function setCanMoveTeamDriveItem($canMoveTeamDriveItem)
{
$this->canMoveTeamDriveItem = $canMoveTeamDriveItem;
}
/**
* @return bool
*/
public function getCanMoveTeamDriveItem()
{
return $this->canMoveTeamDriveItem;
}
/**
* @param bool
*/
public function setCanReadDrive($canReadDrive)
{
$this->canReadDrive = $canReadDrive;
}
/**
* @return bool
*/
public function getCanReadDrive()
{
return $this->canReadDrive;
}
/**
* @param bool
*/
public function setCanReadLabels($canReadLabels)
{
$this->canReadLabels = $canReadLabels;
}
/**
* @return bool
*/
public function getCanReadLabels()
{
return $this->canReadLabels;
}
/**
* @param bool
*/
public function setCanReadRevisions($canReadRevisions)
{
$this->canReadRevisions = $canReadRevisions;
}
/**
* @return bool
*/
public function getCanReadRevisions()
{
return $this->canReadRevisions;
}
/**
* @param bool
*/
public function setCanReadTeamDrive($canReadTeamDrive)
{
$this->canReadTeamDrive = $canReadTeamDrive;
}
/**
* @return bool
*/
public function getCanReadTeamDrive()
{
return $this->canReadTeamDrive;
}
/**
* @param bool
*/
public function setCanRemoveChildren($canRemoveChildren)
{
$this->canRemoveChildren = $canRemoveChildren;
}
/**
* @return bool
*/
public function getCanRemoveChildren()
{
return $this->canRemoveChildren;
}
/**
* @param bool
*/
public function setCanRemoveContentRestriction($canRemoveContentRestriction)
{
$this->canRemoveContentRestriction = $canRemoveContentRestriction;
}
/**
* @return bool
*/
public function getCanRemoveContentRestriction()
{
return $this->canRemoveContentRestriction;
}
/**
* @param bool
*/
public function setCanRemoveMyDriveParent($canRemoveMyDriveParent)
{
$this->canRemoveMyDriveParent = $canRemoveMyDriveParent;
}
/**
* @return bool
*/
public function getCanRemoveMyDriveParent()
{
return $this->canRemoveMyDriveParent;
}
/**
* @param bool
*/
public function setCanRename($canRename)
{
$this->canRename = $canRename;
}
/**
* @return bool
*/
public function getCanRename()
{
return $this->canRename;
}
/**
* @param bool
*/
public function setCanShare($canShare)
{
$this->canShare = $canShare;
}
/**
* @return bool
*/
public function getCanShare()
{
return $this->canShare;
}
/**
* @param bool
*/
public function setCanTrash($canTrash)
{
$this->canTrash = $canTrash;
}
/**
* @return bool
*/
public function getCanTrash()
{
return $this->canTrash;
}
/**
* @param bool
*/
public function setCanTrashChildren($canTrashChildren)
{
$this->canTrashChildren = $canTrashChildren;
}
/**
* @return bool
*/
public function getCanTrashChildren()
{
return $this->canTrashChildren;
}
/**
* @param bool
*/
public function setCanUntrash($canUntrash)
{
$this->canUntrash = $canUntrash;
}
/**
* @return bool
*/
public function getCanUntrash()
{
return $this->canUntrash;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileCapabilities::class, 'Google_Service_Drive_DriveFileCapabilities');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileContentHints extends \Google\Model
{
/**
* @var string
*/
public $indexableText;
protected $thumbnailType = DriveFileContentHintsThumbnail::class;
protected $thumbnailDataType = '';
/**
* @param string
*/
public function setIndexableText($indexableText)
{
$this->indexableText = $indexableText;
}
/**
* @return string
*/
public function getIndexableText()
{
return $this->indexableText;
}
/**
* @param DriveFileContentHintsThumbnail
*/
public function setThumbnail(DriveFileContentHintsThumbnail $thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return DriveFileContentHintsThumbnail
*/
public function getThumbnail()
{
return $this->thumbnail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileContentHints::class, 'Google_Service_Drive_DriveFileContentHints');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileContentHintsThumbnail extends \Google\Model
{
/**
* @var string
*/
public $image;
/**
* @var string
*/
public $mimeType;
/**
* @param string
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileContentHintsThumbnail::class, 'Google_Service_Drive_DriveFileContentHintsThumbnail');
@@ -0,0 +1,402 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileImageMediaMetadata extends \Google\Model
{
/**
* @var float
*/
public $aperture;
/**
* @var string
*/
public $cameraMake;
/**
* @var string
*/
public $cameraModel;
/**
* @var string
*/
public $colorSpace;
/**
* @var float
*/
public $exposureBias;
/**
* @var string
*/
public $exposureMode;
/**
* @var float
*/
public $exposureTime;
/**
* @var bool
*/
public $flashUsed;
/**
* @var float
*/
public $focalLength;
/**
* @var int
*/
public $height;
/**
* @var int
*/
public $isoSpeed;
/**
* @var string
*/
public $lens;
protected $locationType = DriveFileImageMediaMetadataLocation::class;
protected $locationDataType = '';
/**
* @var float
*/
public $maxApertureValue;
/**
* @var string
*/
public $meteringMode;
/**
* @var int
*/
public $rotation;
/**
* @var string
*/
public $sensor;
/**
* @var int
*/
public $subjectDistance;
/**
* @var string
*/
public $time;
/**
* @var string
*/
public $whiteBalance;
/**
* @var int
*/
public $width;
/**
* @param float
*/
public function setAperture($aperture)
{
$this->aperture = $aperture;
}
/**
* @return float
*/
public function getAperture()
{
return $this->aperture;
}
/**
* @param string
*/
public function setCameraMake($cameraMake)
{
$this->cameraMake = $cameraMake;
}
/**
* @return string
*/
public function getCameraMake()
{
return $this->cameraMake;
}
/**
* @param string
*/
public function setCameraModel($cameraModel)
{
$this->cameraModel = $cameraModel;
}
/**
* @return string
*/
public function getCameraModel()
{
return $this->cameraModel;
}
/**
* @param string
*/
public function setColorSpace($colorSpace)
{
$this->colorSpace = $colorSpace;
}
/**
* @return string
*/
public function getColorSpace()
{
return $this->colorSpace;
}
/**
* @param float
*/
public function setExposureBias($exposureBias)
{
$this->exposureBias = $exposureBias;
}
/**
* @return float
*/
public function getExposureBias()
{
return $this->exposureBias;
}
/**
* @param string
*/
public function setExposureMode($exposureMode)
{
$this->exposureMode = $exposureMode;
}
/**
* @return string
*/
public function getExposureMode()
{
return $this->exposureMode;
}
/**
* @param float
*/
public function setExposureTime($exposureTime)
{
$this->exposureTime = $exposureTime;
}
/**
* @return float
*/
public function getExposureTime()
{
return $this->exposureTime;
}
/**
* @param bool
*/
public function setFlashUsed($flashUsed)
{
$this->flashUsed = $flashUsed;
}
/**
* @return bool
*/
public function getFlashUsed()
{
return $this->flashUsed;
}
/**
* @param float
*/
public function setFocalLength($focalLength)
{
$this->focalLength = $focalLength;
}
/**
* @return float
*/
public function getFocalLength()
{
return $this->focalLength;
}
/**
* @param int
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* @param int
*/
public function setIsoSpeed($isoSpeed)
{
$this->isoSpeed = $isoSpeed;
}
/**
* @return int
*/
public function getIsoSpeed()
{
return $this->isoSpeed;
}
/**
* @param string
*/
public function setLens($lens)
{
$this->lens = $lens;
}
/**
* @return string
*/
public function getLens()
{
return $this->lens;
}
/**
* @param DriveFileImageMediaMetadataLocation
*/
public function setLocation(DriveFileImageMediaMetadataLocation $location)
{
$this->location = $location;
}
/**
* @return DriveFileImageMediaMetadataLocation
*/
public function getLocation()
{
return $this->location;
}
/**
* @param float
*/
public function setMaxApertureValue($maxApertureValue)
{
$this->maxApertureValue = $maxApertureValue;
}
/**
* @return float
*/
public function getMaxApertureValue()
{
return $this->maxApertureValue;
}
/**
* @param string
*/
public function setMeteringMode($meteringMode)
{
$this->meteringMode = $meteringMode;
}
/**
* @return string
*/
public function getMeteringMode()
{
return $this->meteringMode;
}
/**
* @param int
*/
public function setRotation($rotation)
{
$this->rotation = $rotation;
}
/**
* @return int
*/
public function getRotation()
{
return $this->rotation;
}
/**
* @param string
*/
public function setSensor($sensor)
{
$this->sensor = $sensor;
}
/**
* @return string
*/
public function getSensor()
{
return $this->sensor;
}
/**
* @param int
*/
public function setSubjectDistance($subjectDistance)
{
$this->subjectDistance = $subjectDistance;
}
/**
* @return int
*/
public function getSubjectDistance()
{
return $this->subjectDistance;
}
/**
* @param string
*/
public function setTime($time)
{
$this->time = $time;
}
/**
* @return string
*/
public function getTime()
{
return $this->time;
}
/**
* @param string
*/
public function setWhiteBalance($whiteBalance)
{
$this->whiteBalance = $whiteBalance;
}
/**
* @return string
*/
public function getWhiteBalance()
{
return $this->whiteBalance;
}
/**
* @param int
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileImageMediaMetadata::class, 'Google_Service_Drive_DriveFileImageMediaMetadata');
@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileImageMediaMetadataLocation extends \Google\Model
{
public $altitude;
public $latitude;
public $longitude;
public function setAltitude($altitude)
{
$this->altitude = $altitude;
}
public function getAltitude()
{
return $this->altitude;
}
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileImageMediaMetadataLocation::class, 'Google_Service_Drive_DriveFileImageMediaMetadataLocation');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileLabelInfo extends \Google\Collection
{
protected $collection_key = 'labels';
protected $labelsType = Label::class;
protected $labelsDataType = 'array';
/**
* @param Label[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return Label[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileLabelInfo::class, 'Google_Service_Drive_DriveFileLabelInfo');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileLinkShareMetadata extends \Google\Model
{
/**
* @var bool
*/
public $securityUpdateEligible;
/**
* @var bool
*/
public $securityUpdateEnabled;
/**
* @param bool
*/
public function setSecurityUpdateEligible($securityUpdateEligible)
{
$this->securityUpdateEligible = $securityUpdateEligible;
}
/**
* @return bool
*/
public function getSecurityUpdateEligible()
{
return $this->securityUpdateEligible;
}
/**
* @param bool
*/
public function setSecurityUpdateEnabled($securityUpdateEnabled)
{
$this->securityUpdateEnabled = $securityUpdateEnabled;
}
/**
* @return bool
*/
public function getSecurityUpdateEnabled()
{
return $this->securityUpdateEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileLinkShareMetadata::class, 'Google_Service_Drive_DriveFileLinkShareMetadata');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileShortcutDetails extends \Google\Model
{
/**
* @var string
*/
public $targetId;
/**
* @var string
*/
public $targetMimeType;
/**
* @var string
*/
public $targetResourceKey;
/**
* @param string
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* @param string
*/
public function setTargetMimeType($targetMimeType)
{
$this->targetMimeType = $targetMimeType;
}
/**
* @return string
*/
public function getTargetMimeType()
{
return $this->targetMimeType;
}
/**
* @param string
*/
public function setTargetResourceKey($targetResourceKey)
{
$this->targetResourceKey = $targetResourceKey;
}
/**
* @return string
*/
public function getTargetResourceKey()
{
return $this->targetResourceKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileShortcutDetails::class, 'Google_Service_Drive_DriveFileShortcutDetails');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveFileVideoMediaMetadata extends \Google\Model
{
/**
* @var string
*/
public $durationMillis;
/**
* @var int
*/
public $height;
/**
* @var int
*/
public $width;
/**
* @param string
*/
public function setDurationMillis($durationMillis)
{
$this->durationMillis = $durationMillis;
}
/**
* @return string
*/
public function getDurationMillis()
{
return $this->durationMillis;
}
/**
* @param int
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* @param int
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveFileVideoMediaMetadata::class, 'Google_Service_Drive_DriveFileVideoMediaMetadata');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveList extends \Google\Collection
{
protected $collection_key = 'drives';
protected $drivesType = Drive::class;
protected $drivesDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Drive[]
*/
public function setDrives($drives)
{
$this->drives = $drives;
}
/**
* @return Drive[]
*/
public function getDrives()
{
return $this->drives;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveList::class, 'Google_Service_Drive_DriveList');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class DriveRestrictions extends \Google\Model
{
/**
* @var bool
*/
public $adminManagedRestrictions;
/**
* @var bool
*/
public $copyRequiresWriterPermission;
/**
* @var bool
*/
public $domainUsersOnly;
/**
* @var bool
*/
public $driveMembersOnly;
/**
* @var bool
*/
public $sharingFoldersRequiresOrganizerPermission;
/**
* @param bool
*/
public function setAdminManagedRestrictions($adminManagedRestrictions)
{
$this->adminManagedRestrictions = $adminManagedRestrictions;
}
/**
* @return bool
*/
public function getAdminManagedRestrictions()
{
return $this->adminManagedRestrictions;
}
/**
* @param bool
*/
public function setCopyRequiresWriterPermission($copyRequiresWriterPermission)
{
$this->copyRequiresWriterPermission = $copyRequiresWriterPermission;
}
/**
* @return bool
*/
public function getCopyRequiresWriterPermission()
{
return $this->copyRequiresWriterPermission;
}
/**
* @param bool
*/
public function setDomainUsersOnly($domainUsersOnly)
{
$this->domainUsersOnly = $domainUsersOnly;
}
/**
* @return bool
*/
public function getDomainUsersOnly()
{
return $this->domainUsersOnly;
}
/**
* @param bool
*/
public function setDriveMembersOnly($driveMembersOnly)
{
$this->driveMembersOnly = $driveMembersOnly;
}
/**
* @return bool
*/
public function getDriveMembersOnly()
{
return $this->driveMembersOnly;
}
/**
* @param bool
*/
public function setSharingFoldersRequiresOrganizerPermission($sharingFoldersRequiresOrganizerPermission)
{
$this->sharingFoldersRequiresOrganizerPermission = $sharingFoldersRequiresOrganizerPermission;
}
/**
* @return bool
*/
public function getSharingFoldersRequiresOrganizerPermission()
{
return $this->sharingFoldersRequiresOrganizerPermission;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveRestrictions::class, 'Google_Service_Drive_DriveRestrictions');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class FileList extends \Google\Collection
{
protected $collection_key = 'files';
protected $filesType = DriveFile::class;
protected $filesDataType = 'array';
/**
* @var bool
*/
public $incompleteSearch;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param DriveFile[]
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return DriveFile[]
*/
public function getFiles()
{
return $this->files;
}
/**
* @param bool
*/
public function setIncompleteSearch($incompleteSearch)
{
$this->incompleteSearch = $incompleteSearch;
}
/**
* @return bool
*/
public function getIncompleteSearch()
{
return $this->incompleteSearch;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileList::class, 'Google_Service_Drive_FileList');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class GeneratedIds extends \Google\Collection
{
protected $collection_key = 'ids';
/**
* @var string[]
*/
public $ids;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $space;
/**
* @param string[]
*/
public function setIds($ids)
{
$this->ids = $ids;
}
/**
* @return string[]
*/
public function getIds()
{
return $this->ids;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setSpace($space)
{
$this->space = $space;
}
/**
* @return string
*/
public function getSpace()
{
return $this->space;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeneratedIds::class, 'Google_Service_Drive_GeneratedIds');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Label extends \Google\Model
{
protected $fieldsType = LabelField::class;
protected $fieldsDataType = 'map';
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $revisionId;
/**
* @param LabelField[]
*/
public function setFields($fields)
{
$this->fields = $fields;
}
/**
* @return LabelField[]
*/
public function getFields()
{
return $this->fields;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Label::class, 'Google_Service_Drive_Label');
@@ -0,0 +1,169 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class LabelField extends \Google\Collection
{
protected $collection_key = 'user';
/**
* @var string[]
*/
public $dateString;
/**
* @var string
*/
public $id;
/**
* @var string[]
*/
public $integer;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $selection;
/**
* @var string[]
*/
public $text;
protected $userType = User::class;
protected $userDataType = 'array';
/**
* @var string
*/
public $valueType;
/**
* @param string[]
*/
public function setDateString($dateString)
{
$this->dateString = $dateString;
}
/**
* @return string[]
*/
public function getDateString()
{
return $this->dateString;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string[]
*/
public function setInteger($integer)
{
$this->integer = $integer;
}
/**
* @return string[]
*/
public function getInteger()
{
return $this->integer;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setSelection($selection)
{
$this->selection = $selection;
}
/**
* @return string[]
*/
public function getSelection()
{
return $this->selection;
}
/**
* @param string[]
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string[]
*/
public function getText()
{
return $this->text;
}
/**
* @param User[]
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return User[]
*/
public function getUser()
{
return $this->user;
}
/**
* @param string
*/
public function setValueType($valueType)
{
$this->valueType = $valueType;
}
/**
* @return string
*/
public function getValueType()
{
return $this->valueType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelField::class, 'Google_Service_Drive_LabelField');
@@ -0,0 +1,171 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class LabelFieldModification extends \Google\Collection
{
protected $collection_key = 'setUserValues';
/**
* @var string
*/
public $fieldId;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $setDateValues;
/**
* @var string[]
*/
public $setIntegerValues;
/**
* @var string[]
*/
public $setSelectionValues;
/**
* @var string[]
*/
public $setTextValues;
/**
* @var string[]
*/
public $setUserValues;
/**
* @var bool
*/
public $unsetValues;
/**
* @param string
*/
public function setFieldId($fieldId)
{
$this->fieldId = $fieldId;
}
/**
* @return string
*/
public function getFieldId()
{
return $this->fieldId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setSetDateValues($setDateValues)
{
$this->setDateValues = $setDateValues;
}
/**
* @return string[]
*/
public function getSetDateValues()
{
return $this->setDateValues;
}
/**
* @param string[]
*/
public function setSetIntegerValues($setIntegerValues)
{
$this->setIntegerValues = $setIntegerValues;
}
/**
* @return string[]
*/
public function getSetIntegerValues()
{
return $this->setIntegerValues;
}
/**
* @param string[]
*/
public function setSetSelectionValues($setSelectionValues)
{
$this->setSelectionValues = $setSelectionValues;
}
/**
* @return string[]
*/
public function getSetSelectionValues()
{
return $this->setSelectionValues;
}
/**
* @param string[]
*/
public function setSetTextValues($setTextValues)
{
$this->setTextValues = $setTextValues;
}
/**
* @return string[]
*/
public function getSetTextValues()
{
return $this->setTextValues;
}
/**
* @param string[]
*/
public function setSetUserValues($setUserValues)
{
$this->setUserValues = $setUserValues;
}
/**
* @return string[]
*/
public function getSetUserValues()
{
return $this->setUserValues;
}
/**
* @param bool
*/
public function setUnsetValues($unsetValues)
{
$this->unsetValues = $unsetValues;
}
/**
* @return bool
*/
public function getUnsetValues()
{
return $this->unsetValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelFieldModification::class, 'Google_Service_Drive_LabelFieldModification');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class LabelList extends \Google\Collection
{
protected $collection_key = 'labels';
/**
* @var string
*/
public $kind;
protected $labelsType = Label::class;
protected $labelsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param Label[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return Label[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelList::class, 'Google_Service_Drive_LabelList');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class LabelModification extends \Google\Collection
{
protected $collection_key = 'fieldModifications';
protected $fieldModificationsType = LabelFieldModification::class;
protected $fieldModificationsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $labelId;
/**
* @var bool
*/
public $removeLabel;
/**
* @param LabelFieldModification[]
*/
public function setFieldModifications($fieldModifications)
{
$this->fieldModifications = $fieldModifications;
}
/**
* @return LabelFieldModification[]
*/
public function getFieldModifications()
{
return $this->fieldModifications;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLabelId($labelId)
{
$this->labelId = $labelId;
}
/**
* @return string
*/
public function getLabelId()
{
return $this->labelId;
}
/**
* @param bool
*/
public function setRemoveLabel($removeLabel)
{
$this->removeLabel = $removeLabel;
}
/**
* @return bool
*/
public function getRemoveLabel()
{
return $this->removeLabel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelModification::class, 'Google_Service_Drive_LabelModification');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class ListAccessProposalsResponse extends \Google\Collection
{
protected $collection_key = 'accessProposals';
protected $accessProposalsType = AccessProposal::class;
protected $accessProposalsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param AccessProposal[]
*/
public function setAccessProposals($accessProposals)
{
$this->accessProposals = $accessProposals;
}
/**
* @return AccessProposal[]
*/
public function getAccessProposals()
{
return $this->accessProposals;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAccessProposalsResponse::class, 'Google_Service_Drive_ListAccessProposalsResponse');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_Drive_ListOperationsResponse');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class ModifyLabelsRequest extends \Google\Collection
{
protected $collection_key = 'labelModifications';
/**
* @var string
*/
public $kind;
protected $labelModificationsType = LabelModification::class;
protected $labelModificationsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param LabelModification[]
*/
public function setLabelModifications($labelModifications)
{
$this->labelModifications = $labelModifications;
}
/**
* @return LabelModification[]
*/
public function getLabelModifications()
{
return $this->labelModifications;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModifyLabelsRequest::class, 'Google_Service_Drive_ModifyLabelsRequest');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class ModifyLabelsResponse extends \Google\Collection
{
protected $collection_key = 'modifiedLabels';
/**
* @var string
*/
public $kind;
protected $modifiedLabelsType = Label::class;
protected $modifiedLabelsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param Label[]
*/
public function setModifiedLabels($modifiedLabels)
{
$this->modifiedLabels = $modifiedLabels;
}
/**
* @return Label[]
*/
public function getModifiedLabels()
{
return $this->modifiedLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModifyLabelsResponse::class, 'Google_Service_Drive_ModifyLabelsResponse');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Drive_Operation');
@@ -0,0 +1,293 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Permission extends \Google\Collection
{
protected $collection_key = 'teamDrivePermissionDetails';
/**
* @var bool
*/
public $allowFileDiscovery;
/**
* @var bool
*/
public $deleted;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $emailAddress;
/**
* @var string
*/
public $expirationTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $pendingOwner;
protected $permissionDetailsType = PermissionPermissionDetails::class;
protected $permissionDetailsDataType = 'array';
/**
* @var string
*/
public $photoLink;
/**
* @var string
*/
public $role;
protected $teamDrivePermissionDetailsType = PermissionTeamDrivePermissionDetails::class;
protected $teamDrivePermissionDetailsDataType = 'array';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $view;
/**
* @param bool
*/
public function setAllowFileDiscovery($allowFileDiscovery)
{
$this->allowFileDiscovery = $allowFileDiscovery;
}
/**
* @return bool
*/
public function getAllowFileDiscovery()
{
return $this->allowFileDiscovery;
}
/**
* @param bool
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param string
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* @param string
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setPendingOwner($pendingOwner)
{
$this->pendingOwner = $pendingOwner;
}
/**
* @return bool
*/
public function getPendingOwner()
{
return $this->pendingOwner;
}
/**
* @param PermissionPermissionDetails[]
*/
public function setPermissionDetails($permissionDetails)
{
$this->permissionDetails = $permissionDetails;
}
/**
* @return PermissionPermissionDetails[]
*/
public function getPermissionDetails()
{
return $this->permissionDetails;
}
/**
* @param string
*/
public function setPhotoLink($photoLink)
{
$this->photoLink = $photoLink;
}
/**
* @return string
*/
public function getPhotoLink()
{
return $this->photoLink;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @param PermissionTeamDrivePermissionDetails[]
*/
public function setTeamDrivePermissionDetails($teamDrivePermissionDetails)
{
$this->teamDrivePermissionDetails = $teamDrivePermissionDetails;
}
/**
* @return PermissionTeamDrivePermissionDetails[]
*/
public function getTeamDrivePermissionDetails()
{
return $this->teamDrivePermissionDetails;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return string
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Permission::class, 'Google_Service_Drive_Permission');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class PermissionList extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $permissionsType = Permission::class;
protected $permissionsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Permission[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return Permission[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PermissionList::class, 'Google_Service_Drive_PermissionList');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class PermissionPermissionDetails extends \Google\Model
{
/**
* @var bool
*/
public $inherited;
/**
* @var string
*/
public $inheritedFrom;
/**
* @var string
*/
public $permissionType;
/**
* @var string
*/
public $role;
/**
* @param bool
*/
public function setInherited($inherited)
{
$this->inherited = $inherited;
}
/**
* @return bool
*/
public function getInherited()
{
return $this->inherited;
}
/**
* @param string
*/
public function setInheritedFrom($inheritedFrom)
{
$this->inheritedFrom = $inheritedFrom;
}
/**
* @return string
*/
public function getInheritedFrom()
{
return $this->inheritedFrom;
}
/**
* @param string
*/
public function setPermissionType($permissionType)
{
$this->permissionType = $permissionType;
}
/**
* @return string
*/
public function getPermissionType()
{
return $this->permissionType;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PermissionPermissionDetails::class, 'Google_Service_Drive_PermissionPermissionDetails');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class PermissionTeamDrivePermissionDetails extends \Google\Model
{
/**
* @var bool
*/
public $inherited;
/**
* @var string
*/
public $inheritedFrom;
/**
* @var string
*/
public $role;
/**
* @var string
*/
public $teamDrivePermissionType;
/**
* @param bool
*/
public function setInherited($inherited)
{
$this->inherited = $inherited;
}
/**
* @return bool
*/
public function getInherited()
{
return $this->inherited;
}
/**
* @param string
*/
public function setInheritedFrom($inheritedFrom)
{
$this->inheritedFrom = $inheritedFrom;
}
/**
* @return string
*/
public function getInheritedFrom()
{
return $this->inheritedFrom;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @param string
*/
public function setTeamDrivePermissionType($teamDrivePermissionType)
{
$this->teamDrivePermissionType = $teamDrivePermissionType;
}
/**
* @return string
*/
public function getTeamDrivePermissionType()
{
return $this->teamDrivePermissionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PermissionTeamDrivePermissionDetails::class, 'Google_Service_Drive_PermissionTeamDrivePermissionDetails');
@@ -0,0 +1,186 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Reply extends \Google\Model
{
/**
* @var string
*/
public $action;
protected $authorType = User::class;
protected $authorDataType = '';
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $createdTime;
/**
* @var bool
*/
public $deleted;
/**
* @var string
*/
public $htmlContent;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $modifiedTime;
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param User
*/
public function setAuthor(User $author)
{
$this->author = $author;
}
/**
* @return User
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setCreatedTime($createdTime)
{
$this->createdTime = $createdTime;
}
/**
* @return string
*/
public function getCreatedTime()
{
return $this->createdTime;
}
/**
* @param bool
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* @param string
*/
public function setHtmlContent($htmlContent)
{
$this->htmlContent = $htmlContent;
}
/**
* @return string
*/
public function getHtmlContent()
{
return $this->htmlContent;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setModifiedTime($modifiedTime)
{
$this->modifiedTime = $modifiedTime;
}
/**
* @return string
*/
public function getModifiedTime()
{
return $this->modifiedTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Reply::class, 'Google_Service_Drive_Reply');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class ReplyList extends \Google\Collection
{
protected $collection_key = 'replies';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $repliesType = Reply::class;
protected $repliesDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Reply[]
*/
public function setReplies($replies)
{
$this->replies = $replies;
}
/**
* @return Reply[]
*/
public function getReplies()
{
return $this->replies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReplyList::class, 'Google_Service_Drive_ReplyList');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class ResolveAccessProposalRequest extends \Google\Collection
{
protected $collection_key = 'role';
/**
* @var string
*/
public $action;
/**
* @var string[]
*/
public $role;
/**
* @var bool
*/
public $sendNotification;
/**
* @var string
*/
public $view;
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string[]
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string[]
*/
public function getRole()
{
return $this->role;
}
/**
* @param bool
*/
public function setSendNotification($sendNotification)
{
$this->sendNotification = $sendNotification;
}
/**
* @return bool
*/
public function getSendNotification()
{
return $this->sendNotification;
}
/**
* @param string
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return string
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResolveAccessProposalRequest::class, 'Google_Service_Drive_ResolveAccessProposalRequest');
@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\About as AboutModel;
/**
* The "about" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $about = $driveService->about;
* </code>
*/
class About extends \Google\Service\Resource
{
/**
* Gets information about the user, the user's Drive, and system capabilities.
* For more information, see [Return user
* info](https://developers.google.com/drive/api/guides/user-info). Required:
* The `fields` parameter must be set. To return the exact fields you need, see
* [Return specific
* fields](https://developers.google.com/drive/api/guides/fields-parameter).
* (about.get)
*
* @param array $optParams Optional parameters.
* @return AboutModel
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AboutModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(About::class, 'Google_Service_Drive_Resource_About');
@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\AccessProposal;
use Google\Service\Drive\ListAccessProposalsResponse;
use Google\Service\Drive\ResolveAccessProposalRequest;
/**
* The "accessproposals" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $accessproposals = $driveService->accessproposals;
* </code>
*/
class Accessproposals extends \Google\Service\Resource
{
/**
* Retrieves an AccessProposal by ID. (accessproposals.get)
*
* @param string $fileId Required. The id of the item the request is on.
* @param string $proposalId Required. The id of the access proposal to resolve.
* @param array $optParams Optional parameters.
* @return AccessProposal
* @throws \Google\Service\Exception
*/
public function get($fileId, $proposalId, $optParams = [])
{
$params = ['fileId' => $fileId, 'proposalId' => $proposalId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AccessProposal::class);
}
/**
* List the AccessProposals on a file. Note: Only approvers are able to list
* AccessProposals on a file. If the user is not an approver, returns a 403.
* (accessproposals.listAccessproposals)
*
* @param string $fileId Required. The id of the item the request is on.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The number of results per page
* @opt_param string pageToken Optional. The continuation token on the list of
* access requests.
* @return ListAccessProposalsResponse
* @throws \Google\Service\Exception
*/
public function listAccessproposals($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAccessProposalsResponse::class);
}
/**
* Used to approve or deny an Access Proposal. (accessproposals.resolve)
*
* @param string $fileId Required. The id of the item the request is on.
* @param string $proposalId Required. The id of the access proposal to resolve.
* @param ResolveAccessProposalRequest $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resolve($fileId, $proposalId, ResolveAccessProposalRequest $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'proposalId' => $proposalId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resolve', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accessproposals::class, 'Google_Service_Drive_Resource_Accessproposals');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\App;
use Google\Service\Drive\AppList;
/**
* The "apps" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $apps = $driveService->apps;
* </code>
*/
class Apps extends \Google\Service\Resource
{
/**
* Gets a specific app. For more information, see [Return user
* info](https://developers.google.com/drive/api/guides/user-info). (apps.get)
*
* @param string $appId The ID of the app.
* @param array $optParams Optional parameters.
* @return App
* @throws \Google\Service\Exception
*/
public function get($appId, $optParams = [])
{
$params = ['appId' => $appId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], App::class);
}
/**
* Lists a user's installed apps. For more information, see [Return user
* info](https://developers.google.com/drive/api/guides/user-info).
* (apps.listApps)
*
* @param array $optParams Optional parameters.
*
* @opt_param string appFilterExtensions A comma-separated list of file
* extensions to limit returned results. All results within the given app query
* scope which can open any of the given file extensions are included in the
* response. If `appFilterMimeTypes` are provided as well, the result is a union
* of the two resulting app lists.
* @opt_param string appFilterMimeTypes A comma-separated list of file
* extensions to limit returned results. All results within the given app query
* scope which can open any of the given MIME types will be included in the
* response. If `appFilterExtensions` are provided as well, the result is a
* union of the two resulting app lists.
* @opt_param string languageCode A language or locale code, as defined by BCP
* 47, with some extensions from Unicode's LDML format
* (http://www.unicode.org/reports/tr35/).
* @return AppList
* @throws \Google\Service\Exception
*/
public function listApps($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AppList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Apps::class, 'Google_Service_Drive_Resource_Apps');
@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\ChangeList;
use Google\Service\Drive\Channel;
use Google\Service\Drive\StartPageToken;
/**
* The "changes" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $changes = $driveService->changes;
* </code>
*/
class Changes extends \Google\Service\Resource
{
/**
* Gets the starting pageToken for listing future changes. For more information,
* see [Retrieve changes](https://developers.google.com/drive/api/guides/manage-
* changes). (changes.getStartPageToken)
*
* @param array $optParams Optional parameters.
*
* @opt_param string driveId The ID of the shared drive for which the starting
* pageToken for listing future changes from that shared drive will be returned.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param string teamDriveId Deprecated: Use `driveId` instead.
* @return StartPageToken
* @throws \Google\Service\Exception
*/
public function getStartPageToken($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getStartPageToken', [$params], StartPageToken::class);
}
/**
* Lists the changes for a user or shared drive. For more information, see
* [Retrieve changes](https://developers.google.com/drive/api/guides/manage-
* changes). (changes.listChanges)
*
* @param string $pageToken The token for continuing a previous list request on
* the next page. This should be set to the value of 'nextPageToken' from the
* previous response or to the response from the getStartPageToken method.
* @param array $optParams Optional parameters.
*
* @opt_param string driveId The shared drive from which changes will be
* returned. If specified the change IDs will be reflective of the shared drive;
* use the combined drive ID and change ID as an identifier.
* @opt_param bool includeCorpusRemovals Whether changes should include the file
* resource if the file is still accessible by the user at the time of the
* request, even when a file was removed from the list of changes and there will
* be no further change entries for this file.
* @opt_param bool includeItemsFromAllDrives Whether both My Drive and shared
* drive items should be included in results.
* @opt_param string includeLabels A comma-separated list of IDs of labels to
* include in the `labelInfo` part of the response.
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param bool includeRemoved Whether to include changes indicating that
* items have been removed from the list of changes, for example by deletion or
* loss of access.
* @opt_param bool includeTeamDriveItems Deprecated: Use
* `includeItemsFromAllDrives` instead.
* @opt_param int pageSize The maximum number of changes to return per page.
* @opt_param bool restrictToMyDrive Whether to restrict the results to changes
* inside the My Drive hierarchy. This omits changes to files such as those in
* the Application Data folder or shared files which have not been added to My
* Drive.
* @opt_param string spaces A comma-separated list of spaces to query within the
* corpora. Supported values are 'drive' and 'appDataFolder'.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param string teamDriveId Deprecated: Use `driveId` instead.
* @return ChangeList
* @throws \Google\Service\Exception
*/
public function listChanges($pageToken, $optParams = [])
{
$params = ['pageToken' => $pageToken];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ChangeList::class);
}
/**
* Subscribes to changes for a user. For more information, see [Notifications
* for resource changes](https://developers.google.com/drive/api/guides/push).
* (changes.watch)
*
* @param string $pageToken The token for continuing a previous list request on
* the next page. This should be set to the value of 'nextPageToken' from the
* previous response or to the response from the getStartPageToken method.
* @param Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string driveId The shared drive from which changes will be
* returned. If specified the change IDs will be reflective of the shared drive;
* use the combined drive ID and change ID as an identifier.
* @opt_param bool includeCorpusRemovals Whether changes should include the file
* resource if the file is still accessible by the user at the time of the
* request, even when a file was removed from the list of changes and there will
* be no further change entries for this file.
* @opt_param bool includeItemsFromAllDrives Whether both My Drive and shared
* drive items should be included in results.
* @opt_param string includeLabels A comma-separated list of IDs of labels to
* include in the `labelInfo` part of the response.
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param bool includeRemoved Whether to include changes indicating that
* items have been removed from the list of changes, for example by deletion or
* loss of access.
* @opt_param bool includeTeamDriveItems Deprecated: Use
* `includeItemsFromAllDrives` instead.
* @opt_param int pageSize The maximum number of changes to return per page.
* @opt_param bool restrictToMyDrive Whether to restrict the results to changes
* inside the My Drive hierarchy. This omits changes to files such as those in
* the Application Data folder or shared files which have not been added to My
* Drive.
* @opt_param string spaces A comma-separated list of spaces to query within the
* corpora. Supported values are 'drive' and 'appDataFolder'.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param string teamDriveId Deprecated: Use `driveId` instead.
* @return Channel
* @throws \Google\Service\Exception
*/
public function watch($pageToken, Channel $postBody, $optParams = [])
{
$params = ['pageToken' => $pageToken, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watch', [$params], Channel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Changes::class, 'Google_Service_Drive_Resource_Changes');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\Channel;
/**
* The "channels" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $channels = $driveService->channels;
* </code>
*/
class Channels extends \Google\Service\Resource
{
/**
* Stops watching resources through this channel. For more information, see
* [Notifications for resource
* changes](https://developers.google.com/drive/api/guides/push).
* (channels.stop)
*
* @param Channel $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function stop(Channel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channels::class, 'Google_Service_Drive_Resource_Channels');
@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\Comment;
use Google\Service\Drive\CommentList;
/**
* The "comments" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $comments = $driveService->comments;
* </code>
*/
class Comments extends \Google\Service\Resource
{
/**
* Creates a comment on a file. For more information, see [Manage comments and
* replies](https://developers.google.com/drive/api/guides/manage-comments).
* Required: The `fields` parameter must be set. To return the exact fields you
* need, see [Return specific
* fields](https://developers.google.com/drive/api/guides/fields-parameter).
* (comments.create)
*
* @param string $fileId The ID of the file.
* @param Comment $postBody
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function create($fileId, Comment $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Comment::class);
}
/**
* Deletes a comment. For more information, see [Manage comments and
* replies](https://developers.google.com/drive/api/guides/manage-comments).
* Required: The `fields` parameter must be set. To return the exact fields you
* need, see [Return specific
* fields](https://developers.google.com/drive/api/guides/fields-parameter).
* (comments.delete)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($fileId, $commentId, $optParams = [])
{
$params = ['fileId' => $fileId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a comment by ID. For more information, see [Manage comments and
* replies](https://developers.google.com/drive/api/guides/manage-comments).
* Required: The `fields` parameter must be set. To return the exact fields you
* need, see [Return specific
* fields](https://developers.google.com/drive/api/guides/fields-parameter).
* (comments.get)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeDeleted Whether to return deleted comments. Deleted
* comments will not include their original content.
* @return Comment
* @throws \Google\Service\Exception
*/
public function get($fileId, $commentId, $optParams = [])
{
$params = ['fileId' => $fileId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Comment::class);
}
/**
* Lists a file's comments. For more information, see [Manage comments and
* replies](https://developers.google.com/drive/api/guides/manage-comments).
* Required: The `fields` parameter must be set. To return the exact fields you
* need, see [Return specific
* fields](https://developers.google.com/drive/api/guides/fields-parameter).
* (comments.listComments)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeDeleted Whether to include deleted comments. Deleted
* comments will not include their original content.
* @opt_param int pageSize The maximum number of comments to return per page.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @opt_param string startModifiedTime The minimum value of 'modifiedTime' for
* the result comments (RFC 3339 date-time).
* @return CommentList
* @throws \Google\Service\Exception
*/
public function listComments($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CommentList::class);
}
/**
* Updates a comment with patch semantics. For more information, see [Manage
* comments and replies](https://developers.google.com/drive/api/guides/manage-
* comments). Required: The `fields` parameter must be set. To return the exact
* fields you need, see [Return specific
* fields](https://developers.google.com/drive/api/guides/fields-parameter).
* (comments.update)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param Comment $postBody
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function update($fileId, $commentId, Comment $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Comment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Comments::class, 'Google_Service_Drive_Resource_Comments');
@@ -0,0 +1,164 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\Drive;
use Google\Service\Drive\DriveList;
/**
* The "drives" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $drives = $driveService->drives;
* </code>
*/
class Drives extends \Google\Service\Resource
{
/**
* Creates a shared drive. (drives.create)
*
* @param string $requestId Required. An ID, such as a random UUID, which
* uniquely identifies this user's request for idempotent creation of a shared
* drive. A repeated request by the same user and with the same request ID will
* avoid creating duplicates by attempting to create the same shared drive. If
* the shared drive already exists a 409 error will be returned.
* @param Drive $postBody
* @param array $optParams Optional parameters.
* @return Drive
* @throws \Google\Service\Exception
*/
public function create($requestId, Drive $postBody, $optParams = [])
{
$params = ['requestId' => $requestId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Drive::class);
}
/**
* Permanently deletes a shared drive for which the user is an `organizer`. The
* shared drive cannot contain any untrashed items. (drives.delete)
*
* @param string $driveId The ID of the shared drive.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowItemDeletion Whether any items inside the shared drive
* should also be deleted. This option is only supported when
* `useDomainAdminAccess` is also set to `true`.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the shared drive belongs.
* @throws \Google\Service\Exception
*/
public function delete($driveId, $optParams = [])
{
$params = ['driveId' => $driveId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a shared drive's metadata by ID. (drives.get)
*
* @param string $driveId The ID of the shared drive.
* @param array $optParams Optional parameters.
*
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the shared drive belongs.
* @return Drive
* @throws \Google\Service\Exception
*/
public function get($driveId, $optParams = [])
{
$params = ['driveId' => $driveId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Drive::class);
}
/**
* Hides a shared drive from the default view. (drives.hide)
*
* @param string $driveId The ID of the shared drive.
* @param array $optParams Optional parameters.
* @return Drive
* @throws \Google\Service\Exception
*/
public function hide($driveId, $optParams = [])
{
$params = ['driveId' => $driveId];
$params = array_merge($params, $optParams);
return $this->call('hide', [$params], Drive::class);
}
/**
* Lists the user's shared drives. This method accepts the `q` parameter, which
* is a search query combining one or more search terms. For more information,
* see the [Search for shared drives](/drive/api/guides/search-shareddrives)
* guide. (drives.listDrives)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of shared drives to return per page.
* @opt_param string pageToken Page token for shared drives.
* @opt_param string q Query string for searching shared drives.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then all shared drives of the domain in which
* the requester is an administrator are returned.
* @return DriveList
* @throws \Google\Service\Exception
*/
public function listDrives($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], DriveList::class);
}
/**
* Restores a shared drive to the default view. (drives.unhide)
*
* @param string $driveId The ID of the shared drive.
* @param array $optParams Optional parameters.
* @return Drive
* @throws \Google\Service\Exception
*/
public function unhide($driveId, $optParams = [])
{
$params = ['driveId' => $driveId];
$params = array_merge($params, $optParams);
return $this->call('unhide', [$params], Drive::class);
}
/**
* Updates the metadata for a shared drive. (drives.update)
*
* @param string $driveId The ID of the shared drive.
* @param Drive $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the shared drive belongs.
* @return Drive
* @throws \Google\Service\Exception
*/
public function update($driveId, Drive $postBody, $optParams = [])
{
$params = ['driveId' => $driveId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Drive::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Drives::class, 'Google_Service_Drive_Resource_Drives');
@@ -0,0 +1,448 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\Channel;
use Google\Service\Drive\DriveFile;
use Google\Service\Drive\FileList;
use Google\Service\Drive\GeneratedIds;
use Google\Service\Drive\LabelList;
use Google\Service\Drive\ModifyLabelsRequest;
use Google\Service\Drive\ModifyLabelsResponse;
use Google\Service\Drive\Operation as OperationModel;
/**
* The "files" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $files = $driveService->files;
* </code>
*/
class Files extends \Google\Service\Resource
{
/**
* Creates a copy of a file and applies any requested updates with patch
* semantics. (files.copy)
*
* @param string $fileId The ID of the file.
* @param DriveFile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool enforceSingleParent Deprecated. Copying files into multiple
* folders is no longer supported. Use shortcuts instead.
* @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
* default visibility settings for the created file. Domain administrators can
* choose to make all uploaded files visible to the domain by default; this
* parameter bypasses that behavior for the request. Permissions are still
* inherited from parent folders.
* @opt_param string includeLabels A comma-separated list of IDs of labels to
* include in the `labelInfo` part of the response.
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
* the new head revision. This is only applicable to files with binary content
* in Google Drive. Only 200 revisions for the file can be kept forever. If the
* limit is reached, try deleting pinned revisions.
* @opt_param string ocrLanguage A language hint for OCR processing during image
* import (ISO 639-1 code).
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @return DriveFile
* @throws \Google\Service\Exception
*/
public function copy($fileId, DriveFile $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('copy', [$params], DriveFile::class);
}
/**
* Creates a new file. This method supports an upload* URI and accepts uploaded
* media with the following characteristics: - *Maximum file size:* 5,120 GB -
* *Accepted Media MIME types:*`*` Note: Specify a valid MIME type, rather than
* the literal `*` value. The literal `*` is only used to indicate that any
* valid MIME type can be uploaded. For more information on uploading files, see
* [Upload file data](/drive/api/guides/manage-uploads). Apps creating shortcuts
* with `files.create` must specify the MIME type `application/vnd.google-
* apps.shortcut`. Apps should specify a file extension in the `name` property
* when inserting files with the API. For example, an operation to insert a JPEG
* file should specify something like `"name": "cat.jpg"` in the metadata.
* Subsequent `GET` requests include the read-only `fileExtension` property
* populated with the extension originally specified in the `title` property.
* When a Google Drive user requests to download a file, or when the file is
* downloaded through the sync client, Drive builds a full filename (with
* extension) based on the title. In cases where the extension is missing, Drive
* attempts to determine the extension based on the file's MIME type.
* (files.create)
*
* @param DriveFile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool enforceSingleParent Deprecated. Creating files in multiple
* folders is no longer supported.
* @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
* default visibility settings for the created file. Domain administrators can
* choose to make all uploaded files visible to the domain by default; this
* parameter bypasses that behavior for the request. Permissions are still
* inherited from parent folders.
* @opt_param string includeLabels A comma-separated list of IDs of labels to
* include in the `labelInfo` part of the response.
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
* the new head revision. This is only applicable to files with binary content
* in Google Drive. Only 200 revisions for the file can be kept forever. If the
* limit is reached, try deleting pinned revisions.
* @opt_param string ocrLanguage A language hint for OCR processing during image
* import (ISO 639-1 code).
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param bool useContentAsIndexableText Whether to use the uploaded content
* as indexable text.
* @return DriveFile
* @throws \Google\Service\Exception
*/
public function create(DriveFile $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], DriveFile::class);
}
/**
* Permanently deletes a file owned by the user without moving it to the trash.
* If the file belongs to a shared drive, the user must be an `organizer` on the
* parent folder. If the target is a folder, all descendants owned by the user
* are also deleted. (files.delete)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
*
* @opt_param bool enforceSingleParent Deprecated: If an item is not in a shared
* drive and its last parent is deleted but the item itself is not, the item
* will be placed under its owner's root.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @throws \Google\Service\Exception
*/
public function delete($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Downloads content of a file. Operations are valid for 24 hours from the time
* of creation. (files.download)
*
* @param string $fileId Required. The ID of the file to download.
* @param array $optParams Optional parameters.
*
* @opt_param string mimeType Optional. The MIME type the file should be
* downloaded as. This field can only be set when downloading Google Workspace
* documents. See [Export MIME types for Google Workspace
* documents](/drive/api/guides/ref-export-formats) for the list of supported
* MIME types. If not set, a Google Workspace document is downloaded with a
* default MIME type. The default MIME type might change in the future.
* @opt_param string revisionId Optional. The revision ID of the file to
* download. This field can only be set when downloading blob files, Google
* Docs, and Google Sheets. Returns `INVALID_ARGUMENT` if downloading a specific
* revision on the file is unsupported.
* @return OperationModel
* @throws \Google\Service\Exception
*/
public function download($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], OperationModel::class);
}
/**
* Permanently deletes all of the user's trashed files. (files.emptyTrash)
*
* @param array $optParams Optional parameters.
*
* @opt_param string driveId If set, empties the trash of the provided shared
* drive.
* @opt_param bool enforceSingleParent Deprecated: If an item is not in a shared
* drive and its last parent is deleted but the item itself is not, the item
* will be placed under its owner's root.
* @throws \Google\Service\Exception
*/
public function emptyTrash($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('emptyTrash', [$params]);
}
/**
* Exports a Google Workspace document to the requested MIME type and returns
* exported byte content. Note that the exported content is limited to 10MB.
* (files.export)
*
* @param string $fileId The ID of the file.
* @param string $mimeType Required. The MIME type of the format requested for
* this export.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function export($fileId, $mimeType, $optParams = [])
{
$params = ['fileId' => $fileId, 'mimeType' => $mimeType];
$params = array_merge($params, $optParams);
return $this->call('export', [$params]);
}
/**
* Generates a set of file IDs which can be provided in create or copy requests.
* (files.generateIds)
*
* @param array $optParams Optional parameters.
*
* @opt_param int count The number of IDs to return.
* @opt_param string space The space in which the IDs can be used to create new
* files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')
* @opt_param string type The type of items which the IDs can be used for.
* Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only
* supported in the `drive` 'space'. (Default: 'files')
* @return GeneratedIds
* @throws \Google\Service\Exception
*/
public function generateIds($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('generateIds', [$params], GeneratedIds::class);
}
/**
* Gets a file's metadata or content by ID. If you provide the URL parameter
* `alt=media`, then the response includes the file contents in the response
* body. Downloading content with `alt=media` only works if the file is stored
* in Drive. To download Google Docs, Sheets, and Slides use
* [`files.export`](/drive/api/reference/rest/v3/files/export) instead. For more
* information, see [Download & export files](/drive/api/guides/manage-
* downloads). (files.get)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
*
* @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
* of downloading known malware or other abusive files. This is only applicable
* when the `alt` parameter is set to `media` and the user is the owner of the
* file or an organizer of the shared drive in which the file resides.
* @opt_param string includeLabels A comma-separated list of IDs of labels to
* include in the `labelInfo` part of the response.
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @return DriveFile
* @throws \Google\Service\Exception
*/
public function get($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DriveFile::class);
}
/**
* Lists the user's files. This method accepts the `q` parameter, which is a
* search query combining one or more search terms. For more information, see
* the [Search for files & folders](/drive/api/guides/search-files) guide.
* *Note:* This method returns *all* files by default, including trashed files.
* If you don't want trashed files to appear in the list, use the
* `trashed=false` query parameter to remove trashed files from the results.
* (files.listFiles)
*
* @param array $optParams Optional parameters.
*
* @opt_param string corpora Bodies of items (files/documents) to which the
* query applies. Supported bodies are 'user', 'domain', 'drive', and
* 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency. By
* default, corpora is set to 'user'. However, this can change depending on the
* filter set through the 'q' parameter.
* @opt_param string corpus Deprecated: The source of files to list. Use
* 'corpora' instead.
* @opt_param string driveId ID of the shared drive to search.
* @opt_param bool includeItemsFromAllDrives Whether both My Drive and shared
* drive items should be included in results.
* @opt_param string includeLabels A comma-separated list of IDs of labels to
* include in the `labelInfo` part of the response.
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param bool includeTeamDriveItems Deprecated: Use
* `includeItemsFromAllDrives` instead.
* @opt_param string orderBy A comma-separated list of sort keys. Valid keys
* are: * `createdTime`: When the file was created. * `folder`: The folder ID.
* This field is sorted using alphabetical ordering. * `modifiedByMeTime`: The
* last time the file was modified by the user. * `modifiedTime`: The last time
* the file was modified by anyone. * `name`: The name of the file. This field
* is sorted using alphabetical ordering, so 1, 12, 2, 22. * `name_natural`: The
* name of the file. This field is sorted using natural sort ordering, so 1, 2,
* 12, 22. * `quotaBytesUsed`: The number of storage quota bytes used by the
* file. * `recency`: The most recent timestamp from the file's date-time
* fields. * `sharedWithMeTime`: When the file was shared with the user, if
* applicable. * `starred`: Whether the user has starred the file. *
* `viewedByMeTime`: The last time the file was viewed by the user. Each key
* sorts ascending by default, but can be reversed with the 'desc' modifier.
* Example usage: `?orderBy=folder,modifiedTime desc,name`.
* @opt_param int pageSize The maximum number of files to return per page.
* Partial or empty result pages are possible even before the end of the files
* list has been reached.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @opt_param string q A query for filtering the file results. See the "Search
* for files & folders" guide for supported syntax.
* @opt_param string spaces A comma-separated list of spaces to query within the
* corpora. Supported values are 'drive' and 'appDataFolder'.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param string teamDriveId Deprecated: Use `driveId` instead.
* @return FileList
* @throws \Google\Service\Exception
*/
public function listFiles($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], FileList::class);
}
/**
* Lists the labels on a file. (files.listLabels)
*
* @param string $fileId The ID for the file.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults The maximum number of labels to return per page.
* When not set, defaults to 100.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @return LabelList
* @throws \Google\Service\Exception
*/
public function listLabels($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('listLabels', [$params], LabelList::class);
}
/**
* Modifies the set of labels applied to a file. Returns a list of the labels
* that were added or modified. (files.modifyLabels)
*
* @param string $fileId The ID of the file to which the labels belong.
* @param ModifyLabelsRequest $postBody
* @param array $optParams Optional parameters.
* @return ModifyLabelsResponse
* @throws \Google\Service\Exception
*/
public function modifyLabels($fileId, ModifyLabelsRequest $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modifyLabels', [$params], ModifyLabelsResponse::class);
}
/**
* Updates a file's metadata and/or content. When calling this method, only
* populate fields in the request that you want to modify. When updating fields,
* some fields might be changed automatically, such as `modifiedDate`. This
* method supports patch semantics. This method supports an upload* URI and
* accepts uploaded media with the following characteristics: - *Maximum file
* size:* 5,120 GB - *Accepted Media MIME types:*`*` Note: Specify a valid MIME
* type, rather than the literal `*` value. The literal `*` is only used to
* indicate that any valid MIME type can be uploaded. For more information on
* uploading files, see [Upload file data](/drive/api/guides/manage-uploads).
* (files.update)
*
* @param string $fileId The ID of the file.
* @param DriveFile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string addParents A comma-separated list of parent IDs to add.
* @opt_param bool enforceSingleParent Deprecated: Adding files to multiple
* folders is no longer supported. Use shortcuts instead.
* @opt_param string includeLabels A comma-separated list of IDs of labels to
* include in the `labelInfo` part of the response.
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
* the new head revision. This is only applicable to files with binary content
* in Google Drive. Only 200 revisions for the file can be kept forever. If the
* limit is reached, try deleting pinned revisions.
* @opt_param string ocrLanguage A language hint for OCR processing during image
* import (ISO 639-1 code).
* @opt_param string removeParents A comma-separated list of parent IDs to
* remove.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param bool useContentAsIndexableText Whether to use the uploaded content
* as indexable text.
* @return DriveFile
* @throws \Google\Service\Exception
*/
public function update($fileId, DriveFile $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], DriveFile::class);
}
/**
* Subscribes to changes to a file. (files.watch)
*
* @param string $fileId The ID of the file.
* @param Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
* of downloading known malware or other abusive files. This is only applicable
* when the `alt` parameter is set to `media` and the user is the owner of the
* file or an organizer of the shared drive in which the file resides.
* @opt_param string includeLabels A comma-separated list of IDs of labels to
* include in the `labelInfo` part of the response.
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @return Channel
* @throws \Google\Service\Exception
*/
public function watch($fileId, Channel $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watch', [$params], Channel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Files::class, 'Google_Service_Drive_Resource_Files');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\ListAccessProposalsResponse;
/**
* The "accessproposals" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $accessproposals = $driveService->files_accessproposals;
* </code>
*/
class FilesAccessproposals extends \Google\Service\Resource
{
/**
* List the AccessProposals on a file. Note: Only approvers are able to list
* AccessProposals on a file. If the user is not an approver, returns a 403.
* (accessproposals.listFilesAccessproposals)
*
* @param string $fileId Required. The id of the item the request is on.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The number of results per page
* @opt_param string pageToken Optional. The continuation token on the list of
* access requests.
* @return ListAccessProposalsResponse
* @throws \Google\Service\Exception
*/
public function listFilesAccessproposals($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAccessProposalsResponse::class);
}
/**
* Used to approve or deny an Access Proposal. (accessproposals.resolve)
*
* @param string $fileId Required. The id of the item the request is on.
* @param string $proposalId Required. The id of the access proposal to resolve.
* @param array $optParams Optional parameters.
*
* @opt_param string action Required. The action to take on the AccessProposal.
* @opt_param string role Optional. The roles the approver has allowed, if any.
* Note: This field is required for the `ACCEPT` action.
* @opt_param bool sendNotification Optional. Whether to send an email to the
* requester when the AccessProposal is denied or accepted.
* @opt_param string view Optional. Indicates the view for this access proposal.
* This should only be set when the proposal belongs to a view. `published` is
* the only supported value.
* @throws \Google\Service\Exception
*/
public function resolve($fileId, $proposalId, $optParams = [])
{
$params = ['fileId' => $fileId, 'proposalId' => $proposalId];
$params = array_merge($params, $optParams);
return $this->call('resolve', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FilesAccessproposals::class, 'Google_Service_Drive_Resource_FilesAccessproposals');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
/**
* The "operation" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $operation = $driveService->operation;
* </code>
*/
class Operation extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operation.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function cancel($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params]);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operation.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Drive_Resource_Operation');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\ListOperationsResponse;
use Google\Service\Drive\Operation as OperationModel;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $operations = $driveService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return OperationModel
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], OperationModel::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listOperations)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param string name The name of the operation's parent resource.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOperations($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_Drive_Resource_Operations');
@@ -0,0 +1,190 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\Permission;
use Google\Service\Drive\PermissionList;
/**
* The "permissions" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $permissions = $driveService->permissions;
* </code>
*/
class Permissions extends \Google\Service\Resource
{
/**
* Creates a permission for a file or shared drive. **Warning:** Concurrent
* permissions operations on the same file are not supported; only the last
* update is applied. (permissions.create)
*
* @param string $fileId The ID of the file or shared drive.
* @param Permission $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string emailMessage A plain text custom message to include in the
* notification email.
* @opt_param bool enforceSingleParent Deprecated: See `moveToNewOwnersRoot` for
* details.
* @opt_param bool moveToNewOwnersRoot This parameter will only take effect if
* the item is not in a shared drive and the request is attempting to transfer
* the ownership of the item. If set to `true`, the item will be moved to the
* new owner's My Drive root folder and all prior parents removed. If set to
* `false`, parents are not changed.
* @opt_param bool sendNotificationEmail Whether to send a notification email
* when sharing to users or groups. This defaults to true for users and groups,
* and is not allowed for other requests. It must not be disabled for ownership
* transfers.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param bool transferOwnership Whether to transfer ownership to the
* specified user and downgrade the current owner to a writer. This parameter is
* required as an acknowledgement of the side effect.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* the file ID parameter refers to a shared drive and the requester is an
* administrator of the domain to which the shared drive belongs.
* @return Permission
* @throws \Google\Service\Exception
*/
public function create($fileId, Permission $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Permission::class);
}
/**
* Deletes a permission. **Warning:** Concurrent permissions operations on the
* same file are not supported; only the last update is applied.
* (permissions.delete)
*
* @param string $fileId The ID of the file or shared drive.
* @param string $permissionId The ID of the permission.
* @param array $optParams Optional parameters.
*
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* the file ID parameter refers to a shared drive and the requester is an
* administrator of the domain to which the shared drive belongs.
* @throws \Google\Service\Exception
*/
public function delete($fileId, $permissionId, $optParams = [])
{
$params = ['fileId' => $fileId, 'permissionId' => $permissionId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a permission by ID. (permissions.get)
*
* @param string $fileId The ID of the file.
* @param string $permissionId The ID of the permission.
* @param array $optParams Optional parameters.
*
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* the file ID parameter refers to a shared drive and the requester is an
* administrator of the domain to which the shared drive belongs.
* @return Permission
* @throws \Google\Service\Exception
*/
public function get($fileId, $permissionId, $optParams = [])
{
$params = ['fileId' => $fileId, 'permissionId' => $permissionId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Permission::class);
}
/**
* Lists a file's or shared drive's permissions. (permissions.listPermissions)
*
* @param string $fileId The ID of the file or shared drive.
* @param array $optParams Optional parameters.
*
* @opt_param string includePermissionsForView Specifies which additional view's
* permissions to include in the response. Only 'published' is supported.
* @opt_param int pageSize The maximum number of permissions to return per page.
* When not set for files in a shared drive, at most 100 results will be
* returned. When not set for files that are not in a shared drive, the entire
* list will be returned.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* the file ID parameter refers to a shared drive and the requester is an
* administrator of the domain to which the shared drive belongs.
* @return PermissionList
* @throws \Google\Service\Exception
*/
public function listPermissions($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PermissionList::class);
}
/**
* Updates a permission with patch semantics. **Warning:** Concurrent
* permissions operations on the same file are not supported; only the last
* update is applied. (permissions.update)
*
* @param string $fileId The ID of the file or shared drive.
* @param string $permissionId The ID of the permission.
* @param Permission $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool removeExpiration Whether to remove the expiration date.
* @opt_param bool supportsAllDrives Whether the requesting application supports
* both My Drives and shared drives.
* @opt_param bool supportsTeamDrives Deprecated: Use `supportsAllDrives`
* instead.
* @opt_param bool transferOwnership Whether to transfer ownership to the
* specified user and downgrade the current owner to a writer. This parameter is
* required as an acknowledgement of the side effect.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* the file ID parameter refers to a shared drive and the requester is an
* administrator of the domain to which the shared drive belongs.
* @return Permission
* @throws \Google\Service\Exception
*/
public function update($fileId, $permissionId, Permission $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Permission::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Permissions::class, 'Google_Service_Drive_Resource_Permissions');
@@ -0,0 +1,125 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\Reply;
use Google\Service\Drive\ReplyList;
/**
* The "replies" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $replies = $driveService->replies;
* </code>
*/
class Replies extends \Google\Service\Resource
{
/**
* Creates a reply to a comment. (replies.create)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param Reply $postBody
* @param array $optParams Optional parameters.
* @return Reply
* @throws \Google\Service\Exception
*/
public function create($fileId, $commentId, Reply $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Reply::class);
}
/**
* Deletes a reply. (replies.delete)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param string $replyId The ID of the reply.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($fileId, $commentId, $replyId, $optParams = [])
{
$params = ['fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a reply by ID. (replies.get)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param string $replyId The ID of the reply.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeDeleted Whether to return deleted replies. Deleted
* replies will not include their original content.
* @return Reply
* @throws \Google\Service\Exception
*/
public function get($fileId, $commentId, $replyId, $optParams = [])
{
$params = ['fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Reply::class);
}
/**
* Lists a comment's replies. (replies.listReplies)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeDeleted Whether to include deleted replies. Deleted
* replies will not include their original content.
* @opt_param int pageSize The maximum number of replies to return per page.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @return ReplyList
* @throws \Google\Service\Exception
*/
public function listReplies($fileId, $commentId, $optParams = [])
{
$params = ['fileId' => $fileId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ReplyList::class);
}
/**
* Updates a reply with patch semantics. (replies.update)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param string $replyId The ID of the reply.
* @param Reply $postBody
* @param array $optParams Optional parameters.
* @return Reply
* @throws \Google\Service\Exception
*/
public function update($fileId, $commentId, $replyId, Reply $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Reply::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Replies::class, 'Google_Service_Drive_Resource_Replies');
@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\Revision;
use Google\Service\Drive\RevisionList;
/**
* The "revisions" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $revisions = $driveService->revisions;
* </code>
*/
class Revisions extends \Google\Service\Resource
{
/**
* Permanently deletes a file version. You can only delete revisions for files
* with binary content in Google Drive, like images or videos. Revisions for
* other files, like Google Docs or Sheets, and the last remaining file version
* can't be deleted. (revisions.delete)
*
* @param string $fileId The ID of the file.
* @param string $revisionId The ID of the revision.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($fileId, $revisionId, $optParams = [])
{
$params = ['fileId' => $fileId, 'revisionId' => $revisionId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a revision's metadata or content by ID. (revisions.get)
*
* @param string $fileId The ID of the file.
* @param string $revisionId The ID of the revision.
* @param array $optParams Optional parameters.
*
* @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
* of downloading known malware or other abusive files. This is only applicable
* when the `alt` parameter is set to `media` and the user is the owner of the
* file or an organizer of the shared drive in which the file resides.
* @return Revision
* @throws \Google\Service\Exception
*/
public function get($fileId, $revisionId, $optParams = [])
{
$params = ['fileId' => $fileId, 'revisionId' => $revisionId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Revision::class);
}
/**
* Lists a file's revisions. (revisions.listRevisions)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of revisions to return per page.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @return RevisionList
* @throws \Google\Service\Exception
*/
public function listRevisions($fileId, $optParams = [])
{
$params = ['fileId' => $fileId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], RevisionList::class);
}
/**
* Updates a revision with patch semantics. (revisions.update)
*
* @param string $fileId The ID of the file.
* @param string $revisionId The ID of the revision.
* @param Revision $postBody
* @param array $optParams Optional parameters.
* @return Revision
* @throws \Google\Service\Exception
*/
public function update($fileId, $revisionId, Revision $postBody, $optParams = [])
{
$params = ['fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Revision::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Revisions::class, 'Google_Service_Drive_Resource_Revisions');
@@ -0,0 +1,125 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive\Resource;
use Google\Service\Drive\TeamDrive;
use Google\Service\Drive\TeamDriveList;
/**
* The "teamdrives" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google\Service\Drive(...);
* $teamdrives = $driveService->teamdrives;
* </code>
*/
class Teamdrives extends \Google\Service\Resource
{
/**
* Deprecated: Use `drives.create` instead. (teamdrives.create)
*
* @param string $requestId Required. An ID, such as a random UUID, which
* uniquely identifies this user's request for idempotent creation of a Team
* Drive. A repeated request by the same user and with the same request ID will
* avoid creating duplicates by attempting to create the same Team Drive. If the
* Team Drive already exists a 409 error will be returned.
* @param TeamDrive $postBody
* @param array $optParams Optional parameters.
* @return TeamDrive
* @throws \Google\Service\Exception
*/
public function create($requestId, TeamDrive $postBody, $optParams = [])
{
$params = ['requestId' => $requestId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], TeamDrive::class);
}
/**
* Deprecated: Use `drives.delete` instead. (teamdrives.delete)
*
* @param string $teamDriveId The ID of the Team Drive
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($teamDriveId, $optParams = [])
{
$params = ['teamDriveId' => $teamDriveId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Deprecated: Use `drives.get` instead. (teamdrives.get)
*
* @param string $teamDriveId The ID of the Team Drive
* @param array $optParams Optional parameters.
*
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the Team Drive belongs.
* @return TeamDrive
* @throws \Google\Service\Exception
*/
public function get($teamDriveId, $optParams = [])
{
$params = ['teamDriveId' => $teamDriveId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TeamDrive::class);
}
/**
* Deprecated: Use `drives.list` instead. (teamdrives.listTeamdrives)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of Team Drives to return.
* @opt_param string pageToken Page token for Team Drives.
* @opt_param string q Query string for searching Team Drives.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then all Team Drives of the domain in which
* the requester is an administrator are returned.
* @return TeamDriveList
* @throws \Google\Service\Exception
*/
public function listTeamdrives($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], TeamDriveList::class);
}
/**
* Deprecated: Use `drives.update` instead. (teamdrives.update)
*
* @param string $teamDriveId The ID of the Team Drive
* @param TeamDrive $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the Team Drive belongs.
* @return TeamDrive
* @throws \Google\Service\Exception
*/
public function update($teamDriveId, TeamDrive $postBody, $optParams = [])
{
$params = ['teamDriveId' => $teamDriveId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], TeamDrive::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Teamdrives::class, 'Google_Service_Drive_Resource_Teamdrives');
@@ -0,0 +1,276 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Revision extends \Google\Model
{
/**
* @var string[]
*/
public $exportLinks;
/**
* @var string
*/
public $id;
/**
* @var bool
*/
public $keepForever;
/**
* @var string
*/
public $kind;
protected $lastModifyingUserType = User::class;
protected $lastModifyingUserDataType = '';
/**
* @var string
*/
public $md5Checksum;
/**
* @var string
*/
public $mimeType;
/**
* @var string
*/
public $modifiedTime;
/**
* @var string
*/
public $originalFilename;
/**
* @var bool
*/
public $publishAuto;
/**
* @var bool
*/
public $published;
/**
* @var string
*/
public $publishedLink;
/**
* @var bool
*/
public $publishedOutsideDomain;
/**
* @var string
*/
public $size;
/**
* @param string[]
*/
public function setExportLinks($exportLinks)
{
$this->exportLinks = $exportLinks;
}
/**
* @return string[]
*/
public function getExportLinks()
{
return $this->exportLinks;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param bool
*/
public function setKeepForever($keepForever)
{
$this->keepForever = $keepForever;
}
/**
* @return bool
*/
public function getKeepForever()
{
return $this->keepForever;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param User
*/
public function setLastModifyingUser(User $lastModifyingUser)
{
$this->lastModifyingUser = $lastModifyingUser;
}
/**
* @return User
*/
public function getLastModifyingUser()
{
return $this->lastModifyingUser;
}
/**
* @param string
*/
public function setMd5Checksum($md5Checksum)
{
$this->md5Checksum = $md5Checksum;
}
/**
* @return string
*/
public function getMd5Checksum()
{
return $this->md5Checksum;
}
/**
* @param string
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* @param string
*/
public function setModifiedTime($modifiedTime)
{
$this->modifiedTime = $modifiedTime;
}
/**
* @return string
*/
public function getModifiedTime()
{
return $this->modifiedTime;
}
/**
* @param string
*/
public function setOriginalFilename($originalFilename)
{
$this->originalFilename = $originalFilename;
}
/**
* @return string
*/
public function getOriginalFilename()
{
return $this->originalFilename;
}
/**
* @param bool
*/
public function setPublishAuto($publishAuto)
{
$this->publishAuto = $publishAuto;
}
/**
* @return bool
*/
public function getPublishAuto()
{
return $this->publishAuto;
}
/**
* @param bool
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return bool
*/
public function getPublished()
{
return $this->published;
}
/**
* @param string
*/
public function setPublishedLink($publishedLink)
{
$this->publishedLink = $publishedLink;
}
/**
* @return string
*/
public function getPublishedLink()
{
return $this->publishedLink;
}
/**
* @param bool
*/
public function setPublishedOutsideDomain($publishedOutsideDomain)
{
$this->publishedOutsideDomain = $publishedOutsideDomain;
}
/**
* @return bool
*/
public function getPublishedOutsideDomain()
{
return $this->publishedOutsideDomain;
}
/**
* @param string
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Revision::class, 'Google_Service_Drive_Revision');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class RevisionList extends \Google\Collection
{
protected $collection_key = 'revisions';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $revisionsType = Revision::class;
protected $revisionsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Revision[]
*/
public function setRevisions($revisions)
{
$this->revisions = $revisions;
}
/**
* @return Revision[]
*/
public function getRevisions()
{
return $this->revisions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RevisionList::class, 'Google_Service_Drive_RevisionList');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class StartPageToken extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $startPageToken;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setStartPageToken($startPageToken)
{
$this->startPageToken = $startPageToken;
}
/**
* @return string
*/
public function getStartPageToken()
{
return $this->startPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartPageToken::class, 'Google_Service_Drive_StartPageToken');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_Drive_Status');
@@ -0,0 +1,218 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class TeamDrive extends \Google\Model
{
protected $backgroundImageFileType = TeamDriveBackgroundImageFile::class;
protected $backgroundImageFileDataType = '';
/**
* @var string
*/
public $backgroundImageLink;
protected $capabilitiesType = TeamDriveCapabilities::class;
protected $capabilitiesDataType = '';
/**
* @var string
*/
public $colorRgb;
/**
* @var string
*/
public $createdTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $orgUnitId;
protected $restrictionsType = TeamDriveRestrictions::class;
protected $restrictionsDataType = '';
/**
* @var string
*/
public $themeId;
/**
* @param TeamDriveBackgroundImageFile
*/
public function setBackgroundImageFile(TeamDriveBackgroundImageFile $backgroundImageFile)
{
$this->backgroundImageFile = $backgroundImageFile;
}
/**
* @return TeamDriveBackgroundImageFile
*/
public function getBackgroundImageFile()
{
return $this->backgroundImageFile;
}
/**
* @param string
*/
public function setBackgroundImageLink($backgroundImageLink)
{
$this->backgroundImageLink = $backgroundImageLink;
}
/**
* @return string
*/
public function getBackgroundImageLink()
{
return $this->backgroundImageLink;
}
/**
* @param TeamDriveCapabilities
*/
public function setCapabilities(TeamDriveCapabilities $capabilities)
{
$this->capabilities = $capabilities;
}
/**
* @return TeamDriveCapabilities
*/
public function getCapabilities()
{
return $this->capabilities;
}
/**
* @param string
*/
public function setColorRgb($colorRgb)
{
$this->colorRgb = $colorRgb;
}
/**
* @return string
*/
public function getColorRgb()
{
return $this->colorRgb;
}
/**
* @param string
*/
public function setCreatedTime($createdTime)
{
$this->createdTime = $createdTime;
}
/**
* @return string
*/
public function getCreatedTime()
{
return $this->createdTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOrgUnitId($orgUnitId)
{
$this->orgUnitId = $orgUnitId;
}
/**
* @return string
*/
public function getOrgUnitId()
{
return $this->orgUnitId;
}
/**
* @param TeamDriveRestrictions
*/
public function setRestrictions(TeamDriveRestrictions $restrictions)
{
$this->restrictions = $restrictions;
}
/**
* @return TeamDriveRestrictions
*/
public function getRestrictions()
{
return $this->restrictions;
}
/**
* @param string
*/
public function setThemeId($themeId)
{
$this->themeId = $themeId;
}
/**
* @return string
*/
public function getThemeId()
{
return $this->themeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TeamDrive::class, 'Google_Service_Drive_TeamDrive');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class TeamDriveBackgroundImageFile extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var float
*/
public $width;
/**
* @var float
*/
public $xCoordinate;
/**
* @var float
*/
public $yCoordinate;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param float
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return float
*/
public function getWidth()
{
return $this->width;
}
/**
* @param float
*/
public function setXCoordinate($xCoordinate)
{
$this->xCoordinate = $xCoordinate;
}
/**
* @return float
*/
public function getXCoordinate()
{
return $this->xCoordinate;
}
/**
* @param float
*/
public function setYCoordinate($yCoordinate)
{
$this->yCoordinate = $yCoordinate;
}
/**
* @return float
*/
public function getYCoordinate()
{
return $this->yCoordinate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TeamDriveBackgroundImageFile::class, 'Google_Service_Drive_TeamDriveBackgroundImageFile');
@@ -0,0 +1,404 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class TeamDriveCapabilities extends \Google\Model
{
/**
* @var bool
*/
public $canAddChildren;
/**
* @var bool
*/
public $canChangeCopyRequiresWriterPermissionRestriction;
/**
* @var bool
*/
public $canChangeDomainUsersOnlyRestriction;
/**
* @var bool
*/
public $canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
/**
* @var bool
*/
public $canChangeTeamDriveBackground;
/**
* @var bool
*/
public $canChangeTeamMembersOnlyRestriction;
/**
* @var bool
*/
public $canComment;
/**
* @var bool
*/
public $canCopy;
/**
* @var bool
*/
public $canDeleteChildren;
/**
* @var bool
*/
public $canDeleteTeamDrive;
/**
* @var bool
*/
public $canDownload;
/**
* @var bool
*/
public $canEdit;
/**
* @var bool
*/
public $canListChildren;
/**
* @var bool
*/
public $canManageMembers;
/**
* @var bool
*/
public $canReadRevisions;
/**
* @var bool
*/
public $canRemoveChildren;
/**
* @var bool
*/
public $canRename;
/**
* @var bool
*/
public $canRenameTeamDrive;
/**
* @var bool
*/
public $canResetTeamDriveRestrictions;
/**
* @var bool
*/
public $canShare;
/**
* @var bool
*/
public $canTrashChildren;
/**
* @param bool
*/
public function setCanAddChildren($canAddChildren)
{
$this->canAddChildren = $canAddChildren;
}
/**
* @return bool
*/
public function getCanAddChildren()
{
return $this->canAddChildren;
}
/**
* @param bool
*/
public function setCanChangeCopyRequiresWriterPermissionRestriction($canChangeCopyRequiresWriterPermissionRestriction)
{
$this->canChangeCopyRequiresWriterPermissionRestriction = $canChangeCopyRequiresWriterPermissionRestriction;
}
/**
* @return bool
*/
public function getCanChangeCopyRequiresWriterPermissionRestriction()
{
return $this->canChangeCopyRequiresWriterPermissionRestriction;
}
/**
* @param bool
*/
public function setCanChangeDomainUsersOnlyRestriction($canChangeDomainUsersOnlyRestriction)
{
$this->canChangeDomainUsersOnlyRestriction = $canChangeDomainUsersOnlyRestriction;
}
/**
* @return bool
*/
public function getCanChangeDomainUsersOnlyRestriction()
{
return $this->canChangeDomainUsersOnlyRestriction;
}
/**
* @param bool
*/
public function setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction($canChangeSharingFoldersRequiresOrganizerPermissionRestriction)
{
$this->canChangeSharingFoldersRequiresOrganizerPermissionRestriction = $canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
}
/**
* @return bool
*/
public function getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction()
{
return $this->canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
}
/**
* @param bool
*/
public function setCanChangeTeamDriveBackground($canChangeTeamDriveBackground)
{
$this->canChangeTeamDriveBackground = $canChangeTeamDriveBackground;
}
/**
* @return bool
*/
public function getCanChangeTeamDriveBackground()
{
return $this->canChangeTeamDriveBackground;
}
/**
* @param bool
*/
public function setCanChangeTeamMembersOnlyRestriction($canChangeTeamMembersOnlyRestriction)
{
$this->canChangeTeamMembersOnlyRestriction = $canChangeTeamMembersOnlyRestriction;
}
/**
* @return bool
*/
public function getCanChangeTeamMembersOnlyRestriction()
{
return $this->canChangeTeamMembersOnlyRestriction;
}
/**
* @param bool
*/
public function setCanComment($canComment)
{
$this->canComment = $canComment;
}
/**
* @return bool
*/
public function getCanComment()
{
return $this->canComment;
}
/**
* @param bool
*/
public function setCanCopy($canCopy)
{
$this->canCopy = $canCopy;
}
/**
* @return bool
*/
public function getCanCopy()
{
return $this->canCopy;
}
/**
* @param bool
*/
public function setCanDeleteChildren($canDeleteChildren)
{
$this->canDeleteChildren = $canDeleteChildren;
}
/**
* @return bool
*/
public function getCanDeleteChildren()
{
return $this->canDeleteChildren;
}
/**
* @param bool
*/
public function setCanDeleteTeamDrive($canDeleteTeamDrive)
{
$this->canDeleteTeamDrive = $canDeleteTeamDrive;
}
/**
* @return bool
*/
public function getCanDeleteTeamDrive()
{
return $this->canDeleteTeamDrive;
}
/**
* @param bool
*/
public function setCanDownload($canDownload)
{
$this->canDownload = $canDownload;
}
/**
* @return bool
*/
public function getCanDownload()
{
return $this->canDownload;
}
/**
* @param bool
*/
public function setCanEdit($canEdit)
{
$this->canEdit = $canEdit;
}
/**
* @return bool
*/
public function getCanEdit()
{
return $this->canEdit;
}
/**
* @param bool
*/
public function setCanListChildren($canListChildren)
{
$this->canListChildren = $canListChildren;
}
/**
* @return bool
*/
public function getCanListChildren()
{
return $this->canListChildren;
}
/**
* @param bool
*/
public function setCanManageMembers($canManageMembers)
{
$this->canManageMembers = $canManageMembers;
}
/**
* @return bool
*/
public function getCanManageMembers()
{
return $this->canManageMembers;
}
/**
* @param bool
*/
public function setCanReadRevisions($canReadRevisions)
{
$this->canReadRevisions = $canReadRevisions;
}
/**
* @return bool
*/
public function getCanReadRevisions()
{
return $this->canReadRevisions;
}
/**
* @param bool
*/
public function setCanRemoveChildren($canRemoveChildren)
{
$this->canRemoveChildren = $canRemoveChildren;
}
/**
* @return bool
*/
public function getCanRemoveChildren()
{
return $this->canRemoveChildren;
}
/**
* @param bool
*/
public function setCanRename($canRename)
{
$this->canRename = $canRename;
}
/**
* @return bool
*/
public function getCanRename()
{
return $this->canRename;
}
/**
* @param bool
*/
public function setCanRenameTeamDrive($canRenameTeamDrive)
{
$this->canRenameTeamDrive = $canRenameTeamDrive;
}
/**
* @return bool
*/
public function getCanRenameTeamDrive()
{
return $this->canRenameTeamDrive;
}
/**
* @param bool
*/
public function setCanResetTeamDriveRestrictions($canResetTeamDriveRestrictions)
{
$this->canResetTeamDriveRestrictions = $canResetTeamDriveRestrictions;
}
/**
* @return bool
*/
public function getCanResetTeamDriveRestrictions()
{
return $this->canResetTeamDriveRestrictions;
}
/**
* @param bool
*/
public function setCanShare($canShare)
{
$this->canShare = $canShare;
}
/**
* @return bool
*/
public function getCanShare()
{
return $this->canShare;
}
/**
* @param bool
*/
public function setCanTrashChildren($canTrashChildren)
{
$this->canTrashChildren = $canTrashChildren;
}
/**
* @return bool
*/
public function getCanTrashChildren()
{
return $this->canTrashChildren;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TeamDriveCapabilities::class, 'Google_Service_Drive_TeamDriveCapabilities');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class TeamDriveList extends \Google\Collection
{
protected $collection_key = 'teamDrives';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $teamDrivesType = TeamDrive::class;
protected $teamDrivesDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TeamDrive[]
*/
public function setTeamDrives($teamDrives)
{
$this->teamDrives = $teamDrives;
}
/**
* @return TeamDrive[]
*/
public function getTeamDrives()
{
return $this->teamDrives;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TeamDriveList::class, 'Google_Service_Drive_TeamDriveList');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class TeamDriveRestrictions extends \Google\Model
{
/**
* @var bool
*/
public $adminManagedRestrictions;
/**
* @var bool
*/
public $copyRequiresWriterPermission;
/**
* @var bool
*/
public $domainUsersOnly;
/**
* @var bool
*/
public $sharingFoldersRequiresOrganizerPermission;
/**
* @var bool
*/
public $teamMembersOnly;
/**
* @param bool
*/
public function setAdminManagedRestrictions($adminManagedRestrictions)
{
$this->adminManagedRestrictions = $adminManagedRestrictions;
}
/**
* @return bool
*/
public function getAdminManagedRestrictions()
{
return $this->adminManagedRestrictions;
}
/**
* @param bool
*/
public function setCopyRequiresWriterPermission($copyRequiresWriterPermission)
{
$this->copyRequiresWriterPermission = $copyRequiresWriterPermission;
}
/**
* @return bool
*/
public function getCopyRequiresWriterPermission()
{
return $this->copyRequiresWriterPermission;
}
/**
* @param bool
*/
public function setDomainUsersOnly($domainUsersOnly)
{
$this->domainUsersOnly = $domainUsersOnly;
}
/**
* @return bool
*/
public function getDomainUsersOnly()
{
return $this->domainUsersOnly;
}
/**
* @param bool
*/
public function setSharingFoldersRequiresOrganizerPermission($sharingFoldersRequiresOrganizerPermission)
{
$this->sharingFoldersRequiresOrganizerPermission = $sharingFoldersRequiresOrganizerPermission;
}
/**
* @return bool
*/
public function getSharingFoldersRequiresOrganizerPermission()
{
return $this->sharingFoldersRequiresOrganizerPermission;
}
/**
* @param bool
*/
public function setTeamMembersOnly($teamMembersOnly)
{
$this->teamMembersOnly = $teamMembersOnly;
}
/**
* @return bool
*/
public function getTeamMembersOnly()
{
return $this->teamMembersOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TeamDriveRestrictions::class, 'Google_Service_Drive_TeamDriveRestrictions');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Drive;
class User extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $emailAddress;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $me;
/**
* @var string
*/
public $permissionId;
/**
* @var string
*/
public $photoLink;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setMe($me)
{
$this->me = $me;
}
/**
* @return bool
*/
public function getMe()
{
return $this->me;
}
/**
* @param string
*/
public function setPermissionId($permissionId)
{
$this->permissionId = $permissionId;
}
/**
* @return string
*/
public function getPermissionId()
{
return $this->permissionId;
}
/**
* @param string
*/
public function setPhotoLink($photoLink)
{
$this->photoLink = $photoLink;
}
/**
* @return string
*/
public function getPhotoLink()
{
return $this->photoLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(User::class, 'Google_Service_Drive_User');