yandexcloud 0.338.0__py3-none-any.whl → 0.340.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. yandex/cloud/ai/assistants/v1/common_pb2.py +32 -27
  2. yandex/cloud/ai/assistants/v1/common_pb2.pyi +29 -2
  3. yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +32 -32
  4. yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +7 -1
  5. yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +39 -3
  6. yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +220 -0
  7. yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.py +172 -0
  8. yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.pyi +68 -0
  9. yandex/cloud/ai/tuning/v1/tuning_task_pb2.py +3 -3
  10. yandex/cloud/ai/tuning/v1/tuning_task_pb2.pyi +2 -0
  11. yandex/cloud/apploadbalancer/v1/load_balancer_pb2.py +50 -50
  12. yandex/cloud/apploadbalancer/v1/load_balancer_pb2.pyi +10 -2
  13. yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2.py +86 -66
  14. yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2.pyi +98 -2
  15. yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2_grpc.py +88 -0
  16. yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2_grpc.pyi +40 -0
  17. yandex/cloud/backup/v1/policy_pb2.py +56 -52
  18. yandex/cloud/backup/v1/policy_pb2.pyi +36 -5
  19. yandex/cloud/backup/v1/resource_pb2.py +21 -19
  20. yandex/cloud/backup/v1/resource_pb2.pyi +32 -2
  21. yandex/cloud/backup/v1/resource_service_pb2.py +30 -30
  22. yandex/cloud/backup/v1/resource_service_pb2.pyi +5 -1
  23. yandex/cloud/baremetal/__init__.py +0 -0
  24. yandex/cloud/baremetal/v1alpha/__init__.py +0 -0
  25. yandex/cloud/baremetal/v1alpha/configuration_pb2.py +42 -0
  26. yandex/cloud/baremetal/v1alpha/configuration_pb2.pyi +109 -0
  27. yandex/cloud/baremetal/v1alpha/configuration_pb2_grpc.py +24 -0
  28. yandex/cloud/baremetal/v1alpha/configuration_pb2_grpc.pyi +17 -0
  29. yandex/cloud/baremetal/v1alpha/configuration_service_pb2.py +49 -0
  30. yandex/cloud/baremetal/v1alpha/configuration_service_pb2.pyi +111 -0
  31. yandex/cloud/baremetal/v1alpha/configuration_service_pb2_grpc.py +148 -0
  32. yandex/cloud/baremetal/v1alpha/configuration_service_pb2_grpc.pyi +80 -0
  33. yandex/cloud/baremetal/v1alpha/dhcp_pb2.py +37 -0
  34. yandex/cloud/baremetal/v1alpha/dhcp_pb2.pyi +33 -0
  35. yandex/cloud/baremetal/v1alpha/dhcp_pb2_grpc.py +24 -0
  36. yandex/cloud/baremetal/v1alpha/dhcp_pb2_grpc.pyi +17 -0
  37. yandex/cloud/baremetal/v1alpha/disk_pb2.py +39 -0
  38. yandex/cloud/baremetal/v1alpha/disk_pb2.pyi +68 -0
  39. yandex/cloud/baremetal/v1alpha/disk_pb2_grpc.py +24 -0
  40. yandex/cloud/baremetal/v1alpha/disk_pb2_grpc.pyi +17 -0
  41. yandex/cloud/baremetal/v1alpha/hardware_pool_pb2.py +37 -0
  42. yandex/cloud/baremetal/v1alpha/hardware_pool_pb2.pyi +36 -0
  43. yandex/cloud/baremetal/v1alpha/hardware_pool_pb2_grpc.py +24 -0
  44. yandex/cloud/baremetal/v1alpha/hardware_pool_pb2_grpc.pyi +17 -0
  45. yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2.py +49 -0
  46. yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2.pyi +87 -0
  47. yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2_grpc.py +148 -0
  48. yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2_grpc.pyi +80 -0
  49. yandex/cloud/baremetal/v1alpha/image_pb2.py +44 -0
  50. yandex/cloud/baremetal/v1alpha/image_pb2.pyi +125 -0
  51. yandex/cloud/baremetal/v1alpha/image_pb2_grpc.py +24 -0
  52. yandex/cloud/baremetal/v1alpha/image_pb2_grpc.pyi +17 -0
  53. yandex/cloud/baremetal/v1alpha/image_service_pb2.py +108 -0
  54. yandex/cloud/baremetal/v1alpha/image_service_pb2.pyi +364 -0
  55. yandex/cloud/baremetal/v1alpha/image_service_pb2_grpc.py +327 -0
  56. yandex/cloud/baremetal/v1alpha/image_service_pb2_grpc.pyi +170 -0
  57. yandex/cloud/baremetal/v1alpha/private_subnet_pb2.py +47 -0
  58. yandex/cloud/baremetal/v1alpha/private_subnet_pb2.pyi +174 -0
  59. yandex/cloud/baremetal/v1alpha/private_subnet_pb2_grpc.py +24 -0
  60. yandex/cloud/baremetal/v1alpha/private_subnet_pb2_grpc.pyi +17 -0
  61. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.py +112 -0
  62. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.pyi +443 -0
  63. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2_grpc.py +327 -0
  64. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2_grpc.pyi +170 -0
  65. yandex/cloud/baremetal/v1alpha/public_subnet_pb2.py +45 -0
  66. yandex/cloud/baremetal/v1alpha/public_subnet_pb2.pyi +143 -0
  67. yandex/cloud/baremetal/v1alpha/public_subnet_pb2_grpc.py +24 -0
  68. yandex/cloud/baremetal/v1alpha/public_subnet_pb2_grpc.pyi +17 -0
  69. yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.py +106 -0
  70. yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.pyi +382 -0
  71. yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2_grpc.py +327 -0
  72. yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2_grpc.pyi +170 -0
  73. yandex/cloud/baremetal/v1alpha/server_pb2.py +54 -0
  74. yandex/cloud/baremetal/v1alpha/server_pb2.pyi +282 -0
  75. yandex/cloud/baremetal/v1alpha/server_pb2_grpc.py +24 -0
  76. yandex/cloud/baremetal/v1alpha/server_pb2_grpc.pyi +17 -0
  77. yandex/cloud/baremetal/v1alpha/server_service_pb2.py +217 -0
  78. yandex/cloud/baremetal/v1alpha/server_service_pb2.pyi +850 -0
  79. yandex/cloud/baremetal/v1alpha/server_service_pb2_grpc.py +589 -0
  80. yandex/cloud/baremetal/v1alpha/server_service_pb2_grpc.pyi +281 -0
  81. yandex/cloud/baremetal/v1alpha/storage_pb2.py +46 -0
  82. yandex/cloud/baremetal/v1alpha/storage_pb2.pyi +165 -0
  83. yandex/cloud/baremetal/v1alpha/storage_pb2_grpc.py +24 -0
  84. yandex/cloud/baremetal/v1alpha/storage_pb2_grpc.pyi +17 -0
  85. yandex/cloud/baremetal/v1alpha/storage_service_pb2.py +51 -0
  86. yandex/cloud/baremetal/v1alpha/storage_service_pb2.pyi +91 -0
  87. yandex/cloud/baremetal/v1alpha/storage_service_pb2_grpc.py +145 -0
  88. yandex/cloud/baremetal/v1alpha/storage_service_pb2_grpc.pyi +70 -0
  89. yandex/cloud/baremetal/v1alpha/vrf_pb2.py +42 -0
  90. yandex/cloud/baremetal/v1alpha/vrf_pb2.pyi +77 -0
  91. yandex/cloud/baremetal/v1alpha/vrf_pb2_grpc.py +24 -0
  92. yandex/cloud/baremetal/v1alpha/vrf_pb2_grpc.pyi +17 -0
  93. yandex/cloud/baremetal/v1alpha/vrf_service_pb2.py +106 -0
  94. yandex/cloud/baremetal/v1alpha/vrf_service_pb2.pyi +357 -0
  95. yandex/cloud/baremetal/v1alpha/vrf_service_pb2_grpc.py +327 -0
  96. yandex/cloud/baremetal/v1alpha/vrf_service_pb2_grpc.pyi +170 -0
  97. yandex/cloud/baremetal/v1alpha/zone_pb2.py +37 -0
  98. yandex/cloud/baremetal/v1alpha/zone_pb2.pyi +29 -0
  99. yandex/cloud/baremetal/v1alpha/zone_pb2_grpc.py +24 -0
  100. yandex/cloud/baremetal/v1alpha/zone_pb2_grpc.pyi +17 -0
  101. yandex/cloud/baremetal/v1alpha/zone_service_pb2.py +49 -0
  102. yandex/cloud/baremetal/v1alpha/zone_service_pb2.pyi +87 -0
  103. yandex/cloud/baremetal/v1alpha/zone_service_pb2_grpc.py +148 -0
  104. yandex/cloud/baremetal/v1alpha/zone_service_pb2_grpc.pyi +80 -0
  105. yandex/cloud/cloudregistry/v1/registry_service_pb2.py +40 -40
  106. yandex/cloud/dataproc/manager/v1/job_pb2.pyi +26 -26
  107. yandex/cloud/dataproc/manager/v1/job_service_pb2.pyi +7 -7
  108. yandex/cloud/dataproc/manager/v1/job_service_pb2_grpc.py +2 -2
  109. yandex/cloud/dataproc/manager/v1/job_service_pb2_grpc.pyi +6 -6
  110. yandex/cloud/dataproc/manager/v1/manager_service_pb2.pyi +2 -2
  111. yandex/cloud/dataproc/manager/v1/manager_service_pb2_grpc.py +3 -3
  112. yandex/cloud/dataproc/manager/v1/manager_service_pb2_grpc.pyi +3 -3
  113. yandex/cloud/dataproc/v1/cluster_pb2.pyi +5 -5
  114. yandex/cloud/dataproc/v1/cluster_service_pb2.pyi +13 -13
  115. yandex/cloud/dataproc/v1/cluster_service_pb2_grpc.py +4 -4
  116. yandex/cloud/dataproc/v1/cluster_service_pb2_grpc.pyi +6 -6
  117. yandex/cloud/dataproc/v1/job_pb2.pyi +15 -15
  118. yandex/cloud/dataproc/v1/job_service_pb2.pyi +3 -3
  119. yandex/cloud/dataproc/v1/job_service_pb2_grpc.py +4 -4
  120. yandex/cloud/dataproc/v1/job_service_pb2_grpc.pyi +6 -6
  121. yandex/cloud/dataproc/v1/resource_preset_pb2.pyi +2 -2
  122. yandex/cloud/dataproc/v1/subcluster_pb2.pyi +11 -11
  123. yandex/cloud/dataproc/v1/subcluster_service_pb2.pyi +3 -3
  124. yandex/cloud/dataproc/v1/subcluster_service_pb2_grpc.py +3 -3
  125. yandex/cloud/dataproc/v1/subcluster_service_pb2_grpc.pyi +3 -3
  126. yandex/cloud/iam/v1/api_key_pb2.pyi +3 -1
  127. yandex/cloud/iam/v1/api_key_service_pb2.pyi +3 -1
  128. yandex/cloud/iam/v1/workload/oidc/federation_service_pb2.py +32 -25
  129. yandex/cloud/iam/v1/workload/oidc/federation_service_pb2_grpc.py +133 -0
  130. yandex/cloud/iam/v1/workload/oidc/federation_service_pb2_grpc.pyi +61 -0
  131. yandex/cloud/k8s/v1/cluster_pb2.py +40 -30
  132. yandex/cloud/k8s/v1/cluster_pb2.pyi +94 -2
  133. yandex/cloud/k8s/v1/cluster_service_pb2.py +54 -42
  134. yandex/cloud/k8s/v1/cluster_service_pb2.pyi +70 -4
  135. yandex/cloud/k8s/v1/resource_preset_pb2.py +37 -0
  136. yandex/cloud/k8s/v1/resource_preset_pb2.pyi +43 -0
  137. yandex/cloud/k8s/v1/resource_preset_pb2_grpc.py +24 -0
  138. yandex/cloud/k8s/v1/resource_preset_pb2_grpc.pyi +17 -0
  139. yandex/cloud/k8s/v1/resource_preset_service_pb2.py +53 -0
  140. yandex/cloud/k8s/v1/resource_preset_service_pb2.pyi +81 -0
  141. yandex/cloud/k8s/v1/resource_preset_service_pb2_grpc.py +146 -0
  142. yandex/cloud/k8s/v1/resource_preset_service_pb2_grpc.pyi +71 -0
  143. yandex/cloud/mdb/mysql/v1/backup_pb2.py +6 -6
  144. yandex/cloud/mdb/mysql/v1/backup_pb2.pyi +5 -1
  145. yandex/cloud/mdb/mysql/v1/config/mysql5_7_pb2.py +26 -20
  146. yandex/cloud/mdb/mysql/v1/config/mysql5_7_pb2.pyi +73 -2
  147. yandex/cloud/mdb/mysql/v1/config/mysql8_0_pb2.py +26 -20
  148. yandex/cloud/mdb/mysql/v1/config/mysql8_0_pb2.pyi +100 -2
  149. yandex/cloud/mdb/opensearch/v1/backup_pb2.py +30 -3
  150. yandex/cloud/mdb/opensearch/v1/backup_pb2.pyi +162 -0
  151. yandex/cloud/mdb/opensearch/v1/cluster_pb2.py +46 -45
  152. yandex/cloud/mdb/opensearch/v1/cluster_pb2.pyi +9 -2
  153. yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +78 -78
  154. yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +16 -4
  155. yandex/cloud/mdb/postgresql/v1/config/host10_1c_pb2.py +23 -23
  156. yandex/cloud/mdb/postgresql/v1/config/host10_pb2.py +23 -23
  157. yandex/cloud/mdb/postgresql/v1/config/host11_1c_pb2.py +23 -23
  158. yandex/cloud/mdb/postgresql/v1/config/host11_pb2.py +23 -23
  159. yandex/cloud/mdb/postgresql/v1/config/host12_1c_pb2.py +23 -23
  160. yandex/cloud/mdb/postgresql/v1/config/host12_pb2.py +23 -23
  161. yandex/cloud/mdb/postgresql/v1/config/host13_1c_pb2.py +23 -23
  162. yandex/cloud/mdb/postgresql/v1/config/host13_pb2.py +23 -23
  163. yandex/cloud/mdb/postgresql/v1/config/host14_1c_pb2.py +23 -23
  164. yandex/cloud/mdb/postgresql/v1/config/host14_pb2.py +23 -23
  165. yandex/cloud/mdb/postgresql/v1/config/host15_1c_pb2.py +23 -23
  166. yandex/cloud/mdb/postgresql/v1/config/host15_pb2.py +23 -23
  167. yandex/cloud/mdb/postgresql/v1/config/host16_1c_pb2.py +25 -25
  168. yandex/cloud/mdb/postgresql/v1/config/host16_pb2.py +25 -25
  169. yandex/cloud/mdb/postgresql/v1/config/host9_6_pb2.py +23 -23
  170. yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c_pb2.py +35 -35
  171. yandex/cloud/mdb/postgresql/v1/config/postgresql10_pb2.py +35 -35
  172. yandex/cloud/mdb/postgresql/v1/config/postgresql11_1c_pb2.py +35 -35
  173. yandex/cloud/mdb/postgresql/v1/config/postgresql11_pb2.py +35 -35
  174. yandex/cloud/mdb/postgresql/v1/config/postgresql12_1c_pb2.py +37 -37
  175. yandex/cloud/mdb/postgresql/v1/config/postgresql12_pb2.py +37 -37
  176. yandex/cloud/mdb/postgresql/v1/config/postgresql13_1c_pb2.py +37 -37
  177. yandex/cloud/mdb/postgresql/v1/config/postgresql13_pb2.py +37 -37
  178. yandex/cloud/mdb/postgresql/v1/config/postgresql14_1c_pb2.py +37 -37
  179. yandex/cloud/mdb/postgresql/v1/config/postgresql14_pb2.py +37 -37
  180. yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.py +37 -37
  181. yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.py +37 -37
  182. yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.py +37 -37
  183. yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.py +37 -37
  184. yandex/cloud/mdb/postgresql/v1/config/postgresql9_6_pb2.py +29 -29
  185. yandex/cloud/monitoring/v3/unit_format_pb2.py +2 -2
  186. yandex/cloud/monitoring/v3/unit_format_pb2.pyi +16 -0
  187. yandex/cloud/searchapi/v2/gen_search_service_pb2.py +28 -22
  188. yandex/cloud/spark/__init__.py +0 -0
  189. yandex/cloud/spark/v1/__init__.py +0 -0
  190. yandex/cloud/spark/v1/cluster_pb2.py +100 -0
  191. yandex/cloud/spark/v1/cluster_pb2.pyi +444 -0
  192. yandex/cloud/spark/v1/cluster_pb2_grpc.py +24 -0
  193. yandex/cloud/spark/v1/cluster_pb2_grpc.pyi +17 -0
  194. yandex/cloud/spark/v1/cluster_service_pb2.py +124 -0
  195. yandex/cloud/spark/v1/cluster_service_pb2.pyi +333 -0
  196. yandex/cloud/spark/v1/cluster_service_pb2_grpc.py +366 -0
  197. yandex/cloud/spark/v1/cluster_service_pb2_grpc.pyi +169 -0
  198. yandex/cloud/spark/v1/job_pb2.py +56 -0
  199. yandex/cloud/spark/v1/job_pb2.pyi +346 -0
  200. yandex/cloud/spark/v1/job_pb2_grpc.py +24 -0
  201. yandex/cloud/spark/v1/job_pb2_grpc.pyi +17 -0
  202. yandex/cloud/spark/v1/job_service_pb2.py +97 -0
  203. yandex/cloud/spark/v1/job_service_pb2.pyi +224 -0
  204. yandex/cloud/spark/v1/job_service_pb2_grpc.py +279 -0
  205. yandex/cloud/spark/v1/job_service_pb2_grpc.pyi +132 -0
  206. yandex/cloud/spark/v1/maintenance_pb2.py +53 -0
  207. yandex/cloud/spark/v1/maintenance_pb2.pyi +123 -0
  208. yandex/cloud/spark/v1/maintenance_pb2_grpc.py +24 -0
  209. yandex/cloud/spark/v1/maintenance_pb2_grpc.pyi +17 -0
  210. yandexcloud/__init__.py +1 -1
  211. yandexcloud/_sdk.py +1 -0
  212. yandexcloud/_wrappers/__init__.py +15 -0
  213. yandexcloud/_wrappers/spark/__init__.py +603 -0
  214. {yandexcloud-0.338.0.dist-info → yandexcloud-0.340.0.dist-info}/METADATA +2 -1
  215. {yandexcloud-0.338.0.dist-info → yandexcloud-0.340.0.dist-info}/RECORD +219 -106
  216. {yandexcloud-0.338.0.dist-info → yandexcloud-0.340.0.dist-info}/AUTHORS +0 -0
  217. {yandexcloud-0.338.0.dist-info → yandexcloud-0.340.0.dist-info}/LICENSE +0 -0
  218. {yandexcloud-0.338.0.dist-info → yandexcloud-0.340.0.dist-info}/WHEEL +0 -0
  219. {yandexcloud-0.338.0.dist-info → yandexcloud-0.340.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,281 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import abc
7
+ import collections.abc
8
+ import grpc
9
+ import grpc.aio
10
+ import typing
11
+ import yandex.cloud.baremetal.v1alpha.server_pb2
12
+ import yandex.cloud.baremetal.v1alpha.server_service_pb2
13
+ import yandex.cloud.operation.operation_pb2
14
+
15
+ _T = typing.TypeVar("_T")
16
+
17
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
18
+
19
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
20
+ ...
21
+
22
+ class ServerServiceStub:
23
+ """A set of methods for managing Server resources."""
24
+
25
+ def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
26
+ Get: grpc.UnaryUnaryMultiCallable[
27
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.GetServerRequest,
28
+ yandex.cloud.baremetal.v1alpha.server_pb2.Server,
29
+ ]
30
+ """Returns the specific Server resource.
31
+
32
+ To get the list of available Server resources, make a [List] request.
33
+ """
34
+
35
+ List: grpc.UnaryUnaryMultiCallable[
36
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerRequest,
37
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerResponse,
38
+ ]
39
+ """Retrieves the list of Server resources in the specified folder."""
40
+
41
+ Create: grpc.UnaryUnaryMultiCallable[
42
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.CreateServerRequest,
43
+ yandex.cloud.operation.operation_pb2.Operation,
44
+ ]
45
+ """Creates a server in the specified folder."""
46
+
47
+ BatchCreate: grpc.UnaryUnaryMultiCallable[
48
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.BatchCreateServersRequest,
49
+ yandex.cloud.operation.operation_pb2.Operation,
50
+ ]
51
+ """Creates multiple servers in the specified folder."""
52
+
53
+ Update: grpc.UnaryUnaryMultiCallable[
54
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.UpdateServerRequest,
55
+ yandex.cloud.operation.operation_pb2.Operation,
56
+ ]
57
+ """Updates the specified server."""
58
+
59
+ PowerOff: grpc.UnaryUnaryMultiCallable[
60
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.PowerOffServerRequest,
61
+ yandex.cloud.operation.operation_pb2.Operation,
62
+ ]
63
+ """Powers off the specified server."""
64
+
65
+ PowerOn: grpc.UnaryUnaryMultiCallable[
66
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.PowerOnServerRequest,
67
+ yandex.cloud.operation.operation_pb2.Operation,
68
+ ]
69
+ """Powers on the specified server."""
70
+
71
+ Reboot: grpc.UnaryUnaryMultiCallable[
72
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.RebootServerRequest,
73
+ yandex.cloud.operation.operation_pb2.Operation,
74
+ ]
75
+ """Reboots the specified server."""
76
+
77
+ Reinstall: grpc.UnaryUnaryMultiCallable[
78
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ReinstallServerRequest,
79
+ yandex.cloud.operation.operation_pb2.Operation,
80
+ ]
81
+ """Reinstalls the specified server."""
82
+
83
+ StartProlongation: grpc.UnaryUnaryMultiCallable[
84
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.StartProlongationRequest,
85
+ yandex.cloud.operation.operation_pb2.Operation,
86
+ ]
87
+ """Starts prolongation of the specified server."""
88
+
89
+ StopProlongation: grpc.UnaryUnaryMultiCallable[
90
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.StopProlongationRequest,
91
+ yandex.cloud.operation.operation_pb2.Operation,
92
+ ]
93
+ """Stops prolongation of the specified server."""
94
+
95
+ ListOperations: grpc.UnaryUnaryMultiCallable[
96
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerOperationsRequest,
97
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerOperationsResponse,
98
+ ]
99
+ """Lists operations for the specified server."""
100
+
101
+ class ServerServiceAsyncStub:
102
+ """A set of methods for managing Server resources."""
103
+
104
+ Get: grpc.aio.UnaryUnaryMultiCallable[
105
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.GetServerRequest,
106
+ yandex.cloud.baremetal.v1alpha.server_pb2.Server,
107
+ ]
108
+ """Returns the specific Server resource.
109
+
110
+ To get the list of available Server resources, make a [List] request.
111
+ """
112
+
113
+ List: grpc.aio.UnaryUnaryMultiCallable[
114
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerRequest,
115
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerResponse,
116
+ ]
117
+ """Retrieves the list of Server resources in the specified folder."""
118
+
119
+ Create: grpc.aio.UnaryUnaryMultiCallable[
120
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.CreateServerRequest,
121
+ yandex.cloud.operation.operation_pb2.Operation,
122
+ ]
123
+ """Creates a server in the specified folder."""
124
+
125
+ BatchCreate: grpc.aio.UnaryUnaryMultiCallable[
126
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.BatchCreateServersRequest,
127
+ yandex.cloud.operation.operation_pb2.Operation,
128
+ ]
129
+ """Creates multiple servers in the specified folder."""
130
+
131
+ Update: grpc.aio.UnaryUnaryMultiCallable[
132
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.UpdateServerRequest,
133
+ yandex.cloud.operation.operation_pb2.Operation,
134
+ ]
135
+ """Updates the specified server."""
136
+
137
+ PowerOff: grpc.aio.UnaryUnaryMultiCallable[
138
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.PowerOffServerRequest,
139
+ yandex.cloud.operation.operation_pb2.Operation,
140
+ ]
141
+ """Powers off the specified server."""
142
+
143
+ PowerOn: grpc.aio.UnaryUnaryMultiCallable[
144
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.PowerOnServerRequest,
145
+ yandex.cloud.operation.operation_pb2.Operation,
146
+ ]
147
+ """Powers on the specified server."""
148
+
149
+ Reboot: grpc.aio.UnaryUnaryMultiCallable[
150
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.RebootServerRequest,
151
+ yandex.cloud.operation.operation_pb2.Operation,
152
+ ]
153
+ """Reboots the specified server."""
154
+
155
+ Reinstall: grpc.aio.UnaryUnaryMultiCallable[
156
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ReinstallServerRequest,
157
+ yandex.cloud.operation.operation_pb2.Operation,
158
+ ]
159
+ """Reinstalls the specified server."""
160
+
161
+ StartProlongation: grpc.aio.UnaryUnaryMultiCallable[
162
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.StartProlongationRequest,
163
+ yandex.cloud.operation.operation_pb2.Operation,
164
+ ]
165
+ """Starts prolongation of the specified server."""
166
+
167
+ StopProlongation: grpc.aio.UnaryUnaryMultiCallable[
168
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.StopProlongationRequest,
169
+ yandex.cloud.operation.operation_pb2.Operation,
170
+ ]
171
+ """Stops prolongation of the specified server."""
172
+
173
+ ListOperations: grpc.aio.UnaryUnaryMultiCallable[
174
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerOperationsRequest,
175
+ yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerOperationsResponse,
176
+ ]
177
+ """Lists operations for the specified server."""
178
+
179
+ class ServerServiceServicer(metaclass=abc.ABCMeta):
180
+ """A set of methods for managing Server resources."""
181
+
182
+ @abc.abstractmethod
183
+ def Get(
184
+ self,
185
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.GetServerRequest,
186
+ context: _ServicerContext,
187
+ ) -> typing.Union[yandex.cloud.baremetal.v1alpha.server_pb2.Server, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.server_pb2.Server]]:
188
+ """Returns the specific Server resource.
189
+
190
+ To get the list of available Server resources, make a [List] request.
191
+ """
192
+
193
+ @abc.abstractmethod
194
+ def List(
195
+ self,
196
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerRequest,
197
+ context: _ServicerContext,
198
+ ) -> typing.Union[yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerResponse, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerResponse]]:
199
+ """Retrieves the list of Server resources in the specified folder."""
200
+
201
+ @abc.abstractmethod
202
+ def Create(
203
+ self,
204
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.CreateServerRequest,
205
+ context: _ServicerContext,
206
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
207
+ """Creates a server in the specified folder."""
208
+
209
+ @abc.abstractmethod
210
+ def BatchCreate(
211
+ self,
212
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.BatchCreateServersRequest,
213
+ context: _ServicerContext,
214
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
215
+ """Creates multiple servers in the specified folder."""
216
+
217
+ @abc.abstractmethod
218
+ def Update(
219
+ self,
220
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.UpdateServerRequest,
221
+ context: _ServicerContext,
222
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
223
+ """Updates the specified server."""
224
+
225
+ @abc.abstractmethod
226
+ def PowerOff(
227
+ self,
228
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.PowerOffServerRequest,
229
+ context: _ServicerContext,
230
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
231
+ """Powers off the specified server."""
232
+
233
+ @abc.abstractmethod
234
+ def PowerOn(
235
+ self,
236
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.PowerOnServerRequest,
237
+ context: _ServicerContext,
238
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
239
+ """Powers on the specified server."""
240
+
241
+ @abc.abstractmethod
242
+ def Reboot(
243
+ self,
244
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.RebootServerRequest,
245
+ context: _ServicerContext,
246
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
247
+ """Reboots the specified server."""
248
+
249
+ @abc.abstractmethod
250
+ def Reinstall(
251
+ self,
252
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.ReinstallServerRequest,
253
+ context: _ServicerContext,
254
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
255
+ """Reinstalls the specified server."""
256
+
257
+ @abc.abstractmethod
258
+ def StartProlongation(
259
+ self,
260
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.StartProlongationRequest,
261
+ context: _ServicerContext,
262
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
263
+ """Starts prolongation of the specified server."""
264
+
265
+ @abc.abstractmethod
266
+ def StopProlongation(
267
+ self,
268
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.StopProlongationRequest,
269
+ context: _ServicerContext,
270
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
271
+ """Stops prolongation of the specified server."""
272
+
273
+ @abc.abstractmethod
274
+ def ListOperations(
275
+ self,
276
+ request: yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerOperationsRequest,
277
+ context: _ServicerContext,
278
+ ) -> typing.Union[yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerOperationsResponse, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.server_service_pb2.ListServerOperationsResponse]]:
279
+ """Lists operations for the specified server."""
280
+
281
+ def add_ServerServiceServicer_to_server(servicer: ServerServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
@@ -0,0 +1,46 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: yandex/cloud/baremetal/v1alpha/storage.proto
5
+ # Protobuf Python Version: 5.29.0
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'yandex/cloud/baremetal/v1alpha/storage.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from yandex.cloud.baremetal.v1alpha import disk_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_disk__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/baremetal/v1alpha/storage.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a)yandex/cloud/baremetal/v1alpha/disk.proto\"}\n\x10StoragePartition\x12\x42\n\x04type\x18\x01 \x01(\x0e\x32\x34.yandex.cloud.baremetal.v1alpha.StoragePartitionType\x12\x10\n\x08size_gib\x18\x02 \x01(\x03\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xd7\x01\n\x07Storage\x12\x44\n\npartitions\x18\x03 \x03(\x0b\x32\x30.yandex.cloud.baremetal.v1alpha.StoragePartition\x12\x34\n\x04\x64isk\x18\x04 \x01(\x0b\x32$.yandex.cloud.baremetal.v1alpha.DiskH\x00\x12\x34\n\x04raid\x18\x05 \x01(\x0b\x32$.yandex.cloud.baremetal.v1alpha.RaidH\x00\x42\x0e\n\x0cstorage_typeJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\"s\n\x04Raid\x12\x36\n\x04type\x18\x01 \x01(\x0e\x32(.yandex.cloud.baremetal.v1alpha.RaidType\x12\x33\n\x05\x64isks\x18\x02 \x03(\x0b\x32$.yandex.cloud.baremetal.v1alpha.Disk*e\n\x14StoragePartitionType\x12&\n\"STORAGE_PARTITION_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x45XT4\x10\x01\x12\x08\n\x04SWAP\x10\x02\x12\x08\n\x04\x45XT3\x10\x03\x12\x07\n\x03XFS\x10\x04*G\n\x08RaidType\x12\x19\n\x15RAID_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05RAID0\x10\x01\x12\t\n\x05RAID1\x10\x02\x12\n\n\x06RAID10\x10\x03\x42r\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.baremetal.v1alpha.storage_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
36
+ _globals['_STORAGEPARTITIONTYPE']._serialized_start=585
37
+ _globals['_STORAGEPARTITIONTYPE']._serialized_end=686
38
+ _globals['_RAIDTYPE']._serialized_start=688
39
+ _globals['_RAIDTYPE']._serialized_end=759
40
+ _globals['_STORAGEPARTITION']._serialized_start=123
41
+ _globals['_STORAGEPARTITION']._serialized_end=248
42
+ _globals['_STORAGE']._serialized_start=251
43
+ _globals['_STORAGE']._serialized_end=466
44
+ _globals['_RAID']._serialized_start=468
45
+ _globals['_RAID']._serialized_end=583
46
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,165 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import google.protobuf.descriptor
9
+ import google.protobuf.internal.containers
10
+ import google.protobuf.internal.enum_type_wrapper
11
+ import google.protobuf.message
12
+ import sys
13
+ import typing
14
+ import yandex.cloud.baremetal.v1alpha.disk_pb2
15
+
16
+ if sys.version_info >= (3, 10):
17
+ import typing as typing_extensions
18
+ else:
19
+ import typing_extensions
20
+
21
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
22
+
23
+ class _StoragePartitionType:
24
+ ValueType = typing.NewType("ValueType", builtins.int)
25
+ V: typing_extensions.TypeAlias = ValueType
26
+
27
+ class _StoragePartitionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StoragePartitionType.ValueType], builtins.type):
28
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
29
+ STORAGE_PARTITION_TYPE_UNSPECIFIED: _StoragePartitionType.ValueType # 0
30
+ """Unspecified storage partition type."""
31
+ EXT4: _StoragePartitionType.ValueType # 1
32
+ """ext4 file system partition type."""
33
+ SWAP: _StoragePartitionType.ValueType # 2
34
+ """Swap partition type."""
35
+ EXT3: _StoragePartitionType.ValueType # 3
36
+ """ext3 file system partition type."""
37
+ XFS: _StoragePartitionType.ValueType # 4
38
+ """XFS file system partition type."""
39
+
40
+ class StoragePartitionType(_StoragePartitionType, metaclass=_StoragePartitionTypeEnumTypeWrapper):
41
+ """Storage partition type."""
42
+
43
+ STORAGE_PARTITION_TYPE_UNSPECIFIED: StoragePartitionType.ValueType # 0
44
+ """Unspecified storage partition type."""
45
+ EXT4: StoragePartitionType.ValueType # 1
46
+ """ext4 file system partition type."""
47
+ SWAP: StoragePartitionType.ValueType # 2
48
+ """Swap partition type."""
49
+ EXT3: StoragePartitionType.ValueType # 3
50
+ """ext3 file system partition type."""
51
+ XFS: StoragePartitionType.ValueType # 4
52
+ """XFS file system partition type."""
53
+ global___StoragePartitionType = StoragePartitionType
54
+
55
+ class _RaidType:
56
+ ValueType = typing.NewType("ValueType", builtins.int)
57
+ V: typing_extensions.TypeAlias = ValueType
58
+
59
+ class _RaidTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RaidType.ValueType], builtins.type):
60
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
61
+ RAID_TYPE_UNSPECIFIED: _RaidType.ValueType # 0
62
+ """Unspecified RAID configuration."""
63
+ RAID0: _RaidType.ValueType # 1
64
+ """RAID0 configuration."""
65
+ RAID1: _RaidType.ValueType # 2
66
+ """RAID1 configuration."""
67
+ RAID10: _RaidType.ValueType # 3
68
+ """RAID10 configuration."""
69
+
70
+ class RaidType(_RaidType, metaclass=_RaidTypeEnumTypeWrapper):
71
+ """RaidType represents different RAID configurations."""
72
+
73
+ RAID_TYPE_UNSPECIFIED: RaidType.ValueType # 0
74
+ """Unspecified RAID configuration."""
75
+ RAID0: RaidType.ValueType # 1
76
+ """RAID0 configuration."""
77
+ RAID1: RaidType.ValueType # 2
78
+ """RAID1 configuration."""
79
+ RAID10: RaidType.ValueType # 3
80
+ """RAID10 configuration."""
81
+ global___RaidType = RaidType
82
+
83
+ @typing.final
84
+ class StoragePartition(google.protobuf.message.Message):
85
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
86
+
87
+ TYPE_FIELD_NUMBER: builtins.int
88
+ SIZE_GIB_FIELD_NUMBER: builtins.int
89
+ MOUNT_POINT_FIELD_NUMBER: builtins.int
90
+ type: global___StoragePartitionType.ValueType
91
+ """Partition type."""
92
+ size_gib: builtins.int
93
+ """Size of the storage partition in gibibytes (2^30 bytes)."""
94
+ mount_point: builtins.str
95
+ """Storage mount point."""
96
+ def __init__(
97
+ self,
98
+ *,
99
+ type: global___StoragePartitionType.ValueType = ...,
100
+ size_gib: builtins.int = ...,
101
+ mount_point: builtins.str = ...,
102
+ ) -> None: ...
103
+ def ClearField(self, field_name: typing.Literal["mount_point", b"mount_point", "size_gib", b"size_gib", "type", b"type"]) -> None: ...
104
+
105
+ global___StoragePartition = StoragePartition
106
+
107
+ @typing.final
108
+ class Storage(google.protobuf.message.Message):
109
+ """Storage, a OS-level storage entity used for creating partitions. For example, this could
110
+ represent a plain disk or a software RAID of disks.
111
+ """
112
+
113
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
114
+
115
+ PARTITIONS_FIELD_NUMBER: builtins.int
116
+ DISK_FIELD_NUMBER: builtins.int
117
+ RAID_FIELD_NUMBER: builtins.int
118
+ @property
119
+ def partitions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StoragePartition]:
120
+ """Array of partitions created on the storage."""
121
+
122
+ @property
123
+ def disk(self) -> yandex.cloud.baremetal.v1alpha.disk_pb2.Disk:
124
+ """Disk storage."""
125
+
126
+ @property
127
+ def raid(self) -> global___Raid:
128
+ """RAID storage."""
129
+
130
+ def __init__(
131
+ self,
132
+ *,
133
+ partitions: collections.abc.Iterable[global___StoragePartition] | None = ...,
134
+ disk: yandex.cloud.baremetal.v1alpha.disk_pb2.Disk | None = ...,
135
+ raid: global___Raid | None = ...,
136
+ ) -> None: ...
137
+ def HasField(self, field_name: typing.Literal["disk", b"disk", "raid", b"raid", "storage_type", b"storage_type"]) -> builtins.bool: ...
138
+ def ClearField(self, field_name: typing.Literal["disk", b"disk", "partitions", b"partitions", "raid", b"raid", "storage_type", b"storage_type"]) -> None: ...
139
+ def WhichOneof(self, oneof_group: typing.Literal["storage_type", b"storage_type"]) -> typing.Literal["disk", "raid"] | None: ...
140
+
141
+ global___Storage = Storage
142
+
143
+ @typing.final
144
+ class Raid(google.protobuf.message.Message):
145
+ """RAID storage."""
146
+
147
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
148
+
149
+ TYPE_FIELD_NUMBER: builtins.int
150
+ DISKS_FIELD_NUMBER: builtins.int
151
+ type: global___RaidType.ValueType
152
+ """RAID type."""
153
+ @property
154
+ def disks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.baremetal.v1alpha.disk_pb2.Disk]:
155
+ """Array of disks in the RAID configuration."""
156
+
157
+ def __init__(
158
+ self,
159
+ *,
160
+ type: global___RaidType.ValueType = ...,
161
+ disks: collections.abc.Iterable[yandex.cloud.baremetal.v1alpha.disk_pb2.Disk] | None = ...,
162
+ ) -> None: ...
163
+ def ClearField(self, field_name: typing.Literal["disks", b"disks", "type", b"type"]) -> None: ...
164
+
165
+ global___Raid = Raid
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.70.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + f' but the generated code in yandex/cloud/baremetal/v1alpha/storage_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,17 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import abc
7
+ import collections.abc
8
+ import grpc
9
+ import grpc.aio
10
+ import typing
11
+
12
+ _T = typing.TypeVar("_T")
13
+
14
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
15
+
16
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ ...
@@ -0,0 +1,51 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: yandex/cloud/baremetal/v1alpha/storage_service.proto
5
+ # Protobuf Python Version: 5.29.0
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'yandex/cloud/baremetal/v1alpha/storage_service.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from yandex.cloud.baremetal.v1alpha import storage_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_storage__pb2
26
+ from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4yandex/cloud/baremetal/v1alpha/storage_service.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a,yandex/cloud/baremetal/v1alpha/storage.proto\x1a\x1dyandex/cloud/validation.proto\"e\n\x0e\x44\x65\x66\x61ultStorage\x12\x18\n\x10\x63onfiguration_id\x18\x01 \x01(\t\x12\x39\n\x08storages\x18\x02 \x03(\x0b\x32\'.yandex.cloud.baremetal.v1alpha.Storage\"N\n\x18GetDefaultStorageRequest\x12\x32\n\x10\x63onfiguration_id\x18\x01 \x01(\tB\x18\xf2\xc7\x31\x0e[a-z][a-z0-9]*\x8a\xc8\x31\x02\x32\x30\"b\n\x1e\x42\x61tchGetDefaultStoragesRequest\x12@\n\x11\x63onfiguration_ids\x18\x01 \x03(\tB%\xf2\xc7\x31\x0e[a-z][a-z0-9]*\x82\xc8\x31\x05\x31-100\x8a\xc8\x31\x02\x32\x30\x90\xc8\x31\x01\"k\n\x1f\x42\x61tchGetDefaultStoragesResponse\x12H\n\x10\x64\x65\x66\x61ult_storages\x18\x01 \x03(\x0b\x32..yandex.cloud.baremetal.v1alpha.DefaultStorage2\xa1\x02\n\x0eStorageService\x12x\n\nGetDefault\x12\x38.yandex.cloud.baremetal.v1alpha.GetDefaultStorageRequest\x1a..yandex.cloud.baremetal.v1alpha.DefaultStorage\"\x00\x12\x94\x01\n\x0f\x42\x61tchGetDefault\x12>.yandex.cloud.baremetal.v1alpha.BatchGetDefaultStoragesRequest\x1a?.yandex.cloud.baremetal.v1alpha.BatchGetDefaultStoragesResponse\"\x00\x42r\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.baremetal.v1alpha.storage_service_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
37
+ _globals['_GETDEFAULTSTORAGEREQUEST'].fields_by_name['configuration_id']._loaded_options = None
38
+ _globals['_GETDEFAULTSTORAGEREQUEST'].fields_by_name['configuration_id']._serialized_options = b'\362\3071\016[a-z][a-z0-9]*\212\3101\00220'
39
+ _globals['_BATCHGETDEFAULTSTORAGESREQUEST'].fields_by_name['configuration_ids']._loaded_options = None
40
+ _globals['_BATCHGETDEFAULTSTORAGESREQUEST'].fields_by_name['configuration_ids']._serialized_options = b'\362\3071\016[a-z][a-z0-9]*\202\3101\0051-100\212\3101\00220\220\3101\001'
41
+ _globals['_DEFAULTSTORAGE']._serialized_start=165
42
+ _globals['_DEFAULTSTORAGE']._serialized_end=266
43
+ _globals['_GETDEFAULTSTORAGEREQUEST']._serialized_start=268
44
+ _globals['_GETDEFAULTSTORAGEREQUEST']._serialized_end=346
45
+ _globals['_BATCHGETDEFAULTSTORAGESREQUEST']._serialized_start=348
46
+ _globals['_BATCHGETDEFAULTSTORAGESREQUEST']._serialized_end=446
47
+ _globals['_BATCHGETDEFAULTSTORAGESRESPONSE']._serialized_start=448
48
+ _globals['_BATCHGETDEFAULTSTORAGESRESPONSE']._serialized_end=555
49
+ _globals['_STORAGESERVICE']._serialized_start=558
50
+ _globals['_STORAGESERVICE']._serialized_end=847
51
+ # @@protoc_insertion_point(module_scope)