Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • Resource
    • CloudMonitoring
      • Collection
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • AbstractTransfer
  • ConcurrentTransfer
  • ConsecutiveTransfer
  • ContainerMigration
  • DirectorySync
  • TransferBuilder
  • TransferPart
  • TransferState
  • Overview
  • Namespace
  • Class
  • Tree

Class TransferPart

Represents an individual part of the EntityBody being uploaded.

Namespace: OpenCloud\ObjectStore\Upload
CodeCoverageIgnore
Located at OpenCloud/ObjectStore/Upload/TransferPart.php
Methods summary
public mixed
# setContentLength( integer $contentLength )

Parameters

$contentLength

Returns

mixed
$this
public integer
# getContentLength( )

Returns

integer
int
public mixed
# setETag( string $etag )

Parameters

$etag

Returns

mixed
$this
public string
# getETag( )

Returns

string
string
public mixed
# setPartNumber( integer $partNumber )

Parameters

$partNumber

Returns

mixed
$this
public integer
# getPartNumber( )

Returns

integer
int
public mixed
# setPath( mixed $path )

Parameters

$path

Returns

mixed
$this
public string
# getPath( )

Returns

string
string
public static OpenCloud\Common\Http\Request
# createRequest( EntityBody $part, integer $number, OpenStack $client, array $options )

Create the request needed for this upload to the API.

Create the request needed for this upload to the API.

Parameters

$part
The entity body being uploaded
$number
Its number/position, needed for name
$client
Client responsible for issuing requests
$options
Set by the Transfer object

Returns

OpenCloud\Common\Http\Request
OpenCloud\Common\Http\Request
public static OpenCloud\ObjectStore\Upload\TransferPart
# fromResponse( Guzzle\Http\Message\Response $response, integer $partNumber = 1 )

Construct a TransferPart from a HTTP response delivered by the API.

Construct a TransferPart from a HTTP response delivered by the API.

Parameters

$response
$partNumber

Returns

OpenCloud\ObjectStore\Upload\TransferPart
TransferPart
Properties summary
protected integer $partNumber

Its position in the upload queue.

Its position in the upload queue.

#
protected string $eTag

This upload's ETag checksum.

This upload's ETag checksum.

#
protected integer $contentLength

The length of this upload in bytes.

The length of this upload in bytes.

#
protected string $path

The API path of this upload.

The API path of this upload.

#
API documentation generated by ApiGen 2.8.0