📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Bucket.php
▶ Open 📄 View Source
🐘 BucketList.php
▶ Open 📄 View Source
🐘 BucketOperation.php
▶ Open 📄 View Source
🐘 CancelJobRequest.php
▶ Open 📄 View Source
🐘 CancelJobResponse.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 Counters.php
▶ Open 📄 View Source
🐘 CustomContextUpdates.php
▶ Open 📄 View Source
🐘 DeleteObject.php
▶ Open 📄 View Source
🐘 ErrorLogEntry.php
▶ Open 📄 View Source
🐘 ErrorSummary.php
▶ Open 📄 View Source
🐘 Job.php
▶ Open 📄 View Source
🐘 ListBucketOperationsResponse.php
▶ Open 📄 View Source
🐘 ListJobsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LoggingConfig.php
▶ Open 📄 View Source
🐘 Manifest.php
▶ Open 📄 View Source
🐘 ObjectCustomContextPayload.php
▶ Open 📄 View Source
🐘 ObjectRetention.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 PrefixList.php
▶ Open 📄 View Source
🐘 PutMetadata.php
▶ Open 📄 View Source
🐘 PutObjectHold.php
▶ Open 📄 View Source
🐘 RewriteObject.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StoragebatchoperationsEmpty.php
▶ Open 📄 View Source
🐘 UpdateObjectCustomContext.php
▶ Open 📄 View Source

📄 Source: Job.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\StorageBatchOperations;

class Job extends \Google\Collection
{
  /**
   * Default value. This value is unused.
   */
  public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  /**
   * In progress.
   */
  public const STATE_RUNNING = 'RUNNING';
  /**
   * Completed successfully.
   */
  public const STATE_SUCCEEDED = 'SUCCEEDED';
  /**
   * Cancelled by the user.
   */
  public const STATE_CANCELED = 'CANCELED';
  /**
   * Terminated due to an unrecoverable failure.
   */
  public const STATE_FAILED = 'FAILED';
  /**
   * Queued but not yet started.
   */
  public const STATE_QUEUED = 'QUEUED';
  protected $collection_key = 'errorSummaries';
  protected $bucketListType = BucketList::class;
  protected $bucketListDataType = '';
  /**
   * Output only. The time that the job was completed.
   *
   * @var string
   */
  public $completeTime;
  protected $countersType = Counters::class;
  protected $countersDataType = '';
  /**
   * Output only. The time that the job was created.
   *
   * @var string
   */
  public $createTime;
  protected $deleteObjectType = DeleteObject::class;
  protected $deleteObjectDataType = '';
  /**
   * Optional. A description provided by the user for the job. Its max length is
   * 1024 bytes when Unicode-encoded.
   *
   * @var string
   */
  public $description;
  /**
   * Optional. If true, the job will run in dry run mode, returning the total
   * object count and, if the object configuration is a prefix list, the bytes
   * found from source. No transformations will be performed.
   *
   * @var bool
   */
  public $dryRun;
  protected $errorSummariesType = ErrorSummary::class;
  protected $errorSummariesDataType = 'array';
  /**
   * Output only. If true, this Job operates on multiple buckets. Multibucket
   * jobs are subject to different quota limits than single-bucket jobs.
   *
   * @var bool
   */
  public $isMultiBucketJob;
  protected $loggingConfigType = LoggingConfig::class;
  protected $loggingConfigDataType = '';
  /**
   * Identifier. The resource name of the Job. job_id is unique within the
   * project, that is either set by the customer or defined by the service.
   * Format: projects/{project}/locations/global/jobs/{job_id} . For example:
   * "projects/123456/locations/global/jobs/job01".
   *
   * @var string
   */
  public $name;
  protected $putMetadataType = PutMetadata::class;
  protected $putMetadataDataType = '';
  protected $putObjectHoldType = PutObjectHold::class;
  protected $putObjectHoldDataType = '';
  protected $rewriteObjectType = RewriteObject::class;
  protected $rewriteObjectDataType = '';
  /**
   * Output only. The time that the job was scheduled.
   *
   * @var string
   */
  public $scheduleTime;
  /**
   * Output only. State of the job.
   *
   * @var string
   */
  public $state;
  protected $updateObjectCustomContextType = UpdateObjectCustomContext::class;
  protected $updateObjectCustomContextDataType = '';

  /**
   * Specifies a list of buckets and their objects to be transformed.
   *
   * @param BucketList $bucketList
   */
  public function setBucketList(BucketList $bucketList)
  {
    $this->bucketList = $bucketList;
  }
  /**
   * @return BucketList
   */
  public function getBucketList()
  {
    return $this->bucketList;
  }
  /**
   * Output only. The time that the job was completed.
   *
   * @param string $completeTime
   */
  public function setCompleteTime($completeTime)
  {
    $this->completeTime = $completeTime;
  }
  /**
   * @return string
   */
  public function getCompleteTime()
  {
    return $this->completeTime;
  }
  /**
   * Output only. Information about the progress of the job.
   *
   * @param Counters $counters
   */
  public function setCounters(Counters $counters)
  {
    $this->counters = $counters;
  }
  /**
   * @return Counters
   */
  public function getCounters()
  {
    return $this->counters;
  }
  /**
   * Output only. The time that the job was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Delete objects.
   *
   * @param DeleteObject $deleteObject
   */
  public function setDeleteObject(DeleteObject $deleteObject)
  {
    $this->deleteObject = $deleteObject;
  }
  /**
   * @return DeleteObject
   */
  public function getDeleteObject()
  {
    return $this->deleteObject;
  }
  /**
   * Optional. A description provided by the user for the job. Its max length is
   * 1024 bytes when Unicode-encoded.
   *
   * @param string $description
   */
  public function setDescription($description)
  {
    $this->description = $description;
  }
  /**
   * @return string
   */
  public function getDescription()
  {
    return $this->description;
  }
  /**
   * Optional. If true, the job will run in dry run mode, returning the total
   * object count and, if the object configuration is a prefix list, the bytes
   * found from source. No transformations will be performed.
   *
   * @param bool $dryRun
   */
  public function setDryRun($dryRun)
  {
    $this->dryRun = $dryRun;
  }
  /**
   * @return bool
   */
  public function getDryRun()
  {
    return $this->dryRun;
  }
  /**
   * Output only. Summarizes errors encountered with sample error log entries.
   *
   * @param ErrorSummary[] $errorSummaries
   */
  public function setErrorSummaries($errorSummaries)
  {
    $this->errorSummaries = $errorSummaries;
  }
  /**
   * @return ErrorSummary[]
   */
  public function getErrorSummaries()
  {
    return $this->errorSummaries;
  }
  /**
   * Output only. If true, this Job operates on multiple buckets. Multibucket
   * jobs are subject to different quota limits than single-bucket jobs.
   *
   * @param bool $isMultiBucketJob
   */
  public function setIsMultiBucketJob($isMultiBucketJob)
  {
    $this->isMultiBucketJob = $isMultiBucketJob;
  }
  /**
   * @return bool
   */
  public function getIsMultiBucketJob()
  {
    return $this->isMultiBucketJob;
  }
  /**
   * Optional. Logging configuration.
   *
   * @param LoggingConfig $loggingConfig
   */
  public function setLoggingConfig(LoggingConfig $loggingConfig)
  {
    $this->loggingConfig = $loggingConfig;
  }
  /**
   * @return LoggingConfig
   */
  public function getLoggingConfig()
  {
    return $this->loggingConfig;
  }
  /**
   * Identifier. The resource name of the Job. job_id is unique within the
   * project, that is either set by the customer or defined by the service.
   * Format: projects/{project}/locations/global/jobs/{job_id} . For example:
   * "projects/123456/locations/global/jobs/job01".
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Updates object metadata. Allows updating fixed-key and custom metadata and
   * fixed-key metadata i.e. Cache-Control, Content-Disposition, Content-
   * Encoding, Content-Language, Content-Type, Custom-Time.
   *
   * @param PutMetadata $putMetadata
   */
  public function setPutMetadata(PutMetadata $putMetadata)
  {
    $this->putMetadata = $putMetadata;
  }
  /**
   * @return PutMetadata
   */
  public function getPutMetadata()
  {
    return $this->putMetadata;
  }
  /**
   * Changes object hold status.
   *
   * @param PutObjectHold $putObjectHold
   */
  public function setPutObjectHold(PutObjectHold $putObjectHold)
  {
    $this->putObjectHold = $putObjectHold;
  }
  /**
   * @return PutObjectHold
   */
  public function getPutObjectHold()
  {
    return $this->putObjectHold;
  }
  /**
   * Rewrite the object and updates metadata like KMS key.
   *
   * @param RewriteObject $rewriteObject
   */
  public function setRewriteObject(RewriteObject $rewriteObject)
  {
    $this->rewriteObject = $rewriteObject;
  }
  /**
   * @return RewriteObject
   */
  public function getRewriteObject()
  {
    return $this->rewriteObject;
  }
  /**
   * Output only. The time that the job was scheduled.
   *
   * @param string $scheduleTime
   */
  public function setScheduleTime($scheduleTime)
  {
    $this->scheduleTime = $scheduleTime;
  }
  /**
   * @return string
   */
  public function getScheduleTime()
  {
    return $this->scheduleTime;
  }
  /**
   * Output only. State of the job.
   *
   * Accepted values: STATE_UNSPECIFIED, RUNNING, SUCCEEDED, CANCELED, FAILED,
   * QUEUED
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
  /**
   * Update object custom context.
   *
   * @param UpdateObjectCustomContext $updateObjectCustomContext
   */
  public function setUpdateObjectCustomContext(UpdateObjectCustomContext $updateObjectCustomContext)
  {
    $this->updateObjectCustomContext = $updateObjectCustomContext;
  }
  /**
   * @return UpdateObjectCustomContext
   */
  public function getUpdateObjectCustomContext()
  {
    return $this->updateObjectCustomContext;
  }
}

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