SchemeServiceClient.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Ydb\Scheme\V1;
  4. /**
  5. * Every YDB Database Instance has set of objects organized a tree.
  6. * SchemeService provides some functionality to browse and modify
  7. * this tree.
  8. *
  9. * SchemeService provides a generic tree functionality, to create specific
  10. * objects like YDB Table or Persistent Queue use corresponding services.
  11. *
  12. */
  13. class SchemeServiceClient extends \Grpc\BaseStub {
  14. /**
  15. * @param string $hostname hostname
  16. * @param array $opts channel options
  17. * @param \Grpc\Channel $channel (optional) re-use channel object
  18. */
  19. public function __construct($hostname, $opts, $channel = null) {
  20. parent::__construct($hostname, $opts, $channel);
  21. }
  22. /**
  23. * Make Directory.
  24. * @param \Ydb\Scheme\MakeDirectoryRequest $argument input argument
  25. * @param array $metadata metadata
  26. * @param array $options call options
  27. * @return \Grpc\UnaryCall
  28. */
  29. public function MakeDirectory(\Ydb\Scheme\MakeDirectoryRequest $argument,
  30. $metadata = [], $options = []) {
  31. return $this->_simpleRequest('/Ydb.Scheme.V1.SchemeService/MakeDirectory',
  32. $argument,
  33. ['\Ydb\Scheme\MakeDirectoryResponse', 'decode'],
  34. $metadata, $options);
  35. }
  36. /**
  37. * Remove Directory.
  38. * @param \Ydb\Scheme\RemoveDirectoryRequest $argument input argument
  39. * @param array $metadata metadata
  40. * @param array $options call options
  41. * @return \Grpc\UnaryCall
  42. */
  43. public function RemoveDirectory(\Ydb\Scheme\RemoveDirectoryRequest $argument,
  44. $metadata = [], $options = []) {
  45. return $this->_simpleRequest('/Ydb.Scheme.V1.SchemeService/RemoveDirectory',
  46. $argument,
  47. ['\Ydb\Scheme\RemoveDirectoryResponse', 'decode'],
  48. $metadata, $options);
  49. }
  50. /**
  51. * Returns information about given directory and objects inside it.
  52. * @param \Ydb\Scheme\ListDirectoryRequest $argument input argument
  53. * @param array $metadata metadata
  54. * @param array $options call options
  55. * @return \Grpc\UnaryCall
  56. */
  57. public function ListDirectory(\Ydb\Scheme\ListDirectoryRequest $argument,
  58. $metadata = [], $options = []) {
  59. return $this->_simpleRequest('/Ydb.Scheme.V1.SchemeService/ListDirectory',
  60. $argument,
  61. ['\Ydb\Scheme\ListDirectoryResponse', 'decode'],
  62. $metadata, $options);
  63. }
  64. /**
  65. * Returns information about object with given path.
  66. * @param \Ydb\Scheme\DescribePathRequest $argument input argument
  67. * @param array $metadata metadata
  68. * @param array $options call options
  69. * @return \Grpc\UnaryCall
  70. */
  71. public function DescribePath(\Ydb\Scheme\DescribePathRequest $argument,
  72. $metadata = [], $options = []) {
  73. return $this->_simpleRequest('/Ydb.Scheme.V1.SchemeService/DescribePath',
  74. $argument,
  75. ['\Ydb\Scheme\DescribePathResponse', 'decode'],
  76. $metadata, $options);
  77. }
  78. /**
  79. * Modify permissions.
  80. * @param \Ydb\Scheme\ModifyPermissionsRequest $argument input argument
  81. * @param array $metadata metadata
  82. * @param array $options call options
  83. * @return \Grpc\UnaryCall
  84. */
  85. public function ModifyPermissions(\Ydb\Scheme\ModifyPermissionsRequest $argument,
  86. $metadata = [], $options = []) {
  87. return $this->_simpleRequest('/Ydb.Scheme.V1.SchemeService/ModifyPermissions',
  88. $argument,
  89. ['\Ydb\Scheme\ModifyPermissionsResponse', 'decode'],
  90. $metadata, $options);
  91. }
  92. }