Storage/src/Bucket.php
public function iam()
    {
        if (!$this->iam) {
            $this->iam = new Iam(
                new IamBucket($this->connection),
                $this->identity['bucket'],
                [
                    'parent' => null,
                    'args' => $this->identity
                ]
            );
        }

        return $this->iam;
    }
public function iam()
    {
        if (!$this->iam) {
            $this->iam = new Iam(
                new IamBucket($this->connection),
                $this->identity['bucket'],
                [
                    'parent' => null,
                    'args' => $this->identity
                ]
            );
        }

        return $this->iam;
    }
public function iam ( ) { if ( ! $ this -> iam ) { $ this -> iam = new Iam ( new IamBucket ( $ this -> connection ) , $ this -> identity [ 'bucket' ] , [ 'parent' => null , 'args' => $ this -> identity ] ) ; } return $ this -> iam ; }
Manage the IAM policy for the current Bucket.

Please note that this method may not yet be available in your project.

Example:
```
$iam = $bucket->iam();
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/storage/docs/access-control/iam-with-json-and-xml Storage Access Control Documentation
@see https://cloud.google.com/storage/docs/json_api/v1/buckets/getIamPolicy Get Bucket IAM Policy
@see https://cloud.google.com/storage/docs/json_api/v1/buckets/setIamPolicy Set Bucket IAM Policy
@see https://cloud.google.com/storage/docs/json_api/v1/buckets/testIamPermissions Test Bucket Permissions
@codingStandardsIgnoreEnd

@return Iam
Manage the IAM policy for the current Bucket .