📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/Drive
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 About.php
▶ Open 📄 View Source
🐘 AboutDriveThemes.php
▶ Open 📄 View Source
🐘 AboutStorageQuota.php
▶ Open 📄 View Source
🐘 AboutTeamDriveThemes.php
▶ Open 📄 View Source
🐘 AccessProposal.php
▶ Open 📄 View Source
🐘 AccessProposalRoleAndView.php
▶ Open 📄 View Source
🐘 App.php
▶ Open 📄 View Source
🐘 AppIcons.php
▶ Open 📄 View Source
🐘 AppList.php
▶ Open 📄 View Source
🐘 Approval.php
▶ Open 📄 View Source
🐘 ApprovalList.php
▶ Open 📄 View Source
🐘 Change.php
▶ Open 📄 View Source
🐘 ChangeList.php
▶ Open 📄 View Source
🐘 Channel.php
▶ Open 📄 View Source
🐘 ClientEncryptionDetails.php
▶ Open 📄 View Source
🐘 Comment.php
▶ Open 📄 View Source
🐘 CommentList.php
▶ Open 📄 View Source
🐘 CommentQuotedFileContent.php
▶ Open 📄 View Source
🐘 ContentRestriction.php
▶ Open 📄 View Source
🐘 DecryptionMetadata.php
▶ Open 📄 View Source
🐘 DownloadRestriction.php
▶ Open 📄 View Source
🐘 DownloadRestrictionsMetadata.php
▶ Open 📄 View Source
🐘 Drive.php
▶ Open 📄 View Source
🐘 DriveBackgroundImageFile.php
▶ Open 📄 View Source
🐘 DriveCapabilities.php
▶ Open 📄 View Source
🐘 DriveFile.php
▶ Open 📄 View Source
🐘 DriveFileCapabilities.php
▶ Open 📄 View Source
🐘 DriveFileContentHints.php
▶ Open 📄 View Source
🐘 DriveFileContentHintsThumbnail.php
▶ Open 📄 View Source
🐘 DriveFileImageMediaMetadata.php
▶ Open 📄 View Source
🐘 DriveFileImageMediaMetadataLocation.php
▶ Open 📄 View Source
🐘 DriveFileLabelInfo.php
▶ Open 📄 View Source
🐘 DriveFileLinkShareMetadata.php
▶ Open 📄 View Source
🐘 DriveFileShortcutDetails.php
▶ Open 📄 View Source
🐘 DriveFileVideoMediaMetadata.php
▶ Open 📄 View Source
🐘 DriveList.php
▶ Open 📄 View Source
🐘 DriveRestrictions.php
▶ Open 📄 View Source
🐘 FileList.php
▶ Open 📄 View Source
🐘 GenerateCseTokenResponse.php
▶ Open 📄 View Source
🐘 GeneratedIds.php
▶ Open 📄 View Source
🐘 Label.php
▶ Open 📄 View Source
🐘 LabelField.php
▶ Open 📄 View Source
🐘 LabelFieldModification.php
▶ Open 📄 View Source
🐘 LabelList.php
▶ Open 📄 View Source
🐘 LabelModification.php
▶ Open 📄 View Source
🐘 ListAccessProposalsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ModifyLabelsRequest.php
▶ Open 📄 View Source
🐘 ModifyLabelsResponse.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 Permission.php
▶ Open 📄 View Source
🐘 PermissionList.php
▶ Open 📄 View Source
🐘 PermissionPermissionDetails.php
▶ Open 📄 View Source
🐘 PermissionTeamDrivePermissionDetails.php
▶ Open 📄 View Source
🐘 Reply.php
▶ Open 📄 View Source
🐘 ReplyList.php
▶ Open 📄 View Source
🐘 ResolveAccessProposalRequest.php
▶ Open 📄 View Source
🐘 ReviewerResponse.php
▶ Open 📄 View Source
🐘 Revision.php
▶ Open 📄 View Source
🐘 RevisionList.php
▶ Open 📄 View Source
🐘 StartPageToken.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 TeamDrive.php
▶ Open 📄 View Source
🐘 TeamDriveBackgroundImageFile.php
▶ Open 📄 View Source
🐘 TeamDriveCapabilities.php
▶ Open 📄 View Source
🐘 TeamDriveList.php
▶ Open 📄 View Source
🐘 TeamDriveRestrictions.php
▶ Open 📄 View Source
🐘 User.php
▶ Open 📄 View Source

📄 Source: DriveRestrictions.php

<?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
{
  /**
   * Whether administrative privileges on this shared drive are required to
   * modify restrictions.
   *
   * @var bool
   */
  public $adminManagedRestrictions;
  /**
   * Whether the options to copy, print, or download files inside this shared
   * drive, should be disabled for readers and commenters. When this restriction
   * is set to `true`, it will override the similarly named field to `true` for
   * any file inside this shared drive.
   *
   * @var bool
   */
  public $copyRequiresWriterPermission;
  /**
   * Whether access to this shared drive and items inside this shared drive is
   * restricted to users of the domain to which this shared drive belongs. This
   * restriction may be overridden by other sharing policies controlled outside
   * of this shared drive.
   *
   * @var bool
   */
  public $domainUsersOnly;
  protected $downloadRestrictionType = DownloadRestriction::class;
  protected $downloadRestrictionDataType = '';
  /**
   * Whether access to items inside this shared drive is restricted to its
   * members.
   *
   * @var bool
   */
  public $driveMembersOnly;
  /**
   * If true, only users with the organizer role can share folders. If false,
   * users with either the organizer role or the file organizer role can share
   * folders.
   *
   * @var bool
   */
  public $sharingFoldersRequiresOrganizerPermission;

  /**
   * Whether administrative privileges on this shared drive are required to
   * modify restrictions.
   *
   * @param bool $adminManagedRestrictions
   */
  public function setAdminManagedRestrictions($adminManagedRestrictions)
  {
    $this->adminManagedRestrictions = $adminManagedRestrictions;
  }
  /**
   * @return bool
   */
  public function getAdminManagedRestrictions()
  {
    return $this->adminManagedRestrictions;
  }
  /**
   * Whether the options to copy, print, or download files inside this shared
   * drive, should be disabled for readers and commenters. When this restriction
   * is set to `true`, it will override the similarly named field to `true` for
   * any file inside this shared drive.
   *
   * @param bool $copyRequiresWriterPermission
   */
  public function setCopyRequiresWriterPermission($copyRequiresWriterPermission)
  {
    $this->copyRequiresWriterPermission = $copyRequiresWriterPermission;
  }
  /**
   * @return bool
   */
  public function getCopyRequiresWriterPermission()
  {
    return $this->copyRequiresWriterPermission;
  }
  /**
   * Whether access to this shared drive and items inside this shared drive is
   * restricted to users of the domain to which this shared drive belongs. This
   * restriction may be overridden by other sharing policies controlled outside
   * of this shared drive.
   *
   * @param bool $domainUsersOnly
   */
  public function setDomainUsersOnly($domainUsersOnly)
  {
    $this->domainUsersOnly = $domainUsersOnly;
  }
  /**
   * @return bool
   */
  public function getDomainUsersOnly()
  {
    return $this->domainUsersOnly;
  }
  /**
   * Download restrictions applied by shared drive managers.
   *
   * @param DownloadRestriction $downloadRestriction
   */
  public function setDownloadRestriction(DownloadRestriction $downloadRestriction)
  {
    $this->downloadRestriction = $downloadRestriction;
  }
  /**
   * @return DownloadRestriction
   */
  public function getDownloadRestriction()
  {
    return $this->downloadRestriction;
  }
  /**
   * Whether access to items inside this shared drive is restricted to its
   * members.
   *
   * @param bool $driveMembersOnly
   */
  public function setDriveMembersOnly($driveMembersOnly)
  {
    $this->driveMembersOnly = $driveMembersOnly;
  }
  /**
   * @return bool
   */
  public function getDriveMembersOnly()
  {
    return $this->driveMembersOnly;
  }
  /**
   * If true, only users with the organizer role can share folders. If false,
   * users with either the organizer role or the file organizer role can share
   * folders.
   *
   * @param bool $sharingFoldersRequiresOrganizerPermission
   */
  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');
← Back