Skip to content

Commit b560126

Browse files
feat: regenerate proto
1 parent f0e3b3d commit b560126

19 files changed

+687
-311
lines changed

yandex/cloud/cdn/v1/resource_pb2.py

Lines changed: 62 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

yandex/cloud/cdn/v1/resource_pb2.pyi

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,32 @@ class ResourceOptions(google.protobuf.message.Message):
813813
) -> None: ...
814814
def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "excepted_values", b"excepted_values", "policy_type", b"policy_type"]) -> None: ...
815815

816+
@typing.final
817+
class FollowRedirectsOption(google.protobuf.message.Message):
818+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
819+
820+
ENABLED_FIELD_NUMBER: builtins.int
821+
CODES_FIELD_NUMBER: builtins.int
822+
USE_CUSTOM_HOST_FIELD_NUMBER: builtins.int
823+
enabled: builtins.bool
824+
"""True - the option is enabled and its [flag] is applied to the resource.
825+
False - the option is disabled and its default value of the [flag] is used for the resource.
826+
"""
827+
use_custom_host: builtins.bool
828+
"""Use the redirect target domain as a Host header, or leave it the same as the value of the Change Host header option."""
829+
@property
830+
def codes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
831+
"""Add the redirect HTTP status codes that the source returns."""
832+
833+
def __init__(
834+
self,
835+
*,
836+
enabled: builtins.bool = ...,
837+
codes: collections.abc.Iterable[builtins.int] | None = ...,
838+
use_custom_host: builtins.bool = ...,
839+
) -> None: ...
840+
def ClearField(self, field_name: typing.Literal["codes", b"codes", "enabled", b"enabled", "use_custom_host", b"use_custom_host"]) -> None: ...
841+
816842
DISABLE_CACHE_FIELD_NUMBER: builtins.int
817843
EDGE_CACHE_SETTINGS_FIELD_NUMBER: builtins.int
818844
BROWSER_CACHE_SETTINGS_FIELD_NUMBER: builtins.int
@@ -834,6 +860,7 @@ class ResourceOptions(google.protobuf.message.Message):
834860
REWRITE_FIELD_NUMBER: builtins.int
835861
SECURE_KEY_FIELD_NUMBER: builtins.int
836862
IP_ADDRESS_ACL_FIELD_NUMBER: builtins.int
863+
FOLLOW_REDIRECTS_FIELD_NUMBER: builtins.int
837864
@property
838865
def disable_cache(self) -> global___ResourceOptions.BoolOption:
839866
"""Set up a cache status."""
@@ -948,6 +975,12 @@ class ResourceOptions(google.protobuf.message.Message):
948975
The option controls access to content from the specified IP addresses.
949976
"""
950977

978+
@property
979+
def follow_redirects(self) -> global___ResourceOptions.FollowRedirectsOption:
980+
"""Manage the state of the Redirection from origin option.
981+
If the source returns a redirect, the option lets CDN pull the requested content from the source that was returned in the redirect.
982+
"""
983+
951984
def __init__(
952985
self,
953986
*,
@@ -972,9 +1005,10 @@ class ResourceOptions(google.protobuf.message.Message):
9721005
rewrite: global___ResourceOptions.RewriteOption | None = ...,
9731006
secure_key: global___ResourceOptions.SecureKeyOption | None = ...,
9741007
ip_address_acl: global___ResourceOptions.IPAddressACLOption | None = ...,
1008+
follow_redirects: global___ResourceOptions.FollowRedirectsOption | None = ...,
9751009
) -> None: ...
976-
def HasField(self, field_name: typing.Literal["allowed_http_methods", b"allowed_http_methods", "browser_cache_settings", b"browser_cache_settings", "cache_http_headers", b"cache_http_headers", "compression_options", b"compression_options", "cors", b"cors", "custom_server_name", b"custom_server_name", "disable_cache", b"disable_cache", "disable_proxy_force_ranges", b"disable_proxy_force_ranges", "edge_cache_settings", b"edge_cache_settings", "host_options", b"host_options", "ignore_cookie", b"ignore_cookie", "ip_address_acl", b"ip_address_acl", "proxy_cache_methods_set", b"proxy_cache_methods_set", "query_params_options", b"query_params_options", "redirect_options", b"redirect_options", "rewrite", b"rewrite", "secure_key", b"secure_key", "slice", b"slice", "stale", b"stale", "static_headers", b"static_headers", "static_request_headers", b"static_request_headers"]) -> builtins.bool: ...
977-
def ClearField(self, field_name: typing.Literal["allowed_http_methods", b"allowed_http_methods", "browser_cache_settings", b"browser_cache_settings", "cache_http_headers", b"cache_http_headers", "compression_options", b"compression_options", "cors", b"cors", "custom_server_name", b"custom_server_name", "disable_cache", b"disable_cache", "disable_proxy_force_ranges", b"disable_proxy_force_ranges", "edge_cache_settings", b"edge_cache_settings", "host_options", b"host_options", "ignore_cookie", b"ignore_cookie", "ip_address_acl", b"ip_address_acl", "proxy_cache_methods_set", b"proxy_cache_methods_set", "query_params_options", b"query_params_options", "redirect_options", b"redirect_options", "rewrite", b"rewrite", "secure_key", b"secure_key", "slice", b"slice", "stale", b"stale", "static_headers", b"static_headers", "static_request_headers", b"static_request_headers"]) -> None: ...
1010+
def HasField(self, field_name: typing.Literal["allowed_http_methods", b"allowed_http_methods", "browser_cache_settings", b"browser_cache_settings", "cache_http_headers", b"cache_http_headers", "compression_options", b"compression_options", "cors", b"cors", "custom_server_name", b"custom_server_name", "disable_cache", b"disable_cache", "disable_proxy_force_ranges", b"disable_proxy_force_ranges", "edge_cache_settings", b"edge_cache_settings", "follow_redirects", b"follow_redirects", "host_options", b"host_options", "ignore_cookie", b"ignore_cookie", "ip_address_acl", b"ip_address_acl", "proxy_cache_methods_set", b"proxy_cache_methods_set", "query_params_options", b"query_params_options", "redirect_options", b"redirect_options", "rewrite", b"rewrite", "secure_key", b"secure_key", "slice", b"slice", "stale", b"stale", "static_headers", b"static_headers", "static_request_headers", b"static_request_headers"]) -> builtins.bool: ...
1011+
def ClearField(self, field_name: typing.Literal["allowed_http_methods", b"allowed_http_methods", "browser_cache_settings", b"browser_cache_settings", "cache_http_headers", b"cache_http_headers", "compression_options", b"compression_options", "cors", b"cors", "custom_server_name", b"custom_server_name", "disable_cache", b"disable_cache", "disable_proxy_force_ranges", b"disable_proxy_force_ranges", "edge_cache_settings", b"edge_cache_settings", "follow_redirects", b"follow_redirects", "host_options", b"host_options", "ignore_cookie", b"ignore_cookie", "ip_address_acl", b"ip_address_acl", "proxy_cache_methods_set", b"proxy_cache_methods_set", "query_params_options", b"query_params_options", "redirect_options", b"redirect_options", "rewrite", b"rewrite", "secure_key", b"secure_key", "slice", b"slice", "stale", b"stale", "static_headers", b"static_headers", "static_request_headers", b"static_request_headers"]) -> None: ...
9781012

9791013
global___ResourceOptions = ResourceOptions
9801014

yandex/cloud/datatransfer/v1/endpoint/clickhouse_pb2.pyi

Lines changed: 80 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ class OnPremiseClickhouse(google.protobuf.message.Message):
7272
@property
7373
def shards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ClickhouseShard]: ...
7474
@property
75-
def tls_mode(self) -> yandex.cloud.datatransfer.v1.endpoint.common_pb2.TLSMode: ...
75+
def tls_mode(self) -> yandex.cloud.datatransfer.v1.endpoint.common_pb2.TLSMode:
76+
"""TLS settings for server connection. Disabled by default"""
77+
7678
def __init__(
7779
self,
7880
*,
@@ -97,15 +99,23 @@ class ClickhouseConnectionOptions(google.protobuf.message.Message):
9799
PASSWORD_FIELD_NUMBER: builtins.int
98100
DATABASE_FIELD_NUMBER: builtins.int
99101
mdb_cluster_id: builtins.str
102+
"""Identifier of the Managed ClickHouse cluster"""
100103
user: builtins.str
104+
"""User for database access. Required unless connection_manager_connection is used"""
101105
database: builtins.str
102-
"""Database"""
106+
"""Database name"""
103107
@property
104-
def on_premise(self) -> global___OnPremiseClickhouse: ...
108+
def on_premise(self) -> global___OnPremiseClickhouse:
109+
"""Connection settings of the on-premise ClickHouse server"""
110+
105111
@property
106-
def connection_manager_connection(self) -> yandex.cloud.datatransfer.v1.endpoint.common_pb2.ConnectionManagerConnection: ...
112+
def connection_manager_connection(self) -> yandex.cloud.datatransfer.v1.endpoint.common_pb2.ConnectionManagerConnection:
113+
"""Get ClickHouse installation params and credentials from Connection Manager"""
114+
107115
@property
108-
def password(self) -> yandex.cloud.datatransfer.v1.endpoint.common_pb2.Secret: ...
116+
def password(self) -> yandex.cloud.datatransfer.v1.endpoint.common_pb2.Secret:
117+
"""Password for the database access"""
118+
109119
def __init__(
110120
self,
111121
*,
@@ -150,6 +160,7 @@ class ClickhouseSharding(google.protobuf.message.Message):
150160

151161
COLUMN_NAME_FIELD_NUMBER: builtins.int
152162
column_name: builtins.str
163+
"""The name of the column to calculate hash from"""
153164
def __init__(
154165
self,
155166
*,
@@ -168,8 +179,13 @@ class ClickhouseSharding(google.protobuf.message.Message):
168179
COLUMN_VALUE_FIELD_NUMBER: builtins.int
169180
SHARD_NAME_FIELD_NUMBER: builtins.int
170181
shard_name: builtins.str
182+
"""The name of the shard into which all the rows with the specified `column_value`
183+
will be written
184+
"""
171185
@property
172-
def column_value(self) -> yandex.cloud.datatransfer.v1.endpoint.common_pb2.ColumnValue: ...
186+
def column_value(self) -> yandex.cloud.datatransfer.v1.endpoint.common_pb2.ColumnValue:
187+
"""The value of the column. Currently only the string columns are supported"""
188+
173189
def __init__(
174190
self,
175191
*,
@@ -182,8 +198,13 @@ class ClickhouseSharding(google.protobuf.message.Message):
182198
COLUMN_NAME_FIELD_NUMBER: builtins.int
183199
MAPPING_FIELD_NUMBER: builtins.int
184200
column_name: builtins.str
201+
"""The name of the column to inspect when deciding the shard to chose for an
202+
incoming row
203+
"""
185204
@property
186-
def mapping(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ClickhouseSharding.ColumnValueMapping.ValueToShard]: ...
205+
def mapping(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ClickhouseSharding.ColumnValueMapping.ValueToShard]:
206+
"""The mapping of the specified column values to the shard names"""
207+
187208
def __init__(
188209
self,
189210
*,
@@ -197,13 +218,23 @@ class ClickhouseSharding(google.protobuf.message.Message):
197218
TRANSFER_ID_FIELD_NUMBER: builtins.int
198219
ROUND_ROBIN_FIELD_NUMBER: builtins.int
199220
@property
200-
def column_value_hash(self) -> global___ClickhouseSharding.ColumnValueHash: ...
221+
def column_value_hash(self) -> global___ClickhouseSharding.ColumnValueHash:
222+
"""Shard data by the hash value of the specified column"""
223+
201224
@property
202-
def custom_mapping(self) -> global___ClickhouseSharding.ColumnValueMapping: ...
225+
def custom_mapping(self) -> global___ClickhouseSharding.ColumnValueMapping:
226+
"""A custom shard mapping by the value of the specified column"""
227+
203228
@property
204-
def transfer_id(self) -> google.protobuf.empty_pb2.Empty: ...
229+
def transfer_id(self) -> google.protobuf.empty_pb2.Empty:
230+
"""Shard data by ID of the transfer"""
231+
205232
@property
206-
def round_robin(self) -> google.protobuf.empty_pb2.Empty: ...
233+
def round_robin(self) -> google.protobuf.empty_pb2.Empty:
234+
"""Distribute incoming rows between ClickHouse shards in a round-robin manner.
235+
Specify as an empty block to enable
236+
"""
237+
207238
def __init__(
208239
self,
209240
*,
@@ -220,6 +251,8 @@ global___ClickhouseSharding = ClickhouseSharding
220251

221252
@typing.final
222253
class ClickhouseSource(google.protobuf.message.Message):
254+
"""Settings specific to the ClickHouse source endpoint"""
255+
223256
DESCRIPTOR: google.protobuf.descriptor.Descriptor
224257

225258
CONNECTION_FIELD_NUMBER: builtins.int
@@ -229,12 +262,18 @@ class ClickhouseSource(google.protobuf.message.Message):
229262
SECURITY_GROUPS_FIELD_NUMBER: builtins.int
230263
CLICKHOUSE_CLUSTER_NAME_FIELD_NUMBER: builtins.int
231264
subnet_id: builtins.str
265+
"""Identifier of the Yandex Cloud VPC subnetwork to user for accessing the
266+
database.
267+
If omitted, the server has to be accessible via Internet
268+
"""
232269
clickhouse_cluster_name: builtins.str
233270
"""Name of the ClickHouse cluster. For Managed ClickHouse that is name of
234-
ShardGroup.
271+
ShardGroup or managed cluster ID by default
235272
"""
236273
@property
237-
def connection(self) -> global___ClickhouseConnection: ...
274+
def connection(self) -> global___ClickhouseConnection:
275+
"""Connection settings"""
276+
238277
@property
239278
def include_tables(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
240279
"""White list of tables for replication. If none or empty list is presented - will
@@ -248,7 +287,11 @@ class ClickhouseSource(google.protobuf.message.Message):
248287
"""
249288

250289
@property
251-
def security_groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
290+
def security_groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
291+
"""List of security groups that the transfer associated with this endpoint should
292+
use
293+
"""
294+
252295
def __init__(
253296
self,
254297
*,
@@ -266,6 +309,8 @@ global___ClickhouseSource = ClickhouseSource
266309

267310
@typing.final
268311
class ClickhouseTarget(google.protobuf.message.Message):
312+
"""Settings specific to the ClickHouse target endpoint"""
313+
269314
DESCRIPTOR: google.protobuf.descriptor.Descriptor
270315

271316
CONNECTION_FIELD_NUMBER: builtins.int
@@ -277,22 +322,38 @@ class ClickhouseTarget(google.protobuf.message.Message):
277322
CLICKHOUSE_CLUSTER_NAME_FIELD_NUMBER: builtins.int
278323
SECURITY_GROUPS_FIELD_NUMBER: builtins.int
279324
subnet_id: builtins.str
325+
"""Identifier of the Yandex Cloud VPC subnetwork to user for accessing the
326+
database.
327+
If omitted, the server has to be accessible via Internet
328+
"""
280329
cleanup_policy: global___ClickhouseCleanupPolicy.ValueType
330+
"""How to clean collections when activating the transfer. One of
331+
`CLICKHOUSE_CLEANUP_POLICY_DISABLED` or `CLICKHOUSE_CLEANUP_POLICY_DROP`
332+
"""
281333
is_schema_migration_disabled: builtins.bool
334+
"""Whether can change table schema if schema changed on source"""
282335
clickhouse_cluster_name: builtins.str
283336
"""Name of the ClickHouse cluster. For Managed ClickHouse that is name of
284-
ShardGroup.
337+
ShardGroup or managed cluster ID by default.
285338
"""
286339
@property
287-
def connection(self) -> global___ClickhouseConnection: ...
340+
def connection(self) -> global___ClickhouseConnection:
341+
"""Connection settings"""
342+
288343
@property
289344
def alt_names(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.datatransfer.v1.endpoint.common_pb2.AltName]:
290-
"""Alternative table names in target"""
345+
"""Table renaming rules in target"""
291346

292347
@property
293-
def sharding(self) -> global___ClickhouseSharding: ...
348+
def sharding(self) -> global___ClickhouseSharding:
349+
"""Shard selection rules for the data being transferred"""
350+
294351
@property
295-
def security_groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
352+
def security_groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
353+
"""List of security groups that the transfer associated with this endpoint should
354+
use
355+
"""
356+
296357
def __init__(
297358
self,
298359
*,

0 commit comments

Comments
 (0)