|
21 | 21 | SSHKey,
|
22 | 22 | User,
|
23 | 23 | EncodedJWT,
|
| 24 | + GetUserConnectionsResponseConnectionConnectedOrganization, |
| 25 | + GetUserConnectionsResponseConnectionConnectedUser, |
| 26 | + GetUserConnectionsResponseConnection, |
| 27 | + GetUserConnectionsResponse, |
24 | 28 | ListAPIKeysResponse,
|
25 | 29 | ListApplicationsResponse,
|
26 | 30 | GracePeriod,
|
|
35 | 39 | Rule,
|
36 | 40 | ListRulesResponse,
|
37 | 41 | ListSSHKeysResponse,
|
38 |
| - ListUserConnectionsResponseConnectionConnectedOrganization, |
39 |
| - ListUserConnectionsResponseConnectionConnectedUser, |
40 |
| - ListUserConnectionsResponseConnection, |
41 |
| - ListUserConnectionsResponse, |
42 | 42 | ListUsersResponse,
|
43 | 43 | MFAOTP,
|
44 | 44 | OrganizationSecuritySettings,
|
@@ -704,6 +704,104 @@ def unmarshal_EncodedJWT(data: Any) -> EncodedJWT:
|
704 | 704 | return EncodedJWT(**args)
|
705 | 705 |
|
706 | 706 |
|
| 707 | +def unmarshal_GetUserConnectionsResponseConnectionConnectedOrganization( |
| 708 | + data: Any, |
| 709 | +) -> GetUserConnectionsResponseConnectionConnectedOrganization: |
| 710 | + if not isinstance(data, dict): |
| 711 | + raise TypeError( |
| 712 | + "Unmarshalling the type 'GetUserConnectionsResponseConnectionConnectedOrganization' failed as data isn't a dictionary." |
| 713 | + ) |
| 714 | + |
| 715 | + args: Dict[str, Any] = {} |
| 716 | + |
| 717 | + field = data.get("id", None) |
| 718 | + if field is not None: |
| 719 | + args["id"] = field |
| 720 | + |
| 721 | + field = data.get("name", None) |
| 722 | + if field is not None: |
| 723 | + args["name"] = field |
| 724 | + |
| 725 | + field = data.get("locked", None) |
| 726 | + if field is not None: |
| 727 | + args["locked"] = field |
| 728 | + |
| 729 | + return GetUserConnectionsResponseConnectionConnectedOrganization(**args) |
| 730 | + |
| 731 | + |
| 732 | +def unmarshal_GetUserConnectionsResponseConnectionConnectedUser( |
| 733 | + data: Any, |
| 734 | +) -> GetUserConnectionsResponseConnectionConnectedUser: |
| 735 | + if not isinstance(data, dict): |
| 736 | + raise TypeError( |
| 737 | + "Unmarshalling the type 'GetUserConnectionsResponseConnectionConnectedUser' failed as data isn't a dictionary." |
| 738 | + ) |
| 739 | + |
| 740 | + args: Dict[str, Any] = {} |
| 741 | + |
| 742 | + field = data.get("id", None) |
| 743 | + if field is not None: |
| 744 | + args["id"] = field |
| 745 | + |
| 746 | + field = data.get("username", None) |
| 747 | + if field is not None: |
| 748 | + args["username"] = field |
| 749 | + |
| 750 | + field = data.get("type", None) |
| 751 | + if field is not None: |
| 752 | + args["type_"] = field |
| 753 | + |
| 754 | + return GetUserConnectionsResponseConnectionConnectedUser(**args) |
| 755 | + |
| 756 | + |
| 757 | +def unmarshal_GetUserConnectionsResponseConnection( |
| 758 | + data: Any, |
| 759 | +) -> GetUserConnectionsResponseConnection: |
| 760 | + if not isinstance(data, dict): |
| 761 | + raise TypeError( |
| 762 | + "Unmarshalling the type 'GetUserConnectionsResponseConnection' failed as data isn't a dictionary." |
| 763 | + ) |
| 764 | + |
| 765 | + args: Dict[str, Any] = {} |
| 766 | + |
| 767 | + field = data.get("organization", None) |
| 768 | + if field is not None: |
| 769 | + args["organization"] = ( |
| 770 | + unmarshal_GetUserConnectionsResponseConnectionConnectedOrganization(field) |
| 771 | + ) |
| 772 | + else: |
| 773 | + args["organization"] = None |
| 774 | + |
| 775 | + field = data.get("user", None) |
| 776 | + if field is not None: |
| 777 | + args["user"] = unmarshal_GetUserConnectionsResponseConnectionConnectedUser( |
| 778 | + field |
| 779 | + ) |
| 780 | + else: |
| 781 | + args["user"] = None |
| 782 | + |
| 783 | + return GetUserConnectionsResponseConnection(**args) |
| 784 | + |
| 785 | + |
| 786 | +def unmarshal_GetUserConnectionsResponse(data: Any) -> GetUserConnectionsResponse: |
| 787 | + if not isinstance(data, dict): |
| 788 | + raise TypeError( |
| 789 | + "Unmarshalling the type 'GetUserConnectionsResponse' failed as data isn't a dictionary." |
| 790 | + ) |
| 791 | + |
| 792 | + args: Dict[str, Any] = {} |
| 793 | + |
| 794 | + field = data.get("connections", None) |
| 795 | + if field is not None: |
| 796 | + args["connections"] = ( |
| 797 | + [unmarshal_GetUserConnectionsResponseConnection(v) for v in field] |
| 798 | + if field is not None |
| 799 | + else None |
| 800 | + ) |
| 801 | + |
| 802 | + return GetUserConnectionsResponse(**args) |
| 803 | + |
| 804 | + |
707 | 805 | def unmarshal_ListAPIKeysResponse(data: Any) -> ListAPIKeysResponse:
|
708 | 806 | if not isinstance(data, dict):
|
709 | 807 | raise TypeError(
|
@@ -1034,104 +1132,6 @@ def unmarshal_ListSSHKeysResponse(data: Any) -> ListSSHKeysResponse:
|
1034 | 1132 | return ListSSHKeysResponse(**args)
|
1035 | 1133 |
|
1036 | 1134 |
|
1037 |
| -def unmarshal_ListUserConnectionsResponseConnectionConnectedOrganization( |
1038 |
| - data: Any, |
1039 |
| -) -> ListUserConnectionsResponseConnectionConnectedOrganization: |
1040 |
| - if not isinstance(data, dict): |
1041 |
| - raise TypeError( |
1042 |
| - "Unmarshalling the type 'ListUserConnectionsResponseConnectionConnectedOrganization' failed as data isn't a dictionary." |
1043 |
| - ) |
1044 |
| - |
1045 |
| - args: Dict[str, Any] = {} |
1046 |
| - |
1047 |
| - field = data.get("id", None) |
1048 |
| - if field is not None: |
1049 |
| - args["id"] = field |
1050 |
| - |
1051 |
| - field = data.get("name", None) |
1052 |
| - if field is not None: |
1053 |
| - args["name"] = field |
1054 |
| - |
1055 |
| - field = data.get("locked", None) |
1056 |
| - if field is not None: |
1057 |
| - args["locked"] = field |
1058 |
| - |
1059 |
| - return ListUserConnectionsResponseConnectionConnectedOrganization(**args) |
1060 |
| - |
1061 |
| - |
1062 |
| -def unmarshal_ListUserConnectionsResponseConnectionConnectedUser( |
1063 |
| - data: Any, |
1064 |
| -) -> ListUserConnectionsResponseConnectionConnectedUser: |
1065 |
| - if not isinstance(data, dict): |
1066 |
| - raise TypeError( |
1067 |
| - "Unmarshalling the type 'ListUserConnectionsResponseConnectionConnectedUser' failed as data isn't a dictionary." |
1068 |
| - ) |
1069 |
| - |
1070 |
| - args: Dict[str, Any] = {} |
1071 |
| - |
1072 |
| - field = data.get("id", None) |
1073 |
| - if field is not None: |
1074 |
| - args["id"] = field |
1075 |
| - |
1076 |
| - field = data.get("username", None) |
1077 |
| - if field is not None: |
1078 |
| - args["username"] = field |
1079 |
| - |
1080 |
| - field = data.get("type", None) |
1081 |
| - if field is not None: |
1082 |
| - args["type_"] = field |
1083 |
| - |
1084 |
| - return ListUserConnectionsResponseConnectionConnectedUser(**args) |
1085 |
| - |
1086 |
| - |
1087 |
| -def unmarshal_ListUserConnectionsResponseConnection( |
1088 |
| - data: Any, |
1089 |
| -) -> ListUserConnectionsResponseConnection: |
1090 |
| - if not isinstance(data, dict): |
1091 |
| - raise TypeError( |
1092 |
| - "Unmarshalling the type 'ListUserConnectionsResponseConnection' failed as data isn't a dictionary." |
1093 |
| - ) |
1094 |
| - |
1095 |
| - args: Dict[str, Any] = {} |
1096 |
| - |
1097 |
| - field = data.get("organization", None) |
1098 |
| - if field is not None: |
1099 |
| - args["organization"] = ( |
1100 |
| - unmarshal_ListUserConnectionsResponseConnectionConnectedOrganization(field) |
1101 |
| - ) |
1102 |
| - else: |
1103 |
| - args["organization"] = None |
1104 |
| - |
1105 |
| - field = data.get("user", None) |
1106 |
| - if field is not None: |
1107 |
| - args["user"] = unmarshal_ListUserConnectionsResponseConnectionConnectedUser( |
1108 |
| - field |
1109 |
| - ) |
1110 |
| - else: |
1111 |
| - args["user"] = None |
1112 |
| - |
1113 |
| - return ListUserConnectionsResponseConnection(**args) |
1114 |
| - |
1115 |
| - |
1116 |
| -def unmarshal_ListUserConnectionsResponse(data: Any) -> ListUserConnectionsResponse: |
1117 |
| - if not isinstance(data, dict): |
1118 |
| - raise TypeError( |
1119 |
| - "Unmarshalling the type 'ListUserConnectionsResponse' failed as data isn't a dictionary." |
1120 |
| - ) |
1121 |
| - |
1122 |
| - args: Dict[str, Any] = {} |
1123 |
| - |
1124 |
| - field = data.get("connections", None) |
1125 |
| - if field is not None: |
1126 |
| - args["connections"] = ( |
1127 |
| - [unmarshal_ListUserConnectionsResponseConnection(v) for v in field] |
1128 |
| - if field is not None |
1129 |
| - else None |
1130 |
| - ) |
1131 |
| - |
1132 |
| - return ListUserConnectionsResponse(**args) |
1133 |
| - |
1134 |
| - |
1135 | 1135 | def unmarshal_ListUsersResponse(data: Any) -> ListUsersResponse:
|
1136 | 1136 | if not isinstance(data, dict):
|
1137 | 1137 | raise TypeError(
|
|
0 commit comments