azure-storage-common\src\Common\Models\AccessPolicy.php
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\Common\Models
\MicrosoftAzure\Storage\Common\Models\AccessPolicy
abstract
Package: MicrosoftAzure\Storage\Common\ModelsHolds access policy elements
- Children
- \MicrosoftAzure\Storage\Blob\Models\BlobAccessPolicy
- \MicrosoftAzure\Storage\Blob\Models\ContainerAccessPolicy
- \MicrosoftAzure\Storage\Table\Models\TableAccessPolicy
- \MicrosoftAzure\Storage\Queue\Models\QueueAccessPolicy
- \MicrosoftAzure\Storage\File\Models\FileAccessPolicy
- \MicrosoftAzure\Storage\File\Models\ShareAccessPolicy
- 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
Methods
__construct(string $resourceType) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$resourceType | string | the resource type of this access policy. |
getPermission() : \MicrosoftAzure\Storage\Common\Models\string.
Gets permission.
Returns
Type | Description |
---|---|
\MicrosoftAzure\Storage\Common\Models\string. |
getResourceType() : \MicrosoftAzure\Storage\Common\Models\string.
Gets resource type.
Returns
Type | Description |
---|---|
\MicrosoftAzure\Storage\Common\Models\string. |
getResourceValidPermissions() : array
staticabstract
Get the valid permissions for the given resource.
Returns
Type | Description |
---|---|
array |
setPermission(string $permission) : void
Sets permission.
Parameters
Throws
Name | Type | Description |
---|---|---|
$permission | string | value. |
Exception | Description |
---|---|
\InvalidArgumentException |