PySimultan 0.5.9.6__py3-none-any.whl → 0.6.0.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- PySimultan2/CHANGELOG.md +9 -0
- PySimultan2/__about__.py +1 -1
- PySimultan2/data_model.py +12 -5
- PySimultan2/default_types.py +39 -8
- PySimultan2/files.py +1 -1
- PySimultan2/object_mapper.py +31 -3
- PySimultan2/resources/BruTile.dll +0 -0
- PySimultan2/resources/ComponentBuilder.dll +0 -0
- PySimultan2/resources/ComponentBuilder.xml +93 -15
- PySimultan2/resources/HelixToolkit.Core.Wpf.dll +0 -0
- PySimultan2/resources/HelixToolkit.SharpDX.Core.Wpf.dll +0 -0
- PySimultan2/resources/HelixToolkit.SharpDX.Core.dll +0 -0
- PySimultan2/resources/HelixToolkit.dll +0 -0
- PySimultan2/resources/Python.Runtime.dll +0 -0
- PySimultan2/resources/SIMULTAN.Lang.dll +0 -0
- PySimultan2/resources/SIMULTAN.Lang.xml +62 -1
- PySimultan2/resources/SIMULTAN.UI.dll +0 -0
- PySimultan2/resources/SIMULTAN.UI.xml +57 -0
- PySimultan2/resources/SIMULTAN.dll +0 -0
- PySimultan2/resources/SIMULTAN.xml +73 -3
- PySimultan2/resources/System.Reflection.MetadataLoadContext.dll +0 -0
- PySimultan2/resources/defaultsettings.xml +0 -0
- PySimultan2/simultan_object.py +6 -1
- PySimultan2/taxonomy_maps.py +45 -27
- PySimultan2/typings/SIMULTAN/Data/Assets/__init__.pyi +616 -0
- PySimultan2/typings/SIMULTAN/Data/Components/__init__.pyi +2538 -0
- PySimultan2/typings/SIMULTAN/Data/FlowNetworks/__init__.pyi +499 -0
- PySimultan2/typings/SIMULTAN/Data/Geometry/__init__.pyi +2219 -0
- PySimultan2/typings/SIMULTAN/Data/MultiValues/__init__.pyi +682 -0
- PySimultan2/typings/SIMULTAN/Data/SimMath/__init__.pyi +1654 -0
- PySimultan2/typings/SIMULTAN/Data/SimNetworks/__init__.pyi +442 -0
- PySimultan2/typings/SIMULTAN/Data/SitePlanner/__init__.pyi +193 -0
- PySimultan2/typings/SIMULTAN/Data/Taxonomy/__init__.pyi +367 -0
- PySimultan2/typings/SIMULTAN/Data/Users/__init__.pyi +116 -0
- PySimultan2/typings/SIMULTAN/Data/ValueMappings/__init__.pyi +212 -0
- PySimultan2/typings/SIMULTAN/Data/__init__.pyi +232 -0
- PySimultan2/typings/SIMULTAN/DataMapping/__init__.pyi +916 -0
- PySimultan2/typings/SIMULTAN/Excel/__init__.pyi +15 -0
- PySimultan2/typings/SIMULTAN/Exceptions/__init__.pyi +268 -0
- PySimultan2/typings/SIMULTAN/Exchange/SimNetworkConnectors/__init__.pyi +32 -0
- PySimultan2/typings/SIMULTAN/Exchange/__init__.pyi +116 -0
- PySimultan2/typings/SIMULTAN/Projects/ManagedFiles/__init__.pyi +433 -0
- PySimultan2/typings/SIMULTAN/Projects/__init__.pyi +435 -0
- PySimultan2/typings/SIMULTAN/Serializer/CODXF/__init__.pyi +103 -0
- PySimultan2/typings/SIMULTAN/Serializer/CSV/__init__.pyi +122 -0
- PySimultan2/typings/SIMULTAN/Serializer/DXF/__init__.pyi +1335 -0
- PySimultan2/typings/SIMULTAN/Serializer/Geometry/__init__.pyi +48 -0
- PySimultan2/typings/SIMULTAN/Serializer/JSON/__init__.pyi +562 -0
- PySimultan2/typings/SIMULTAN/Serializer/METADXF/__init__.pyi +11 -0
- PySimultan2/typings/SIMULTAN/Serializer/PADXF/__init__.pyi +21 -0
- PySimultan2/typings/SIMULTAN/Serializer/PPATH/__init__.pyi +11 -0
- PySimultan2/typings/SIMULTAN/Serializer/Projects/__init__.pyi +112 -0
- PySimultan2/typings/SIMULTAN/Serializer/SIMLINKS/__init__.pyi +5 -0
- PySimultan2/typings/SIMULTAN/Serializer/SPDXF/__init__.pyi +13 -0
- PySimultan2/typings/SIMULTAN/Serializer/SimGeo/__init__.pyi +54 -0
- PySimultan2/typings/SIMULTAN/Serializer/TXDXF/__init__.pyi +46 -0
- PySimultan2/typings/SIMULTAN/Serializer/XMI/__init__.pyi +22 -0
- PySimultan2/typings/SIMULTAN/Serializer/__init__.pyi +32 -0
- PySimultan2/typings/SIMULTAN/Utils/BackgroundWork/__init__.pyi +43 -0
- PySimultan2/typings/SIMULTAN/Utils/Collections/__init__.pyi +216 -0
- PySimultan2/typings/SIMULTAN/Utils/ElevationProvider/__init__.pyi +66 -0
- PySimultan2/typings/SIMULTAN/Utils/Files/__init__.pyi +48 -0
- PySimultan2/typings/SIMULTAN/Utils/Randomize/__init__.pyi +11 -0
- PySimultan2/typings/SIMULTAN/Utils/Streams/__init__.pyi +59 -0
- PySimultan2/typings/SIMULTAN/Utils/UndoRedo/__init__.pyi +133 -0
- PySimultan2/typings/SIMULTAN/Utils/__init__.pyi +570 -0
- PySimultan2/typings/System/Buffers/Binary/__init__.pyi +248 -0
- PySimultan2/typings/System/Buffers/Text/__init__.pyi +91 -0
- PySimultan2/typings/System/Buffers/__init__.pyi +192 -0
- PySimultan2/typings/System/CodeDom/Compiler/__init__.pyi +137 -0
- PySimultan2/typings/System/Collections/Concurrent/__init__.pyi +47 -0
- PySimultan2/typings/System/Collections/Generic/__init__.pyi +1293 -0
- PySimultan2/typings/System/Collections/ObjectModel/__init__.pyi +166 -0
- PySimultan2/typings/System/Collections/Specialized/__init__.pyi +82 -0
- PySimultan2/typings/System/Collections/__init__.pyi +403 -0
- PySimultan2/typings/System/ComponentModel/__init__.pyi +582 -0
- PySimultan2/typings/System/Configuration/Assemblies/__init__.pyi +30 -0
- PySimultan2/typings/System/Diagnostics/CodeAnalysis/__init__.pyi +315 -0
- PySimultan2/typings/System/Diagnostics/Contracts/__init__.pyi +297 -0
- PySimultan2/typings/System/Diagnostics/SymbolStore/__init__.pyi +9 -0
- PySimultan2/typings/System/Diagnostics/Tracing/__init__.pyi +641 -0
- PySimultan2/typings/System/Diagnostics/__init__.pyi +1101 -0
- PySimultan2/typings/System/Globalization/__init__.pyi +1675 -0
- PySimultan2/typings/System/IO/Enumeration/__init__.pyi +125 -0
- PySimultan2/typings/System/IO/__init__.pyi +2747 -0
- PySimultan2/typings/System/Linq/Expressions/__init__.pyi +1815 -0
- PySimultan2/typings/System/Net/__init__.pyi +81 -0
- PySimultan2/typings/System/Numerics/__init__.pyi +2853 -0
- PySimultan2/typings/System/Reflection/Emit/__init__.pyi +1945 -0
- PySimultan2/typings/System/Reflection/Metadata/__init__.pyi +24 -0
- PySimultan2/typings/System/Reflection/__init__.pyi +2724 -0
- PySimultan2/typings/System/Resources/__init__.pyi +205 -0
- PySimultan2/typings/System/Runtime/CompilerServices/__init__.pyi +1926 -0
- PySimultan2/typings/System/Runtime/ConstrainedExecution/__init__.pyi +49 -0
- PySimultan2/typings/System/Runtime/ExceptionServices/__init__.pyi +34 -0
- PySimultan2/typings/System/Runtime/InteropServices/ComTypes/__init__.pyi +758 -0
- PySimultan2/typings/System/Runtime/InteropServices/Marshalling/__init__.pyi +461 -0
- PySimultan2/typings/System/Runtime/InteropServices/ObjectiveC/__init__.pyi +48 -0
- PySimultan2/typings/System/Runtime/InteropServices/__init__.pyi +2632 -0
- PySimultan2/typings/System/Runtime/Intrinsics/Arm/__init__.pyi +4757 -0
- PySimultan2/typings/System/Runtime/Intrinsics/Wasm/__init__.pyi +844 -0
- PySimultan2/typings/System/Runtime/Intrinsics/X86/__init__.pyi +5642 -0
- PySimultan2/typings/System/Runtime/Intrinsics/__init__.pyi +4504 -0
- PySimultan2/typings/System/Runtime/Loader/__init__.pyi +63 -0
- PySimultan2/typings/System/Runtime/Remoting/__init__.pyi +7 -0
- PySimultan2/typings/System/Runtime/Serialization/__init__.pyi +269 -0
- PySimultan2/typings/System/Runtime/Versioning/__init__.pyi +200 -0
- PySimultan2/typings/System/Runtime/__init__.pyi +141 -0
- PySimultan2/typings/System/Security/Cryptography/__init__.pyi +39 -0
- PySimultan2/typings/System/Security/Permissions/__init__.pyi +163 -0
- PySimultan2/typings/System/Security/Principal/__init__.pyi +45 -0
- PySimultan2/typings/System/Security/__init__.pyi +347 -0
- PySimultan2/typings/System/Text/Unicode/__init__.pyi +62 -0
- PySimultan2/typings/System/Text/__init__.pyi +1590 -0
- PySimultan2/typings/System/Threading/Tasks/Sources/__init__.pyi +76 -0
- PySimultan2/typings/System/Threading/Tasks/__init__.pyi +1403 -0
- PySimultan2/typings/System/Threading/__init__.pyi +1788 -0
- PySimultan2/typings/System/Xml/Schema/__init__.pyi +1255 -0
- PySimultan2/typings/System/Xml/Serialization/__init__.pyi +16 -0
- PySimultan2/typings/System/Xml/XPath/__init__.pyi +474 -0
- PySimultan2/typings/System/Xml/__init__.pyi +2410 -0
- PySimultan2/typings/System/__init__.pyi +17821 -0
- PySimultan2/utils.py +10 -5
- {pysimultan-0.5.9.6.dist-info → pysimultan-0.6.0.1.dist-info}/METADATA +5 -1
- pysimultan-0.6.0.1.dist-info/RECORD +174 -0
- PySimultan2/resources/SIMULTAN.AutoUpdate.Client.dll +0 -0
- PySimultan2/resources/SIMULTAN.AutoUpdate.Client.dll.config +0 -11
- PySimultan2/resources/SIMULTAN.AutoUpdate.DataTransferLibrary.dll +0 -0
- PySimultan2/resources/SIMULTAN.AutoUpdate.DataTransferLibrary.dll.config +0 -15
- PySimultan2/resources/SIMULTAN.Plugins.dll +0 -0
- PySimultan2/resources/SIMULTAN.Plugins.xml +0 -396
- pysimultan-0.5.9.6.dist-info/RECORD +0 -81
- {pysimultan-0.5.9.6.dist-info → pysimultan-0.6.0.1.dist-info}/WHEEL +0 -0
- {pysimultan-0.5.9.6.dist-info → pysimultan-0.6.0.1.dist-info}/licenses/LICENSE.txt +0 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
import typing
|
2
|
+
from System import SystemException, Exception
|
3
|
+
from System.Collections import IDictionary
|
4
|
+
from System.Reflection import MethodBase
|
5
|
+
|
6
|
+
class CryptographicException(SystemException):
|
7
|
+
@typing.overload
|
8
|
+
def __init__(self) -> None: ...
|
9
|
+
@typing.overload
|
10
|
+
def __init__(self, format: str, insert: str) -> None: ...
|
11
|
+
@typing.overload
|
12
|
+
def __init__(self, hr: int) -> None: ...
|
13
|
+
@typing.overload
|
14
|
+
def __init__(self, message: str) -> None: ...
|
15
|
+
@typing.overload
|
16
|
+
def __init__(self, message: str, inner: Exception) -> None: ...
|
17
|
+
@property
|
18
|
+
def Data(self) -> IDictionary: ...
|
19
|
+
@property
|
20
|
+
def HelpLink(self) -> str: ...
|
21
|
+
@HelpLink.setter
|
22
|
+
def HelpLink(self, value: str) -> str: ...
|
23
|
+
@property
|
24
|
+
def HResult(self) -> int: ...
|
25
|
+
@HResult.setter
|
26
|
+
def HResult(self, value: int) -> int: ...
|
27
|
+
@property
|
28
|
+
def InnerException(self) -> Exception: ...
|
29
|
+
@property
|
30
|
+
def Message(self) -> str: ...
|
31
|
+
@property
|
32
|
+
def Source(self) -> str: ...
|
33
|
+
@Source.setter
|
34
|
+
def Source(self, value: str) -> str: ...
|
35
|
+
@property
|
36
|
+
def StackTrace(self) -> str: ...
|
37
|
+
@property
|
38
|
+
def TargetSite(self) -> MethodBase: ...
|
39
|
+
|
@@ -0,0 +1,163 @@
|
|
1
|
+
import typing, abc
|
2
|
+
from System import Attribute
|
3
|
+
from System.Security import IPermission
|
4
|
+
|
5
|
+
class CodeAccessSecurityAttribute(SecurityAttribute):
|
6
|
+
@property
|
7
|
+
def Action(self) -> SecurityAction: ...
|
8
|
+
@Action.setter
|
9
|
+
def Action(self, value: SecurityAction) -> SecurityAction: ...
|
10
|
+
@property
|
11
|
+
def TypeId(self) -> typing.Any: ...
|
12
|
+
@property
|
13
|
+
def Unrestricted(self) -> bool: ...
|
14
|
+
@Unrestricted.setter
|
15
|
+
def Unrestricted(self, value: bool) -> bool: ...
|
16
|
+
|
17
|
+
|
18
|
+
class PermissionState(typing.SupportsInt):
|
19
|
+
@typing.overload
|
20
|
+
def __init__(self, value : int) -> None: ...
|
21
|
+
@typing.overload
|
22
|
+
def __init__(self, value : int, force_if_true: bool) -> None: ...
|
23
|
+
def __int__(self) -> int: ...
|
24
|
+
|
25
|
+
# Values:
|
26
|
+
None_ : PermissionState # 0
|
27
|
+
Unrestricted : PermissionState # 1
|
28
|
+
|
29
|
+
|
30
|
+
class SecurityAction(typing.SupportsInt):
|
31
|
+
@typing.overload
|
32
|
+
def __init__(self, value : int) -> None: ...
|
33
|
+
@typing.overload
|
34
|
+
def __init__(self, value : int, force_if_true: bool) -> None: ...
|
35
|
+
def __int__(self) -> int: ...
|
36
|
+
|
37
|
+
# Values:
|
38
|
+
Demand : SecurityAction # 2
|
39
|
+
Assert : SecurityAction # 3
|
40
|
+
Deny : SecurityAction # 4
|
41
|
+
PermitOnly : SecurityAction # 5
|
42
|
+
LinkDemand : SecurityAction # 6
|
43
|
+
InheritanceDemand : SecurityAction # 7
|
44
|
+
RequestMinimum : SecurityAction # 8
|
45
|
+
RequestOptional : SecurityAction # 9
|
46
|
+
RequestRefuse : SecurityAction # 10
|
47
|
+
|
48
|
+
|
49
|
+
class SecurityAttribute(Attribute):
|
50
|
+
@property
|
51
|
+
def Action(self) -> SecurityAction: ...
|
52
|
+
@Action.setter
|
53
|
+
def Action(self, value: SecurityAction) -> SecurityAction: ...
|
54
|
+
@property
|
55
|
+
def TypeId(self) -> typing.Any: ...
|
56
|
+
@property
|
57
|
+
def Unrestricted(self) -> bool: ...
|
58
|
+
@Unrestricted.setter
|
59
|
+
def Unrestricted(self, value: bool) -> bool: ...
|
60
|
+
@abc.abstractmethod
|
61
|
+
def CreatePermission(self) -> IPermission: ...
|
62
|
+
|
63
|
+
|
64
|
+
class SecurityPermissionAttribute(CodeAccessSecurityAttribute):
|
65
|
+
def __init__(self, action: SecurityAction) -> None: ...
|
66
|
+
@property
|
67
|
+
def Action(self) -> SecurityAction: ...
|
68
|
+
@Action.setter
|
69
|
+
def Action(self, value: SecurityAction) -> SecurityAction: ...
|
70
|
+
@property
|
71
|
+
def Assertion(self) -> bool: ...
|
72
|
+
@Assertion.setter
|
73
|
+
def Assertion(self, value: bool) -> bool: ...
|
74
|
+
@property
|
75
|
+
def BindingRedirects(self) -> bool: ...
|
76
|
+
@BindingRedirects.setter
|
77
|
+
def BindingRedirects(self, value: bool) -> bool: ...
|
78
|
+
@property
|
79
|
+
def ControlAppDomain(self) -> bool: ...
|
80
|
+
@ControlAppDomain.setter
|
81
|
+
def ControlAppDomain(self, value: bool) -> bool: ...
|
82
|
+
@property
|
83
|
+
def ControlDomainPolicy(self) -> bool: ...
|
84
|
+
@ControlDomainPolicy.setter
|
85
|
+
def ControlDomainPolicy(self, value: bool) -> bool: ...
|
86
|
+
@property
|
87
|
+
def ControlEvidence(self) -> bool: ...
|
88
|
+
@ControlEvidence.setter
|
89
|
+
def ControlEvidence(self, value: bool) -> bool: ...
|
90
|
+
@property
|
91
|
+
def ControlPolicy(self) -> bool: ...
|
92
|
+
@ControlPolicy.setter
|
93
|
+
def ControlPolicy(self, value: bool) -> bool: ...
|
94
|
+
@property
|
95
|
+
def ControlPrincipal(self) -> bool: ...
|
96
|
+
@ControlPrincipal.setter
|
97
|
+
def ControlPrincipal(self, value: bool) -> bool: ...
|
98
|
+
@property
|
99
|
+
def ControlThread(self) -> bool: ...
|
100
|
+
@ControlThread.setter
|
101
|
+
def ControlThread(self, value: bool) -> bool: ...
|
102
|
+
@property
|
103
|
+
def Execution(self) -> bool: ...
|
104
|
+
@Execution.setter
|
105
|
+
def Execution(self, value: bool) -> bool: ...
|
106
|
+
@property
|
107
|
+
def Flags(self) -> SecurityPermissionFlag: ...
|
108
|
+
@Flags.setter
|
109
|
+
def Flags(self, value: SecurityPermissionFlag) -> SecurityPermissionFlag: ...
|
110
|
+
@property
|
111
|
+
def Infrastructure(self) -> bool: ...
|
112
|
+
@Infrastructure.setter
|
113
|
+
def Infrastructure(self, value: bool) -> bool: ...
|
114
|
+
@property
|
115
|
+
def RemotingConfiguration(self) -> bool: ...
|
116
|
+
@RemotingConfiguration.setter
|
117
|
+
def RemotingConfiguration(self, value: bool) -> bool: ...
|
118
|
+
@property
|
119
|
+
def SerializationFormatter(self) -> bool: ...
|
120
|
+
@SerializationFormatter.setter
|
121
|
+
def SerializationFormatter(self, value: bool) -> bool: ...
|
122
|
+
@property
|
123
|
+
def SkipVerification(self) -> bool: ...
|
124
|
+
@SkipVerification.setter
|
125
|
+
def SkipVerification(self, value: bool) -> bool: ...
|
126
|
+
@property
|
127
|
+
def TypeId(self) -> typing.Any: ...
|
128
|
+
@property
|
129
|
+
def UnmanagedCode(self) -> bool: ...
|
130
|
+
@UnmanagedCode.setter
|
131
|
+
def UnmanagedCode(self, value: bool) -> bool: ...
|
132
|
+
@property
|
133
|
+
def Unrestricted(self) -> bool: ...
|
134
|
+
@Unrestricted.setter
|
135
|
+
def Unrestricted(self, value: bool) -> bool: ...
|
136
|
+
def CreatePermission(self) -> IPermission: ...
|
137
|
+
|
138
|
+
|
139
|
+
class SecurityPermissionFlag(typing.SupportsInt):
|
140
|
+
@typing.overload
|
141
|
+
def __init__(self, value : int) -> None: ...
|
142
|
+
@typing.overload
|
143
|
+
def __init__(self, value : int, force_if_true: bool) -> None: ...
|
144
|
+
def __int__(self) -> int: ...
|
145
|
+
|
146
|
+
# Values:
|
147
|
+
NoFlags : SecurityPermissionFlag # 0
|
148
|
+
Assertion : SecurityPermissionFlag # 1
|
149
|
+
UnmanagedCode : SecurityPermissionFlag # 2
|
150
|
+
SkipVerification : SecurityPermissionFlag # 4
|
151
|
+
Execution : SecurityPermissionFlag # 8
|
152
|
+
ControlThread : SecurityPermissionFlag # 16
|
153
|
+
ControlEvidence : SecurityPermissionFlag # 32
|
154
|
+
ControlPolicy : SecurityPermissionFlag # 64
|
155
|
+
SerializationFormatter : SecurityPermissionFlag # 128
|
156
|
+
ControlDomainPolicy : SecurityPermissionFlag # 256
|
157
|
+
ControlPrincipal : SecurityPermissionFlag # 512
|
158
|
+
ControlAppDomain : SecurityPermissionFlag # 1024
|
159
|
+
RemotingConfiguration : SecurityPermissionFlag # 2048
|
160
|
+
Infrastructure : SecurityPermissionFlag # 4096
|
161
|
+
BindingRedirects : SecurityPermissionFlag # 8192
|
162
|
+
AllFlags : SecurityPermissionFlag # 16383
|
163
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import typing, abc
|
2
|
+
|
3
|
+
class IIdentity(typing.Protocol):
|
4
|
+
@property
|
5
|
+
def AuthenticationType(self) -> str: ...
|
6
|
+
@property
|
7
|
+
def IsAuthenticated(self) -> bool: ...
|
8
|
+
@property
|
9
|
+
def Name(self) -> str: ...
|
10
|
+
|
11
|
+
|
12
|
+
class IPrincipal(typing.Protocol):
|
13
|
+
@property
|
14
|
+
def Identity(self) -> IIdentity: ...
|
15
|
+
@abc.abstractmethod
|
16
|
+
def IsInRole(self, role: str) -> bool: ...
|
17
|
+
|
18
|
+
|
19
|
+
class PrincipalPolicy(typing.SupportsInt):
|
20
|
+
@typing.overload
|
21
|
+
def __init__(self, value : int) -> None: ...
|
22
|
+
@typing.overload
|
23
|
+
def __init__(self, value : int, force_if_true: bool) -> None: ...
|
24
|
+
def __int__(self) -> int: ...
|
25
|
+
|
26
|
+
# Values:
|
27
|
+
UnauthenticatedPrincipal : PrincipalPolicy # 0
|
28
|
+
NoPrincipal : PrincipalPolicy # 1
|
29
|
+
WindowsPrincipal : PrincipalPolicy # 2
|
30
|
+
|
31
|
+
|
32
|
+
class TokenImpersonationLevel(typing.SupportsInt):
|
33
|
+
@typing.overload
|
34
|
+
def __init__(self, value : int) -> None: ...
|
35
|
+
@typing.overload
|
36
|
+
def __init__(self, value : int, force_if_true: bool) -> None: ...
|
37
|
+
def __int__(self) -> int: ...
|
38
|
+
|
39
|
+
# Values:
|
40
|
+
None_ : TokenImpersonationLevel # 0
|
41
|
+
Anonymous : TokenImpersonationLevel # 1
|
42
|
+
Identification : TokenImpersonationLevel # 2
|
43
|
+
Impersonation : TokenImpersonationLevel # 3
|
44
|
+
Delegation : TokenImpersonationLevel # 4
|
45
|
+
|
@@ -0,0 +1,347 @@
|
|
1
|
+
import typing, clr, abc
|
2
|
+
from System import Attribute, Array, Array_1, IDisposable, SystemException, Exception
|
3
|
+
from System.Collections import ICollection, IEnumerator, Hashtable, ArrayList, IDictionary
|
4
|
+
from System.Runtime.Serialization import IDeserializationCallback, SerializationInfo, StreamingContext
|
5
|
+
from System.Security.Permissions import PermissionState
|
6
|
+
from System.Reflection import AssemblyName, MethodInfo, MethodBase
|
7
|
+
|
8
|
+
class AllowPartiallyTrustedCallersAttribute(Attribute):
|
9
|
+
def __init__(self) -> None: ...
|
10
|
+
@property
|
11
|
+
def PartialTrustVisibilityLevel(self) -> PartialTrustVisibilityLevel: ...
|
12
|
+
@PartialTrustVisibilityLevel.setter
|
13
|
+
def PartialTrustVisibilityLevel(self, value: PartialTrustVisibilityLevel) -> PartialTrustVisibilityLevel: ...
|
14
|
+
@property
|
15
|
+
def TypeId(self) -> typing.Any: ...
|
16
|
+
|
17
|
+
|
18
|
+
class IPermission(ISecurityEncodable, typing.Protocol):
|
19
|
+
@abc.abstractmethod
|
20
|
+
def Copy(self) -> IPermission: ...
|
21
|
+
@abc.abstractmethod
|
22
|
+
def Demand(self) -> None: ...
|
23
|
+
@abc.abstractmethod
|
24
|
+
def Intersect(self, target: IPermission) -> IPermission: ...
|
25
|
+
@abc.abstractmethod
|
26
|
+
def IsSubsetOf(self, target: IPermission) -> bool: ...
|
27
|
+
@abc.abstractmethod
|
28
|
+
def Union(self, target: IPermission) -> IPermission: ...
|
29
|
+
|
30
|
+
|
31
|
+
class ISecurityEncodable(typing.Protocol):
|
32
|
+
@abc.abstractmethod
|
33
|
+
def FromXml(self, e: SecurityElement) -> None: ...
|
34
|
+
@abc.abstractmethod
|
35
|
+
def ToXml(self) -> SecurityElement: ...
|
36
|
+
|
37
|
+
|
38
|
+
class IStackWalk(typing.Protocol):
|
39
|
+
@abc.abstractmethod
|
40
|
+
def Assert(self) -> None: ...
|
41
|
+
@abc.abstractmethod
|
42
|
+
def Demand(self) -> None: ...
|
43
|
+
@abc.abstractmethod
|
44
|
+
def Deny(self) -> None: ...
|
45
|
+
@abc.abstractmethod
|
46
|
+
def PermitOnly(self) -> None: ...
|
47
|
+
|
48
|
+
|
49
|
+
class PartialTrustVisibilityLevel(typing.SupportsInt):
|
50
|
+
@typing.overload
|
51
|
+
def __init__(self, value : int) -> None: ...
|
52
|
+
@typing.overload
|
53
|
+
def __init__(self, value : int, force_if_true: bool) -> None: ...
|
54
|
+
def __int__(self) -> int: ...
|
55
|
+
|
56
|
+
# Values:
|
57
|
+
VisibleToAllHosts : PartialTrustVisibilityLevel # 0
|
58
|
+
NotVisibleByDefault : PartialTrustVisibilityLevel # 1
|
59
|
+
|
60
|
+
|
61
|
+
class PermissionSet(ICollection, IStackWalk, ISecurityEncodable, IDeserializationCallback):
|
62
|
+
@typing.overload
|
63
|
+
def __init__(self, permSet: PermissionSet) -> None: ...
|
64
|
+
@typing.overload
|
65
|
+
def __init__(self, state: PermissionState) -> None: ...
|
66
|
+
@property
|
67
|
+
def Count(self) -> int: ...
|
68
|
+
@property
|
69
|
+
def IsReadOnly(self) -> bool: ...
|
70
|
+
@property
|
71
|
+
def IsSynchronized(self) -> bool: ...
|
72
|
+
@property
|
73
|
+
def SyncRoot(self) -> typing.Any: ...
|
74
|
+
def AddPermission(self, perm: IPermission) -> IPermission: ...
|
75
|
+
def Assert(self) -> None: ...
|
76
|
+
def ContainsNonCodeAccessPermissions(self) -> bool: ...
|
77
|
+
@staticmethod
|
78
|
+
def ConvertPermissionSet(inFormat: str, inData: Array_1[int], outFormat: str) -> Array_1[int]: ...
|
79
|
+
def Copy(self) -> PermissionSet: ...
|
80
|
+
def CopyTo(self, array: Array, index: int) -> None: ...
|
81
|
+
def Demand(self) -> None: ...
|
82
|
+
def Deny(self) -> None: ...
|
83
|
+
def Equals(self, o: typing.Any) -> bool: ...
|
84
|
+
def FromXml(self, et: SecurityElement) -> None: ...
|
85
|
+
def GetEnumerator(self) -> IEnumerator: ...
|
86
|
+
def GetHashCode(self) -> int: ...
|
87
|
+
def GetPermission(self, permClass: typing.Type[typing.Any]) -> IPermission: ...
|
88
|
+
def Intersect(self, other: PermissionSet) -> PermissionSet: ...
|
89
|
+
def IsEmpty(self) -> bool: ...
|
90
|
+
def IsSubsetOf(self, target: PermissionSet) -> bool: ...
|
91
|
+
def IsUnrestricted(self) -> bool: ...
|
92
|
+
def PermitOnly(self) -> None: ...
|
93
|
+
def RemovePermission(self, permClass: typing.Type[typing.Any]) -> IPermission: ...
|
94
|
+
@staticmethod
|
95
|
+
def RevertAssert() -> None: ...
|
96
|
+
def SetPermission(self, perm: IPermission) -> IPermission: ...
|
97
|
+
def ToString(self) -> str: ...
|
98
|
+
def ToXml(self) -> SecurityElement: ...
|
99
|
+
def Union(self, other: PermissionSet) -> PermissionSet: ...
|
100
|
+
|
101
|
+
|
102
|
+
class SecureString(IDisposable):
|
103
|
+
@typing.overload
|
104
|
+
def __init__(self) -> None: ...
|
105
|
+
@typing.overload
|
106
|
+
def __init__(self, value: clr.Reference[str], length: int) -> None: ...
|
107
|
+
@property
|
108
|
+
def Length(self) -> int: ...
|
109
|
+
def AppendChar(self, c: str) -> None: ...
|
110
|
+
def Clear(self) -> None: ...
|
111
|
+
def Copy(self) -> SecureString: ...
|
112
|
+
def Dispose(self) -> None: ...
|
113
|
+
def InsertAt(self, index: int, c: str) -> None: ...
|
114
|
+
def IsReadOnly(self) -> bool: ...
|
115
|
+
def MakeReadOnly(self) -> None: ...
|
116
|
+
def RemoveAt(self, index: int) -> None: ...
|
117
|
+
def SetAt(self, index: int, c: str) -> None: ...
|
118
|
+
|
119
|
+
|
120
|
+
class SecurityCriticalAttribute(Attribute):
|
121
|
+
@typing.overload
|
122
|
+
def __init__(self) -> None: ...
|
123
|
+
@typing.overload
|
124
|
+
def __init__(self, scope: SecurityCriticalScope) -> None: ...
|
125
|
+
@property
|
126
|
+
def Scope(self) -> SecurityCriticalScope: ...
|
127
|
+
@property
|
128
|
+
def TypeId(self) -> typing.Any: ...
|
129
|
+
|
130
|
+
|
131
|
+
class SecurityCriticalScope(typing.SupportsInt):
|
132
|
+
@typing.overload
|
133
|
+
def __init__(self, value : int) -> None: ...
|
134
|
+
@typing.overload
|
135
|
+
def __init__(self, value : int, force_if_true: bool) -> None: ...
|
136
|
+
def __int__(self) -> int: ...
|
137
|
+
|
138
|
+
# Values:
|
139
|
+
Explicit : SecurityCriticalScope # 0
|
140
|
+
Everything : SecurityCriticalScope # 1
|
141
|
+
|
142
|
+
|
143
|
+
class SecurityElement:
|
144
|
+
@typing.overload
|
145
|
+
def __init__(self, tag: str) -> None: ...
|
146
|
+
@typing.overload
|
147
|
+
def __init__(self, tag: str, text: str) -> None: ...
|
148
|
+
@property
|
149
|
+
def Attributes(self) -> Hashtable: ...
|
150
|
+
@Attributes.setter
|
151
|
+
def Attributes(self, value: Hashtable) -> Hashtable: ...
|
152
|
+
@property
|
153
|
+
def Children(self) -> ArrayList: ...
|
154
|
+
@Children.setter
|
155
|
+
def Children(self, value: ArrayList) -> ArrayList: ...
|
156
|
+
@property
|
157
|
+
def Tag(self) -> str: ...
|
158
|
+
@Tag.setter
|
159
|
+
def Tag(self, value: str) -> str: ...
|
160
|
+
@property
|
161
|
+
def Text(self) -> str: ...
|
162
|
+
@Text.setter
|
163
|
+
def Text(self, value: str) -> str: ...
|
164
|
+
def AddAttribute(self, name: str, value: str) -> None: ...
|
165
|
+
def AddChild(self, child: SecurityElement) -> None: ...
|
166
|
+
def Attribute(self, name: str) -> str: ...
|
167
|
+
def Copy(self) -> SecurityElement: ...
|
168
|
+
def Equal(self, other: SecurityElement) -> bool: ...
|
169
|
+
@staticmethod
|
170
|
+
def Escape(str: str) -> str: ...
|
171
|
+
@staticmethod
|
172
|
+
def FromString(xml: str) -> SecurityElement: ...
|
173
|
+
@staticmethod
|
174
|
+
def IsValidAttributeName(name: str) -> bool: ...
|
175
|
+
@staticmethod
|
176
|
+
def IsValidAttributeValue(value: str) -> bool: ...
|
177
|
+
@staticmethod
|
178
|
+
def IsValidTag(tag: str) -> bool: ...
|
179
|
+
@staticmethod
|
180
|
+
def IsValidText(text: str) -> bool: ...
|
181
|
+
def SearchForChildByTag(self, tag: str) -> SecurityElement: ...
|
182
|
+
def SearchForTextOfTag(self, tag: str) -> str: ...
|
183
|
+
def ToString(self) -> str: ...
|
184
|
+
|
185
|
+
|
186
|
+
class SecurityException(SystemException):
|
187
|
+
@typing.overload
|
188
|
+
def __init__(self) -> None: ...
|
189
|
+
@typing.overload
|
190
|
+
def __init__(self, message: str) -> None: ...
|
191
|
+
@typing.overload
|
192
|
+
def __init__(self, message: str, inner: Exception) -> None: ...
|
193
|
+
@typing.overload
|
194
|
+
def __init__(self, message: str, type: typing.Type[typing.Any]) -> None: ...
|
195
|
+
@typing.overload
|
196
|
+
def __init__(self, message: str, type: typing.Type[typing.Any], state: str) -> None: ...
|
197
|
+
@property
|
198
|
+
def Data(self) -> IDictionary: ...
|
199
|
+
@property
|
200
|
+
def Demanded(self) -> typing.Any: ...
|
201
|
+
@Demanded.setter
|
202
|
+
def Demanded(self, value: typing.Any) -> typing.Any: ...
|
203
|
+
@property
|
204
|
+
def DenySetInstance(self) -> typing.Any: ...
|
205
|
+
@DenySetInstance.setter
|
206
|
+
def DenySetInstance(self, value: typing.Any) -> typing.Any: ...
|
207
|
+
@property
|
208
|
+
def FailedAssemblyInfo(self) -> AssemblyName: ...
|
209
|
+
@FailedAssemblyInfo.setter
|
210
|
+
def FailedAssemblyInfo(self, value: AssemblyName) -> AssemblyName: ...
|
211
|
+
@property
|
212
|
+
def GrantedSet(self) -> str: ...
|
213
|
+
@GrantedSet.setter
|
214
|
+
def GrantedSet(self, value: str) -> str: ...
|
215
|
+
@property
|
216
|
+
def HelpLink(self) -> str: ...
|
217
|
+
@HelpLink.setter
|
218
|
+
def HelpLink(self, value: str) -> str: ...
|
219
|
+
@property
|
220
|
+
def HResult(self) -> int: ...
|
221
|
+
@HResult.setter
|
222
|
+
def HResult(self, value: int) -> int: ...
|
223
|
+
@property
|
224
|
+
def InnerException(self) -> Exception: ...
|
225
|
+
@property
|
226
|
+
def Message(self) -> str: ...
|
227
|
+
@property
|
228
|
+
def Method(self) -> MethodInfo: ...
|
229
|
+
@Method.setter
|
230
|
+
def Method(self, value: MethodInfo) -> MethodInfo: ...
|
231
|
+
@property
|
232
|
+
def PermissionState(self) -> str: ...
|
233
|
+
@PermissionState.setter
|
234
|
+
def PermissionState(self, value: str) -> str: ...
|
235
|
+
@property
|
236
|
+
def PermissionType(self) -> typing.Type[typing.Any]: ...
|
237
|
+
@PermissionType.setter
|
238
|
+
def PermissionType(self, value: typing.Type[typing.Any]) -> typing.Type[typing.Any]: ...
|
239
|
+
@property
|
240
|
+
def PermitOnlySetInstance(self) -> typing.Any: ...
|
241
|
+
@PermitOnlySetInstance.setter
|
242
|
+
def PermitOnlySetInstance(self, value: typing.Any) -> typing.Any: ...
|
243
|
+
@property
|
244
|
+
def RefusedSet(self) -> str: ...
|
245
|
+
@RefusedSet.setter
|
246
|
+
def RefusedSet(self, value: str) -> str: ...
|
247
|
+
@property
|
248
|
+
def Source(self) -> str: ...
|
249
|
+
@Source.setter
|
250
|
+
def Source(self, value: str) -> str: ...
|
251
|
+
@property
|
252
|
+
def StackTrace(self) -> str: ...
|
253
|
+
@property
|
254
|
+
def TargetSite(self) -> MethodBase: ...
|
255
|
+
@property
|
256
|
+
def Url(self) -> str: ...
|
257
|
+
@Url.setter
|
258
|
+
def Url(self, value: str) -> str: ...
|
259
|
+
def GetObjectData(self, info: SerializationInfo, context: StreamingContext) -> None: ...
|
260
|
+
def ToString(self) -> str: ...
|
261
|
+
|
262
|
+
|
263
|
+
class SecurityRulesAttribute(Attribute):
|
264
|
+
def __init__(self, ruleSet: SecurityRuleSet) -> None: ...
|
265
|
+
@property
|
266
|
+
def RuleSet(self) -> SecurityRuleSet: ...
|
267
|
+
@property
|
268
|
+
def SkipVerificationInFullTrust(self) -> bool: ...
|
269
|
+
@SkipVerificationInFullTrust.setter
|
270
|
+
def SkipVerificationInFullTrust(self, value: bool) -> bool: ...
|
271
|
+
@property
|
272
|
+
def TypeId(self) -> typing.Any: ...
|
273
|
+
|
274
|
+
|
275
|
+
class SecurityRuleSet(typing.SupportsInt):
|
276
|
+
@typing.overload
|
277
|
+
def __init__(self, value : int) -> None: ...
|
278
|
+
@typing.overload
|
279
|
+
def __init__(self, value : int, force_if_true: bool) -> None: ...
|
280
|
+
def __int__(self) -> int: ...
|
281
|
+
|
282
|
+
# Values:
|
283
|
+
None_ : SecurityRuleSet # 0
|
284
|
+
Level1 : SecurityRuleSet # 1
|
285
|
+
Level2 : SecurityRuleSet # 2
|
286
|
+
|
287
|
+
|
288
|
+
class SecuritySafeCriticalAttribute(Attribute):
|
289
|
+
def __init__(self) -> None: ...
|
290
|
+
@property
|
291
|
+
def TypeId(self) -> typing.Any: ...
|
292
|
+
|
293
|
+
|
294
|
+
class SecurityTransparentAttribute(Attribute):
|
295
|
+
def __init__(self) -> None: ...
|
296
|
+
@property
|
297
|
+
def TypeId(self) -> typing.Any: ...
|
298
|
+
|
299
|
+
|
300
|
+
class SecurityTreatAsSafeAttribute(Attribute):
|
301
|
+
def __init__(self) -> None: ...
|
302
|
+
@property
|
303
|
+
def TypeId(self) -> typing.Any: ...
|
304
|
+
|
305
|
+
|
306
|
+
class SuppressUnmanagedCodeSecurityAttribute(Attribute):
|
307
|
+
def __init__(self) -> None: ...
|
308
|
+
@property
|
309
|
+
def TypeId(self) -> typing.Any: ...
|
310
|
+
|
311
|
+
|
312
|
+
class UnverifiableCodeAttribute(Attribute):
|
313
|
+
def __init__(self) -> None: ...
|
314
|
+
@property
|
315
|
+
def TypeId(self) -> typing.Any: ...
|
316
|
+
|
317
|
+
|
318
|
+
class VerificationException(SystemException):
|
319
|
+
@typing.overload
|
320
|
+
def __init__(self) -> None: ...
|
321
|
+
@typing.overload
|
322
|
+
def __init__(self, message: str) -> None: ...
|
323
|
+
@typing.overload
|
324
|
+
def __init__(self, message: str, innerException: Exception) -> None: ...
|
325
|
+
@property
|
326
|
+
def Data(self) -> IDictionary: ...
|
327
|
+
@property
|
328
|
+
def HelpLink(self) -> str: ...
|
329
|
+
@HelpLink.setter
|
330
|
+
def HelpLink(self, value: str) -> str: ...
|
331
|
+
@property
|
332
|
+
def HResult(self) -> int: ...
|
333
|
+
@HResult.setter
|
334
|
+
def HResult(self, value: int) -> int: ...
|
335
|
+
@property
|
336
|
+
def InnerException(self) -> Exception: ...
|
337
|
+
@property
|
338
|
+
def Message(self) -> str: ...
|
339
|
+
@property
|
340
|
+
def Source(self) -> str: ...
|
341
|
+
@Source.setter
|
342
|
+
def Source(self, value: str) -> str: ...
|
343
|
+
@property
|
344
|
+
def StackTrace(self) -> str: ...
|
345
|
+
@property
|
346
|
+
def TargetSite(self) -> MethodBase: ...
|
347
|
+
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import typing, clr, abc
|
2
|
+
from System.Buffers import OperationStatus
|
3
|
+
from System import ReadOnlySpan_1, Span_1, IFormatProvider
|
4
|
+
|
5
|
+
class Utf8(abc.ABC):
|
6
|
+
@staticmethod
|
7
|
+
def FromUtf16(source: ReadOnlySpan_1[str], destination: Span_1[int], charsRead: clr.Reference[int], bytesWritten: clr.Reference[int], replaceInvalidSequences: bool = ..., isFinalBlock: bool = ...) -> OperationStatus: ...
|
8
|
+
@staticmethod
|
9
|
+
def IsValid(value: ReadOnlySpan_1[int]) -> bool: ...
|
10
|
+
@staticmethod
|
11
|
+
def ToUtf16(source: ReadOnlySpan_1[int], destination: Span_1[str], bytesRead: clr.Reference[int], charsWritten: clr.Reference[int], replaceInvalidSequences: bool = ..., isFinalBlock: bool = ...) -> OperationStatus: ...
|
12
|
+
# Skipped TryWrite due to it being static, abstract and generic.
|
13
|
+
|
14
|
+
TryWrite : TryWrite_MethodGroup
|
15
|
+
class TryWrite_MethodGroup:
|
16
|
+
@typing.overload
|
17
|
+
def __call__(self, destination: Span_1[int], handler: clr.Reference[Utf8.TryWriteInterpolatedStringHandler], bytesWritten: clr.Reference[int]) -> bool:...
|
18
|
+
@typing.overload
|
19
|
+
def __call__(self, destination: Span_1[int], provider: IFormatProvider, handler: clr.Reference[Utf8.TryWriteInterpolatedStringHandler], bytesWritten: clr.Reference[int]) -> bool:...
|
20
|
+
|
21
|
+
|
22
|
+
class TryWriteInterpolatedStringHandler:
|
23
|
+
@typing.overload
|
24
|
+
def __init__(self, literalLength: int, formattedCount: int, destination: Span_1[int], provider: IFormatProvider, shouldAppend: clr.Reference[bool]) -> None: ...
|
25
|
+
@typing.overload
|
26
|
+
def __init__(self, literalLength: int, formattedCount: int, destination: Span_1[int], shouldAppend: clr.Reference[bool]) -> None: ...
|
27
|
+
def AppendLiteral(self, value: str) -> bool: ...
|
28
|
+
# Skipped AppendFormatted due to it being static, abstract and generic.
|
29
|
+
|
30
|
+
AppendFormatted : AppendFormatted_MethodGroup
|
31
|
+
class AppendFormatted_MethodGroup:
|
32
|
+
def __getitem__(self, t:typing.Type[AppendFormatted_1_T1]) -> AppendFormatted_1[AppendFormatted_1_T1]: ...
|
33
|
+
|
34
|
+
AppendFormatted_1_T1 = typing.TypeVar('AppendFormatted_1_T1')
|
35
|
+
class AppendFormatted_1(typing.Generic[AppendFormatted_1_T1]):
|
36
|
+
AppendFormatted_1_T = Utf8.TryWriteInterpolatedStringHandler.AppendFormatted_MethodGroup.AppendFormatted_1_T1
|
37
|
+
@typing.overload
|
38
|
+
def __call__(self, value: AppendFormatted_1_T) -> bool:...
|
39
|
+
@typing.overload
|
40
|
+
def __call__(self, value: AppendFormatted_1_T, alignment: int) -> bool:...
|
41
|
+
@typing.overload
|
42
|
+
def __call__(self, value: AppendFormatted_1_T, format: str) -> bool:...
|
43
|
+
@typing.overload
|
44
|
+
def __call__(self, value: AppendFormatted_1_T, alignment: int, format: str) -> bool:...
|
45
|
+
|
46
|
+
@typing.overload
|
47
|
+
def __call__(self, utf8Value: ReadOnlySpan_1[int]) -> bool:...
|
48
|
+
@typing.overload
|
49
|
+
def __call__(self, value: ReadOnlySpan_1[str]) -> bool:...
|
50
|
+
@typing.overload
|
51
|
+
def __call__(self, value: str) -> bool:...
|
52
|
+
@typing.overload
|
53
|
+
def __call__(self, utf8Value: ReadOnlySpan_1[int], alignment: int = ..., format: str = ...) -> bool:...
|
54
|
+
@typing.overload
|
55
|
+
def __call__(self, value: ReadOnlySpan_1[str], alignment: int = ..., format: str = ...) -> bool:...
|
56
|
+
@typing.overload
|
57
|
+
def __call__(self, value: str, alignment: int = ..., format: str = ...) -> bool:...
|
58
|
+
@typing.overload
|
59
|
+
def __call__(self, value: typing.Any, alignment: int = ..., format: str = ...) -> bool:...
|
60
|
+
|
61
|
+
|
62
|
+
|