graphiant-sdk 25.7.1__py3-none-any.whl → 25.8.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.
Files changed (67) hide show
  1. graphiant_sdk/__init__.py +21 -6
  2. graphiant_sdk/api/default_api.py +15423 -9804
  3. graphiant_sdk/api_client.py +1 -1
  4. graphiant_sdk/configuration.py +1 -1
  5. graphiant_sdk/models/__init__.py +20 -5
  6. graphiant_sdk/models/v1_auth_mfa_patch_request.py +87 -0
  7. graphiant_sdk/models/v1_backbone_health_device_device_id_post200_response.py +3 -3
  8. graphiant_sdk/models/v1_bwtracker_enterprise_details_post200_response_bwusage_details.py +11 -2
  9. graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post200_response.py +91 -0
  10. graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post200_response_bwusage_summary.py +102 -0
  11. graphiant_sdk/models/v1_devices_device_id_config_put_request_edge_interfaces_value_interface.py +6 -2
  12. graphiant_sdk/models/v1_devices_running_version_post200_response_versions_inner.py +3 -3
  13. graphiant_sdk/models/v1_devices_upgrade_schedule_put_request.py +14 -4
  14. graphiant_sdk/models/v1_edges_hardware_assigned_get200_response_edges_summary_inner_upgrade_summary.py +17 -5
  15. graphiant_sdk/models/v1_edges_hardware_assigned_get200_response_edges_summary_inner_upgrade_summary_last_running_version.py +91 -0
  16. graphiant_sdk/models/v1_edges_hardware_assigned_get200_response_edges_summary_inner_upgrade_summary_schedule.py +3 -3
  17. graphiant_sdk/models/v1_global_site_lists_get200_response.py +97 -0
  18. graphiant_sdk/models/v1_global_site_lists_get200_response_entries_inner.py +103 -0
  19. graphiant_sdk/models/v1_global_site_lists_id_get200_response.py +97 -0
  20. graphiant_sdk/models/v1_global_site_lists_id_sites_get200_response_entries_inner.py +3 -3
  21. graphiant_sdk/models/v1_global_site_lists_post_request.py +99 -0
  22. graphiant_sdk/models/v1_global_site_lists_post_request_entries_inner.py +93 -0
  23. graphiant_sdk/models/v1_global_site_lists_post_request_entries_inner_tag.py +91 -0
  24. graphiant_sdk/models/v1_groups_id_members_delete_post_request.py +87 -0
  25. graphiant_sdk/models/v1_groups_id_members_get200_response_users_inner.py +7 -1
  26. graphiant_sdk/models/v1_groups_id_members_post_request.py +5 -3
  27. graphiant_sdk/models/v1_onboarding_cloudinit_get200_response.py +95 -0
  28. graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner.py +105 -0
  29. graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config.py +103 -0
  30. graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config_interfaces_inner.py +100 -0
  31. graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config_interfaces_inner_ipv4.py +91 -0
  32. graphiant_sdk/models/v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_token.py +98 -0
  33. graphiant_sdk/models/v1_software_auto_upgrade_default_get200_response.py +7 -7
  34. graphiant_sdk/models/v1_software_auto_upgrade_default_get200_response_profile.py +97 -0
  35. graphiant_sdk/models/v1_software_auto_upgrade_default_get200_response_profile_occurrence.py +93 -0
  36. graphiant_sdk/models/v1_software_releases_summary_get200_response_summaries_inner.py +6 -1
  37. graphiant_sdk/models/v1_troubleshooting_device_device_id_post200_response.py +3 -3
  38. graphiant_sdk/models/v2_assistant_add_to_conversation_post200_response.py +4 -2
  39. graphiant_sdk/models/v2_assistant_conversation_context_history_post_request.py +87 -0
  40. graphiant_sdk/models/v2_assistant_get_conversations_post200_response.py +5 -3
  41. graphiant_sdk/models/v2_assistant_get_conversations_post200_response_conversation_list_inner.py +5 -3
  42. graphiant_sdk-25.8.1.dist-info/METADATA +384 -0
  43. {graphiant_sdk-25.7.1.dist-info → graphiant_sdk-25.8.1.dist-info}/RECORD +66 -26
  44. test/test_v1_auth_mfa_patch_request.py +53 -0
  45. test/test_v1_bwtracker_region_site_gateway_summary_post200_response.py +61 -0
  46. test/test_v1_bwtracker_region_site_gateway_summary_post200_response_bwusage_summary.py +60 -0
  47. test/test_v1_edges_hardware_assigned_get200_response_edges_summary_inner_upgrade_summary_last_running_version.py +53 -0
  48. test/test_v1_global_site_lists_get200_response.py +63 -0
  49. test/test_v1_global_site_lists_get200_response_entries_inner.py +59 -0
  50. test/test_v1_global_site_lists_id_get200_response.py +59 -0
  51. test/test_v1_global_site_lists_post_request.py +60 -0
  52. test/test_v1_global_site_lists_post_request_entries_inner.py +55 -0
  53. test/test_v1_global_site_lists_post_request_entries_inner_tag.py +53 -0
  54. test/test_v1_groups_id_members_delete_post_request.py +53 -0
  55. test/test_v1_onboarding_cloudinit_get200_response.py +82 -0
  56. test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner.py +79 -0
  57. test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config.py +67 -0
  58. test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config_interfaces_inner.py +60 -0
  59. test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_cloudinit_config_interfaces_inner_ipv4.py +53 -0
  60. test/test_v1_onboarding_cloudinit_get200_response_cloudinit_tokens_inner_token.py +57 -0
  61. test/test_v1_software_auto_upgrade_default_get200_response_profile.py +58 -0
  62. test/test_v1_software_auto_upgrade_default_get200_response_profile_occurrence.py +54 -0
  63. test/test_v2_assistant_conversation_context_history_post_request.py +51 -0
  64. graphiant_sdk-25.7.1.dist-info/METADATA +0 -119
  65. {graphiant_sdk-25.7.1.dist-info → graphiant_sdk-25.8.1.dist-info}/WHEEL +0 -0
  66. {graphiant_sdk-25.7.1.dist-info → graphiant_sdk-25.8.1.dist-info}/licenses/LICENSE +0 -0
  67. {graphiant_sdk-25.7.1.dist-info → graphiant_sdk-25.8.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,91 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Graphiant APIs
5
+
6
+ Graphiant API documentation.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class V1OnboardingCloudinitGet200ResponseCloudinitTokensInnerCloudinitConfigInterfacesInnerIpv4(BaseModel):
26
+ """
27
+ V1OnboardingCloudinitGet200ResponseCloudinitTokensInnerCloudinitConfigInterfacesInnerIpv4
28
+ """ # noqa: E501
29
+ gateway_addr: Optional[StrictStr] = Field(default=None, alias="gatewayAddr")
30
+ ip_addr: Optional[StrictStr] = Field(default=None, alias="ipAddr")
31
+ type: Optional[StrictStr] = None
32
+ __properties: ClassVar[List[str]] = ["gatewayAddr", "ipAddr", "type"]
33
+
34
+ model_config = ConfigDict(
35
+ populate_by_name=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of V1OnboardingCloudinitGet200ResponseCloudinitTokensInnerCloudinitConfigInterfacesInnerIpv4 from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ """
65
+ excluded_fields: Set[str] = set([
66
+ ])
67
+
68
+ _dict = self.model_dump(
69
+ by_alias=True,
70
+ exclude=excluded_fields,
71
+ exclude_none=True,
72
+ )
73
+ return _dict
74
+
75
+ @classmethod
76
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
+ """Create an instance of V1OnboardingCloudinitGet200ResponseCloudinitTokensInnerCloudinitConfigInterfacesInnerIpv4 from a dict"""
78
+ if obj is None:
79
+ return None
80
+
81
+ if not isinstance(obj, dict):
82
+ return cls.model_validate(obj)
83
+
84
+ _obj = cls.model_validate({
85
+ "gatewayAddr": obj.get("gatewayAddr"),
86
+ "ipAddr": obj.get("ipAddr"),
87
+ "type": obj.get("type")
88
+ })
89
+ return _obj
90
+
91
+
@@ -0,0 +1,98 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Graphiant APIs
5
+
6
+ Graphiant API documentation.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_alarm_history_get200_response_history_inner_time import V1AlarmHistoryGet200ResponseHistoryInnerTime
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1OnboardingCloudinitGet200ResponseCloudinitTokensInnerToken(BaseModel):
27
+ """
28
+ V1OnboardingCloudinitGet200ResponseCloudinitTokensInnerToken
29
+ """ # noqa: E501
30
+ created_by_ts: Optional[V1AlarmHistoryGet200ResponseHistoryInnerTime] = Field(default=None, alias="createdByTs")
31
+ expiry_by_ts: Optional[V1AlarmHistoryGet200ResponseHistoryInnerTime] = Field(default=None, alias="expiryByTs")
32
+ token: Optional[StrictStr] = None
33
+ __properties: ClassVar[List[str]] = ["createdByTs", "expiryByTs", "token"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of V1OnboardingCloudinitGet200ResponseCloudinitTokensInnerToken from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ # override the default output from pydantic by calling `to_dict()` of created_by_ts
75
+ if self.created_by_ts:
76
+ _dict['createdByTs'] = self.created_by_ts.to_dict()
77
+ # override the default output from pydantic by calling `to_dict()` of expiry_by_ts
78
+ if self.expiry_by_ts:
79
+ _dict['expiryByTs'] = self.expiry_by_ts.to_dict()
80
+ return _dict
81
+
82
+ @classmethod
83
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
+ """Create an instance of V1OnboardingCloudinitGet200ResponseCloudinitTokensInnerToken from a dict"""
85
+ if obj is None:
86
+ return None
87
+
88
+ if not isinstance(obj, dict):
89
+ return cls.model_validate(obj)
90
+
91
+ _obj = cls.model_validate({
92
+ "createdByTs": V1AlarmHistoryGet200ResponseHistoryInnerTime.from_dict(obj["createdByTs"]) if obj.get("createdByTs") is not None else None,
93
+ "expiryByTs": V1AlarmHistoryGet200ResponseHistoryInnerTime.from_dict(obj["expiryByTs"]) if obj.get("expiryByTs") is not None else None,
94
+ "token": obj.get("token")
95
+ })
96
+ return _obj
97
+
98
+
@@ -19,7 +19,7 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from graphiant_sdk.models.v1_software_auto_upgrade_default_get200_response_details import V1SoftwareAutoUpgradeDefaultGet200ResponseDetails
22
+ from graphiant_sdk.models.v1_software_auto_upgrade_default_get200_response_profile import V1SoftwareAutoUpgradeDefaultGet200ResponseProfile
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
@@ -27,9 +27,9 @@ class V1SoftwareAutoUpgradeDefaultGet200Response(BaseModel):
27
27
  """
28
28
  V1SoftwareAutoUpgradeDefaultGet200Response
29
29
  """ # noqa: E501
30
- details: Optional[V1SoftwareAutoUpgradeDefaultGet200ResponseDetails] = None
30
+ profile: Optional[V1SoftwareAutoUpgradeDefaultGet200ResponseProfile] = None
31
31
  release: Optional[StrictStr] = None
32
- __properties: ClassVar[List[str]] = ["details", "release"]
32
+ __properties: ClassVar[List[str]] = ["profile", "release"]
33
33
 
34
34
  model_config = ConfigDict(
35
35
  populate_by_name=True,
@@ -70,9 +70,9 @@ class V1SoftwareAutoUpgradeDefaultGet200Response(BaseModel):
70
70
  exclude=excluded_fields,
71
71
  exclude_none=True,
72
72
  )
73
- # override the default output from pydantic by calling `to_dict()` of details
74
- if self.details:
75
- _dict['details'] = self.details.to_dict()
73
+ # override the default output from pydantic by calling `to_dict()` of profile
74
+ if self.profile:
75
+ _dict['profile'] = self.profile.to_dict()
76
76
  return _dict
77
77
 
78
78
  @classmethod
@@ -85,7 +85,7 @@ class V1SoftwareAutoUpgradeDefaultGet200Response(BaseModel):
85
85
  return cls.model_validate(obj)
86
86
 
87
87
  _obj = cls.model_validate({
88
- "details": V1SoftwareAutoUpgradeDefaultGet200ResponseDetails.from_dict(obj["details"]) if obj.get("details") is not None else None,
88
+ "profile": V1SoftwareAutoUpgradeDefaultGet200ResponseProfile.from_dict(obj["profile"]) if obj.get("profile") is not None else None,
89
89
  "release": obj.get("release")
90
90
  })
91
91
  return _obj
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Graphiant APIs
5
+
6
+ Graphiant API documentation.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_software_auto_upgrade_default_get200_response_profile_occurrence import V1SoftwareAutoUpgradeDefaultGet200ResponseProfileOccurrence
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1SoftwareAutoUpgradeDefaultGet200ResponseProfile(BaseModel):
27
+ """
28
+ V1SoftwareAutoUpgradeDefaultGet200ResponseProfile
29
+ """ # noqa: E501
30
+ action: Optional[StrictStr] = None
31
+ name: Optional[StrictStr] = None
32
+ occurrence: Optional[V1SoftwareAutoUpgradeDefaultGet200ResponseProfileOccurrence] = None
33
+ release: Optional[StrictStr] = None
34
+ __properties: ClassVar[List[str]] = ["action", "name", "occurrence", "release"]
35
+
36
+ model_config = ConfigDict(
37
+ populate_by_name=True,
38
+ validate_assignment=True,
39
+ protected_namespaces=(),
40
+ )
41
+
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.model_dump(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
+ return json.dumps(self.to_dict())
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Optional[Self]:
54
+ """Create an instance of V1SoftwareAutoUpgradeDefaultGet200ResponseProfile from a JSON string"""
55
+ return cls.from_dict(json.loads(json_str))
56
+
57
+ def to_dict(self) -> Dict[str, Any]:
58
+ """Return the dictionary representation of the model using alias.
59
+
60
+ This has the following differences from calling pydantic's
61
+ `self.model_dump(by_alias=True)`:
62
+
63
+ * `None` is only added to the output dict for nullable fields that
64
+ were set at model initialization. Other fields with value `None`
65
+ are ignored.
66
+ """
67
+ excluded_fields: Set[str] = set([
68
+ ])
69
+
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude=excluded_fields,
73
+ exclude_none=True,
74
+ )
75
+ # override the default output from pydantic by calling `to_dict()` of occurrence
76
+ if self.occurrence:
77
+ _dict['occurrence'] = self.occurrence.to_dict()
78
+ return _dict
79
+
80
+ @classmethod
81
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
82
+ """Create an instance of V1SoftwareAutoUpgradeDefaultGet200ResponseProfile from a dict"""
83
+ if obj is None:
84
+ return None
85
+
86
+ if not isinstance(obj, dict):
87
+ return cls.model_validate(obj)
88
+
89
+ _obj = cls.model_validate({
90
+ "action": obj.get("action"),
91
+ "name": obj.get("name"),
92
+ "occurrence": V1SoftwareAutoUpgradeDefaultGet200ResponseProfileOccurrence.from_dict(obj["occurrence"]) if obj.get("occurrence") is not None else None,
93
+ "release": obj.get("release")
94
+ })
95
+ return _obj
96
+
97
+
@@ -0,0 +1,93 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Graphiant APIs
5
+
6
+ Graphiant API documentation.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class V1SoftwareAutoUpgradeDefaultGet200ResponseProfileOccurrence(BaseModel):
26
+ """
27
+ V1SoftwareAutoUpgradeDefaultGet200ResponseProfileOccurrence
28
+ """ # noqa: E501
29
+ day_of_week: Optional[StrictStr] = Field(default=None, alias="dayOfWeek")
30
+ hour: Optional[StrictInt] = None
31
+ minute: Optional[StrictInt] = None
32
+ occurrence_in_month: Optional[StrictInt] = Field(default=None, alias="occurrenceInMonth")
33
+ __properties: ClassVar[List[str]] = ["dayOfWeek", "hour", "minute", "occurrenceInMonth"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of V1SoftwareAutoUpgradeDefaultGet200ResponseProfileOccurrence from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of V1SoftwareAutoUpgradeDefaultGet200ResponseProfileOccurrence from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "dayOfWeek": obj.get("dayOfWeek"),
87
+ "hour": obj.get("hour"),
88
+ "minute": obj.get("minute"),
89
+ "occurrenceInMonth": obj.get("occurrenceInMonth")
90
+ })
91
+ return _obj
92
+
93
+
@@ -28,11 +28,12 @@ class V1SoftwareReleasesSummaryGet200ResponseSummariesInner(BaseModel):
28
28
  """
29
29
  V1SoftwareReleasesSummaryGet200ResponseSummariesInner
30
30
  """ # noqa: E501
31
+ eos_ts: Optional[V1AlarmHistoryGet200ResponseHistoryInnerTime] = Field(default=None, alias="eosTs")
31
32
  key: Optional[V1SoftwareReleasesSummaryGet200ResponseSummariesInnerKey] = None
32
33
  name: Optional[StrictStr] = None
33
34
  release: Optional[StrictStr] = None
34
35
  release_ts: Optional[V1AlarmHistoryGet200ResponseHistoryInnerTime] = Field(default=None, alias="releaseTs")
35
- __properties: ClassVar[List[str]] = ["key", "name", "release", "releaseTs"]
36
+ __properties: ClassVar[List[str]] = ["eosTs", "key", "name", "release", "releaseTs"]
36
37
 
37
38
  model_config = ConfigDict(
38
39
  populate_by_name=True,
@@ -73,6 +74,9 @@ class V1SoftwareReleasesSummaryGet200ResponseSummariesInner(BaseModel):
73
74
  exclude=excluded_fields,
74
75
  exclude_none=True,
75
76
  )
77
+ # override the default output from pydantic by calling `to_dict()` of eos_ts
78
+ if self.eos_ts:
79
+ _dict['eosTs'] = self.eos_ts.to_dict()
76
80
  # override the default output from pydantic by calling `to_dict()` of key
77
81
  if self.key:
78
82
  _dict['key'] = self.key.to_dict()
@@ -91,6 +95,7 @@ class V1SoftwareReleasesSummaryGet200ResponseSummariesInner(BaseModel):
91
95
  return cls.model_validate(obj)
92
96
 
93
97
  _obj = cls.model_validate({
98
+ "eosTs": V1AlarmHistoryGet200ResponseHistoryInnerTime.from_dict(obj["eosTs"]) if obj.get("eosTs") is not None else None,
94
99
  "key": V1SoftwareReleasesSummaryGet200ResponseSummariesInnerKey.from_dict(obj["key"]) if obj.get("key") is not None else None,
95
100
  "name": obj.get("name"),
96
101
  "release": obj.get("release"),
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from graphiant_sdk.models.v1_alarm_history_get200_response_history_inner_time import V1AlarmHistoryGet200ResponseHistoryInnerTime
23
23
  from graphiant_sdk.models.v1_backbone_health_device_device_id_post200_response_data_plane import V1BackboneHealthDeviceDeviceIdPost200ResponseDataPlane
24
24
  from graphiant_sdk.models.v1_backbone_health_device_device_id_post200_response_issues_inner import V1BackboneHealthDeviceDeviceIdPost200ResponseIssuesInner
25
- from graphiant_sdk.models.v1_edges_hardware_assigned_get200_response_edges_summary_inner_upgrade_summary_running_version import V1EdgesHardwareAssignedGet200ResponseEdgesSummaryInnerUpgradeSummaryRunningVersion
25
+ from graphiant_sdk.models.v1_edges_hardware_assigned_get200_response_edges_summary_inner_upgrade_summary_last_running_version import V1EdgesHardwareAssignedGet200ResponseEdgesSummaryInnerUpgradeSummaryLastRunningVersion
26
26
  from graphiant_sdk.models.v1_troubleshooting_device_device_id_post200_response_control_plane import V1TroubleshootingDeviceDeviceIdPost200ResponseControlPlane
27
27
  from graphiant_sdk.models.v1_troubleshooting_device_device_id_post200_response_system_plane import V1TroubleshootingDeviceDeviceIdPost200ResponseSystemPlane
28
28
  from typing import Optional, Set
@@ -40,7 +40,7 @@ class V1TroubleshootingDeviceDeviceIdPost200Response(BaseModel):
40
40
  lifecycle_status: Optional[StrictStr] = Field(default=None, alias="lifecycleStatus")
41
41
  status: Optional[StrictStr] = None
42
42
  sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion")
43
- sw_version_v2: Optional[V1EdgesHardwareAssignedGet200ResponseEdgesSummaryInnerUpgradeSummaryRunningVersion] = Field(default=None, alias="swVersionV2")
43
+ sw_version_v2: Optional[V1EdgesHardwareAssignedGet200ResponseEdgesSummaryInnerUpgradeSummaryLastRunningVersion] = Field(default=None, alias="swVersionV2")
44
44
  system_plane: Optional[V1TroubleshootingDeviceDeviceIdPost200ResponseSystemPlane] = Field(default=None, alias="systemPlane")
45
45
  up_since_ts: Optional[V1AlarmHistoryGet200ResponseHistoryInnerTime] = Field(default=None, alias="upSinceTs")
46
46
  __properties: ClassVar[List[str]] = ["MaintenanceMode", "colrActive", "controlPlane", "dataPlane", "issues", "lifecycleStatus", "status", "swVersion", "swVersionV2", "systemPlane", "upSinceTs"]
@@ -126,7 +126,7 @@ class V1TroubleshootingDeviceDeviceIdPost200Response(BaseModel):
126
126
  "lifecycleStatus": obj.get("lifecycleStatus"),
127
127
  "status": obj.get("status"),
128
128
  "swVersion": obj.get("swVersion"),
129
- "swVersionV2": V1EdgesHardwareAssignedGet200ResponseEdgesSummaryInnerUpgradeSummaryRunningVersion.from_dict(obj["swVersionV2"]) if obj.get("swVersionV2") is not None else None,
129
+ "swVersionV2": V1EdgesHardwareAssignedGet200ResponseEdgesSummaryInnerUpgradeSummaryLastRunningVersion.from_dict(obj["swVersionV2"]) if obj.get("swVersionV2") is not None else None,
130
130
  "systemPlane": V1TroubleshootingDeviceDeviceIdPost200ResponseSystemPlane.from_dict(obj["systemPlane"]) if obj.get("systemPlane") is not None else None,
131
131
  "upSinceTs": V1AlarmHistoryGet200ResponseHistoryInnerTime.from_dict(obj["upSinceTs"]) if obj.get("upSinceTs") is not None else None
132
132
  })
@@ -36,7 +36,8 @@ class V2AssistantAddToConversationPost200Response(BaseModel):
36
36
  response_text: Optional[StrictStr] = Field(default=None, alias="responseText")
37
37
  response_timestamp: Optional[StrictInt] = Field(default=None, alias="responseTimestamp")
38
38
  response_type: Optional[StrictStr] = Field(default=None, alias="responseType")
39
- __properties: ClassVar[List[str]] = ["conversationId", "dataframeDictionary", "originalQuestion", "responseId", "responseLanguage", "responseText", "responseTimestamp", "responseType"]
39
+ visualization_summary: Optional[StrictStr] = Field(default=None, alias="visualizationSummary")
40
+ __properties: ClassVar[List[str]] = ["conversationId", "dataframeDictionary", "originalQuestion", "responseId", "responseLanguage", "responseText", "responseTimestamp", "responseType", "visualizationSummary"]
40
41
 
41
42
  model_config = ConfigDict(
42
43
  populate_by_name=True,
@@ -106,7 +107,8 @@ class V2AssistantAddToConversationPost200Response(BaseModel):
106
107
  "responseLanguage": obj.get("responseLanguage"),
107
108
  "responseText": obj.get("responseText"),
108
109
  "responseTimestamp": obj.get("responseTimestamp"),
109
- "responseType": obj.get("responseType")
110
+ "responseType": obj.get("responseType"),
111
+ "visualizationSummary": obj.get("visualizationSummary")
110
112
  })
111
113
  return _obj
112
114
 
@@ -0,0 +1,87 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Graphiant APIs
5
+
6
+ Graphiant API documentation.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class V2AssistantConversationContextHistoryPostRequest(BaseModel):
26
+ """
27
+ V2AssistantConversationContextHistoryPostRequest
28
+ """ # noqa: E501
29
+ enable: Optional[StrictBool] = None
30
+ __properties: ClassVar[List[str]] = ["enable"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of V2AssistantConversationContextHistoryPostRequest from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([
64
+ ])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of V2AssistantConversationContextHistoryPostRequest from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({
83
+ "enable": obj.get("enable")
84
+ })
85
+ return _obj
86
+
87
+
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, Field
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from graphiant_sdk.models.v2_assistant_get_conversations_post200_response_conversation_list_inner import V2AssistantGetConversationsPost200ResponseConversationListInner
23
23
  from typing import Optional, Set
@@ -28,7 +28,8 @@ class V2AssistantGetConversationsPost200Response(BaseModel):
28
28
  V2AssistantGetConversationsPost200Response
29
29
  """ # noqa: E501
30
30
  conversation_list: Optional[List[V2AssistantGetConversationsPost200ResponseConversationListInner]] = Field(default=None, alias="conversationList")
31
- __properties: ClassVar[List[str]] = ["conversationList"]
31
+ enable_context_history: Optional[StrictBool] = Field(default=None, alias="enableContextHistory")
32
+ __properties: ClassVar[List[str]] = ["conversationList", "enableContextHistory"]
32
33
 
33
34
  model_config = ConfigDict(
34
35
  populate_by_name=True,
@@ -88,7 +89,8 @@ class V2AssistantGetConversationsPost200Response(BaseModel):
88
89
  return cls.model_validate(obj)
89
90
 
90
91
  _obj = cls.model_validate({
91
- "conversationList": [V2AssistantGetConversationsPost200ResponseConversationListInner.from_dict(_item) for _item in obj["conversationList"]] if obj.get("conversationList") is not None else None
92
+ "conversationList": [V2AssistantGetConversationsPost200ResponseConversationListInner.from_dict(_item) for _item in obj["conversationList"]] if obj.get("conversationList") is not None else None,
93
+ "enableContextHistory": obj.get("enableContextHistory")
92
94
  })
93
95
  return _obj
94
96
 
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
@@ -29,7 +29,8 @@ class V2AssistantGetConversationsPost200ResponseConversationListInner(BaseModel)
29
29
  conversation_header: Optional[StrictStr] = Field(default=None, alias="conversationHeader")
30
30
  conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId")
31
31
  conversation_recent_timestamp: Optional[StrictInt] = Field(default=None, alias="conversationRecentTimestamp")
32
- __properties: ClassVar[List[str]] = ["conversationHeader", "conversationId", "conversationRecentTimestamp"]
32
+ enable_context_history: Optional[StrictBool] = Field(default=None, alias="enableContextHistory")
33
+ __properties: ClassVar[List[str]] = ["conversationHeader", "conversationId", "conversationRecentTimestamp", "enableContextHistory"]
33
34
 
34
35
  model_config = ConfigDict(
35
36
  populate_by_name=True,
@@ -84,7 +85,8 @@ class V2AssistantGetConversationsPost200ResponseConversationListInner(BaseModel)
84
85
  _obj = cls.model_validate({
85
86
  "conversationHeader": obj.get("conversationHeader"),
86
87
  "conversationId": obj.get("conversationId"),
87
- "conversationRecentTimestamp": obj.get("conversationRecentTimestamp")
88
+ "conversationRecentTimestamp": obj.get("conversationRecentTimestamp"),
89
+ "enableContextHistory": obj.get("enableContextHistory")
88
90
  })
89
91
  return _obj
90
92