ignos-api-client 2024.2.5.8366__tar.gz → 2024.5.28.9351__tar.gz
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.
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/PKG-INFO +3 -3
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/_client.py +12 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/_configuration.py +3 -3
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/_serialization.py +12 -19
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/_version.py +1 -1
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/aio/_client.py +12 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/aio/_configuration.py +3 -3
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/aio/operations/__init__.py +6 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/aio/operations/_operations.py +7720 -5203
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/models/__init__.py +80 -2
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/models/_enums.py +36 -1
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/models/_models.py +2480 -240
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/operations/__init__.py +6 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/operations/_operations.py +3719 -697
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos_api_client.egg-info/PKG-INFO +3 -3
- ignos_api_client-2024.5.28.9351/ignos_api_client.egg-info/requires.txt +2 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/setup.py +3 -3
- ignos-api-client-2024.2.5.8366/ignos_api_client.egg-info/requires.txt +0 -2
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/__init__.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/__init__.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/__init__.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/_patch.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/aio/__init__.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/aio/_patch.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/aio/operations/_patch.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/models/_patch.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/operations/_patch.py +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/py.typed +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos_api_client.egg-info/SOURCES.txt +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos_api_client.egg-info/dependency_links.txt +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos_api_client.egg-info/top_level.txt +0 -0
- {ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/setup.cfg +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ignos-api-client
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.5.28.9351
|
|
4
4
|
Summary: ignos-api-client
|
|
5
5
|
Home-page:
|
|
6
6
|
Author-email:
|
|
7
7
|
Keywords: azure,azure sdk
|
|
8
|
-
Requires-Dist: isodate
|
|
9
|
-
Requires-Dist: azure-core
|
|
8
|
+
Requires-Dist: isodate>=0.6.1
|
|
9
|
+
Requires-Dist: azure-core>=1.30.0
|
|
10
10
|
|
|
11
11
|
IgnosPortal.
|
|
12
12
|
|
{ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/_client.py
RENAMED
|
@@ -20,6 +20,7 @@ from .operations import (
|
|
|
20
20
|
AlertsOperations,
|
|
21
21
|
AssetsOperations,
|
|
22
22
|
AzureRegionsOperations,
|
|
23
|
+
BookingOperations,
|
|
23
24
|
CdfOperations,
|
|
24
25
|
CncFileTransferOperations,
|
|
25
26
|
CncSetupAgentOperations,
|
|
@@ -35,6 +36,7 @@ from .operations import (
|
|
|
35
36
|
ExternalOperations,
|
|
36
37
|
ExternalServicesOperations,
|
|
37
38
|
LinksOperations,
|
|
39
|
+
LocationsOperations,
|
|
38
40
|
MachineAlarmsOperations,
|
|
39
41
|
MachineUtilizationOperations,
|
|
40
42
|
MachinesOperations,
|
|
@@ -58,6 +60,7 @@ from .operations import (
|
|
|
58
60
|
SustainabilityOperations,
|
|
59
61
|
SystemHealthDashboardOperations,
|
|
60
62
|
TraceOperations,
|
|
63
|
+
TrackingOperations,
|
|
61
64
|
UploadOperations,
|
|
62
65
|
UsersOperations,
|
|
63
66
|
WeldingOperations,
|
|
@@ -81,6 +84,8 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
81
84
|
:vartype assets: ignos.api.client.operations.AssetsOperations
|
|
82
85
|
:ivar azure_regions: AzureRegionsOperations operations
|
|
83
86
|
:vartype azure_regions: ignos.api.client.operations.AzureRegionsOperations
|
|
87
|
+
:ivar booking: BookingOperations operations
|
|
88
|
+
:vartype booking: ignos.api.client.operations.BookingOperations
|
|
84
89
|
:ivar cdf: CdfOperations operations
|
|
85
90
|
:vartype cdf: ignos.api.client.operations.CdfOperations
|
|
86
91
|
:ivar cnc_file_transfer: CncFileTransferOperations operations
|
|
@@ -117,6 +122,8 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
117
122
|
:vartype welding: ignos.api.client.operations.WeldingOperations
|
|
118
123
|
:ivar links: LinksOperations operations
|
|
119
124
|
:vartype links: ignos.api.client.operations.LinksOperations
|
|
125
|
+
:ivar locations: LocationsOperations operations
|
|
126
|
+
:vartype locations: ignos.api.client.operations.LocationsOperations
|
|
120
127
|
:ivar machine_alarms: MachineAlarmsOperations operations
|
|
121
128
|
:vartype machine_alarms: ignos.api.client.operations.MachineAlarmsOperations
|
|
122
129
|
:ivar machines: MachinesOperations operations
|
|
@@ -162,6 +169,8 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
162
169
|
:vartype system_health_dashboard: ignos.api.client.operations.SystemHealthDashboardOperations
|
|
163
170
|
:ivar trace: TraceOperations operations
|
|
164
171
|
:vartype trace: ignos.api.client.operations.TraceOperations
|
|
172
|
+
:ivar tracking: TrackingOperations operations
|
|
173
|
+
:vartype tracking: ignos.api.client.operations.TrackingOperations
|
|
165
174
|
:ivar upload: UploadOperations operations
|
|
166
175
|
:vartype upload: ignos.api.client.operations.UploadOperations
|
|
167
176
|
:ivar users: UsersOperations operations
|
|
@@ -207,6 +216,7 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
207
216
|
self.alerts = AlertsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
208
217
|
self.assets = AssetsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
209
218
|
self.azure_regions = AzureRegionsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
219
|
+
self.booking = BookingOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
210
220
|
self.cdf = CdfOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
211
221
|
self.cnc_file_transfer = CncFileTransferOperations(
|
|
212
222
|
self._client, self._config, self._serialize, self._deserialize
|
|
@@ -229,6 +239,7 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
229
239
|
self.electrical = ElectricalOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
230
240
|
self.welding = WeldingOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
231
241
|
self.links = LinksOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
242
|
+
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
232
243
|
self.machine_alarms = MachineAlarmsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
233
244
|
self.machines = MachinesOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
234
245
|
self.machine_utilization = MachineUtilizationOperations(
|
|
@@ -265,6 +276,7 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
265
276
|
self._client, self._config, self._serialize, self._deserialize
|
|
266
277
|
)
|
|
267
278
|
self.trace = TraceOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
279
|
+
self.tracking = TrackingOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
268
280
|
self.upload = UploadOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
269
281
|
self.users = UsersOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
270
282
|
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
@@ -32,7 +32,9 @@ class IgnosPortalConfiguration: # pylint: disable=too-many-instance-attributes
|
|
|
32
32
|
raise ValueError("Parameter 'credential' must not be None.")
|
|
33
33
|
|
|
34
34
|
self.credential = credential
|
|
35
|
-
self.credential_scopes = kwargs.pop(
|
|
35
|
+
self.credential_scopes = kwargs.pop(
|
|
36
|
+
"credential_scopes", ["api://5ce99771-99f7-4716-a828-e24a92b9f118/.default"]
|
|
37
|
+
)
|
|
36
38
|
kwargs.setdefault("sdk_moniker", "ignos-api-client/{}".format(VERSION))
|
|
37
39
|
self.polling_interval = kwargs.get("polling_interval", 30)
|
|
38
40
|
self._configure(**kwargs)
|
|
@@ -47,8 +49,6 @@ class IgnosPortalConfiguration: # pylint: disable=too-many-instance-attributes
|
|
|
47
49
|
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
|
|
48
50
|
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
|
|
49
51
|
self.authentication_policy = kwargs.get("authentication_policy")
|
|
50
|
-
if not self.credential_scopes and not self.authentication_policy:
|
|
51
|
-
raise ValueError("You must provide either credential_scopes or authentication_policy as kwargs")
|
|
52
52
|
if self.credential and not self.authentication_policy:
|
|
53
53
|
self.authentication_policy = policies.BearerTokenCredentialPolicy(
|
|
54
54
|
self.credential, *self.credential_scopes, **kwargs
|
|
@@ -170,13 +170,6 @@ class RawDeserializer:
|
|
|
170
170
|
return None
|
|
171
171
|
|
|
172
172
|
|
|
173
|
-
try:
|
|
174
|
-
basestring # type: ignore
|
|
175
|
-
unicode_str = unicode # type: ignore
|
|
176
|
-
except NameError:
|
|
177
|
-
basestring = str
|
|
178
|
-
unicode_str = str
|
|
179
|
-
|
|
180
173
|
_LOGGER = logging.getLogger(__name__)
|
|
181
174
|
|
|
182
175
|
try:
|
|
@@ -545,7 +538,7 @@ class Serializer(object):
|
|
|
545
538
|
"multiple": lambda x, y: x % y != 0,
|
|
546
539
|
}
|
|
547
540
|
|
|
548
|
-
def __init__(self, classes: Optional[Mapping[str,
|
|
541
|
+
def __init__(self, classes: Optional[Mapping[str, type]] = None):
|
|
549
542
|
self.serialize_type = {
|
|
550
543
|
"iso-8601": Serializer.serialize_iso,
|
|
551
544
|
"rfc-1123": Serializer.serialize_rfc,
|
|
@@ -561,7 +554,7 @@ class Serializer(object):
|
|
|
561
554
|
"[]": self.serialize_iter,
|
|
562
555
|
"{}": self.serialize_dict,
|
|
563
556
|
}
|
|
564
|
-
self.dependencies: Dict[str,
|
|
557
|
+
self.dependencies: Dict[str, type] = dict(classes) if classes else {}
|
|
565
558
|
self.key_transformer = full_restapi_key_transformer
|
|
566
559
|
self.client_side_validation = True
|
|
567
560
|
|
|
@@ -649,7 +642,7 @@ class Serializer(object):
|
|
|
649
642
|
else: # That's a basic type
|
|
650
643
|
# Integrate namespace if necessary
|
|
651
644
|
local_node = _create_xml_node(xml_name, xml_prefix, xml_ns)
|
|
652
|
-
local_node.text =
|
|
645
|
+
local_node.text = str(new_attr)
|
|
653
646
|
serialized.append(local_node) # type: ignore
|
|
654
647
|
else: # JSON
|
|
655
648
|
for k in reversed(keys): # type: ignore
|
|
@@ -994,7 +987,7 @@ class Serializer(object):
|
|
|
994
987
|
return self.serialize_basic(attr, self.basic_types[obj_type], **kwargs)
|
|
995
988
|
if obj_type is _long_type:
|
|
996
989
|
return self.serialize_long(attr)
|
|
997
|
-
if obj_type is
|
|
990
|
+
if obj_type is str:
|
|
998
991
|
return self.serialize_unicode(attr)
|
|
999
992
|
if obj_type is datetime.datetime:
|
|
1000
993
|
return self.serialize_iso(attr)
|
|
@@ -1370,7 +1363,7 @@ class Deserializer(object):
|
|
|
1370
1363
|
|
|
1371
1364
|
valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?")
|
|
1372
1365
|
|
|
1373
|
-
def __init__(self, classes: Optional[Mapping[str,
|
|
1366
|
+
def __init__(self, classes: Optional[Mapping[str, type]] = None):
|
|
1374
1367
|
self.deserialize_type = {
|
|
1375
1368
|
"iso-8601": Deserializer.deserialize_iso,
|
|
1376
1369
|
"rfc-1123": Deserializer.deserialize_rfc,
|
|
@@ -1390,7 +1383,7 @@ class Deserializer(object):
|
|
|
1390
1383
|
"duration": (isodate.Duration, datetime.timedelta),
|
|
1391
1384
|
"iso-8601": (datetime.datetime),
|
|
1392
1385
|
}
|
|
1393
|
-
self.dependencies: Dict[str,
|
|
1386
|
+
self.dependencies: Dict[str, type] = dict(classes) if classes else {}
|
|
1394
1387
|
self.key_extractors = [rest_key_extractor, xml_key_extractor]
|
|
1395
1388
|
# Additional properties only works if the "rest_key_extractor" is used to
|
|
1396
1389
|
# extract the keys. Making it to work whatever the key extractor is too much
|
|
@@ -1443,7 +1436,7 @@ class Deserializer(object):
|
|
|
1443
1436
|
|
|
1444
1437
|
response, class_name = self._classify_target(target_obj, data)
|
|
1445
1438
|
|
|
1446
|
-
if isinstance(response,
|
|
1439
|
+
if isinstance(response, str):
|
|
1447
1440
|
return self.deserialize_data(data, response)
|
|
1448
1441
|
elif isinstance(response, type) and issubclass(response, Enum):
|
|
1449
1442
|
return self.deserialize_enum(data, response)
|
|
@@ -1514,14 +1507,14 @@ class Deserializer(object):
|
|
|
1514
1507
|
if target is None:
|
|
1515
1508
|
return None, None
|
|
1516
1509
|
|
|
1517
|
-
if isinstance(target,
|
|
1510
|
+
if isinstance(target, str):
|
|
1518
1511
|
try:
|
|
1519
1512
|
target = self.dependencies[target]
|
|
1520
1513
|
except KeyError:
|
|
1521
1514
|
return target, target
|
|
1522
1515
|
|
|
1523
1516
|
try:
|
|
1524
|
-
target = target._classify(data, self.dependencies)
|
|
1517
|
+
target = target._classify(data, self.dependencies) # type: ignore
|
|
1525
1518
|
except AttributeError:
|
|
1526
1519
|
pass # Target is not a Model, no classify
|
|
1527
1520
|
return target, target.__class__.__name__ # type: ignore
|
|
@@ -1577,7 +1570,7 @@ class Deserializer(object):
|
|
|
1577
1570
|
if hasattr(raw_data, "_content_consumed"):
|
|
1578
1571
|
return RawDeserializer.deserialize_from_http_generics(raw_data.text, raw_data.headers)
|
|
1579
1572
|
|
|
1580
|
-
if isinstance(raw_data, (
|
|
1573
|
+
if isinstance(raw_data, (str, bytes)) or hasattr(raw_data, "read"):
|
|
1581
1574
|
return RawDeserializer.deserialize_from_text(raw_data, content_type) # type: ignore
|
|
1582
1575
|
return raw_data
|
|
1583
1576
|
|
|
@@ -1699,7 +1692,7 @@ class Deserializer(object):
|
|
|
1699
1692
|
if isinstance(attr, ET.Element):
|
|
1700
1693
|
# Do no recurse on XML, just return the tree as-is
|
|
1701
1694
|
return attr
|
|
1702
|
-
if isinstance(attr,
|
|
1695
|
+
if isinstance(attr, str):
|
|
1703
1696
|
return self.deserialize_basic(attr, "str")
|
|
1704
1697
|
obj_type = type(attr)
|
|
1705
1698
|
if obj_type in self.basic_types:
|
|
@@ -1756,7 +1749,7 @@ class Deserializer(object):
|
|
|
1756
1749
|
if data_type == "bool":
|
|
1757
1750
|
if attr in [True, False, 1, 0]:
|
|
1758
1751
|
return bool(attr)
|
|
1759
|
-
elif isinstance(attr,
|
|
1752
|
+
elif isinstance(attr, str):
|
|
1760
1753
|
if attr.lower() in ["true", "1"]:
|
|
1761
1754
|
return True
|
|
1762
1755
|
elif attr.lower() in ["false", "0"]:
|
{ignos-api-client-2024.2.5.8366 → ignos_api_client-2024.5.28.9351}/ignos/api/client/aio/_client.py
RENAMED
|
@@ -20,6 +20,7 @@ from .operations import (
|
|
|
20
20
|
AlertsOperations,
|
|
21
21
|
AssetsOperations,
|
|
22
22
|
AzureRegionsOperations,
|
|
23
|
+
BookingOperations,
|
|
23
24
|
CdfOperations,
|
|
24
25
|
CncFileTransferOperations,
|
|
25
26
|
CncSetupAgentOperations,
|
|
@@ -35,6 +36,7 @@ from .operations import (
|
|
|
35
36
|
ExternalOperations,
|
|
36
37
|
ExternalServicesOperations,
|
|
37
38
|
LinksOperations,
|
|
39
|
+
LocationsOperations,
|
|
38
40
|
MachineAlarmsOperations,
|
|
39
41
|
MachineUtilizationOperations,
|
|
40
42
|
MachinesOperations,
|
|
@@ -58,6 +60,7 @@ from .operations import (
|
|
|
58
60
|
SustainabilityOperations,
|
|
59
61
|
SystemHealthDashboardOperations,
|
|
60
62
|
TraceOperations,
|
|
63
|
+
TrackingOperations,
|
|
61
64
|
UploadOperations,
|
|
62
65
|
UsersOperations,
|
|
63
66
|
WeldingOperations,
|
|
@@ -81,6 +84,8 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
81
84
|
:vartype assets: ignos.api.client.aio.operations.AssetsOperations
|
|
82
85
|
:ivar azure_regions: AzureRegionsOperations operations
|
|
83
86
|
:vartype azure_regions: ignos.api.client.aio.operations.AzureRegionsOperations
|
|
87
|
+
:ivar booking: BookingOperations operations
|
|
88
|
+
:vartype booking: ignos.api.client.aio.operations.BookingOperations
|
|
84
89
|
:ivar cdf: CdfOperations operations
|
|
85
90
|
:vartype cdf: ignos.api.client.aio.operations.CdfOperations
|
|
86
91
|
:ivar cnc_file_transfer: CncFileTransferOperations operations
|
|
@@ -117,6 +122,8 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
117
122
|
:vartype welding: ignos.api.client.aio.operations.WeldingOperations
|
|
118
123
|
:ivar links: LinksOperations operations
|
|
119
124
|
:vartype links: ignos.api.client.aio.operations.LinksOperations
|
|
125
|
+
:ivar locations: LocationsOperations operations
|
|
126
|
+
:vartype locations: ignos.api.client.aio.operations.LocationsOperations
|
|
120
127
|
:ivar machine_alarms: MachineAlarmsOperations operations
|
|
121
128
|
:vartype machine_alarms: ignos.api.client.aio.operations.MachineAlarmsOperations
|
|
122
129
|
:ivar machines: MachinesOperations operations
|
|
@@ -165,6 +172,8 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
165
172
|
ignos.api.client.aio.operations.SystemHealthDashboardOperations
|
|
166
173
|
:ivar trace: TraceOperations operations
|
|
167
174
|
:vartype trace: ignos.api.client.aio.operations.TraceOperations
|
|
175
|
+
:ivar tracking: TrackingOperations operations
|
|
176
|
+
:vartype tracking: ignos.api.client.aio.operations.TrackingOperations
|
|
168
177
|
:ivar upload: UploadOperations operations
|
|
169
178
|
:vartype upload: ignos.api.client.aio.operations.UploadOperations
|
|
170
179
|
:ivar users: UsersOperations operations
|
|
@@ -210,6 +219,7 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
210
219
|
self.alerts = AlertsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
211
220
|
self.assets = AssetsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
212
221
|
self.azure_regions = AzureRegionsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
222
|
+
self.booking = BookingOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
213
223
|
self.cdf = CdfOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
214
224
|
self.cnc_file_transfer = CncFileTransferOperations(
|
|
215
225
|
self._client, self._config, self._serialize, self._deserialize
|
|
@@ -232,6 +242,7 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
232
242
|
self.electrical = ElectricalOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
233
243
|
self.welding = WeldingOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
234
244
|
self.links = LinksOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
245
|
+
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
235
246
|
self.machine_alarms = MachineAlarmsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
236
247
|
self.machines = MachinesOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
237
248
|
self.machine_utilization = MachineUtilizationOperations(
|
|
@@ -268,6 +279,7 @@ class IgnosPortal: # pylint: disable=client-accepts-api-version-keyword,too-man
|
|
|
268
279
|
self._client, self._config, self._serialize, self._deserialize
|
|
269
280
|
)
|
|
270
281
|
self.trace = TraceOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
282
|
+
self.tracking = TrackingOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
271
283
|
self.upload = UploadOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
272
284
|
self.users = UsersOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
273
285
|
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
@@ -32,7 +32,9 @@ class IgnosPortalConfiguration: # pylint: disable=too-many-instance-attributes
|
|
|
32
32
|
raise ValueError("Parameter 'credential' must not be None.")
|
|
33
33
|
|
|
34
34
|
self.credential = credential
|
|
35
|
-
self.credential_scopes = kwargs.pop(
|
|
35
|
+
self.credential_scopes = kwargs.pop(
|
|
36
|
+
"credential_scopes", ["api://5ce99771-99f7-4716-a828-e24a92b9f118/.default"]
|
|
37
|
+
)
|
|
36
38
|
kwargs.setdefault("sdk_moniker", "ignos-api-client/{}".format(VERSION))
|
|
37
39
|
self.polling_interval = kwargs.get("polling_interval", 30)
|
|
38
40
|
self._configure(**kwargs)
|
|
@@ -47,8 +49,6 @@ class IgnosPortalConfiguration: # pylint: disable=too-many-instance-attributes
|
|
|
47
49
|
self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs)
|
|
48
50
|
self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs)
|
|
49
51
|
self.authentication_policy = kwargs.get("authentication_policy")
|
|
50
|
-
if not self.credential_scopes and not self.authentication_policy:
|
|
51
|
-
raise ValueError("You must provide either credential_scopes or authentication_policy as kwargs")
|
|
52
52
|
if self.credential and not self.authentication_policy:
|
|
53
53
|
self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(
|
|
54
54
|
self.credential, *self.credential_scopes, **kwargs
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
from ._operations import AlertsOperations
|
|
10
10
|
from ._operations import AssetsOperations
|
|
11
11
|
from ._operations import AzureRegionsOperations
|
|
12
|
+
from ._operations import BookingOperations
|
|
12
13
|
from ._operations import CdfOperations
|
|
13
14
|
from ._operations import CncFileTransferOperations
|
|
14
15
|
from ._operations import CncSetupOperations
|
|
@@ -27,6 +28,7 @@ from ._operations import ExternalServicesOperations
|
|
|
27
28
|
from ._operations import ElectricalOperations
|
|
28
29
|
from ._operations import WeldingOperations
|
|
29
30
|
from ._operations import LinksOperations
|
|
31
|
+
from ._operations import LocationsOperations
|
|
30
32
|
from ._operations import MachineAlarmsOperations
|
|
31
33
|
from ._operations import MachinesOperations
|
|
32
34
|
from ._operations import MachineUtilizationOperations
|
|
@@ -49,6 +51,7 @@ from ._operations import SuppliersOperations
|
|
|
49
51
|
from ._operations import SustainabilityOperations
|
|
50
52
|
from ._operations import SystemHealthDashboardOperations
|
|
51
53
|
from ._operations import TraceOperations
|
|
54
|
+
from ._operations import TrackingOperations
|
|
52
55
|
from ._operations import UploadOperations
|
|
53
56
|
from ._operations import UsersOperations
|
|
54
57
|
from ._operations import WorkspacesOperations
|
|
@@ -63,6 +66,7 @@ __all__ = [
|
|
|
63
66
|
"AlertsOperations",
|
|
64
67
|
"AssetsOperations",
|
|
65
68
|
"AzureRegionsOperations",
|
|
69
|
+
"BookingOperations",
|
|
66
70
|
"CdfOperations",
|
|
67
71
|
"CncFileTransferOperations",
|
|
68
72
|
"CncSetupOperations",
|
|
@@ -81,6 +85,7 @@ __all__ = [
|
|
|
81
85
|
"ElectricalOperations",
|
|
82
86
|
"WeldingOperations",
|
|
83
87
|
"LinksOperations",
|
|
88
|
+
"LocationsOperations",
|
|
84
89
|
"MachineAlarmsOperations",
|
|
85
90
|
"MachinesOperations",
|
|
86
91
|
"MachineUtilizationOperations",
|
|
@@ -103,6 +108,7 @@ __all__ = [
|
|
|
103
108
|
"SustainabilityOperations",
|
|
104
109
|
"SystemHealthDashboardOperations",
|
|
105
110
|
"TraceOperations",
|
|
111
|
+
"TrackingOperations",
|
|
106
112
|
"UploadOperations",
|
|
107
113
|
"UsersOperations",
|
|
108
114
|
"WorkspacesOperations",
|