📂 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: Approval.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 Approval extends \Google\Collection
{
  /**
   * Approval status has not been set or was set to an invalid value.
   */
  public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
  /**
   * The approval process has started and not finished.
   */
  public const STATUS_IN_PROGRESS = 'IN_PROGRESS';
  /**
   * The approval process is finished and the target was approved.
   */
  public const STATUS_APPROVED = 'APPROVED';
  /**
   * The approval process was cancelled before it finished.
   */
  public const STATUS_CANCELLED = 'CANCELLED';
  /**
   * The approval process is finished and the target was declined.
   */
  public const STATUS_DECLINED = 'DECLINED';
  protected $collection_key = 'reviewerResponses';
  /**
   * The Approval ID.
   *
   * @var string
   */
  public $approvalId;
  /**
   * Output only. The time the approval was completed.
   *
   * @var string
   */
  public $completeTime;
  /**
   * Output only. The time the approval was created.
   *
   * @var string
   */
  public $createTime;
  /**
   * The time that the approval is due.
   *
   * @var string
   */
  public $dueTime;
  protected $initiatorType = User::class;
  protected $initiatorDataType = '';
  /**
   * This is always drive#approval.
   *
   * @var string
   */
  public $kind;
  /**
   * Output only. The most recent time the approval was modified.
   *
   * @var string
   */
  public $modifyTime;
  protected $reviewerResponsesType = ReviewerResponse::class;
  protected $reviewerResponsesDataType = 'array';
  /**
   * Output only. The status of the approval at the time this resource was
   * requested.
   *
   * @var string
   */
  public $status;
  /**
   * Target file id of the approval.
   *
   * @var string
   */
  public $targetFileId;

  /**
   * The Approval ID.
   *
   * @param string $approvalId
   */
  public function setApprovalId($approvalId)
  {
    $this->approvalId = $approvalId;
  }
  /**
   * @return string
   */
  public function getApprovalId()
  {
    return $this->approvalId;
  }
  /**
   * Output only. The time the approval was completed.
   *
   * @param string $completeTime
   */
  public function setCompleteTime($completeTime)
  {
    $this->completeTime = $completeTime;
  }
  /**
   * @return string
   */
  public function getCompleteTime()
  {
    return $this->completeTime;
  }
  /**
   * Output only. The time the approval was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * The time that the approval is due.
   *
   * @param string $dueTime
   */
  public function setDueTime($dueTime)
  {
    $this->dueTime = $dueTime;
  }
  /**
   * @return string
   */
  public function getDueTime()
  {
    return $this->dueTime;
  }
  /**
   * The user that requested the Approval.
   *
   * @param User $initiator
   */
  public function setInitiator(User $initiator)
  {
    $this->initiator = $initiator;
  }
  /**
   * @return User
   */
  public function getInitiator()
  {
    return $this->initiator;
  }
  /**
   * This is always drive#approval.
   *
   * @param string $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * Output only. The most recent time the approval was modified.
   *
   * @param string $modifyTime
   */
  public function setModifyTime($modifyTime)
  {
    $this->modifyTime = $modifyTime;
  }
  /**
   * @return string
   */
  public function getModifyTime()
  {
    return $this->modifyTime;
  }
  /**
   * The responses made on the Approval by reviewers.
   *
   * @param ReviewerResponse[] $reviewerResponses
   */
  public function setReviewerResponses($reviewerResponses)
  {
    $this->reviewerResponses = $reviewerResponses;
  }
  /**
   * @return ReviewerResponse[]
   */
  public function getReviewerResponses()
  {
    return $this->reviewerResponses;
  }
  /**
   * Output only. The status of the approval at the time this resource was
   * requested.
   *
   * Accepted values: STATUS_UNSPECIFIED, IN_PROGRESS, APPROVED, CANCELLED,
   * DECLINED
   *
   * @param self::STATUS_* $status
   */
  public function setStatus($status)
  {
    $this->status = $status;
  }
  /**
   * @return self::STATUS_*
   */
  public function getStatus()
  {
    return $this->status;
  }
  /**
   * Target file id of the approval.
   *
   * @param string $targetFileId
   */
  public function setTargetFileId($targetFileId)
  {
    $this->targetFileId = $targetFileId;
  }
  /**
   * @return string
   */
  public function getTargetFileId()
  {
    return $this->targetFileId;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Approval::class, 'Google_Service_Drive_Approval');
← Back