PHP 클래스 Google\Cloud\Storage\Acl

Example: use Google\Cloud\ServiceBuilder; $cloud = new ServiceBuilder(); $storage = $cloud->storage(); $bucket = $storage->bucket('my-bucket'); $acl = $bucket->acl();
파일 보기 프로젝트 열기: GoogleCloudPlatform/gcloud-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$connection Represents a connection to Cloud Storage.

공개 메소드들

메소드 설명
__construct ( Google\Cloud\Storage\Connection\ConnectionInterface $connection, string $type, array $identity )
add ( string $entity, string $role, array $options = [] ) : array Add access controls on a {@see Google\Cloud\Storage\Bucket} or {@see Google\Cloud\Storage\StorageObject}.
delete ( string $entity, array $options = [] ) : void Delete access controls on a {@see Google\Cloud\Storage\Bucket} or {@see Google\Cloud\Storage\StorageObject} for a specified entity.
get ( array $options = [] ) : array Get access controls on a {@see Google\Cloud\Storage\Bucket} or {@see Google\Cloud\Storage\StorageObject}. By default this will return all available access controls. You may optionally specify a single entity to return details for as well.
update ( string $entity, string $role, array $options = [] ) : array Update access controls on a {@see Google\Cloud\Storage\Bucket} or {@see Google\Cloud\Storage\StorageObject}.

메소드 상세

__construct() 공개 메소드

public __construct ( Google\Cloud\Storage\Connection\ConnectionInterface $connection, string $type, array $identity )
$connection Google\Cloud\Storage\Connection\ConnectionInterface Represents a connection to Cloud Storage.
$type string The type of access control this instance applies to.
$identity array Represents which bucket, file, or generation this instance applies to.

add() 공개 메소드

Example: $acl->add('allAuthenticatedUsers', 'WRITER');
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls/insert BucketAccessControls insert API documentation.
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/defaultObjectAccessControls/insert DefaultObjectAccessControls insert API documentation.
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls/insert ObjectAccessControls insert API documentation.
public add ( string $entity, string $role, array $options = [] ) : array
$entity string The entity to add access controls to.
$role string The permissions to add for the specified entity. May be one of 'OWNER', 'READER', or 'WRITER'.
$options array [optional] Configuration Options.
리턴 array

delete() 공개 메소드

Example: $acl->delete('allAuthenticatedUsers');
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls/delete BucketAccessControls delete API documentation.
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/defaultObjectAccessControls/delete DefaultObjectAccessControls delete API documentation.
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls/delete ObjectAccessControls delete API documentation.
public delete ( string $entity, array $options = [] ) : void
$entity string The entity to delete.
$options array [optional] Configuration Options.
리턴 void

get() 공개 메소드

Example: $res = $acl->get(['entity' => 'allAuthenticatedUsers']);
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls/get BucketAccessControls get API documentation.
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/defaultObjectAccessControls/get DefaultObjectAccessControls get API documentation.
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls/get ObjectAccessControls get API documentation.
public get ( array $options = [] ) : array
$options array [optional] { Configuration options. @type string $entity The entity to fetch. }
리턴 array

update() 공개 메소드

Example: $acl->update('allAuthenticatedUsers', 'READER');
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls/patch BucketAccessControls patch API documentation.
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/defaultObjectAccessControls/patch DefaultObjectAccessControls patch API documentation.
또한 보기: https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls/patch ObjectAccessControls patch API documentation.
public update ( string $entity, string $role, array $options = [] ) : array
$entity string The entity to update access controls for.
$role string The permissions to update for the specified entity. May be one of 'OWNER', 'READER', or 'WRITER'.
$options array [optional] Configuration Options.
리턴 array

프로퍼티 상세

$connection 보호되어 있는 프로퍼티

Represents a connection to Cloud Storage.
protected $connection