graphiant-sdk 25.7.1__py3-none-any.whl → 25.9.1__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.
- graphiant_sdk/__init__.py +3468 -1149
- graphiant_sdk/api/__init__.py +16 -1
- graphiant_sdk/api_client.py +9 -2
- graphiant_sdk/configuration.py +1 -1
- graphiant_sdk/models/__init__.py +1153 -1
- graphiant_sdk/models/v1_auth_mfa_patch_request.py +87 -0
- graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post200_response.py +91 -0
- graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post200_response_bwusage_summary.py +102 -0
- graphiant_sdk/models/v1_edges_hardware_assigned_get200_response_edges_summary_inner_upgrade_summary_last_running_version.py +91 -0
- graphiant_sdk/models/v1_global_site_lists_get200_response.py +97 -0
- graphiant_sdk/models/v1_global_site_lists_get200_response_entries_inner.py +103 -0
- graphiant_sdk/models/v1_global_site_lists_id_get200_response.py +97 -0
- graphiant_sdk/models/v1_global_site_lists_post_request.py +99 -0
- graphiant_sdk/models/v1_global_site_lists_post_request_entries_inner.py +93 -0
- graphiant_sdk/models/v1_global_site_lists_post_request_entries_inner_tag.py +91 -0
- graphiant_sdk/models/v1_groups_id_members_delete_post_request.py +87 -0
- graphiant_sdk/models/v1_onboarding_cloudinit_get200_response.py +95 -0
- graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner.py +105 -0
- graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config.py +103 -0
- graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config_interfaces_inner.py +100 -0
- graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config_interfaces_inner_ipv4.py +91 -0
- graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_token.py +98 -0
- graphiant_sdk/models/v1_software_auto_upgrade_default_get200_response_profile.py +97 -0
- graphiant_sdk/models/v1_software_auto_upgrade_default_get200_response_profile_occurrence.py +93 -0
- graphiant_sdk/models/v2_assistant_conversation_context_history_post_request.py +87 -0
- graphiant_sdk-25.9.1.dist-info/METADATA +373 -0
- {graphiant_sdk-25.7.1.dist-info → graphiant_sdk-25.9.1.dist-info}/RECORD +50 -10
- test/test_v1_auth_mfa_patch_request.py +53 -0
- test/test_v1_bwtracker_region_site_gateway_summary_post200_response.py +61 -0
- test/test_v1_bwtracker_region_site_gateway_summary_post200_response_bwusage_summary.py +60 -0
- test/test_v1_edges_hardware_assigned_get200_response_edges_summary_inner_upgrade_summary_last_running_version.py +53 -0
- test/test_v1_global_site_lists_get200_response.py +63 -0
- test/test_v1_global_site_lists_get200_response_entries_inner.py +59 -0
- test/test_v1_global_site_lists_id_get200_response.py +59 -0
- test/test_v1_global_site_lists_post_request.py +60 -0
- test/test_v1_global_site_lists_post_request_entries_inner.py +55 -0
- test/test_v1_global_site_lists_post_request_entries_inner_tag.py +53 -0
- test/test_v1_groups_id_members_delete_post_request.py +53 -0
- test/test_v1_onboarding_cloudinit_get200_response.py +82 -0
- test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner.py +79 -0
- test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config.py +67 -0
- test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config_interfaces_inner.py +60 -0
- test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config_interfaces_inner_ipv4.py +53 -0
- test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_token.py +57 -0
- test/test_v1_software_auto_upgrade_default_get200_response_profile.py +58 -0
- test/test_v1_software_auto_upgrade_default_get200_response_profile_occurrence.py +54 -0
- test/test_v2_assistant_conversation_context_history_post_request.py +51 -0
- graphiant_sdk-25.7.1.dist-info/METADATA +0 -119
- {graphiant_sdk-25.7.1.dist-info → graphiant_sdk-25.9.1.dist-info}/WHEEL +0 -0
- {graphiant_sdk-25.7.1.dist-info → graphiant_sdk-25.9.1.dist-info}/licenses/LICENSE +0 -0
- {graphiant_sdk-25.7.1.dist-info → graphiant_sdk-25.9.1.dist-info}/top_level.txt +0 -0
graphiant_sdk/api/__init__.py
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
if __import__("typing").TYPE_CHECKING:
|
|
4
|
+
# import apis into api package
|
|
5
|
+
from graphiant_sdk.api.default_api import DefaultApi
|
|
6
|
+
|
|
7
|
+
else:
|
|
8
|
+
from lazy_imports import LazyModule, as_package, load
|
|
9
|
+
|
|
10
|
+
load(
|
|
11
|
+
LazyModule(
|
|
12
|
+
*as_package(__file__),
|
|
13
|
+
"""# import apis into api package
|
|
4
14
|
from graphiant_sdk.api.default_api import DefaultApi
|
|
5
15
|
|
|
16
|
+
""",
|
|
17
|
+
name=__name__,
|
|
18
|
+
doc=__doc__,
|
|
19
|
+
)
|
|
20
|
+
)
|
graphiant_sdk/api_client.py
CHANGED
|
@@ -21,6 +21,7 @@ import mimetypes
|
|
|
21
21
|
import os
|
|
22
22
|
import re
|
|
23
23
|
import tempfile
|
|
24
|
+
import uuid
|
|
24
25
|
|
|
25
26
|
from urllib.parse import quote
|
|
26
27
|
from typing import Tuple, Optional, List, Dict, Union
|
|
@@ -90,7 +91,7 @@ class ApiClient:
|
|
|
90
91
|
self.default_headers[header_name] = header_value
|
|
91
92
|
self.cookie = cookie
|
|
92
93
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/25.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/25.9.1/python'
|
|
94
95
|
self.client_side_validation = configuration.client_side_validation
|
|
95
96
|
|
|
96
97
|
def __enter__(self):
|
|
@@ -356,6 +357,8 @@ class ApiClient:
|
|
|
356
357
|
return obj.get_secret_value()
|
|
357
358
|
elif isinstance(obj, self.PRIMITIVE_TYPES):
|
|
358
359
|
return obj
|
|
360
|
+
elif isinstance(obj, uuid.UUID):
|
|
361
|
+
return str(obj)
|
|
359
362
|
elif isinstance(obj, list):
|
|
360
363
|
return [
|
|
361
364
|
self.sanitize_for_serialization(sub_obj) for sub_obj in obj
|
|
@@ -382,6 +385,10 @@ class ApiClient:
|
|
|
382
385
|
else:
|
|
383
386
|
obj_dict = obj.__dict__
|
|
384
387
|
|
|
388
|
+
if isinstance(obj_dict, list):
|
|
389
|
+
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
|
|
390
|
+
return self.sanitize_for_serialization(obj_dict)
|
|
391
|
+
|
|
385
392
|
return {
|
|
386
393
|
key: self.sanitize_for_serialization(val)
|
|
387
394
|
for key, val in obj_dict.items()
|
|
@@ -404,7 +411,7 @@ class ApiClient:
|
|
|
404
411
|
data = json.loads(response_text)
|
|
405
412
|
except ValueError:
|
|
406
413
|
data = response_text
|
|
407
|
-
elif re.match(r'^application/(json|[\w
|
|
414
|
+
elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
|
|
408
415
|
if response_text == "":
|
|
409
416
|
data = ""
|
|
410
417
|
else:
|
graphiant_sdk/configuration.py
CHANGED
|
@@ -531,7 +531,7 @@ conf = graphiant_sdk.Configuration(
|
|
|
531
531
|
"OS: {env}\n"\
|
|
532
532
|
"Python Version: {pyversion}\n"\
|
|
533
533
|
"Version of the API: 1.0.0\n"\
|
|
534
|
-
"SDK Package Version: 25.
|
|
534
|
+
"SDK Package Version: 25.9.1".\
|
|
535
535
|
format(env=sys.platform, pyversion=sys.version)
|
|
536
536
|
|
|
537
537
|
def get_host_settings(self) -> List[HostSetting]:
|