xcore-protocol 0.6.0__tar.gz → 0.6.2__tar.gz
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.
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/PKG-INFO +1 -1
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/pyproject.toml +1 -1
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/sentinel.py +7 -1
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/PKG-INFO +1 -1
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/README.md +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_canonical_protocol_fixtures.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_chat_fixtures.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_discord_fixtures.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_envelope_schemas.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_chat_models.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_discord_models.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_maps_models.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_moderation_models.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_sentinel_models.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_telemetry_models.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generator_bootstrap.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_java_python_route_compatibility.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_java_python_serialized_compatibility.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_maps_fixtures.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_moderation_fixtures.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_normalized_route_model.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_telemetry_fixtures.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/__init__.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/__init__.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/chat.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/discord.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/envelopes.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/maps.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/moderation.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/routes.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/shared.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/telemetry.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/models/__init__.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/paths.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/schema_validation.py +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/SOURCES.txt +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/dependency_links.txt +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/requires.txt +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/top_level.txt +0 -0
- {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/setup.cfg +0 -0
|
@@ -219,6 +219,7 @@ class SentinelSubnetRulesCommandV1:
|
|
|
219
219
|
targetServer: str | None = None
|
|
220
220
|
source: str | None = None
|
|
221
221
|
reason: str | None = None
|
|
222
|
+
expiresAt: int | None = None
|
|
222
223
|
|
|
223
224
|
MESSAGE_TYPE: ClassVar[str] = 'sentinel.subnet-rules.command'
|
|
224
225
|
MESSAGE_VERSION: ClassVar[int] = 1
|
|
@@ -237,6 +238,8 @@ class SentinelSubnetRulesCommandV1:
|
|
|
237
238
|
_expect_str(self.source, 'source')
|
|
238
239
|
if self.reason is not None:
|
|
239
240
|
_expect_str(self.reason, 'reason')
|
|
241
|
+
if self.expiresAt is not None:
|
|
242
|
+
_expect_int(self.expiresAt, 'expiresAt')
|
|
240
243
|
|
|
241
244
|
@classmethod
|
|
242
245
|
def from_payload(cls, payload: Mapping[str, Any]) -> "SentinelSubnetRulesCommandV1":
|
|
@@ -244,7 +247,7 @@ class SentinelSubnetRulesCommandV1:
|
|
|
244
247
|
_expect_exact_keys(
|
|
245
248
|
mapping,
|
|
246
249
|
required=frozenset(('messageType', 'messageVersion', 'request', 'idempotency', 'actor', 'operation', 'rules')),
|
|
247
|
-
allowed=frozenset(('messageType', 'messageVersion', 'request', 'idempotency', 'actor', 'operation', 'targetServer', 'rules', 'source', 'reason')),
|
|
250
|
+
allowed=frozenset(('messageType', 'messageVersion', 'request', 'idempotency', 'actor', 'operation', 'targetServer', 'rules', 'source', 'reason', 'expiresAt')),
|
|
248
251
|
model_name="SentinelSubnetRulesCommandV1",
|
|
249
252
|
)
|
|
250
253
|
if mapping['messageType'] != cls.MESSAGE_TYPE:
|
|
@@ -260,6 +263,7 @@ class SentinelSubnetRulesCommandV1:
|
|
|
260
263
|
rules=tuple(_expect_str(item, 'rules[]') for item in _expect_list(mapping['rules'], 'rules')),
|
|
261
264
|
source=(_expect_str(mapping['source'], 'source') if 'source' in mapping else None),
|
|
262
265
|
reason=(_expect_str(mapping['reason'], 'reason') if 'reason' in mapping else None),
|
|
266
|
+
expiresAt=(_expect_int(mapping['expiresAt'], 'expiresAt') if 'expiresAt' in mapping else None),
|
|
263
267
|
)
|
|
264
268
|
|
|
265
269
|
def to_payload(self) -> dict[str, Any]:
|
|
@@ -278,6 +282,8 @@ class SentinelSubnetRulesCommandV1:
|
|
|
278
282
|
payload['source'] = self.source
|
|
279
283
|
if self.reason is not None:
|
|
280
284
|
payload['reason'] = self.reason
|
|
285
|
+
if self.expiresAt is not None:
|
|
286
|
+
payload['expiresAt'] = self.expiresAt
|
|
281
287
|
return payload
|
|
282
288
|
|
|
283
289
|
@dataclass(frozen=True, slots=True)
|
|
File without changes
|
{xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_canonical_protocol_fixtures.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_moderation_models.py
RENAMED
|
File without changes
|
{xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_sentinel_models.py
RENAMED
|
File without changes
|
{xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_telemetry_models.py
RENAMED
|
File without changes
|
|
File without changes
|
{xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_java_python_route_compatibility.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|