AuthServiceClient.php 937 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Ydb\Auth\V1;
  4. /**
  5. */
  6. class AuthServiceClient extends \Grpc\BaseStub {
  7. /**
  8. * @param string $hostname hostname
  9. * @param array $opts channel options
  10. * @param \Grpc\Channel $channel (optional) re-use channel object
  11. */
  12. public function __construct($hostname, $opts, $channel = null) {
  13. parent::__construct($hostname, $opts, $channel);
  14. }
  15. /**
  16. * Perform login using built-in auth system
  17. * @param \Ydb\Auth\LoginRequest $argument input argument
  18. * @param array $metadata metadata
  19. * @param array $options call options
  20. * @return \Grpc\UnaryCall
  21. */
  22. public function Login(\Ydb\Auth\LoginRequest $argument,
  23. $metadata = [], $options = []) {
  24. return $this->_simpleRequest('/Ydb.Auth.V1.AuthService/Login',
  25. $argument,
  26. ['\Ydb\Auth\LoginResponse', 'decode'],
  27. $metadata, $options);
  28. }
  29. }