PubSub/src/Subscription.php
public function iam()
    {
        if (!$this->iam) {
            $iamConnection = new IamSubscription($this->connection);
            $this->iam = new Iam($iamConnection, $this->name);
        }

        return $this->iam;
    }
public function iam()
    {
        if (!$this->iam) {
            $iamConnection = new IamSubscription($this->connection);
            $this->iam = new Iam($iamConnection, $this->name);
        }

        return $this->iam;
    }
public function iam ( ) { if ( ! $ this -> iam ) { $ iamConnection = new IamSubscription ( $ this -> connection ) ; $ this -> iam = new Iam ( $ iamConnection , $ this -> name ) ; } return $ this -> iam ; }
Manage the IAM policy for the current Subscription.

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

@codingStandardsIgnoreStart
@see https://cloud.google.com/pubsub/access_control PubSub Access Control Documentation
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/getIamPolicy Get Subscription IAM Policy
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/setIamPolicy Set Subscription IAM Policy
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/testIamPermissions Test Subscription Permissions
@codingStandardsIgnoreEnd

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