PHP Class Google\Cloud\Upload\AbstractUploader

Inheritance: use trait Google\Cloud\UriTrait
Datei anzeigen Open project: GoogleCloudPlatform/gcloud-php

Protected Properties

Property Type Description
$chunkSize integer
$contentType string
$data Psr\Http\Message\StreamInterface
$metadata array
$requestOptions array
$requestWrapper Google\Cloud\RequestWrapper
$uri string

Public Methods

Method Description
__construct ( RequestWrapper $requestWrapper, string | resource | Psr\Http\Message\StreamInterface $data, string $uri, array $options = [] )
upload ( ) : array

Method Details

__construct() public method

public __construct ( RequestWrapper $requestWrapper, string | resource | Psr\Http\Message\StreamInterface $data, string $uri, array $options = [] )
$requestWrapper Google\Cloud\RequestWrapper
$data string | resource | Psr\Http\Message\StreamInterface
$uri string
$options array [optional] { Optional configuration. @type array $metadata Metadata on the resource. @type int $chunkSize Size of the chunks to send incrementally during a resumable upload. Must be in multiples of 262144 bytes. @type array $httpOptions HTTP client specific configuration options. @type int $retries Number of retries for a failed request. **Defaults to** `3`. @type string $contentType Content type of the resource. }

upload() abstract public method

abstract public upload ( ) : array
return array

Property Details

$chunkSize protected_oe property

protected int $chunkSize
return integer

$contentType protected_oe property

protected string $contentType
return string

$data protected_oe property

protected StreamInterface,Psr\Http\Message $data
return Psr\Http\Message\StreamInterface

$metadata protected_oe property

protected array $metadata
return array

$requestOptions protected_oe property

protected array $requestOptions
return array

$requestWrapper protected_oe property

protected RequestWrapper,Google\Cloud $requestWrapper
return Google\Cloud\RequestWrapper

$uri protected_oe property

protected string $uri
return string