taegis-sdk-python 2.0.4__py3-none-any.whl → 2.0.6__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.
- taegis_sdk_python/_version.py +1 -1
- taegis_sdk_python/middlewares/retry/_default.py +3 -3
- taegis_sdk_python/service_core.py +21 -0
- taegis_sdk_python/services/access_points/mutations.py +1 -1
- taegis_sdk_python/services/access_points/queries.py +1 -1
- taegis_sdk_python/services/access_points/subscriptions.py +1 -1
- taegis_sdk_python/services/agent/mutations.py +1 -1
- taegis_sdk_python/services/agent/queries.py +1 -1
- taegis_sdk_python/services/agent/subscriptions.py +1 -1
- taegis_sdk_python/services/alerts/mutations.py +1 -1
- taegis_sdk_python/services/alerts/queries.py +1 -1
- taegis_sdk_python/services/alerts/subscriptions.py +1 -1
- taegis_sdk_python/services/alerts/types.py +36 -21
- taegis_sdk_python/services/alerts_history/mutations.py +1 -1
- taegis_sdk_python/services/alerts_history/queries.py +1 -1
- taegis_sdk_python/services/alerts_history/subscriptions.py +1 -1
- taegis_sdk_python/services/alerts_history/types.py +72 -1
- taegis_sdk_python/services/assets/mutations.py +1 -1
- taegis_sdk_python/services/assets/queries.py +1 -1
- taegis_sdk_python/services/assets/subscriptions.py +1 -1
- taegis_sdk_python/services/assets2/mutations.py +1 -1
- taegis_sdk_python/services/assets2/queries.py +1 -1
- taegis_sdk_python/services/assets2/subscriptions.py +1 -1
- taegis_sdk_python/services/audits/mutations.py +1 -1
- taegis_sdk_python/services/audits/queries.py +1 -1
- taegis_sdk_python/services/audits/subscriptions.py +1 -1
- taegis_sdk_python/services/authz/mutations.py +1 -1
- taegis_sdk_python/services/authz/queries.py +9 -5
- taegis_sdk_python/services/authz/subscriptions.py +1 -1
- taegis_sdk_python/services/byoti/mutations.py +1 -1
- taegis_sdk_python/services/byoti/queries.py +1 -1
- taegis_sdk_python/services/byoti/subscriptions.py +1 -1
- taegis_sdk_python/services/clients/mutations.py +1 -1
- taegis_sdk_python/services/clients/queries.py +1 -1
- taegis_sdk_python/services/clients/subscriptions.py +1 -1
- taegis_sdk_python/services/collector/mutations.py +45 -1
- taegis_sdk_python/services/collector/queries.py +45 -1
- taegis_sdk_python/services/collector/subscriptions.py +1 -1
- taegis_sdk_python/services/collector/types.py +99 -0
- taegis_sdk_python/services/comments/mutations.py +1 -1
- taegis_sdk_python/services/comments/queries.py +1 -1
- taegis_sdk_python/services/comments/subscriptions.py +1 -1
- taegis_sdk_python/services/context_summarizer/mutations.py +1 -1
- taegis_sdk_python/services/context_summarizer/queries.py +1 -1
- taegis_sdk_python/services/context_summarizer/subscriptions.py +1 -1
- taegis_sdk_python/services/contracted_endpoint/mutations.py +1 -1
- taegis_sdk_python/services/contracted_endpoint/queries.py +1 -1
- taegis_sdk_python/services/contracted_endpoint/subscriptions.py +1 -1
- taegis_sdk_python/services/datasources/mutations.py +1 -1
- taegis_sdk_python/services/datasources/queries.py +1 -1
- taegis_sdk_python/services/datasources/subscriptions.py +1 -1
- taegis_sdk_python/services/detector_registry/mutations.py +1 -1
- taegis_sdk_python/services/detector_registry/queries.py +1 -1
- taegis_sdk_python/services/detector_registry/subscriptions.py +1 -1
- taegis_sdk_python/services/endpoint_command_manager/mutations.py +1 -1
- taegis_sdk_python/services/endpoint_command_manager/queries.py +1 -1
- taegis_sdk_python/services/endpoint_command_manager/subscriptions.py +1 -1
- taegis_sdk_python/services/endpoint_management_service/mutations.py +1 -1
- taegis_sdk_python/services/endpoint_management_service/queries.py +1 -1
- taegis_sdk_python/services/endpoint_management_service/subscriptions.py +1 -1
- taegis_sdk_python/services/entity_context/mutations.py +1 -1
- taegis_sdk_python/services/entity_context/queries.py +2 -2
- taegis_sdk_python/services/entity_context/subscriptions.py +1 -1
- taegis_sdk_python/services/entity_context/types.py +74 -19
- taegis_sdk_python/services/escalation_policies/mutations.py +1 -1
- taegis_sdk_python/services/escalation_policies/queries.py +1 -1
- taegis_sdk_python/services/escalation_policies/subscriptions.py +1 -1
- taegis_sdk_python/services/event_search/mutations.py +1 -1
- taegis_sdk_python/services/event_search/queries.py +1 -1
- taegis_sdk_python/services/event_search/subscriptions.py +1 -1
- taegis_sdk_python/services/event_stats/mutations.py +1 -1
- taegis_sdk_python/services/event_stats/queries.py +1 -1
- taegis_sdk_python/services/event_stats/subscriptions.py +1 -1
- taegis_sdk_python/services/events/mutations.py +1 -1
- taegis_sdk_python/services/events/queries.py +1 -1
- taegis_sdk_python/services/events/subscriptions.py +1 -1
- taegis_sdk_python/services/exports/mutations.py +1 -1
- taegis_sdk_python/services/exports/queries.py +1 -1
- taegis_sdk_python/services/exports/subscriptions.py +1 -1
- taegis_sdk_python/services/fast_ioc/mutations.py +1 -1
- taegis_sdk_python/services/fast_ioc/queries.py +1 -1
- taegis_sdk_python/services/fast_ioc/subscriptions.py +1 -1
- taegis_sdk_python/services/file_info/mutations.py +1 -1
- taegis_sdk_python/services/file_info/queries.py +1 -1
- taegis_sdk_python/services/file_info/subscriptions.py +1 -1
- taegis_sdk_python/services/health/mutations.py +1 -1
- taegis_sdk_python/services/health/queries.py +1 -1
- taegis_sdk_python/services/health/subscriptions.py +1 -1
- taegis_sdk_python/services/ingest_stats/mutations.py +1 -1
- taegis_sdk_python/services/ingest_stats/queries.py +1 -1
- taegis_sdk_python/services/ingest_stats/subscriptions.py +1 -1
- taegis_sdk_python/services/investigations/mutations.py +1 -1
- taegis_sdk_python/services/investigations/queries.py +1 -1
- taegis_sdk_python/services/investigations/subscriptions.py +1 -1
- taegis_sdk_python/services/investigations2/mutations.py +1 -1
- taegis_sdk_python/services/investigations2/queries.py +1 -1
- taegis_sdk_python/services/investigations2/subscriptions.py +1 -1
- taegis_sdk_python/services/investigations2/types.py +4 -1
- taegis_sdk_python/services/llm_service/mutations.py +1 -1
- taegis_sdk_python/services/llm_service/queries.py +1 -1
- taegis_sdk_python/services/llm_service/subscriptions.py +1 -1
- taegis_sdk_python/services/mitre_attack_info/mutations.py +1 -1
- taegis_sdk_python/services/mitre_attack_info/queries.py +1 -1
- taegis_sdk_python/services/mitre_attack_info/subscriptions.py +1 -1
- taegis_sdk_python/services/multi_tenant_context/mutations.py +1 -1
- taegis_sdk_python/services/multi_tenant_context/queries.py +1 -1
- taegis_sdk_python/services/multi_tenant_context/subscriptions.py +1 -1
- taegis_sdk_python/services/multi_tenant_ioc/mutations.py +1 -1
- taegis_sdk_python/services/multi_tenant_ioc/queries.py +1 -1
- taegis_sdk_python/services/multi_tenant_ioc/subscriptions.py +1 -1
- taegis_sdk_python/services/notebooks/mutations.py +1 -1
- taegis_sdk_python/services/notebooks/queries.py +1 -1
- taegis_sdk_python/services/notebooks/subscriptions.py +1 -1
- taegis_sdk_python/services/notifications/mutations.py +1 -1
- taegis_sdk_python/services/notifications/queries.py +1 -1
- taegis_sdk_python/services/notifications/subscriptions.py +1 -1
- taegis_sdk_python/services/notifications2/mutations.py +1 -1
- taegis_sdk_python/services/notifications2/queries.py +1 -1
- taegis_sdk_python/services/notifications2/subscriptions.py +1 -1
- taegis_sdk_python/services/preferences/mutations.py +1 -1
- taegis_sdk_python/services/preferences/queries.py +1 -1
- taegis_sdk_python/services/preferences/subscriptions.py +1 -1
- taegis_sdk_python/services/preferences/types.py +3 -0
- taegis_sdk_python/services/process_trees/mutations.py +1 -1
- taegis_sdk_python/services/process_trees/queries.py +1 -1
- taegis_sdk_python/services/process_trees/subscriptions.py +1 -1
- taegis_sdk_python/services/ql_schemas/mutations.py +1 -1
- taegis_sdk_python/services/ql_schemas/queries.py +1 -1
- taegis_sdk_python/services/ql_schemas/subscriptions.py +1 -1
- taegis_sdk_python/services/query_relay/mutations.py +1 -1
- taegis_sdk_python/services/query_relay/queries.py +1 -1
- taegis_sdk_python/services/query_relay/subscriptions.py +1 -1
- taegis_sdk_python/services/results/mutations.py +1 -1
- taegis_sdk_python/services/results/queries.py +1 -1
- taegis_sdk_python/services/results/subscriptions.py +1 -1
- taegis_sdk_python/services/roadrunner/mutations.py +1 -1
- taegis_sdk_python/services/roadrunner/queries.py +1 -1
- taegis_sdk_python/services/roadrunner/subscriptions.py +1 -1
- taegis_sdk_python/services/rules/mutations.py +1 -1
- taegis_sdk_python/services/rules/queries.py +3 -3
- taegis_sdk_python/services/rules/subscriptions.py +1 -1
- taegis_sdk_python/services/rules/types.py +2 -0
- taegis_sdk_python/services/search/mutations.py +25 -1
- taegis_sdk_python/services/search/queries.py +1 -1
- taegis_sdk_python/services/search/subscriptions.py +1 -1
- taegis_sdk_python/services/sharelinks/mutations.py +1 -1
- taegis_sdk_python/services/sharelinks/queries.py +1 -1
- taegis_sdk_python/services/sharelinks/subscriptions.py +1 -1
- taegis_sdk_python/services/subjects/mutations.py +1 -1
- taegis_sdk_python/services/subjects/queries.py +1 -1
- taegis_sdk_python/services/subjects/subscriptions.py +1 -1
- taegis_sdk_python/services/tenant_profiles/mutations.py +1 -1
- taegis_sdk_python/services/tenant_profiles/queries.py +1 -1
- taegis_sdk_python/services/tenant_profiles/subscriptions.py +1 -1
- taegis_sdk_python/services/tenants/mutations.py +1 -1
- taegis_sdk_python/services/tenants/queries.py +1 -1
- taegis_sdk_python/services/tenants/subscriptions.py +1 -1
- taegis_sdk_python/services/tenants4/mutations.py +1 -1
- taegis_sdk_python/services/tenants4/queries.py +1 -1
- taegis_sdk_python/services/tenants4/subscriptions.py +1 -1
- taegis_sdk_python/services/tenants4/types.py +44 -0
- taegis_sdk_python/services/threat/mutations.py +1 -1
- taegis_sdk_python/services/threat/queries.py +1 -1
- taegis_sdk_python/services/threat/subscriptions.py +1 -1
- taegis_sdk_python/services/threat_context/mutations.py +1 -1
- taegis_sdk_python/services/threat_context/queries.py +1 -1
- taegis_sdk_python/services/threat_context/subscriptions.py +1 -1
- taegis_sdk_python/services/threat_publications/mutations.py +1 -1
- taegis_sdk_python/services/threat_publications/queries.py +4 -2
- taegis_sdk_python/services/threat_publications/subscriptions.py +1 -1
- taegis_sdk_python/services/threat_publications/types.py +7 -0
- taegis_sdk_python/services/threat_score/mutations.py +1 -1
- taegis_sdk_python/services/threat_score/queries.py +1 -1
- taegis_sdk_python/services/threat_score/subscriptions.py +1 -1
- taegis_sdk_python/services/trigger_action/mutations.py +1 -1
- taegis_sdk_python/services/trigger_action/queries.py +1 -1
- taegis_sdk_python/services/trigger_action/subscriptions.py +1 -1
- taegis_sdk_python/services/trip/mutations.py +1 -1
- taegis_sdk_python/services/trip/queries.py +1 -1
- taegis_sdk_python/services/trip/subscriptions.py +1 -1
- taegis_sdk_python/services/trip/types.py +1 -0
- taegis_sdk_python/services/users/mutations.py +1 -1
- taegis_sdk_python/services/users/queries.py +1 -1
- taegis_sdk_python/services/users/subscriptions.py +1 -1
- taegis_sdk_python/services/users/types.py +6 -0
- taegis_sdk_python/services/vdr/mutations.py +1 -1
- taegis_sdk_python/services/vdr/queries.py +1 -1
- taegis_sdk_python/services/vdr/subscriptions.py +1 -1
- taegis_sdk_python/services/xdr_central_connector/mutations.py +1 -1
- taegis_sdk_python/services/xdr_central_connector/queries.py +1 -1
- taegis_sdk_python/services/xdr_central_connector/subscriptions.py +1 -1
- taegis_sdk_python/templates/_jinja2.py +10 -4
- {taegis_sdk_python-2.0.4.dist-info → taegis_sdk_python-2.0.6.dist-info}/METADATA +1 -1
- {taegis_sdk_python-2.0.4.dist-info → taegis_sdk_python-2.0.6.dist-info}/RECORD +196 -196
- {taegis_sdk_python-2.0.4.dist-info → taegis_sdk_python-2.0.6.dist-info}/WHEEL +1 -1
- {taegis_sdk_python-2.0.4.dist-info → taegis_sdk_python-2.0.6.dist-info}/licenses/LICENSE +0 -0
taegis_sdk_python/_version.py
CHANGED
|
@@ -11,17 +11,17 @@ from taegis_sdk_python.config import get_config
|
|
|
11
11
|
SECTION = "backoff.retry"
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
def config_max_time() -> Optional[
|
|
14
|
+
def config_max_time() -> Optional[float]:
|
|
15
15
|
"""Provide Max Time elapsed for retry.
|
|
16
16
|
|
|
17
17
|
Returns
|
|
18
18
|
-------
|
|
19
|
-
|
|
19
|
+
Optional[float]
|
|
20
20
|
Seconds.
|
|
21
21
|
"""
|
|
22
22
|
config = get_config()
|
|
23
23
|
|
|
24
|
-
return config.
|
|
24
|
+
return config.getfloat(SECTION, "max_time", fallback=10.0)
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
def config_max_tries() -> Optional[int]:
|
|
@@ -10,6 +10,7 @@ import threading
|
|
|
10
10
|
from datetime import datetime, timedelta, timezone
|
|
11
11
|
from typing import TYPE_CHECKING, Any
|
|
12
12
|
|
|
13
|
+
import backoff
|
|
13
14
|
from gql import Client, GraphQLRequest
|
|
14
15
|
from gql.transport import Transport
|
|
15
16
|
from gql.transport.aiohttp import AIOHTTPTransport
|
|
@@ -19,6 +20,10 @@ from graphql import GraphQLError, GraphQLField, GraphQLSchema
|
|
|
19
20
|
from taegis_sdk_python._consts import DEFAULT_GATEWAY
|
|
20
21
|
from taegis_sdk_python.errors import InvalidGraphQLEndpoint
|
|
21
22
|
from taegis_sdk_python.utils import async_block, prepare_variables, remove_node
|
|
23
|
+
from taegis_sdk_python.middlewares.retry._default import (
|
|
24
|
+
config_max_time,
|
|
25
|
+
config_max_tries,
|
|
26
|
+
)
|
|
22
27
|
|
|
23
28
|
if TYPE_CHECKING: # pragma: no cover
|
|
24
29
|
from taegis_sdk_python.services import GraphQLService
|
|
@@ -476,6 +481,14 @@ class ServiceCore:
|
|
|
476
481
|
|
|
477
482
|
return self.subscribe(query_string, variables)
|
|
478
483
|
|
|
484
|
+
@backoff.on_exception(
|
|
485
|
+
backoff.expo,
|
|
486
|
+
GraphQLError,
|
|
487
|
+
max_time=config_max_time,
|
|
488
|
+
max_tries=config_max_tries,
|
|
489
|
+
giveup=lambda e: isinstance(e.extensions, dict)
|
|
490
|
+
and not e.extensions.get("subcode") in ("EVENTSx1203",),
|
|
491
|
+
)
|
|
479
492
|
@async_block
|
|
480
493
|
async def execute(
|
|
481
494
|
self, query_string: str, variables: dict[str, Any] | None = None
|
|
@@ -520,6 +533,14 @@ class ServiceCore:
|
|
|
520
533
|
|
|
521
534
|
return response
|
|
522
535
|
|
|
536
|
+
@backoff.on_exception(
|
|
537
|
+
backoff.expo,
|
|
538
|
+
GraphQLError,
|
|
539
|
+
max_time=config_max_time,
|
|
540
|
+
max_tries=config_max_tries,
|
|
541
|
+
giveup=lambda e: isinstance(e.extensions, dict)
|
|
542
|
+
and not e.extensions.get("subcode") in ("EVENTSx1203",),
|
|
543
|
+
)
|
|
523
544
|
@async_block
|
|
524
545
|
async def subscribe(
|
|
525
546
|
self, query_string: str, variables: dict[str, Any] | None = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""AccessPoints Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""AccessPoints Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""AccessPoints Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Agent Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Agent Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Agent Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Alerts Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Alerts Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Alerts Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1808,6 +1808,15 @@ class AggregationKeys:
|
|
|
1808
1808
|
value: Optional[str] = field(default=None, metadata=config(field_name="value"))
|
|
1809
1809
|
|
|
1810
1810
|
|
|
1811
|
+
@dataclass_json
|
|
1812
|
+
@dataclass(order=True, eq=True, frozen=True)
|
|
1813
|
+
class AggregationValues:
|
|
1814
|
+
"""AggregationValues."""
|
|
1815
|
+
|
|
1816
|
+
key: Optional[str] = field(default=None, metadata=config(field_name="key"))
|
|
1817
|
+
value: Optional[float] = field(default=None, metadata=config(field_name="value"))
|
|
1818
|
+
|
|
1819
|
+
|
|
1811
1820
|
@dataclass_json
|
|
1812
1821
|
@dataclass(order=True, eq=True, frozen=True)
|
|
1813
1822
|
class AlertsAggregateResponse_AlertsAggregation_Severity:
|
|
@@ -2196,27 +2205,6 @@ class WatchlistMatchesInput:
|
|
|
2196
2205
|
)
|
|
2197
2206
|
|
|
2198
2207
|
|
|
2199
|
-
@dataclass_json
|
|
2200
|
-
@dataclass(order=True, eq=True, frozen=True)
|
|
2201
|
-
class AggregationResponse:
|
|
2202
|
-
"""AggregationResponse."""
|
|
2203
|
-
|
|
2204
|
-
key: Optional[str] = field(
|
|
2205
|
-
default=None,
|
|
2206
|
-
metadata=config(
|
|
2207
|
-
metadata={
|
|
2208
|
-
"deprecated": True,
|
|
2209
|
-
"deprecation_reason": "use keys instead for the broken out name/value pairs",
|
|
2210
|
-
},
|
|
2211
|
-
field_name="key",
|
|
2212
|
-
),
|
|
2213
|
-
)
|
|
2214
|
-
value: Optional[float] = field(default=None, metadata=config(field_name="value"))
|
|
2215
|
-
keys: Optional[list[AggregationKeys]] = field(
|
|
2216
|
-
default=None, metadata=config(field_name="keys")
|
|
2217
|
-
)
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
2208
|
@dataclass_json
|
|
2221
2209
|
@dataclass(order=True, eq=True, frozen=True)
|
|
2222
2210
|
class AlertsAggregateResponse_AlertsAggregation:
|
|
@@ -2633,6 +2621,30 @@ class BruteForceDetailsInput:
|
|
|
2633
2621
|
)
|
|
2634
2622
|
|
|
2635
2623
|
|
|
2624
|
+
@dataclass_json
|
|
2625
|
+
@dataclass(order=True, eq=True, frozen=True)
|
|
2626
|
+
class AggregationResponse:
|
|
2627
|
+
"""AggregationResponse."""
|
|
2628
|
+
|
|
2629
|
+
key: Optional[str] = field(
|
|
2630
|
+
default=None,
|
|
2631
|
+
metadata=config(
|
|
2632
|
+
metadata={
|
|
2633
|
+
"deprecated": True,
|
|
2634
|
+
"deprecation_reason": "use keys instead for the broken out name/value pairs",
|
|
2635
|
+
},
|
|
2636
|
+
field_name="key",
|
|
2637
|
+
),
|
|
2638
|
+
)
|
|
2639
|
+
value: Optional[float] = field(default=None, metadata=config(field_name="value"))
|
|
2640
|
+
values: Optional[list[AggregationValues]] = field(
|
|
2641
|
+
default=None, metadata=config(field_name="values")
|
|
2642
|
+
)
|
|
2643
|
+
keys: Optional[list[AggregationKeys]] = field(
|
|
2644
|
+
default=None, metadata=config(field_name="keys")
|
|
2645
|
+
)
|
|
2646
|
+
|
|
2647
|
+
|
|
2636
2648
|
@dataclass_json
|
|
2637
2649
|
@dataclass(order=True, eq=True, frozen=True)
|
|
2638
2650
|
class InitialAccessVectorInfo:
|
|
@@ -3307,6 +3319,9 @@ class Alert2:
|
|
|
3307
3319
|
sensor_types: Optional[list[str]] = field(
|
|
3308
3320
|
default=None, metadata=config(field_name="sensor_types")
|
|
3309
3321
|
)
|
|
3322
|
+
combined_username: Optional[str] = field(
|
|
3323
|
+
default=None, metadata=config(field_name="combined_username")
|
|
3324
|
+
)
|
|
3310
3325
|
threat_score: Optional[float] = field(
|
|
3311
3326
|
default=None, metadata=config(field_name="threat_score")
|
|
3312
3327
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""AlertsHistory Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""AlertsHistory Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""AlertsHistory Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -742,6 +742,35 @@ class Collection:
|
|
|
742
742
|
id_: Optional[str] = field(default=None, metadata=config(field_name="id"))
|
|
743
743
|
|
|
744
744
|
|
|
745
|
+
@dataclass_json
|
|
746
|
+
@dataclass(order=True, eq=True, frozen=True)
|
|
747
|
+
class EntityApplicationSnapshot:
|
|
748
|
+
"""EntityApplicationSnapshot."""
|
|
749
|
+
|
|
750
|
+
property_type: Optional[str] = field(
|
|
751
|
+
default=None, metadata=config(field_name="property_type")
|
|
752
|
+
)
|
|
753
|
+
app_id: Optional[str] = field(default=None, metadata=config(field_name="app_id"))
|
|
754
|
+
app_name: Optional[str] = field(
|
|
755
|
+
default=None, metadata=config(field_name="app_name")
|
|
756
|
+
)
|
|
757
|
+
app_type: Optional[str] = field(
|
|
758
|
+
default=None, metadata=config(field_name="app_type")
|
|
759
|
+
)
|
|
760
|
+
app_vendor: Optional[str] = field(
|
|
761
|
+
default=None, metadata=config(field_name="app_vendor")
|
|
762
|
+
)
|
|
763
|
+
app_version: Optional[str] = field(
|
|
764
|
+
default=None, metadata=config(field_name="app_version")
|
|
765
|
+
)
|
|
766
|
+
file_path: Optional[str] = field(
|
|
767
|
+
default=None, metadata=config(field_name="file_path")
|
|
768
|
+
)
|
|
769
|
+
full_url: Optional[str] = field(
|
|
770
|
+
default=None, metadata=config(field_name="full_url")
|
|
771
|
+
)
|
|
772
|
+
|
|
773
|
+
|
|
745
774
|
@dataclass_json
|
|
746
775
|
@dataclass(order=True, eq=True, frozen=True)
|
|
747
776
|
class EntityAuthDomainSnapshot:
|
|
@@ -922,6 +951,15 @@ class EntityDomainNameSnapshot:
|
|
|
922
951
|
domain_name: Optional[str] = field(
|
|
923
952
|
default=None, metadata=config(field_name="domain_name")
|
|
924
953
|
)
|
|
954
|
+
threat_intel_hits_csv: Optional[str] = field(
|
|
955
|
+
default=None, metadata=config(field_name="threat_intel_hits_csv")
|
|
956
|
+
)
|
|
957
|
+
threat_intel_score: Optional[float] = field(
|
|
958
|
+
default=None, metadata=config(field_name="threat_intel_score")
|
|
959
|
+
)
|
|
960
|
+
threat_intel_updated_at_usec: Optional[int] = field(
|
|
961
|
+
default=None, metadata=config(field_name="threat_intel_updated_at_usec")
|
|
962
|
+
)
|
|
925
963
|
|
|
926
964
|
|
|
927
965
|
@dataclass_json
|
|
@@ -1035,6 +1073,15 @@ class EntityFileHashSnapshot:
|
|
|
1035
1073
|
hash_value: Optional[str] = field(
|
|
1036
1074
|
default=None, metadata=config(field_name="hash_value")
|
|
1037
1075
|
)
|
|
1076
|
+
threat_intel_hits_csv: Optional[str] = field(
|
|
1077
|
+
default=None, metadata=config(field_name="threat_intel_hits_csv")
|
|
1078
|
+
)
|
|
1079
|
+
threat_intel_score: Optional[float] = field(
|
|
1080
|
+
default=None, metadata=config(field_name="threat_intel_score")
|
|
1081
|
+
)
|
|
1082
|
+
threat_intel_updated_at_usec: Optional[int] = field(
|
|
1083
|
+
default=None, metadata=config(field_name="threat_intel_updated_at_usec")
|
|
1084
|
+
)
|
|
1038
1085
|
|
|
1039
1086
|
|
|
1040
1087
|
@dataclass_json
|
|
@@ -1080,6 +1127,9 @@ class EntityHostSnapshot:
|
|
|
1080
1127
|
sensor_type: Optional[str] = field(
|
|
1081
1128
|
default=None, metadata=config(field_name="sensor_type")
|
|
1082
1129
|
)
|
|
1130
|
+
serial_number: Optional[str] = field(
|
|
1131
|
+
default=None, metadata=config(field_name="serial_number")
|
|
1132
|
+
)
|
|
1083
1133
|
system_type: Optional[str] = field(
|
|
1084
1134
|
default=None, metadata=config(field_name="system_type")
|
|
1085
1135
|
)
|
|
@@ -1140,6 +1190,15 @@ class EntityIpAddressSnapshot:
|
|
|
1140
1190
|
ip_geo_longitude: Optional[float] = field(
|
|
1141
1191
|
default=None, metadata=config(field_name="ip_geo_longitude")
|
|
1142
1192
|
)
|
|
1193
|
+
threat_intel_hits_csv: Optional[str] = field(
|
|
1194
|
+
default=None, metadata=config(field_name="threat_intel_hits_csv")
|
|
1195
|
+
)
|
|
1196
|
+
threat_intel_score: Optional[float] = field(
|
|
1197
|
+
default=None, metadata=config(field_name="threat_intel_score")
|
|
1198
|
+
)
|
|
1199
|
+
threat_intel_updated_at_usec: Optional[int] = field(
|
|
1200
|
+
default=None, metadata=config(field_name="threat_intel_updated_at_usec")
|
|
1201
|
+
)
|
|
1143
1202
|
|
|
1144
1203
|
|
|
1145
1204
|
@dataclass_json
|
|
@@ -1901,6 +1960,7 @@ class AlertSnapshotMetadata:
|
|
|
1901
1960
|
|
|
1902
1961
|
|
|
1903
1962
|
PropertiesSnapshot = Union[
|
|
1963
|
+
EntityApplicationSnapshot,
|
|
1904
1964
|
EntityAuthDomainSnapshot,
|
|
1905
1965
|
EntityCertificateSnapshot,
|
|
1906
1966
|
EntityCloudObjectSnapshot,
|
|
@@ -2163,6 +2223,9 @@ class AlertSnapshot:
|
|
|
2163
2223
|
parent_tenant_id: Optional[str] = field(
|
|
2164
2224
|
default=None, metadata=config(field_name="parent_tenant_id")
|
|
2165
2225
|
)
|
|
2226
|
+
mdr_provider: Optional[str] = field(
|
|
2227
|
+
default=None, metadata=config(field_name="mdr_provider")
|
|
2228
|
+
)
|
|
2166
2229
|
suppressed: Optional[bool] = field(
|
|
2167
2230
|
default=None, metadata=config(field_name="suppressed")
|
|
2168
2231
|
)
|
|
@@ -2179,8 +2242,16 @@ class AlertSnapshot:
|
|
|
2179
2242
|
threat_score_v2: Optional[float] = field(
|
|
2180
2243
|
default=None, metadata=config(field_name="threat_score_v2")
|
|
2181
2244
|
)
|
|
2245
|
+
vids: Optional[list[int]] = field(default=None, metadata=config(field_name="vids"))
|
|
2182
2246
|
observation: Optional[bool] = field(
|
|
2183
|
-
default=None,
|
|
2247
|
+
default=None,
|
|
2248
|
+
metadata=config(
|
|
2249
|
+
metadata={
|
|
2250
|
+
"deprecated": True,
|
|
2251
|
+
"deprecation_reason": "use threat_score_v2 value instead",
|
|
2252
|
+
},
|
|
2253
|
+
field_name="observation",
|
|
2254
|
+
),
|
|
2184
2255
|
)
|
|
2185
2256
|
metadata: Optional[AlertSnapshotMetadata] = field(
|
|
2186
2257
|
default=None, metadata=config(field_name="metadata")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Assets Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Assets Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Assets Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Assets2 Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Assets2 Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Assets2 Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Audits Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Audits Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Audits Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Authz Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Authz Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -64,13 +64,17 @@ class TaegisSDKAuthzQuery:
|
|
|
64
64
|
)
|
|
65
65
|
raise GraphQLNoRowsInResultSetError("for query authzAssignableRoles")
|
|
66
66
|
|
|
67
|
-
def authz_subject_assignable_roles(
|
|
68
|
-
|
|
67
|
+
def authz_subject_assignable_roles(
|
|
68
|
+
self, target_subject_email: Optional[str] = None
|
|
69
|
+
) -> list[AuthzRole]:
|
|
70
|
+
"""Retrieve roles that the requesting subject can assign within the requesting tenant. The optional targetSubjectEmail enables a seeder to re-invite the sole active tenant admin; omitting it retains the existing behavior."""
|
|
69
71
|
endpoint = "authzSubjectAssignableRoles"
|
|
70
72
|
|
|
71
73
|
result = self.service.execute_query(
|
|
72
74
|
endpoint=endpoint,
|
|
73
|
-
variables={
|
|
75
|
+
variables={
|
|
76
|
+
"targetSubjectEmail": prepare_input(target_subject_email),
|
|
77
|
+
},
|
|
74
78
|
output=build_output_string(
|
|
75
79
|
AuthzRole,
|
|
76
80
|
exclude_deprecated_output=self.service.exclude_deprecated_output,
|
|
@@ -350,7 +354,7 @@ class TaegisSDKAuthzQuery:
|
|
|
350
354
|
def authz_can_subject_assign_role(
|
|
351
355
|
self, id_: str, target_subject_id: Optional[str] = None
|
|
352
356
|
) -> AuthzCanSubjectAssignRoleResponse:
|
|
353
|
-
"""Check if the subject can assign the input role."""
|
|
357
|
+
"""Check if the subject can assign the input role. targetSubjectID accepts the target user's subject ID or email address."""
|
|
354
358
|
endpoint = "authzCanSubjectAssignRole"
|
|
355
359
|
|
|
356
360
|
result = self.service.execute_query(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Authz Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Byoti Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Byoti Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Byoti Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Clients Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Clients Query."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Clients Subscription."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Collector Mutation."""
|
|
2
2
|
|
|
3
|
-
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import
|
|
3
|
+
# pylint: disable=no-member, unused-argument, too-many-locals, duplicate-code, wildcard-import, unused-wildcard-import, cyclic-import, too-many-positional-arguments
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
# Autogenerated
|
|
@@ -30,6 +30,50 @@ class TaegisSDKCollectorMutation:
|
|
|
30
30
|
def __init__(self, service: CollectorService):
|
|
31
31
|
self.service = service
|
|
32
32
|
|
|
33
|
+
def enable_cluster_remote_assistance(
|
|
34
|
+
self, input_: EnableClusterRemoteAssistanceInput
|
|
35
|
+
) -> EnableClusterRemoteAssistancePayload:
|
|
36
|
+
"""No developer notes."""
|
|
37
|
+
endpoint = "enableClusterRemoteAssistance"
|
|
38
|
+
|
|
39
|
+
result = self.service.execute_mutation(
|
|
40
|
+
endpoint=endpoint,
|
|
41
|
+
variables={
|
|
42
|
+
"input": prepare_input(input_),
|
|
43
|
+
},
|
|
44
|
+
output=build_output_string(
|
|
45
|
+
EnableClusterRemoteAssistancePayload,
|
|
46
|
+
exclude_deprecated_output=self.service.exclude_deprecated_output,
|
|
47
|
+
),
|
|
48
|
+
)
|
|
49
|
+
if result.get(endpoint) is not None:
|
|
50
|
+
return EnableClusterRemoteAssistancePayload.from_dict(result.get(endpoint))
|
|
51
|
+
raise GraphQLNoRowsInResultSetError(
|
|
52
|
+
"for mutation enableClusterRemoteAssistance"
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
def revoke_cluster_remote_assistance(
|
|
56
|
+
self, input_: RevokeClusterRemoteAssistanceInput
|
|
57
|
+
) -> ClusterRemoteAssistanceGrant:
|
|
58
|
+
"""No developer notes."""
|
|
59
|
+
endpoint = "revokeClusterRemoteAssistance"
|
|
60
|
+
|
|
61
|
+
result = self.service.execute_mutation(
|
|
62
|
+
endpoint=endpoint,
|
|
63
|
+
variables={
|
|
64
|
+
"input": prepare_input(input_),
|
|
65
|
+
},
|
|
66
|
+
output=build_output_string(
|
|
67
|
+
ClusterRemoteAssistanceGrant,
|
|
68
|
+
exclude_deprecated_output=self.service.exclude_deprecated_output,
|
|
69
|
+
),
|
|
70
|
+
)
|
|
71
|
+
if result.get(endpoint) is not None:
|
|
72
|
+
return ClusterRemoteAssistanceGrant.from_dict(result.get(endpoint))
|
|
73
|
+
raise GraphQLNoRowsInResultSetError(
|
|
74
|
+
"for mutation revokeClusterRemoteAssistance"
|
|
75
|
+
)
|
|
76
|
+
|
|
33
77
|
def create_cluster(self, cluster_input: ClusterInput) -> Cluster:
|
|
34
78
|
"""Create a new cluster of a given role."""
|
|
35
79
|
endpoint = "createCluster"
|