Krizalys Onedrive Proxy UploadSessionProxy - krizalys/onedrive-php-sdk GitHub Wiki

Krizalys\Onedrive\Proxy\UploadSessionProxy

A proxy to a \Microsoft\Graph\Model\UploadSession instance.

Constants

RANGE_SIZE_MULTIPLE

const RANGE_SIZE_MULTIPLE = 320 * 1024

MIN_RANGE_SIZE

const MIN_RANGE_SIZE = self::RANGE_SIZE_MULTIPLE

MAX_RANGE_SIZE

const MAX_RANGE_SIZE = 60 * 1024 * 1024

Properties

$content

private string $content
  • Visibility: private

$driveItemResourceDefinition

private \Krizalys\Onedrive\Definition\ResourceDefinitionInterface $driveItemResourceDefinition
  • Visibility: private

$type

private integer $type
  • Visibility: private

$rangeSize

private integer $rangeSize
  • Visibility: private

$graph

protected \Microsoft\Graph\Graph $graph
  • Visibility: protected

$entity

protected \Microsoft\Graph\Model\Entity $entity
  • Visibility: protected

$expirationDateTime

public \DateTime $expirationDateTime

The expiration date/time.

  • Visibility: public

$nextExpectedRanges

public string $nextExpectedRanges

The next expected ranges.

  • Visibility: public

$uploadUrl

public string $uploadUrl

The upload URL.

  • Visibility: public

$id

public string $id

The ID.

Methods

__construct

mixed Krizalys\Onedrive\Proxy\EntityProxy::__construct(\Microsoft\Graph\Graph $graph, \Microsoft\Graph\Model\Entity $entity)

Constructor.

Arguments

  • $graph Microsoft\Graph\Graph - The Microsoft Graph.
  • $entity Microsoft\Graph\Model\Entity - The entity.

__get

mixed Krizalys\Onedrive\Proxy\EntityProxy::__get(string $name)

Getter.

Arguments

  • $name string - The name.

complete

\Krizalys\Onedrive\Proxy\DriveItemProxy Krizalys\Onedrive\Proxy\UploadSessionProxy::complete()

Uploads the content in multiple ranges and completes this session.

  • Visibility: public