Overview
  • Namespace
  • Class

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

Classes

  • AbstractTransfer
  • ConcurrentTransfer
  • ConsecutiveTransfer
  • ContainerMigration
  • DirectorySync
  • TransferBuilder
  • TransferPart
  • TransferState

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
# setContentLength( integer $contentLength )

Parameters

$contentLength

Returns


$this
public integer
# getContentLength( )

Returns

integer
public
# setETag( string $etag )

Parameters

$etag

Returns


$this
public string
# getETag( )

Returns

string
public
# setPartNumber( integer $partNumber )

Parameters

$partNumber

Returns


$this
public integer
# getPartNumber( )

Returns

integer
public
# setPath( $path )

Parameters

$path

Returns


$this
public string
# getPath( )

Returns

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
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
API documentation generated by ApiGen