azure-storage-file\src\File\FileRestProxy.php

Show: PublicProtectedPrivateinherited
Table of Contents
LICENSE: The MIT License (the "License") you may not use this file except in compliance with the License.

You may obtain a copy of the License at https://github.com/azure/azure-storage-php/LICENSE

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.

PHP version 5

Author
Azure Storage PHP SDK  
Category
Microsoft  
Copyright
2017 Microsoft Corporation  
License
https://github.com/azure/azure-storage-php/LICENSE  
Link
https://github.com/azure/azure-storage-php  
Package
MicrosoftAzure\Storage\File  

\MicrosoftAzure\Storage\File\FileRestProxy

Package: MicrosoftAzure\Storage\File
This class constructs HTTP requests and receive HTTP responses for File service layer.
Implements
Parent(s)
\MicrosoftAzure\Storage\Common\Internal\ServiceRestProxy
Author
Azure Storage PHP SDK  
Category
Microsoft  
Copyright
2017 Microsoft Corporation  
Inherited_from
\MicrosoftAzure\Storage\Common\Internal\ServiceRestProxy  
License
https://github.com/azure/azure-storage-php/LICENSE  
Link
https://github.com/azure/azure-storage-php  

Properties

>VPropertyprotected\MicrosoftAzure\Storage\Common\Internal\Serialization\ISerializer $dataSerializer
Details
Type
\MicrosoftAzure\Storage\Common\Internal\Serialization\ISerializer

Methods

methodpublic__construct(\MicrosoftAzure\Storage\Common\Internal\Serialization\ISerializer $dataSerializer = null) : void
inherited

Initializes new RestProxy object.

Inherited from:
Parameters
NameTypeDescription
$dataSerializer\MicrosoftAzure\Storage\Common\Internal\Serialization\ISerializer

The data serializer.

methodpublicabortCopy(string $share, string $path, string $copyID, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Abort a file copy operation

Parameters
NameTypeDescription
$sharestring

name of the share

$pathstring

path of the file

$copyIDstring

copy operation identifier.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Details
See
 
methodpublicabortCopyAsync(string $share, string $path, string $copyID, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Creates promise to abort a file copy operation

Parameters
NameTypeDescription
$sharestring

name of the share

$pathstring

path of the file

$copyIDstring

copy operation identifier.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Details
See
 
methodprotectedaddMetadataHeaders(array $headers, array $metadata = null) : array
inherited

Adds metadata elements to headers array

Inherited from:
Parameters
NameTypeDescription
$headersarray

HTTP request headers

$metadataarray

user specified metadata

Returns
TypeDescription
array
methodprotectedaddOptionalHeader(array $headers, string $key, string $value) : void
inherited

Adds optional header.

Inherited from:

Doesn't add the value if it satisfies empty().

Parameters
NameTypeDescription
$headersarray

&$headers The HTTP header parameters.

$keystring

The HTTP header name.

$valuestring

The HTTP header value.

methodprotectedaddOptionalQueryParam(array $queryParameters, string $key, string $value) : void
inherited

Adds optional query parameter.

Inherited from:

Doesn't add the value if it satisfies empty().

Parameters
NameTypeDescription
$queryParametersarray

&$queryParameters The query parameters.

$keystring

The query variable name.

$valuestring

The query variable value.

methodpublicaddPostParameter(array $postParameters, string $key, string $value) : array
inherited

Adds HTTP POST parameter to the specified

Inherited from:
Parameters
NameTypeDescription
$postParametersarray

An array of HTTP POST parameters.

$keystring

The key of a HTTP POST parameter.

$valuestring

the value of a HTTP POST parameter.

Returns
TypeDescription
array
methodpublicclearFileRange(string $share, string $path, \MicrosoftAzure\Storage\Common\Models\Range $range, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Clears range of bytes of a file. If the specified range is not 512-byte aligned, the operation will write zeros to the start or end of the range that is not 512-byte aligned and free the rest of the range inside that is 512-byte aligned.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$range\MicrosoftAzure\Storage\Common\Models\Range

The range in the file to be cleared.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Details
See
 
methodpublicclearFileRangeAsync(string $share, string $path, \MicrosoftAzure\Storage\Common\Models\Range $range, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to clear range of bytes of a file. If the specified range is not 512-byte aligned, the operation will write zeros to the start or end of the range that is not 512-byte aligned and free the rest of the range inside that is 512-byte aligned.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$range\MicrosoftAzure\Storage\Common\Models\Range

The range in the file to be cleared.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpubliccopyFile(string $share, string $path, string $sourcePath, array $metadata = array(), \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\CopyFileResult

Informs server to copy file from $sourcePath to $path.

To copy a file to another file within the same storage account, you may use Shared Key to authenticate the source file. If you are copying a file from another storage account, or if you are copying a blob from the same storage account or another storage account, then you must authenticate the source file or blob using a shared access signature. If the source is a public blob, no authentication is required to perform the copy operation. Here are some examples of source object URLs: https://myaccount.file.core.windows.net/myshare/mydirectorypath/myfile https://myaccount.blob.core.windows.net/mycontainer/myblob?sastoken

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$sourcePathstring

The path of the source.

$metadataarray

The metadata of the file. If specified, source metadata will not be copied.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\CopyFileResult
Details
See
 
methodpubliccopyFileAsync(string $share, string $path, string $sourcePath, array $metadata = array(), \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to inform server to copy file from $sourcePath to $path.

To copy a file to another file within the same storage account, you may use Shared Key to authenticate the source file. If you are copying a file from another storage account, or if you are copying a blob from the same storage account or another storage account, then you must authenticate the source file or blob using a shared access signature. If the source is a public blob, no authentication is required to perform the copy operation. Here are some examples of source object URLs: https://myaccount.file.core.windows.net/myshare/mydirectorypath/myfile https://myaccount.blob.core.windows.net/mycontainer/myblob?sastoken

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$sourcePathstring

The path of the source.

$metadataarray

The metadata of the file. If specified, source metadata will not be copied.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpubliccreateDirectory(string $share, string $path, \MicrosoftAzure\Storage\File\Models\CreateDirectoryOptions | null $options = null) : void

Creates a new directory in the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to create the directory.

$options\MicrosoftAzure\Storage\File\Models\CreateDirectoryOptions | null

The optional parameters.

Details
See
 
methodpubliccreateDirectoryAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\CreateDirectoryOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates a promise to create a new directory in the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to create the directory.

$options\MicrosoftAzure\Storage\File\Models\CreateDirectoryOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpubliccreateFile(string $share, string $path, integer $size, \MicrosoftAzure\Storage\File\Models\CreateFileOptions | null $options = null) : void

Create a new file.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path and name of the file.

$sizeinteger

The size of the file.

$options\MicrosoftAzure\Storage\File\Models\CreateFileOptions | null

The optional parameters.

Details
See
 
methodpubliccreateFileAsync(string $share, string $path, integer $size, \MicrosoftAzure\Storage\File\Models\CreateFileOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to create a new file.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path and name of the file.

$sizeinteger

The size of the file.

$options\MicrosoftAzure\Storage\File\Models\CreateFileOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpubliccreateFileFromContent(string $share, string $path, \Psr\Http\Message\StreamInterface | resource | string $content, \MicrosoftAzure\Storage\File\Models\CreateFileFromContentOptions | null $options = null) : void

Creates a file from a provided content.

Parameters
NameTypeDescription
$sharestring

the share name

$pathstring

the path of the file

$content\Psr\Http\Message\StreamInterface | resource | string

the content used to create the file

$options\MicrosoftAzure\Storage\File\Models\CreateFileFromContentOptions | null

optional parameters

methodpubliccreateFileFromContentAsync(string $share, string $path, \Psr\Http\Message\StreamInterface | resource | string $content, \MicrosoftAzure\Storage\File\Models\CreateFileFromContentOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates a promise to create a file from a provided content.

Parameters
NameTypeDescription
$sharestring

the share name

$pathstring

the path of the file

$content\Psr\Http\Message\StreamInterface | resource | string

the content used to create the file

$options\MicrosoftAzure\Storage\File\Models\CreateFileFromContentOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
methodpubliccreateFileService(string $connectionString, array $options = array()) : \MicrosoftAzure\Storage\File\FileRestProxy
static

Builds a file service object, it accepts the following options:

  • http: (array) the underlying guzzle options. refer to http://docs.guzzlephp.org/en/latest/request-options.html for detailed available options
  • middlewares: (mixed) the middleware should be either an instance of a sub-class that implements \MicrosoftAzure\Storage\File\MicrosoftAzure\Storage\Common\Middlewares\IMiddleware, or a callable that follows the Guzzle middleware implementation convention

Please refer to https://azure.microsoft.com/en-us/documentation/articles/storage-configure-connection-string for how to construct a connection string with storage account name/key, or with a shared access signature (SAS Token).

Parameters
NameTypeDescription
$connectionStringstring

The configuration connection string.

$optionsarray

Array of options to pass to the service

Returns
TypeDescription
\MicrosoftAzure\Storage\File\FileRestProxy
methodprotectedcreateMiddlewareStack(\MicrosoftAzure\Storage\Common\Models\ServiceOptions $serviceOptions) : \MicrosoftAzure\Storage\Common\Middlewares\MiddlewareStack
inherited

Create a middleware stack with given middleware.

Inherited from:
Parameters
NameTypeDescription
$serviceOptions\MicrosoftAzure\Storage\Common\Models\ServiceOptions

The options user passed in.

Returns
TypeDescription
\MicrosoftAzure\Storage\Common\Middlewares\MiddlewareStack
methodprotectedcreateRequest(string $method, array $headers, array $queryParams, array $postParameters, string $path,  $locationMode, string $body = \MicrosoftAzure\Storage\Common\Internal\Resources::EMPTY_STRING) : \GuzzleHttp\Psr7\Request
inherited

Create the request to be sent.

Inherited from:
Parameters
NameTypeDescription
$methodstring

The method of the HTTP request

$headersarray

The header field of the request

$queryParamsarray

The query parameter of the request

$postParametersarray

The HTTP POST parameters

$pathstring

URL path

$locationMode
$bodystring

Request body

Returns
TypeDescription
\GuzzleHttp\Psr7\Request
methodpubliccreateShare(string $share, \MicrosoftAzure\Storage\File\Models\CreateShareOptions | null $options = null) : void

Creates a new share in the given storage account.

Parameters
NameTypeDescription
$sharestring

The share name.

$options\MicrosoftAzure\Storage\File\Models\CreateShareOptions | null

The optional parameters.

Details
See
 
methodpubliccreateShareAsync(string $share, \MicrosoftAzure\Storage\File\Models\CreateShareOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to create a new share in the given storage account.

Parameters
NameTypeDescription
$sharestring

The share name.

$options\MicrosoftAzure\Storage\File\Models\CreateShareOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicdeleteDirectory(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Deletes a directory in the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the directory.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Details
See
 
methodpublicdeleteDirectoryAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates a promise to delete a new directory in the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the directory.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicdeleteFile(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Deletes a file in the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the file.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Details
See
 
methodpublicdeleteFileAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates a promise to delete a new file in the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the file.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicdeleteShare(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Deletes a share in the given storage account.

Parameters
NameTypeDescription
$sharestring

name of the share

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Details
See
 
methodpublicdeleteShareAsync(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Create a promise for deleting a share.

Parameters
NameTypeDescription
$sharestring

name of the share

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgenerateMetadataHeaders(array $metadata = null) : array
inherited

Generates metadata headers by prefixing each element with 'x-ms-meta'.

Inherited from:
Parameters
NameTypeDescription
$metadataarray

user defined metadata.

Returns
TypeDescription
array
methodprotectedgenerateRequestOptions(\MicrosoftAzure\Storage\Common\Models\ServiceOptions $serviceOptions, callable $handler) : array
inherited

Generate the request options using the given service options and stored information.

Inherited from:
Parameters
NameTypeDescription
$serviceOptions\MicrosoftAzure\Storage\Common\Models\ServiceOptions

The service options used to generate request options.

$handlercallable

The handler used to send the request.

Returns
TypeDescription
array
methodpublicgetAccountName() : string
inherited

Gets the account name.

Inherited from:
Returns
TypeDescription
string
methodpublicgetDirectoryMetadata(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\GetDirectoryMetadataResult

Gets a directory's metadata from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the directory.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\GetDirectoryMetadataResult
Details
See
 
methodpublicgetDirectoryMetadataAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to get a directory's metadata from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the directory.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetDirectoryProperties(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\GetDirectoryPropertiesResult

Gets a directory's properties from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the directory.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\GetDirectoryPropertiesResult
Details
See
 
methodpublicgetDirectoryPropertiesAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to get a directory's properties from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the directory.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetFile(string $share, string $path, \MicrosoftAzure\Storage\File\Models\GetFileOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\GetFileResult

Reads or downloads a file from the server, including its metadata and properties.

Parameters
NameTypeDescription
$sharestring

name of the share

$pathstring

path of the file to be get

$options\MicrosoftAzure\Storage\File\Models\GetFileOptions | null

optional parameters

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\GetFileResult
Details
See
 
methodpublicgetFileAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\GetFileOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to read or download a file from the server, including its metadata and properties.

Parameters
NameTypeDescription
$sharestring

name of the share

$pathstring

path of the file to be get

$options\MicrosoftAzure\Storage\File\Models\GetFileOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetFileMetadata(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\GetFileMetadataResult

Gets a file's metadata from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\GetFileMetadataResult
Details
See
 
methodpublicgetFileMetadataAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to get a file's metadata from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetFileProperties(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\FileProperties

Gets a file's properties from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the file.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\FileProperties
Details
See
 
methodpublicgetFilePropertiesAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to get a file's properties from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the file.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetMiddlewares() : array
inherited

Gets middlewares that will be handling the request and response.

Inherited from:
Returns
TypeDescription
array
methodpublicgetPsrPrimaryUri() : \GuzzleHttp\Psr7\Uri
inherited

Get the primary URI in PSR form.

Inherited from:
Returns
TypeDescription
\GuzzleHttp\Psr7\Uri
methodpublicgetPsrSecondaryUri() : \GuzzleHttp\Psr7\Uri
inherited

Get the secondary URI in PSR form.

Inherited from:
Returns
TypeDescription
\GuzzleHttp\Psr7\Uri
methodpublicgetServiceProperties(\MicrosoftAzure\Storage\Common\Models\ServiceOptions $options = null) : \MicrosoftAzure\Storage\Common\Models\GetServicePropertiesResult
inherited

Gets the properties of the service.

Inherited from:
Parameters
NameTypeDescription
$options\MicrosoftAzure\Storage\Common\Models\ServiceOptions

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\Common\Models\GetServicePropertiesResult
Details
See
 
methodpublicgetServicePropertiesAsync(\MicrosoftAzure\Storage\Common\Models\ServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface
inherited

Creates promise to get the properties of the service.

Inherited from:
Parameters
NameTypeDescription
$options\MicrosoftAzure\Storage\Common\Models\ServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetServiceStats(\MicrosoftAzure\Storage\Common\Models\ServiceOptions | null $options = null) : \MicrosoftAzure\Storage\Common\Models\GetServiceStatsResult
inherited

Retrieves statistics related to replication for the service. The operation will only be sent to secondary location endpoint.

Inherited from:
Parameters
NameTypeDescription
$options\MicrosoftAzure\Storage\Common\Models\ServiceOptions | null

The options this operation sends with.

Returns
TypeDescription
\MicrosoftAzure\Storage\Common\Models\GetServiceStatsResult
methodpublicgetServiceStatsAsync(\MicrosoftAzure\Storage\Common\Models\ServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface
inherited

Creates promise that retrieves statistics related to replication for the service. The operation will only be sent to secondary location endpoint.

Inherited from:
Parameters
NameTypeDescription
$options\MicrosoftAzure\Storage\Common\Models\ServiceOptions | null

The options this operation sends with.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
methodpublicgetShareAcl(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\GetShareACLResult

Gets the access control list (ACL) for the share.

Parameters
NameTypeDescription
$sharestring

The share name.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\GetShareACLResult
Details
See
 
methodpublicgetShareAclAsync(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates the promise to get the access control list (ACL) for the share.

Parameters
NameTypeDescription
$sharestring

The share name.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetShareMetadata(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\GetSharePropertiesResult

Returns only user-defined metadata for the specified share.

Parameters
NameTypeDescription
$sharestring

name

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\GetSharePropertiesResult
Details
See
 
methodpublicgetShareMetadataAsync(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Create promise to return only user-defined metadata for the specified share.

Parameters
NameTypeDescription
$sharestring

name

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetShareProperties(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\GetSharePropertiesResult

Returns all properties and metadata on the share.

Parameters
NameTypeDescription
$sharestring

name

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\GetSharePropertiesResult
Details
See
 
methodpublicgetSharePropertiesAsync(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Create promise to return all properties and metadata on the share.

Parameters
NameTypeDescription
$sharestring

name

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetShareStats(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\GetShareStatsResult

Get the statistics related to the share.

Parameters
NameTypeDescription
$sharestring

The name of the share.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The request options.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\GetShareStatsResult
Details
See
 
methodpublicgetShareStatsAsync(string $share, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Get the statistics related to the share.

Parameters
NameTypeDescription
$sharestring

The name of the share.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The request options.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgroupQueryValues(array $values) : string
staticinherited

Groups set of values into one value separated with Resources::SEPARATOR

Inherited from:
Parameters
NameTypeDescription
$valuesarray

array of values to be grouped.

Returns
TypeDescription
string
methodpubliclistDirectoriesAndFiles(string $share, string $path = '', \MicrosoftAzure\Storage\File\Models\ListDirectoriesAndFilesOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\ListDirectoriesAndFilesResult

List directories and files under specified path.

Parameters
NameTypeDescription
$sharestring

The share that contains all the files and directories.

$pathstring

The path to be listed.

$options\MicrosoftAzure\Storage\File\Models\ListDirectoriesAndFilesOptions | null

Optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\ListDirectoriesAndFilesResult
Details
See
 
methodpubliclistDirectoriesAndFilesAsync(string $share, string $path = '', \MicrosoftAzure\Storage\File\Models\ListDirectoriesAndFilesOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to list directories and files under specified path.

Parameters
NameTypeDescription
$sharestring

The share that contains all the files and directories.

$pathstring

The path to be listed.

$options\MicrosoftAzure\Storage\File\Models\ListDirectoriesAndFilesOptions | null

Optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpubliclistFileRange(string $share, string $path, \MicrosoftAzure\Storage\Common\Models\Range $range = null, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\ListFileRangesResult

Lists range of bytes of a file.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$range\MicrosoftAzure\Storage\Common\Models\Range

The range in the file to be listed.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\ListFileRangesResult
Details
See
 
methodpubliclistFileRangeAsync(string $share, string $path, \MicrosoftAzure\Storage\Common\Models\Range $range = null, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to list range of bytes of a file.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$range\MicrosoftAzure\Storage\Common\Models\Range

The range in the file to be listed.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpubliclistShares(\MicrosoftAzure\Storage\File\Models\ListSharesOptions | null $options = null) : \MicrosoftAzure\Storage\File\Models\ListSharesResult

Returns a list of the shares under the specified account

Parameters
NameTypeDescription
$options\MicrosoftAzure\Storage\File\Models\ListSharesOptions | null

The optional parameters

Returns
TypeDescription
\MicrosoftAzure\Storage\File\Models\ListSharesResult
Details
See
 
methodpubliclistSharesAsync(\MicrosoftAzure\Storage\File\Models\ListSharesOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Create a promise to return a list of the shares under the specified account

Parameters
NameTypeDescription
$options\MicrosoftAzure\Storage\File\Models\ListSharesOptions | null

The optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodprotectedonRejected(string | \Exception $reason, array | integer $expected) : \Psr\Http\Message\ResponseInterface
inherited

Inherited from:
Parameters
NameTypeDescription
$reasonstring | \Exception

Rejection reason.

$expectedarray | integer

Expected Status Codes.

Returns
TypeDescription
\Psr\Http\Message\ResponseInterface
methodpublicpushMiddleware(callable | \MicrosoftAzure\Storage\Common\Internal\IMiddleware $middleware) : void
inherited

Push a new middleware into the middlewares array. The newly added middleware will be the most inner middleware when executed.

Inherited from:
Parameters
NameTypeDescription
$middlewarecallable | \MicrosoftAzure\Storage\Common\Internal\IMiddleware

the middleware to be added.

methodpublicputFileRange(string $share, string $path, string | resource | \Psr\Http\Message\StreamInterface $content, \MicrosoftAzure\Storage\Common\Models\Range $range, \MicrosoftAzure\Storage\File\Models\PutFileRangeOptions | null $options = null) : void

Writes range of bytes to a file. Range can be at most 4MB in length.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$contentstring | resource | \Psr\Http\Message\StreamInterface

The content to be uploaded.

$range\MicrosoftAzure\Storage\Common\Models\Range

The range in the file to be put.

$options\MicrosoftAzure\Storage\File\Models\PutFileRangeOptions | null

The optional parameters.

Details
See
 
methodpublicputFileRangeAsync(string $share, string $path, string | resource | \Psr\Http\Message\StreamInterface $content, \MicrosoftAzure\Storage\Common\Models\Range $range, \MicrosoftAzure\Storage\File\Models\PutFileRangeOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to write range of bytes to a file. Range can be at most 4MB in length.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path of the file.

$contentstring | resource | \Psr\Http\Message\StreamInterface

The content to be uploaded.

$range\MicrosoftAzure\Storage\Common\Models\Range

The range in the file to be put.

$options\MicrosoftAzure\Storage\File\Models\PutFileRangeOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodprotectedsendAsync(string $method, array $headers, array $queryParams, array $postParameters, string $path, array | integer $expected = \MicrosoftAzure\Storage\Common\Internal\Resources::STATUS_OK, string $body = \MicrosoftAzure\Storage\Common\Internal\Resources::EMPTY_STRING, \MicrosoftAzure\Storage\Common\Models\ServiceOptions $serviceOptions = null) : \GuzzleHttp\Promise\PromiseInterface
inherited

Create promise of sending HTTP request with the specified parameters.

Inherited from:
Parameters
NameTypeDescription
$methodstring

HTTP method used in the request

$headersarray

HTTP headers.

$queryParamsarray

URL query parameters.

$postParametersarray

The HTTP POST parameters.

$pathstring

URL path

$expectedarray | integer

Expected Status Codes.

$bodystring

Request body

$serviceOptions\MicrosoftAzure\Storage\Common\Models\ServiceOptions

Service options

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
methodprotectedsendConcurrentAsync(callable $generator, integer $statusCode, \MicrosoftAzure\Storage\Common\Models\ServiceOptions $options) : \GuzzleHttp\Promise\Promise | \GuzzleHttp\Promise\PromiseInterface
inherited

Send the requests concurrently. Number of concurrency can be modified by inserting a new key/value pair with the key 'number_of_concurrency' into the $requestOptions of $serviceOptions. Return only the promise.

Inherited from:
Parameters
NameTypeDescription
$generatorcallable

the generator function to generate request upon fulfillment

$statusCodeinteger

The expected status code for each of the request generated by generator.

$options\MicrosoftAzure\Storage\Common\Models\ServiceOptions

The service options for the concurrent requests.

Returns
TypeDescription
\GuzzleHttp\Promise\Promise | \GuzzleHttp\Promise\PromiseInterface
methodprotectedsendContext(\MicrosoftAzure\Storage\Common\Internal\Http\HttpCallContext $context) : \GuzzleHttp\Psr7\Response
inherited

Sends the context.

Inherited from:
Parameters
NameTypeDescription
$context\MicrosoftAzure\Storage\Common\Internal\Http\HttpCallContext

The context of the request.

Returns
TypeDescription
\GuzzleHttp\Psr7\Response
methodprotectedsendContextAsync(\MicrosoftAzure\Storage\Common\Internal\Http\HttpCallContext $context) : \GuzzleHttp\Promise\PromiseInterface
inherited

Creates the promise to send the context.

Inherited from:
Parameters
NameTypeDescription
$context\MicrosoftAzure\Storage\Common\Internal\Http\HttpCallContext

The context of the request.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
methodpublicsetDirectoryMetadata(string $share, string $path, array $metadata, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Sets a directory's metadata from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the directory.

$metadataarray

The metadata to be set.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Details
See
 
methodpublicsetDirectoryMetadataAsync(string $share, string $path, array $metadata, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to set a directory's metadata from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the directory.

$metadataarray

The metadata to be set.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicsetFileMetadata(string $share, string $path, array $metadata, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Sets a file's metadata from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the file.

$metadataarray

The metadata to be set.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Details
See
 
methodpublicsetFileMetadataAsync(string $share, string $path, array $metadata, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to set a file's metadata from the given share and path.

Parameters
NameTypeDescription
$sharestring

The share name.

$pathstring

The path to delete the file.

$metadataarray

The metadata to be set.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicsetFileProperties(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileProperties $properties, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Sets properties on the file.

Parameters
NameTypeDescription
$sharestring

share name

$pathstring

path of the file

$properties\MicrosoftAzure\Storage\File\Models\FileProperties

file properties.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Details
See
 
methodpublicsetFilePropertiesAsync(string $share, string $path, \MicrosoftAzure\Storage\File\Models\FileProperties $properties, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to set properties on the file.

Parameters
NameTypeDescription
$sharestring

share name

$pathstring

path of the file

$properties\MicrosoftAzure\Storage\File\Models\FileProperties

file properties.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicsetServiceProperties(\MicrosoftAzure\Storage\Common\Models\ServiceProperties $serviceProperties, \MicrosoftAzure\Storage\Common\Models\ServiceOptions $options = null) : void
inherited

Sets the properties of the service.

Inherited from:

It's recommended to use getServiceProperties, alter the returned object and then use setServiceProperties with this altered object.

Parameters
NameTypeDescription
$serviceProperties\MicrosoftAzure\Storage\Common\Models\ServiceProperties

The service properties.

$options\MicrosoftAzure\Storage\Common\Models\ServiceOptions

The optional parameters.

Details
See
 
methodpublicsetServicePropertiesAsync(\MicrosoftAzure\Storage\Common\Models\ServiceProperties $serviceProperties, \MicrosoftAzure\Storage\Common\Models\ServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface
inherited

Creates the promise to set the properties of the service.

Inherited from:

It's recommended to use getServiceProperties, alter the returned object and then use setServiceProperties with this altered object.

Parameters
NameTypeDescription
$serviceProperties\MicrosoftAzure\Storage\Common\Models\ServiceProperties

The service properties.

$options\MicrosoftAzure\Storage\Common\Models\ServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicsetShareAcl(string $share, \MicrosoftAzure\Storage\File\Models\ShareACL $acl, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Sets the ACL and any share-level access policies for the share.

Parameters
NameTypeDescription
$sharestring

name

$acl\MicrosoftAzure\Storage\File\Models\ShareACL

access control list for share

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Details
See
 
methodpublicsetShareAclAsync(string $share, \MicrosoftAzure\Storage\File\Models\ShareACL $acl, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to set the ACL and any share-level access policies for the share.

Parameters
NameTypeDescription
$sharestring

name

$acl\MicrosoftAzure\Storage\File\Models\ShareACL

access control list for share

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicsetShareMetadata(string $share, array $metadata, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Updates metadata of the share.

Parameters
NameTypeDescription
$sharestring

name

$metadataarray

metadata key/value pair.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Details
See
 
methodpublicsetShareMetadataAsync(string $share, array $metadata, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to update metadata headers on the share.

Parameters
NameTypeDescription
$sharestring

name

$metadataarray

metadata key/value pair.

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicsetShareProperties(string $share, integer $quota, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : void

Sets quota of the share.

Parameters
NameTypeDescription
$sharestring

name

$quotainteger

quota of the share

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Details
See
 
methodpublicsetSharePropertiesAsync(string $share, integer $quota, \MicrosoftAzure\Storage\File\Models\FileServiceOptions | null $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to set quota the share.

Parameters
NameTypeDescription
$sharestring

name

$quotainteger

quota of the share

$options\MicrosoftAzure\Storage\File\Models\FileServiceOptions | null

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicthrowIfError(\Psr\Http\Message\ResponseInterface $response, array | integer $expected) : void
staticinherited

Throws ServiceException if the received status code is not expected.

Inherited from:
Parameters
NameTypeDescription
$response\Psr\Http\Message\ResponseInterface

The response received

$expectedarray | integer

The expected status codes.

Throws
ExceptionDescription
\MicrosoftAzure\Storage\Common\Exceptions\ServiceException
Documentation was generated by phpDocumentor 2.9.1.