public getSubscription ( string $subscription, array $optionalArgs = [] ) : google\pubsub\v1\Subscription | ||
$subscription | string | The name of the subscription to get. Format is `projects/{project}/subscriptions/{sub}`. |
$optionalArgs | array | { Optional. @type \Google\GAX\RetrySettings $retrySettings Retry settings to use for this call. If present, then $timeoutMillis is ignored. @type int $timeoutMillis Timeout to use for this call. Only used if $retrySettings is not set. } |
return | google\pubsub\v1\Subscription |