azure-storage-queue\src\Queue\QueueRestProxy.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
2016 Microsoft Corporation  
License
https://github.com/azure/azure-storage-php/LICENSE  
Link
https://github.com/azure/azure-storage-php  
Package
MicrosoftAzure\Storage\Queue  

\MicrosoftAzure\Storage\Queue\QueueRestProxy

Package: MicrosoftAzure\Storage\Queue
This class constructs HTTP requests and receive HTTP responses for queue service layer.
Implements
Parent(s)
\MicrosoftAzure\Storage\Common\Internal\ServiceRestProxy
Author
Azure Storage PHP SDK  
Category
Microsoft  
Copyright
2016 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.

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
methodpublicclearMessages(string $queueName, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : void

Clears all messages from the queue.

If a queue contains a large number of messages, Clear Messages may time out before all messages have been deleted. In this case the Queue service will return status code 500 (Internal Server Error), with the additional error code OperationTimedOut. If the operation times out, the client should continue to retry Clear Messages until it succeeds, to ensure that all messages have been deleted.

Parameters
NameTypeDescription
$queueNamestring

The name of the queue.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

methodpublicclearMessagesAsync(string $queueName, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to clear all messages from the queue.

If a queue contains a large number of messages, Clear Messages may time out before all messages have been deleted. In this case the Queue service will return status code 500 (Internal Server Error), with the additional error code OperationTimedOut. If the operation times out, the client should continue to retry Clear Messages until it succeeds, to ensure that all messages have been deleted.

Parameters
NameTypeDescription
$queueNamestring

The name of the queue.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
methodpubliccreateMessage(string $queueName, string $messageText, \MicrosoftAzure\Storage\Queue\Models\CreateMessageOptions $options = null) : \MicrosoftAzure\Storage\Queue\Models\CreateMessageResult

Adds a message to the queue and optionally sets a visibility timeout for the message.

Parameters
NameTypeDescription
$queueNamestring

The name of the queue.

$messageTextstring

The message contents.

$options\MicrosoftAzure\Storage\Queue\Models\CreateMessageOptions

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\Queue\Models\CreateMessageResult
methodpubliccreateMessageAsync(string $queueName, string $messageText, \MicrosoftAzure\Storage\Queue\Models\CreateMessageOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to add a message to the queue and optionally sets a visibility timeout for the message.

Parameters
NameTypeDescription
$queueNamestring

The name of the queue.

$messageTextstring

The message contents.

$options\MicrosoftAzure\Storage\Queue\Models\CreateMessageOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
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
methodpubliccreateQueue(string $queueName, \MicrosoftAzure\Storage\Queue\Models\CreateQueueOptions $options = null) : void

Creates a new queue under the storage account.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\CreateQueueOptions

The Optional parameters.

methodpubliccreateQueueAsync(string $queueName, \MicrosoftAzure\Storage\Queue\Models\CreateQueueOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to create a new queue under the storage account.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\CreateQueueOptions

The Optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
methodpubliccreateQueueService(string $connectionString, array $options = array()) : \MicrosoftAzure\Storage\Queue\QueueRestProxy
static

Builds a queue 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\Queue\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\Queue\QueueRestProxy
methodpubliccreateQueueServiceWithTokenCredential(string $token, string $connectionString, array $options = array()) : \MicrosoftAzure\Storage\Queue\QueueRestProxy
static

Builds a queue 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\Queue\MicrosoftAzure\Storage\Common\Middlewares\IMiddleware, or a callable that follows the Guzzle middleware implementation convention

Please refer to https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad for authenticate access to Azure blobs and queues using Azure Active Directory.

Parameters
NameTypeDescription
$tokenstring

The bearer token passed as reference.

$connectionStringstring

The configuration connection string.

$optionsarray

Array of options to pass to the service

Returns
TypeDescription
\MicrosoftAzure\Storage\Queue\QueueRestProxy
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
methodpublicdeleteMessage(string $queueName, string $messageId, string $popReceipt, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : void

Deletes a specified message from the queue.

Parameters
NameTypeDescription
$queueNamestring

The name of the queue.

$messageIdstring

The id of the message.

$popReceiptstring

The valid pop receipt value returned from an earlier call to the Get Messages or Update Message operation.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

methodpublicdeleteMessageAsync(string $queueName, string $messageId, string $popReceipt, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to delete a specified message from the queue.

Parameters
NameTypeDescription
$queueNamestring

The name of the queue.

$messageIdstring

The id of the message.

$popReceiptstring

The valid pop receipt value returned from an earlier call to the Get Messages or Update Message operation.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
methodpublicdeleteQueue(string $queueName, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : void

Deletes a queue.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

methodpublicdeleteQueueAsync(string $queueName, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to delete a queue.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
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
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
methodpublicgetQueueAcl(string $queue, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \MicrosoftAzure\Storage\Queue\Models\QueueACL

Gets the access control list (ACL)

Parameters
NameTypeDescription
$queuestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\Queue\Models\QueueACL
Details
See
 
methodpublicgetQueueAclAsync(string $queue, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates the promise to gets the access control list (ACL)

Parameters
NameTypeDescription
$queuestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicgetQueueMetadata(string $queueName, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \MicrosoftAzure\Storage\Queue\Models\GetQueueMetadataResult

Returns queue properties, including user-defined metadata.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\Queue\Models\GetQueueMetadataResult
methodpublicgetQueueMetadataAsync(string $queueName, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to return queue properties, including user-defined metadata.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
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
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
methodpubliclistMessages(string $queueName, \MicrosoftAzure\Storage\Queue\Models\ListMessagesOptions $options = null) : \MicrosoftAzure\Storage\Queue\Models\ListMessagesResult

Lists all messages in the queue.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\ListMessagesOptions

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\Queue\Models\ListMessagesResult
methodpubliclistMessagesAsync(string $queueName, \MicrosoftAzure\Storage\Queue\Models\ListMessagesOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to list all messages in the queue.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\ListMessagesOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
methodpubliclistQueues(\MicrosoftAzure\Storage\Queue\Models\ListQueuesOptions $options = null) : \MicrosoftAzure\Storage\Queue\Models\ListQueuesResult

Lists all queues in the storage account.

Parameters
NameTypeDescription
$options\MicrosoftAzure\Storage\Queue\Models\ListQueuesOptions

The optional list queue options.

Returns
TypeDescription
\MicrosoftAzure\Storage\Queue\Models\ListQueuesResult
methodpubliclistQueuesAsync(\MicrosoftAzure\Storage\Queue\Models\ListQueuesOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to list all queues in the storage account.

Parameters
NameTypeDescription
$options\MicrosoftAzure\Storage\Queue\Models\ListQueuesOptions

The optional list queue options.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
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
methodpublicpeekMessages(string $queueName, \MicrosoftAzure\Storage\Queue\Models\PeekMessagesOptions $options = null) : \MicrosoftAzure\Storage\Queue\Models\PeekMessagesResult

Retrieves a message from the front of the queue, without changing the message visibility.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\PeekMessagesOptions

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\Queue\Models\PeekMessagesResult
methodpublicpeekMessagesAsync(string $queueName, \MicrosoftAzure\Storage\Queue\Models\PeekMessagesOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to retrieve a message from the front of the queue, without changing the message visibility.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$options\MicrosoftAzure\Storage\Queue\Models\PeekMessagesOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
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.

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
methodpublicsetQueueAcl(string $queue, \MicrosoftAzure\Storage\Queue\Models\QueueACL $acl, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : void

Sets the ACL.

Parameters
NameTypeDescription
$queuestring

name

$acl\MicrosoftAzure\Storage\Queue\Models\QueueACL

access control list for Queue

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

optional parameters

Details
See
 
methodpublicsetQueueAclAsync(string $queue, \MicrosoftAzure\Storage\Queue\Models\QueueACL $acl, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to set the ACL

Parameters
NameTypeDescription
$queuestring

name

$acl\MicrosoftAzure\Storage\Queue\Models\QueueACL

access control list for Queue

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

optional parameters

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Details
See
 
methodpublicsetQueueMetadata(string $queueName, array $metadata = null, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : void

Sets user-defined metadata on the queue. To delete queue metadata, call this API without specifying any metadata in $metadata.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$metadataarray

The metadata array.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

methodpublicsetQueueMetadataAsync(string $queueName, array $metadata = null, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to set user-defined metadata on the queue. To delete queue metadata, call this API without specifying any metadata in $metadata.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$metadataarray

The metadata array.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
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
 
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
methodpublicupdateMessage(string $queueName, string $messageId, string $popReceipt, string $messageText, integer $visibilityTimeoutInSeconds, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \MicrosoftAzure\Storage\Queue\Models\UpdateMessageResult

Updates the visibility timeout of a message and/or the message contents.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$messageIdstring

The id of the message.

$popReceiptstring

The valid pop receipt value returned from an earlier call to the Get Messages or Update Message operation.

$messageTextstring

The message contents.

$visibilityTimeoutInSecondsinteger

Specifies the new visibility timeout value, in seconds, relative to server time. The new value must be larger than or equal to 0, and cannot be larger than 7 days. The visibility timeout of a message cannot be set to a value later than the expiry time. A message can be updated until it has been deleted or has expired.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\MicrosoftAzure\Storage\Queue\Models\UpdateMessageResult
methodpublicupdateMessageAsync(string $queueName, string $messageId, string $popReceipt, string $messageText, integer $visibilityTimeoutInSeconds, \MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions $options = null) : \GuzzleHttp\Promise\PromiseInterface

Creates promise to update the visibility timeout of a message and/or the message contents.

Parameters
NameTypeDescription
$queueNamestring

The queue name.

$messageIdstring

The id of the message.

$popReceiptstring

The valid pop receipt value returned from an earlier call to the Get Messages or Update Message operation.

$messageTextstring

The message contents.

$visibilityTimeoutInSecondsinteger

Specifies the new visibility timeout value, in seconds, relative to server time. The new value must be larger than or equal to 0, and cannot be larger than 7 days. The visibility timeout of a message cannot be set to a value later than the expiry time. A message can be updated until it has been deleted or has expired.

$options\MicrosoftAzure\Storage\Queue\Models\QueueServiceOptions

The optional parameters.

Returns
TypeDescription
\GuzzleHttp\Promise\PromiseInterface
Documentation was generated by phpDocumentor 2.9.1.