yandexcloud 0.365.0__py3-none-any.whl → 0.367.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.

Potentially problematic release.


This version of yandexcloud might be problematic. Click here for more details.

Files changed (117) hide show
  1. yandex/cloud/access/access_pb2.py +5 -3
  2. yandex/cloud/access/access_pb2.pyi +24 -0
  3. yandex/cloud/apploadbalancer/v1/backend_group_pb2.py +34 -32
  4. yandex/cloud/apploadbalancer/v1/backend_group_pb2.pyi +9 -1
  5. yandex/cloud/audittrails/v1/trail_pb2.py +9 -11
  6. yandex/cloud/audittrails/v1/trail_pb2.pyi +1 -5
  7. yandex/cloud/backup/v1/policy_pb2.py +9 -9
  8. yandex/cloud/backup/v1/policy_pb2.pyi +8 -0
  9. yandex/cloud/baremetal/v1alpha/standard_image_pb2.py +37 -0
  10. yandex/cloud/baremetal/v1alpha/standard_image_pb2.pyi +37 -0
  11. yandex/cloud/baremetal/v1alpha/standard_image_pb2_grpc.py +24 -0
  12. yandex/cloud/baremetal/v1alpha/standard_image_pb2_grpc.pyi +17 -0
  13. yandex/cloud/baremetal/v1alpha/standard_image_service_pb2.py +56 -0
  14. yandex/cloud/baremetal/v1alpha/standard_image_service_pb2.pyi +118 -0
  15. yandex/cloud/baremetal/v1alpha/standard_image_service_pb2_grpc.py +148 -0
  16. yandex/cloud/baremetal/v1alpha/standard_image_service_pb2_grpc.pyi +80 -0
  17. yandex/cloud/cloudregistry/v1/lifecycle_policy_pb2.py +60 -0
  18. yandex/cloud/cloudregistry/v1/lifecycle_policy_pb2.pyi +353 -0
  19. yandex/cloud/cloudregistry/v1/lifecycle_policy_pb2_grpc.py +24 -0
  20. yandex/cloud/cloudregistry/v1/lifecycle_policy_pb2_grpc.pyi +17 -0
  21. yandex/cloud/cloudregistry/v1/lifecycle_policy_service_pb2.py +106 -0
  22. yandex/cloud/cloudregistry/v1/lifecycle_policy_service_pb2.pyi +238 -0
  23. yandex/cloud/cloudregistry/v1/lifecycle_policy_service_pb2_grpc.py +324 -0
  24. yandex/cloud/cloudregistry/v1/lifecycle_policy_service_pb2_grpc.pyi +153 -0
  25. yandex/cloud/compute/v1/instance_service_pb2.pyi +8 -1
  26. yandex/cloud/connectionmanager/v1/connection_pb2.py +12 -11
  27. yandex/cloud/connectionmanager/v1/connection_pb2.pyi +10 -3
  28. yandex/cloud/connectionmanager/v1/storedoc_pb2.py +50 -0
  29. yandex/cloud/connectionmanager/v1/storedoc_pb2.pyi +172 -0
  30. yandex/cloud/connectionmanager/v1/storedoc_pb2_grpc.py +24 -0
  31. yandex/cloud/connectionmanager/v1/storedoc_pb2_grpc.pyi +17 -0
  32. yandex/cloud/iam/v1/access_policy_template_service_pb2.py +50 -0
  33. yandex/cloud/iam/v1/access_policy_template_service_pb2.pyi +67 -0
  34. yandex/cloud/iam/v1/access_policy_template_service_pb2_grpc.py +98 -0
  35. yandex/cloud/iam/v1/access_policy_template_service_pb2_grpc.pyi +44 -0
  36. yandex/cloud/kms/v1/symmetric_key_pb2.py +3 -3
  37. yandex/cloud/kms/v1/symmetric_key_pb2.pyi +4 -0
  38. yandex/cloud/mdb/greenplum/v1/cluster_pb2.py +16 -16
  39. yandex/cloud/mdb/greenplum/v1/cluster_pb2.pyi +3 -15
  40. yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.py +76 -76
  41. yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.pyi +3 -15
  42. yandex/cloud/mdb/greenplum/v1/config_pb2.py +11 -29
  43. yandex/cloud/mdb/greenplum/v1/config_pb2.pyi +0 -399
  44. yandex/cloud/mdb/kafka/v1/cluster_pb2.py +28 -28
  45. yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +5 -1
  46. yandex/cloud/mdb/mongodb/v1/config/mongodb3_6_pb2.py +4 -4
  47. yandex/cloud/mdb/mongodb/v1/config/mongodb4_0_pb2.py +4 -4
  48. yandex/cloud/mdb/mongodb/v1/config/mongodb4_2_pb2.py +4 -4
  49. yandex/cloud/mdb/mongodb/v1/config/mongodb4_4_enterprise_pb2.py +4 -4
  50. yandex/cloud/mdb/mongodb/v1/config/mongodb4_4_pb2.py +4 -4
  51. yandex/cloud/mdb/mongodb/v1/config/mongodb5_0_enterprise_pb2.py +4 -4
  52. yandex/cloud/mdb/mongodb/v1/config/mongodb5_0_pb2.py +4 -4
  53. yandex/cloud/mdb/mongodb/v1/config/mongodb6_0_enterprise_pb2.py +4 -4
  54. yandex/cloud/mdb/mongodb/v1/config/mongodb6_0_pb2.py +4 -4
  55. yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.py +65 -99
  56. yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.pyi +21 -426
  57. yandex/cloud/organizationmanager/v1/idp/application/saml/__init__.py +0 -0
  58. yandex/cloud/organizationmanager/v1/idp/application/saml/application_pb2.py +100 -0
  59. yandex/cloud/organizationmanager/v1/idp/application/saml/application_pb2.pyi +487 -0
  60. yandex/cloud/organizationmanager/v1/idp/application/saml/application_pb2_grpc.py +24 -0
  61. yandex/cloud/organizationmanager/v1/idp/application/saml/application_pb2_grpc.pyi +17 -0
  62. yandex/cloud/organizationmanager/v1/idp/application/saml/application_service_pb2.py +198 -0
  63. yandex/cloud/organizationmanager/v1/idp/application/saml/application_service_pb2.pyi +733 -0
  64. yandex/cloud/organizationmanager/v1/idp/application/saml/application_service_pb2_grpc.py +678 -0
  65. yandex/cloud/organizationmanager/v1/idp/application/saml/application_service_pb2_grpc.pyi +322 -0
  66. yandex/cloud/organizationmanager/v1/idp/application/saml/signature_certificate_pb2.py +40 -0
  67. yandex/cloud/organizationmanager/v1/idp/application/saml/signature_certificate_pb2.pyi +103 -0
  68. yandex/cloud/organizationmanager/v1/idp/application/saml/signature_certificate_pb2_grpc.py +24 -0
  69. yandex/cloud/organizationmanager/v1/idp/application/saml/signature_certificate_pb2_grpc.pyi +17 -0
  70. yandex/cloud/organizationmanager/v1/idp/application/saml/signature_certificate_service_pb2.py +95 -0
  71. yandex/cloud/organizationmanager/v1/idp/application/saml/signature_certificate_service_pb2.pyi +220 -0
  72. yandex/cloud/organizationmanager/v1/idp/application/saml/signature_certificate_service_pb2_grpc.py +281 -0
  73. yandex/cloud/organizationmanager/v1/idp/application/saml/signature_certificate_service_pb2_grpc.pyi +141 -0
  74. yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.py +29 -3
  75. yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.pyi +132 -0
  76. yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.py +90 -0
  77. yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.pyi +52 -0
  78. yandex/cloud/searchapi/v2/gen_search_service_pb2.py +10 -10
  79. yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +5 -1
  80. yandex/cloud/searchapi/v2/wordstat_service_pb2.py +96 -0
  81. yandex/cloud/searchapi/v2/wordstat_service_pb2.pyi +344 -0
  82. yandex/cloud/searchapi/v2/wordstat_service_pb2_grpc.py +189 -0
  83. yandex/cloud/searchapi/v2/wordstat_service_pb2_grpc.pyi +90 -0
  84. yandex/cloud/serverless/mcpgateway/__init__.py +0 -0
  85. yandex/cloud/serverless/mcpgateway/v1/__init__.py +0 -0
  86. yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_pb2.py +152 -0
  87. yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_pb2.pyi +780 -0
  88. yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_pb2_grpc.py +24 -0
  89. yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_pb2_grpc.pyi +17 -0
  90. yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_service_pb2.py +134 -0
  91. yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_service_pb2.pyi +390 -0
  92. yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_service_pb2_grpc.py +456 -0
  93. yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_service_pb2_grpc.pyi +213 -0
  94. yandex/cloud/serverless/mcpgateway/v1/package_options_pb2.py +35 -0
  95. yandex/cloud/serverless/mcpgateway/v1/package_options_pb2.pyi +8 -0
  96. yandex/cloud/serverless/mcpgateway/v1/package_options_pb2_grpc.py +24 -0
  97. yandex/cloud/serverless/mcpgateway/v1/package_options_pb2_grpc.pyi +17 -0
  98. yandex/cloud/serverless/workflows/v1/execution_service_pb2.py +3 -3
  99. yandex/cloud/serverless/workflows/v1/workflow_service_pb2.py +38 -31
  100. yandex/cloud/serverless/workflows/v1/workflow_service_pb2_grpc.py +133 -0
  101. yandex/cloud/serverless/workflows/v1/workflow_service_pb2_grpc.pyi +61 -0
  102. yandex/cloud/trino/v1/cluster_pb2.py +46 -45
  103. yandex/cloud/trino/v1/cluster_pb2.pyi +9 -2
  104. yandex/cloud/trino/v1/cluster_service_pb2.py +50 -49
  105. yandex/cloud/trino/v1/cluster_service_pb2.pyi +17 -4
  106. yandex/cloud/trino/v1/resource_management_pb2.py +66 -0
  107. yandex/cloud/trino/v1/resource_management_pb2.pyi +257 -0
  108. yandex/cloud/trino/v1/resource_management_pb2_grpc.py +24 -0
  109. yandex/cloud/trino/v1/resource_management_pb2_grpc.pyi +17 -0
  110. yandex/cloud/video/v1/style_preset_service_pb2.py +20 -20
  111. yandexcloud/__init__.py +1 -1
  112. {yandexcloud-0.365.0.dist-info → yandexcloud-0.367.0.dist-info}/METADATA +1 -1
  113. {yandexcloud-0.365.0.dist-info → yandexcloud-0.367.0.dist-info}/RECORD +117 -54
  114. {yandexcloud-0.365.0.dist-info → yandexcloud-0.367.0.dist-info}/AUTHORS +0 -0
  115. {yandexcloud-0.365.0.dist-info → yandexcloud-0.367.0.dist-info}/LICENSE +0 -0
  116. {yandexcloud-0.365.0.dist-info → yandexcloud-0.367.0.dist-info}/WHEEL +0 -0
  117. {yandexcloud-0.365.0.dist-info → yandexcloud-0.367.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,344 @@
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 google.protobuf.timestamp_pb2
13
+ import sys
14
+ import typing
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 _Device:
24
+ ValueType = typing.NewType("ValueType", builtins.int)
25
+ V: typing_extensions.TypeAlias = ValueType
26
+
27
+ class _DeviceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Device.ValueType], builtins.type):
28
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
29
+ DEVICE_UNSPECIFIED: _Device.ValueType # 0
30
+ DEVICE_ALL: _Device.ValueType # 1
31
+ """All devices."""
32
+ DEVICE_DESKTOP: _Device.ValueType # 2
33
+ """Desktop computers."""
34
+ DEVICE_PHONE: _Device.ValueType # 3
35
+ """Phones."""
36
+ DEVICE_TABLET: _Device.ValueType # 4
37
+ """Tablets."""
38
+
39
+ class Device(_Device, metaclass=_DeviceEnumTypeWrapper): ...
40
+
41
+ DEVICE_UNSPECIFIED: Device.ValueType # 0
42
+ DEVICE_ALL: Device.ValueType # 1
43
+ """All devices."""
44
+ DEVICE_DESKTOP: Device.ValueType # 2
45
+ """Desktop computers."""
46
+ DEVICE_PHONE: Device.ValueType # 3
47
+ """Phones."""
48
+ DEVICE_TABLET: Device.ValueType # 4
49
+ """Tablets."""
50
+ global___Device = Device
51
+
52
+ @typing.final
53
+ class GetTopRequest(google.protobuf.message.Message):
54
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
55
+
56
+ PHRASE_FIELD_NUMBER: builtins.int
57
+ NUM_PHRASES_FIELD_NUMBER: builtins.int
58
+ REGIONS_FIELD_NUMBER: builtins.int
59
+ DEVICES_FIELD_NUMBER: builtins.int
60
+ FOLDER_ID_FIELD_NUMBER: builtins.int
61
+ phrase: builtins.str
62
+ """Keyword"""
63
+ num_phrases: builtins.int
64
+ """Number of the phrases in the response."""
65
+ folder_id: builtins.str
66
+ """ID of the folder."""
67
+ @property
68
+ def regions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
69
+ """A list of IDs of the regions a query was made from."""
70
+
71
+ @property
72
+ def devices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___Device.ValueType]:
73
+ """A list of device types a query was made from."""
74
+
75
+ def __init__(
76
+ self,
77
+ *,
78
+ phrase: builtins.str = ...,
79
+ num_phrases: builtins.int = ...,
80
+ regions: collections.abc.Iterable[builtins.str] | None = ...,
81
+ devices: collections.abc.Iterable[global___Device.ValueType] | None = ...,
82
+ folder_id: builtins.str = ...,
83
+ ) -> None: ...
84
+ def ClearField(self, field_name: typing.Literal["devices", b"devices", "folder_id", b"folder_id", "num_phrases", b"num_phrases", "phrase", b"phrase", "regions", b"regions"]) -> None: ...
85
+
86
+ global___GetTopRequest = GetTopRequest
87
+
88
+ @typing.final
89
+ class GetTopResponse(google.protobuf.message.Message):
90
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
91
+
92
+ @typing.final
93
+ class PhraseInfo(google.protobuf.message.Message):
94
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
95
+
96
+ PHRASE_FIELD_NUMBER: builtins.int
97
+ COUNT_FIELD_NUMBER: builtins.int
98
+ phrase: builtins.str
99
+ """Keyword."""
100
+ count: builtins.int
101
+ """Number of queries made."""
102
+ def __init__(
103
+ self,
104
+ *,
105
+ phrase: builtins.str = ...,
106
+ count: builtins.int = ...,
107
+ ) -> None: ...
108
+ def ClearField(self, field_name: typing.Literal["count", b"count", "phrase", b"phrase"]) -> None: ...
109
+
110
+ TOTAL_COUNT_FIELD_NUMBER: builtins.int
111
+ RESULTS_FIELD_NUMBER: builtins.int
112
+ ASSOCIATIONS_FIELD_NUMBER: builtins.int
113
+ total_count: builtins.int
114
+ """Total number of the queries that contain all the keywords, regardless of their order."""
115
+ @property
116
+ def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetTopResponse.PhraseInfo]:
117
+ """Results."""
118
+
119
+ @property
120
+ def associations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetTopResponse.PhraseInfo]:
121
+ """Queries that are similar to the specified one."""
122
+
123
+ def __init__(
124
+ self,
125
+ *,
126
+ total_count: builtins.int = ...,
127
+ results: collections.abc.Iterable[global___GetTopResponse.PhraseInfo] | None = ...,
128
+ associations: collections.abc.Iterable[global___GetTopResponse.PhraseInfo] | None = ...,
129
+ ) -> None: ...
130
+ def ClearField(self, field_name: typing.Literal["associations", b"associations", "results", b"results", "total_count", b"total_count"]) -> None: ...
131
+
132
+ global___GetTopResponse = GetTopResponse
133
+
134
+ @typing.final
135
+ class GetDynamicsRequest(google.protobuf.message.Message):
136
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
137
+
138
+ class _Period:
139
+ ValueType = typing.NewType("ValueType", builtins.int)
140
+ V: typing_extensions.TypeAlias = ValueType
141
+
142
+ class _PeriodEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GetDynamicsRequest._Period.ValueType], builtins.type):
143
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
144
+ PERIOD_UNSPECIFIED: GetDynamicsRequest._Period.ValueType # 0
145
+ PERIOD_MONTHLY: GetDynamicsRequest._Period.ValueType # 1
146
+ """Details by month."""
147
+ PERIOD_WEEKLY: GetDynamicsRequest._Period.ValueType # 2
148
+ """Details by week."""
149
+ PERIOD_DAILY: GetDynamicsRequest._Period.ValueType # 3
150
+ """Details by day."""
151
+
152
+ class Period(_Period, metaclass=_PeriodEnumTypeWrapper): ...
153
+ PERIOD_UNSPECIFIED: GetDynamicsRequest.Period.ValueType # 0
154
+ PERIOD_MONTHLY: GetDynamicsRequest.Period.ValueType # 1
155
+ """Details by month."""
156
+ PERIOD_WEEKLY: GetDynamicsRequest.Period.ValueType # 2
157
+ """Details by week."""
158
+ PERIOD_DAILY: GetDynamicsRequest.Period.ValueType # 3
159
+ """Details by day."""
160
+
161
+ PHRASE_FIELD_NUMBER: builtins.int
162
+ PERIOD_FIELD_NUMBER: builtins.int
163
+ FROM_DATE_FIELD_NUMBER: builtins.int
164
+ TO_DATE_FIELD_NUMBER: builtins.int
165
+ REGIONS_FIELD_NUMBER: builtins.int
166
+ DEVICES_FIELD_NUMBER: builtins.int
167
+ FOLDER_ID_FIELD_NUMBER: builtins.int
168
+ phrase: builtins.str
169
+ """Keyword."""
170
+ period: global___GetDynamicsRequest.Period.ValueType
171
+ """The period of aggregation of the number of queries."""
172
+ folder_id: builtins.str
173
+ """ID of the folder."""
174
+ @property
175
+ def from_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
176
+ """The start of the period data is requested for."""
177
+
178
+ @property
179
+ def to_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
180
+ """The end of the period data is requested for."""
181
+
182
+ @property
183
+ def regions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
184
+ """A list of IDs of the regions a query was made from."""
185
+
186
+ @property
187
+ def devices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___Device.ValueType]:
188
+ """A list of device types a query was made from."""
189
+
190
+ def __init__(
191
+ self,
192
+ *,
193
+ phrase: builtins.str = ...,
194
+ period: global___GetDynamicsRequest.Period.ValueType = ...,
195
+ from_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
196
+ to_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
197
+ regions: collections.abc.Iterable[builtins.str] | None = ...,
198
+ devices: collections.abc.Iterable[global___Device.ValueType] | None = ...,
199
+ folder_id: builtins.str = ...,
200
+ ) -> None: ...
201
+ def HasField(self, field_name: typing.Literal["from_date", b"from_date", "to_date", b"to_date"]) -> builtins.bool: ...
202
+ def ClearField(self, field_name: typing.Literal["devices", b"devices", "folder_id", b"folder_id", "from_date", b"from_date", "period", b"period", "phrase", b"phrase", "regions", b"regions", "to_date", b"to_date"]) -> None: ...
203
+
204
+ global___GetDynamicsRequest = GetDynamicsRequest
205
+
206
+ @typing.final
207
+ class GetDynamicsResponse(google.protobuf.message.Message):
208
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
209
+
210
+ @typing.final
211
+ class DynamicsInfo(google.protobuf.message.Message):
212
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
213
+
214
+ DATE_FIELD_NUMBER: builtins.int
215
+ COUNT_FIELD_NUMBER: builtins.int
216
+ SHARE_FIELD_NUMBER: builtins.int
217
+ count: builtins.int
218
+ """Number of queries containing the given keyword"""
219
+ share: builtins.float
220
+ """The share of the number of such queries from the total number of queries to Yandex."""
221
+ @property
222
+ def date(self) -> google.protobuf.timestamp_pb2.Timestamp:
223
+ """The date"""
224
+
225
+ def __init__(
226
+ self,
227
+ *,
228
+ date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
229
+ count: builtins.int = ...,
230
+ share: builtins.float = ...,
231
+ ) -> None: ...
232
+ def HasField(self, field_name: typing.Literal["date", b"date"]) -> builtins.bool: ...
233
+ def ClearField(self, field_name: typing.Literal["count", b"count", "date", b"date", "share", b"share"]) -> None: ...
234
+
235
+ RESULTS_FIELD_NUMBER: builtins.int
236
+ @property
237
+ def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetDynamicsResponse.DynamicsInfo]:
238
+ """Results."""
239
+
240
+ def __init__(
241
+ self,
242
+ *,
243
+ results: collections.abc.Iterable[global___GetDynamicsResponse.DynamicsInfo] | None = ...,
244
+ ) -> None: ...
245
+ def ClearField(self, field_name: typing.Literal["results", b"results"]) -> None: ...
246
+
247
+ global___GetDynamicsResponse = GetDynamicsResponse
248
+
249
+ @typing.final
250
+ class GetRegionsDistributionRequest(google.protobuf.message.Message):
251
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
252
+
253
+ class _Region:
254
+ ValueType = typing.NewType("ValueType", builtins.int)
255
+ V: typing_extensions.TypeAlias = ValueType
256
+
257
+ class _RegionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GetRegionsDistributionRequest._Region.ValueType], builtins.type):
258
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
259
+ REGION_UNSPECIFIED: GetRegionsDistributionRequest._Region.ValueType # 0
260
+ REGION_ALL: GetRegionsDistributionRequest._Region.ValueType # 1
261
+ """Show distribution everywhere."""
262
+ REGION_CITIES: GetRegionsDistributionRequest._Region.ValueType # 2
263
+ """Show distribution by cities."""
264
+ REGION_REGIONS: GetRegionsDistributionRequest._Region.ValueType # 3
265
+ """Show distribution by regions."""
266
+
267
+ class Region(_Region, metaclass=_RegionEnumTypeWrapper): ...
268
+ REGION_UNSPECIFIED: GetRegionsDistributionRequest.Region.ValueType # 0
269
+ REGION_ALL: GetRegionsDistributionRequest.Region.ValueType # 1
270
+ """Show distribution everywhere."""
271
+ REGION_CITIES: GetRegionsDistributionRequest.Region.ValueType # 2
272
+ """Show distribution by cities."""
273
+ REGION_REGIONS: GetRegionsDistributionRequest.Region.ValueType # 3
274
+ """Show distribution by regions."""
275
+
276
+ PHRASE_FIELD_NUMBER: builtins.int
277
+ REGION_FIELD_NUMBER: builtins.int
278
+ DEVICES_FIELD_NUMBER: builtins.int
279
+ FOLDER_ID_FIELD_NUMBER: builtins.int
280
+ phrase: builtins.str
281
+ """Keyword"""
282
+ region: global___GetRegionsDistributionRequest.Region.ValueType
283
+ """Show query distribution only by city, only by region, or everywhere."""
284
+ folder_id: builtins.str
285
+ """ID of the folder."""
286
+ @property
287
+ def devices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___Device.ValueType]:
288
+ """A list of device types a query was made from."""
289
+
290
+ def __init__(
291
+ self,
292
+ *,
293
+ phrase: builtins.str = ...,
294
+ region: global___GetRegionsDistributionRequest.Region.ValueType = ...,
295
+ devices: collections.abc.Iterable[global___Device.ValueType] | None = ...,
296
+ folder_id: builtins.str = ...,
297
+ ) -> None: ...
298
+ def ClearField(self, field_name: typing.Literal["devices", b"devices", "folder_id", b"folder_id", "phrase", b"phrase", "region", b"region"]) -> None: ...
299
+
300
+ global___GetRegionsDistributionRequest = GetRegionsDistributionRequest
301
+
302
+ @typing.final
303
+ class GetRegionsDistributionResponse(google.protobuf.message.Message):
304
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
305
+
306
+ @typing.final
307
+ class RegionInfo(google.protobuf.message.Message):
308
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
309
+
310
+ REGION_FIELD_NUMBER: builtins.int
311
+ COUNT_FIELD_NUMBER: builtins.int
312
+ SHARE_FIELD_NUMBER: builtins.int
313
+ AFFINITY_INDEX_FIELD_NUMBER: builtins.int
314
+ region: builtins.str
315
+ """region ID"""
316
+ count: builtins.int
317
+ """Number of queries containing the given keyword."""
318
+ share: builtins.float
319
+ """The share of the number of such queries from the total number of queries to Yandex in the region."""
320
+ affinity_index: builtins.float
321
+ """The ratio between the share of the selected queries in the region and their share across the country."""
322
+ def __init__(
323
+ self,
324
+ *,
325
+ region: builtins.str = ...,
326
+ count: builtins.int = ...,
327
+ share: builtins.float = ...,
328
+ affinity_index: builtins.float = ...,
329
+ ) -> None: ...
330
+ def ClearField(self, field_name: typing.Literal["affinity_index", b"affinity_index", "count", b"count", "region", b"region", "share", b"share"]) -> None: ...
331
+
332
+ RESULTS_FIELD_NUMBER: builtins.int
333
+ @property
334
+ def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetRegionsDistributionResponse.RegionInfo]:
335
+ """Results."""
336
+
337
+ def __init__(
338
+ self,
339
+ *,
340
+ results: collections.abc.Iterable[global___GetRegionsDistributionResponse.RegionInfo] | None = ...,
341
+ ) -> None: ...
342
+ def ClearField(self, field_name: typing.Literal["results", b"results"]) -> None: ...
343
+
344
+ global___GetRegionsDistributionResponse = GetRegionsDistributionResponse
@@ -0,0 +1,189 @@
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
+ from yandex.cloud.searchapi.v2 import wordstat_service_pb2 as yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.70.0'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + f' but the generated code in yandex/cloud/searchapi/v2/wordstat_service_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class WordstatServiceStub(object):
29
+ """A set of methods for viewing statistics on search queries to Yandex.
30
+ """
31
+
32
+ def __init__(self, channel):
33
+ """Constructor.
34
+
35
+ Args:
36
+ channel: A grpc.Channel.
37
+ """
38
+ self.GetTop = channel.unary_unary(
39
+ '/yandex.cloud.searchapi.v2.WordstatService/GetTop',
40
+ request_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetTopRequest.SerializeToString,
41
+ response_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetTopResponse.FromString,
42
+ _registered_method=True)
43
+ self.GetDynamics = channel.unary_unary(
44
+ '/yandex.cloud.searchapi.v2.WordstatService/GetDynamics',
45
+ request_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetDynamicsRequest.SerializeToString,
46
+ response_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetDynamicsResponse.FromString,
47
+ _registered_method=True)
48
+ self.GetRegionsDistribution = channel.unary_unary(
49
+ '/yandex.cloud.searchapi.v2.WordstatService/GetRegionsDistribution',
50
+ request_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetRegionsDistributionRequest.SerializeToString,
51
+ response_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetRegionsDistributionResponse.FromString,
52
+ _registered_method=True)
53
+
54
+
55
+ class WordstatServiceServicer(object):
56
+ """A set of methods for viewing statistics on search queries to Yandex.
57
+ """
58
+
59
+ def GetTop(self, request, context):
60
+ """The method returns the last 30 days data about popular queries containing the specified keyword and queries that are similar to the specified one.
61
+ """
62
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
63
+ context.set_details('Method not implemented!')
64
+ raise NotImplementedError('Method not implemented!')
65
+
66
+ def GetDynamics(self, request, context):
67
+ """The method returns the frequency of queries over time for a given keyword.
68
+ """
69
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
70
+ context.set_details('Method not implemented!')
71
+ raise NotImplementedError('Method not implemented!')
72
+
73
+ def GetRegionsDistribution(self, request, context):
74
+ """The method returns the distribution of the number of queries containing the given keyword globally by region for the last 30 days.
75
+ """
76
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
77
+ context.set_details('Method not implemented!')
78
+ raise NotImplementedError('Method not implemented!')
79
+
80
+
81
+ def add_WordstatServiceServicer_to_server(servicer, server):
82
+ rpc_method_handlers = {
83
+ 'GetTop': grpc.unary_unary_rpc_method_handler(
84
+ servicer.GetTop,
85
+ request_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetTopRequest.FromString,
86
+ response_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetTopResponse.SerializeToString,
87
+ ),
88
+ 'GetDynamics': grpc.unary_unary_rpc_method_handler(
89
+ servicer.GetDynamics,
90
+ request_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetDynamicsRequest.FromString,
91
+ response_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetDynamicsResponse.SerializeToString,
92
+ ),
93
+ 'GetRegionsDistribution': grpc.unary_unary_rpc_method_handler(
94
+ servicer.GetRegionsDistribution,
95
+ request_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetRegionsDistributionRequest.FromString,
96
+ response_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetRegionsDistributionResponse.SerializeToString,
97
+ ),
98
+ }
99
+ generic_handler = grpc.method_handlers_generic_handler(
100
+ 'yandex.cloud.searchapi.v2.WordstatService', rpc_method_handlers)
101
+ server.add_generic_rpc_handlers((generic_handler,))
102
+ server.add_registered_method_handlers('yandex.cloud.searchapi.v2.WordstatService', rpc_method_handlers)
103
+
104
+
105
+ # This class is part of an EXPERIMENTAL API.
106
+ class WordstatService(object):
107
+ """A set of methods for viewing statistics on search queries to Yandex.
108
+ """
109
+
110
+ @staticmethod
111
+ def GetTop(request,
112
+ target,
113
+ options=(),
114
+ channel_credentials=None,
115
+ call_credentials=None,
116
+ insecure=False,
117
+ compression=None,
118
+ wait_for_ready=None,
119
+ timeout=None,
120
+ metadata=None):
121
+ return grpc.experimental.unary_unary(
122
+ request,
123
+ target,
124
+ '/yandex.cloud.searchapi.v2.WordstatService/GetTop',
125
+ yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetTopRequest.SerializeToString,
126
+ yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetTopResponse.FromString,
127
+ options,
128
+ channel_credentials,
129
+ insecure,
130
+ call_credentials,
131
+ compression,
132
+ wait_for_ready,
133
+ timeout,
134
+ metadata,
135
+ _registered_method=True)
136
+
137
+ @staticmethod
138
+ def GetDynamics(request,
139
+ target,
140
+ options=(),
141
+ channel_credentials=None,
142
+ call_credentials=None,
143
+ insecure=False,
144
+ compression=None,
145
+ wait_for_ready=None,
146
+ timeout=None,
147
+ metadata=None):
148
+ return grpc.experimental.unary_unary(
149
+ request,
150
+ target,
151
+ '/yandex.cloud.searchapi.v2.WordstatService/GetDynamics',
152
+ yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetDynamicsRequest.SerializeToString,
153
+ yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetDynamicsResponse.FromString,
154
+ options,
155
+ channel_credentials,
156
+ insecure,
157
+ call_credentials,
158
+ compression,
159
+ wait_for_ready,
160
+ timeout,
161
+ metadata,
162
+ _registered_method=True)
163
+
164
+ @staticmethod
165
+ def GetRegionsDistribution(request,
166
+ target,
167
+ options=(),
168
+ channel_credentials=None,
169
+ call_credentials=None,
170
+ insecure=False,
171
+ compression=None,
172
+ wait_for_ready=None,
173
+ timeout=None,
174
+ metadata=None):
175
+ return grpc.experimental.unary_unary(
176
+ request,
177
+ target,
178
+ '/yandex.cloud.searchapi.v2.WordstatService/GetRegionsDistribution',
179
+ yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetRegionsDistributionRequest.SerializeToString,
180
+ yandex_dot_cloud_dot_searchapi_dot_v2_dot_wordstat__service__pb2.GetRegionsDistributionResponse.FromString,
181
+ options,
182
+ channel_credentials,
183
+ insecure,
184
+ call_credentials,
185
+ compression,
186
+ wait_for_ready,
187
+ timeout,
188
+ metadata,
189
+ _registered_method=True)
@@ -0,0 +1,90 @@
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.searchapi.v2.wordstat_service_pb2
12
+
13
+ _T = typing.TypeVar("_T")
14
+
15
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
16
+
17
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
18
+ ...
19
+
20
+ class WordstatServiceStub:
21
+ """A set of methods for viewing statistics on search queries to Yandex."""
22
+
23
+ def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
24
+ GetTop: grpc.UnaryUnaryMultiCallable[
25
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetTopRequest,
26
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetTopResponse,
27
+ ]
28
+ """The method returns the last 30 days data about popular queries containing the specified keyword and queries that are similar to the specified one."""
29
+
30
+ GetDynamics: grpc.UnaryUnaryMultiCallable[
31
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetDynamicsRequest,
32
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetDynamicsResponse,
33
+ ]
34
+ """The method returns the frequency of queries over time for a given keyword."""
35
+
36
+ GetRegionsDistribution: grpc.UnaryUnaryMultiCallable[
37
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetRegionsDistributionRequest,
38
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetRegionsDistributionResponse,
39
+ ]
40
+ """The method returns the distribution of the number of queries containing the given keyword globally by region for the last 30 days."""
41
+
42
+ class WordstatServiceAsyncStub:
43
+ """A set of methods for viewing statistics on search queries to Yandex."""
44
+
45
+ GetTop: grpc.aio.UnaryUnaryMultiCallable[
46
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetTopRequest,
47
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetTopResponse,
48
+ ]
49
+ """The method returns the last 30 days data about popular queries containing the specified keyword and queries that are similar to the specified one."""
50
+
51
+ GetDynamics: grpc.aio.UnaryUnaryMultiCallable[
52
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetDynamicsRequest,
53
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetDynamicsResponse,
54
+ ]
55
+ """The method returns the frequency of queries over time for a given keyword."""
56
+
57
+ GetRegionsDistribution: grpc.aio.UnaryUnaryMultiCallable[
58
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetRegionsDistributionRequest,
59
+ yandex.cloud.searchapi.v2.wordstat_service_pb2.GetRegionsDistributionResponse,
60
+ ]
61
+ """The method returns the distribution of the number of queries containing the given keyword globally by region for the last 30 days."""
62
+
63
+ class WordstatServiceServicer(metaclass=abc.ABCMeta):
64
+ """A set of methods for viewing statistics on search queries to Yandex."""
65
+
66
+ @abc.abstractmethod
67
+ def GetTop(
68
+ self,
69
+ request: yandex.cloud.searchapi.v2.wordstat_service_pb2.GetTopRequest,
70
+ context: _ServicerContext,
71
+ ) -> typing.Union[yandex.cloud.searchapi.v2.wordstat_service_pb2.GetTopResponse, collections.abc.Awaitable[yandex.cloud.searchapi.v2.wordstat_service_pb2.GetTopResponse]]:
72
+ """The method returns the last 30 days data about popular queries containing the specified keyword and queries that are similar to the specified one."""
73
+
74
+ @abc.abstractmethod
75
+ def GetDynamics(
76
+ self,
77
+ request: yandex.cloud.searchapi.v2.wordstat_service_pb2.GetDynamicsRequest,
78
+ context: _ServicerContext,
79
+ ) -> typing.Union[yandex.cloud.searchapi.v2.wordstat_service_pb2.GetDynamicsResponse, collections.abc.Awaitable[yandex.cloud.searchapi.v2.wordstat_service_pb2.GetDynamicsResponse]]:
80
+ """The method returns the frequency of queries over time for a given keyword."""
81
+
82
+ @abc.abstractmethod
83
+ def GetRegionsDistribution(
84
+ self,
85
+ request: yandex.cloud.searchapi.v2.wordstat_service_pb2.GetRegionsDistributionRequest,
86
+ context: _ServicerContext,
87
+ ) -> typing.Union[yandex.cloud.searchapi.v2.wordstat_service_pb2.GetRegionsDistributionResponse, collections.abc.Awaitable[yandex.cloud.searchapi.v2.wordstat_service_pb2.GetRegionsDistributionResponse]]:
88
+ """The method returns the distribution of the number of queries containing the given keyword globally by region for the last 30 days."""
89
+
90
+ def add_WordstatServiceServicer_to_server(servicer: WordstatServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
File without changes
File without changes