| @@ 444-473 (lines=30) @@ | ||
| 441 | * |
|
| 442 | * @return \GuzzleHttp\Promise\PromiseInterface |
|
| 443 | */ |
|
| 444 | public function deleteQueueAsync( |
|
| 445 | $queueName, |
|
| 446 | QueueServiceOptions $options = null |
|
| 447 | ) { |
|
| 448 | Validate::isString($queueName, 'queueName'); |
|
| 449 | Validate::notNullOrEmpty($queueName, 'queueName'); |
|
| 450 | ||
| 451 | $method = Resources::HTTP_DELETE; |
|
| 452 | $headers = array(); |
|
| 453 | $postParams = array(); |
|
| 454 | $queryParams = array(); |
|
| 455 | $path = $queueName; |
|
| 456 | ||
| 457 | if (is_null($options)) { |
|
| 458 | $options = new QueueServiceOptions(); |
|
| 459 | } |
|
| 460 | ||
| 461 | $options->setLocationMode(LocationMode::PRIMARY_ONLY); |
|
| 462 | ||
| 463 | return $this->sendAsync( |
|
| 464 | $method, |
|
| 465 | $headers, |
|
| 466 | $queryParams, |
|
| 467 | $postParams, |
|
| 468 | $path, |
|
| 469 | Resources::STATUS_NO_CONTENT, |
|
| 470 | Resources::EMPTY_STRING, |
|
| 471 | $options |
|
| 472 | ); |
|
| 473 | } |
|
| 474 | ||
| 475 | /** |
|
| 476 | * Returns queue properties, including user-defined metadata. |
|
| @@ 967-994 (lines=28) @@ | ||
| 964 | * |
|
| 965 | * @see http://msdn.microsoft.com/en-us/library/windowsazure/dd179387.aspx |
|
| 966 | */ |
|
| 967 | public function deleteTableAsync( |
|
| 968 | $table, |
|
| 969 | TableServiceOptions$options = null |
|
| 970 | ) { |
|
| 971 | Validate::isString($table, 'table'); |
|
| 972 | Validate::notNullOrEmpty($table, 'table'); |
|
| 973 | ||
| 974 | $method = Resources::HTTP_DELETE; |
|
| 975 | $headers = array(); |
|
| 976 | $postParams = array(); |
|
| 977 | $queryParams = array(); |
|
| 978 | $path = "Tables('$table')"; |
|
| 979 | ||
| 980 | if (is_null($options)) { |
|
| 981 | $options = new TableServiceOptions(); |
|
| 982 | } |
|
| 983 | ||
| 984 | return $this->sendAsync( |
|
| 985 | $method, |
|
| 986 | $headers, |
|
| 987 | $queryParams, |
|
| 988 | $postParams, |
|
| 989 | $path, |
|
| 990 | Resources::STATUS_NO_CONTENT, |
|
| 991 | Resources::EMPTY_STRING, |
|
| 992 | $options |
|
| 993 | ); |
|
| 994 | } |
|
| 995 | ||
| 996 | /** |
|
| 997 | * Quries entities for the given table name |
|