skipcheck-tm1 0.1.0.dev0__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 (69) hide show
  1. skipcheck_tm1/__init__.py +89 -0
  2. skipcheck_tm1/_calls.py +267 -0
  3. skipcheck_tm1/_compat.py +71 -0
  4. skipcheck_tm1/_generated/__init__.py +4 -0
  5. skipcheck_tm1/_generated/aio_api.py +4659 -0
  6. skipcheck_tm1/_generated/api.py +4659 -0
  7. skipcheck_tm1/_generated/index.py +605 -0
  8. skipcheck_tm1/_generated/model.py +5204 -0
  9. skipcheck_tm1/_generated/operations.py +127 -0
  10. skipcheck_tm1/_generated/patches.py +3814 -0
  11. skipcheck_tm1/_protocol.py +285 -0
  12. skipcheck_tm1/_resource_base.py +63 -0
  13. skipcheck_tm1/_sync/__init__.py +26 -0
  14. skipcheck_tm1/_sync/client.py +397 -0
  15. skipcheck_tm1/_sync/cognos.py +104 -0
  16. skipcheck_tm1/_sync/pool.py +295 -0
  17. skipcheck_tm1/_sync/resources.py +125 -0
  18. skipcheck_tm1/_sync/services/__init__.py +71 -0
  19. skipcheck_tm1/_sync/services/_base.py +34 -0
  20. skipcheck_tm1/_sync/services/annotation.py +186 -0
  21. skipcheck_tm1/_sync/services/attribute.py +143 -0
  22. skipcheck_tm1/_sync/services/content.py +175 -0
  23. skipcheck_tm1/_sync/services/cube.py +327 -0
  24. skipcheck_tm1/_sync/services/data.py +804 -0
  25. skipcheck_tm1/_sync/services/dimension.py +903 -0
  26. skipcheck_tm1/_sync/services/encryption.py +145 -0
  27. skipcheck_tm1/_sync/services/git.py +205 -0
  28. skipcheck_tm1/_sync/services/process.py +631 -0
  29. skipcheck_tm1/_sync/services/security.py +299 -0
  30. skipcheck_tm1/_sync/services/server.py +255 -0
  31. skipcheck_tm1/_sync/session.py +839 -0
  32. skipcheck_tm1/_views.py +89 -0
  33. skipcheck_tm1/aio/__init__.py +25 -0
  34. skipcheck_tm1/aio/client.py +396 -0
  35. skipcheck_tm1/aio/cognos.py +103 -0
  36. skipcheck_tm1/aio/pool.py +294 -0
  37. skipcheck_tm1/aio/resources.py +124 -0
  38. skipcheck_tm1/aio/services/__init__.py +70 -0
  39. skipcheck_tm1/aio/services/_base.py +33 -0
  40. skipcheck_tm1/aio/services/annotation.py +185 -0
  41. skipcheck_tm1/aio/services/attribute.py +142 -0
  42. skipcheck_tm1/aio/services/content.py +174 -0
  43. skipcheck_tm1/aio/services/cube.py +326 -0
  44. skipcheck_tm1/aio/services/data.py +803 -0
  45. skipcheck_tm1/aio/services/dimension.py +902 -0
  46. skipcheck_tm1/aio/services/encryption.py +144 -0
  47. skipcheck_tm1/aio/services/git.py +204 -0
  48. skipcheck_tm1/aio/services/process.py +630 -0
  49. skipcheck_tm1/aio/services/security.py +298 -0
  50. skipcheck_tm1/aio/services/server.py +254 -0
  51. skipcheck_tm1/aio/session.py +838 -0
  52. skipcheck_tm1/auth.py +119 -0
  53. skipcheck_tm1/base.py +269 -0
  54. skipcheck_tm1/client.py +5 -0
  55. skipcheck_tm1/errors.py +405 -0
  56. skipcheck_tm1/identity.py +114 -0
  57. skipcheck_tm1/model.py +7 -0
  58. skipcheck_tm1/odata.py +837 -0
  59. skipcheck_tm1/operation.py +74 -0
  60. skipcheck_tm1/request.py +252 -0
  61. skipcheck_tm1/resources.py +17 -0
  62. skipcheck_tm1/services.py +4 -0
  63. skipcheck_tm1/session.py +6 -0
  64. skipcheck_tm1/timeouts.py +91 -0
  65. skipcheck_tm1/values.py +429 -0
  66. skipcheck_tm1/version.py +369 -0
  67. skipcheck_tm1-0.1.0.dev0.dist-info/METADATA +101 -0
  68. skipcheck_tm1-0.1.0.dev0.dist-info/RECORD +69 -0
  69. skipcheck_tm1-0.1.0.dev0.dist-info/WHEEL +4 -0
@@ -0,0 +1,4659 @@
1
+ """The TM1 REST API (schema 11.8.35) as asyncio resources, generated from
2
+ spec/tm1-api.json by tm1_pygen: don't edit.
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ from datetime import date, datetime, time, timedelta
8
+ from decimal import Decimal
9
+ from typing import Any
10
+ from uuid import UUID
11
+
12
+ from ..aio import resources as _r
13
+ from ..odata import Bind, ODataPath, ODataQuery
14
+ from ..resources import endpoint
15
+ from ..aio.session import AsyncTm1Session as Tm1Session
16
+ from . import model as m
17
+
18
+ __all__ = ["Tm1Api"]
19
+
20
+
21
+ class AnnotationEntity(_r.EntityResource[m.Annotation]):
22
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Annotation`: ``get``, ``update``,
23
+ ``delete``, its navigation properties and bound operations.
24
+ """
25
+
26
+ model = m.Annotation
27
+
28
+ @property
29
+ @endpoint('Navigation Annotation/ApplicationContext')
30
+ def application_context(self) -> ApplicationContextFacetValueCollection:
31
+ """``…/ApplicationContext``: the collection (a reference: read through here, change through
32
+ its own collection).
33
+
34
+ An interface to the collection of configuration information for the annotation.
35
+
36
+ Endpoint ``Navigation Annotation/ApplicationContext``.
37
+ """
38
+ return ApplicationContextFacetValueCollection(self._session, self._path.nav('ApplicationContext'), contained=False)
39
+
40
+ @property
41
+ @endpoint('Navigation Annotation/DimensionalContext')
42
+ def dimensional_context(self) -> MemberCollection:
43
+ """``…/DimensionalContext``: the collection (a reference: read through here, change through
44
+ its own collection).
45
+
46
+ An interface to the collection of dimensions for the annotation.
47
+
48
+ Endpoint ``Navigation Annotation/DimensionalContext``.
49
+ """
50
+ return MemberCollection(self._session, self._path.nav('DimensionalContext'), contained=False)
51
+
52
+ @property
53
+ @endpoint('Navigation Annotation/Attachments')
54
+ def attachments(self) -> AttachmentCollection:
55
+ """``…/Attachments``: the collection (contained).
56
+
57
+ Attached documents that provide details and background.
58
+
59
+ Endpoint ``Navigation Annotation/Attachments``.
60
+ """
61
+ return AttachmentCollection(self._session, self._path.nav('Attachments'), contained=True)
62
+
63
+
64
+ class ApplicationContextFacetEntity(_r.EntityResource[m.ApplicationContextFacet]):
65
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ApplicationContextFacet`: ``get``,
66
+ ``update``, ``delete``, its navigation properties and bound operations.
67
+ """
68
+
69
+ model = m.ApplicationContextFacet
70
+
71
+ @property
72
+ @endpoint('Navigation ApplicationContextFacet/Values')
73
+ def values(self) -> ApplicationContextFacetValueCollection:
74
+ """``…/Values``: the collection (contained).
75
+
76
+ The value of the application context facet, see ApplicationContextFacetValue.
77
+
78
+ Endpoint ``Navigation ApplicationContextFacet/Values``.
79
+ """
80
+ return ApplicationContextFacetValueCollection(self._session, self._path.nav('Values'), contained=True)
81
+
82
+
83
+ class ApplicationContextFacetValueEntity(_r.EntityResource[m.ApplicationContextFacetValue]):
84
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ApplicationContextFacetValue`:
85
+ ``get``, ``update``, ``delete``, its navigation properties and bound operations.
86
+ """
87
+
88
+ model = m.ApplicationContextFacetValue
89
+
90
+ @property
91
+ @endpoint('Navigation ApplicationContextFacetValue/Facet')
92
+ def facet(self) -> ApplicationContextFacetEntity:
93
+ """``…/Facet``: the entity (a reference: read through here, change through its own
94
+ collection).
95
+
96
+ The description of the application context facet value, see also
97
+ ApplicationContextFacet.
98
+
99
+ Endpoint ``Navigation ApplicationContextFacetValue/Facet``.
100
+ """
101
+ return ApplicationContextFacetEntity(self._session, self._path.nav('Facet'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
102
+
103
+
104
+ class AttachmentEntity(_r.EntityResource[m.Attachment]):
105
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Attachment`: ``get``, ``update``,
106
+ ``delete``, its navigation properties and bound operations.
107
+ """
108
+
109
+ model = m.Attachment
110
+
111
+ async def read_media(self) -> bytes:
112
+ """``GET …/$value``: the entity's media content."""
113
+ return await self._read_stream(None)
114
+
115
+ async def write_media(self, data: bytes, content_type: str = "application/octet-stream") -> None:
116
+ """``PUT …/$value``: replaces the entity's media content."""
117
+ await self._write_stream(None, data, content_type)
118
+
119
+
120
+ class AttributeDefinitionEntity(_r.EntityResource[m.AttributeDefinition]):
121
+ """An entity of type :class:`~skipcheck_tm1._generated.model.AttributeDefinition`: ``get``,
122
+ ``update``, ``delete``, its navigation properties and bound operations.
123
+ """
124
+
125
+ model = m.AttributeDefinition
126
+
127
+
128
+ class AuditDetailEntity(_r.EntityResource[m.AuditDetail]):
129
+ """An entity of type :class:`~skipcheck_tm1._generated.model.AuditDetail`: ``get``, ``update``,
130
+ ``delete``, its navigation properties and bound operations.
131
+ """
132
+
133
+ model = m.AuditDetail
134
+
135
+
136
+ class AuditLogEntryEntity(_r.EntityResource[m.AuditLogEntry]):
137
+ """An entity of type :class:`~skipcheck_tm1._generated.model.AuditLogEntry`: ``get``,
138
+ ``update``, ``delete``, its navigation properties and bound operations.
139
+ """
140
+
141
+ model = m.AuditLogEntry
142
+
143
+ @property
144
+ @endpoint('Navigation AuditLogEntry/AuditDetails')
145
+ def audit_details(self) -> AuditDetailCollection:
146
+ """``…/AuditDetails``: the collection (a reference: read through here, change through its
147
+ own collection).
148
+
149
+ The collection of audit detail entries that are contained by this audit log entry.
150
+
151
+ Endpoint ``Navigation AuditLogEntry/AuditDetails``.
152
+ """
153
+ return AuditDetailCollection(self._session, self._path.nav('AuditDetails'), contained=False)
154
+
155
+
156
+ class CellsetEntity(_r.EntityResource[m.Cellset]):
157
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Cellset`: ``get``, ``update``,
158
+ ``delete``, its navigation properties and bound operations.
159
+ """
160
+
161
+ model = m.Cellset
162
+
163
+ @property
164
+ @endpoint('Navigation Cellset/Cube')
165
+ def cube(self) -> CubeEntity:
166
+ """``…/Cube``: the entity (a reference: read through here, change through its own
167
+ collection).
168
+
169
+ The contents of the cellset.
170
+
171
+ Endpoint ``Navigation Cellset/Cube``.
172
+ """
173
+ return CubeEntity(self._session, self._path.nav('Cube'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
174
+
175
+ @property
176
+ @endpoint('Navigation Cellset/Axes')
177
+ def axes(self) -> CellsetAxisCollection:
178
+ """``…/Axes``: the collection (contained).
179
+
180
+ A collection of axes for the cellset.
181
+
182
+ Endpoint ``Navigation Cellset/Axes``.
183
+ """
184
+ return CellsetAxisCollection(self._session, self._path.nav('Axes'), contained=True)
185
+
186
+ @property
187
+ @endpoint('Navigation Cellset/Cells')
188
+ def cells(self) -> CellsetCellCollection:
189
+ """``…/Cells``: the collection (contained).
190
+
191
+ Individual cell value that makes up part of the cellset.
192
+
193
+ Endpoint ``Navigation Cellset/Cells``.
194
+ """
195
+ return CellsetCellCollection(self._session, self._path.nav('Cells'), contained=True)
196
+
197
+ @endpoint('Action Cellset/SaveViewAs')
198
+ async def save_view_as(self, *, name: str, overwrite: bool | None = _r.UNSET, make_private: bool | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.View | None:
199
+ """``POST …/tm1.SaveViewAs``: the action.
200
+
201
+ Saves a view.
202
+
203
+ Since TM1 schema 11.0.0.
204
+
205
+ Endpoint ``Action Cellset/SaveViewAs``.
206
+
207
+ Parameters (left out when not passed; ``None`` sends ``null``):
208
+
209
+ * ``name`` (``Name``, ``Edm.String``): The name to save the view as.
210
+
211
+ * ``overwrite`` (``Overwrite``, ``Edm.Boolean``): A Boolean that indicates whether to
212
+ overwrite the view that was passed in if it already exists.
213
+
214
+ * ``make_private`` (``MakePrivate``, ``Edm.Boolean``): A Boolean that indicates whether
215
+ to save this view as private.
216
+ """
217
+ return await self._action('tm1.SaveViewAs', {'Name': name, 'Overwrite': overwrite, 'MakePrivate': make_private}, _r.Returns(m.View, structured=True), _r.query_of(query, options), 'Action Cellset/SaveViewAs')
218
+
219
+ @endpoint('Action Cellset/Update')
220
+ async def update_action(self, *, begin_ordinal: int, end_ordinal: int | None = _r.UNSET, reference_cube: m.Cube | Bind | None = _r.UNSET, reference_cell: list[m.Element | Bind] | None = _r.UNSET, value: Any | None = _r.UNSET) -> None:
221
+ """``POST …/tm1.Update``: the action.
222
+
223
+ Applies updates to a cell, or a range of cells, depending on the value of the parameters
224
+ provided.
225
+
226
+ TM1 (11.8): writes only ``BeginOrdinal``'s cell.
227
+
228
+ Endpoint ``Action Cellset/Update``.
229
+
230
+ Parameters (left out when not passed; ``None`` sends ``null``):
231
+
232
+ * ``begin_ordinal`` (``BeginOrdinal``, ``Edm.Int64``): Specifies the cell to update if
233
+ updating a single cell, or the beginning of the range if updating more than one cell.
234
+
235
+ * ``end_ordinal`` (``EndOrdinal``, ``Edm.Int64``): The last cell position when updating
236
+ a range of cells.
237
+
238
+ * ``reference_cube`` (``ReferenceCube``, ``ibm.tm1.api.v1.Cube``): The cube from which
239
+ the data for the ReferenceCell is sourced.
240
+
241
+ * ``reference_cell`` (``ReferenceCell``, ``Collection(ibm.tm1.api.v1.Element)``): The
242
+ cell, or slice, containing the source data required by the spreading command.
243
+
244
+ * ``value`` (``Value``, ``Edm.PrimitiveType``): The numeric value, string value,
245
+ spreading command or null value with which the cell is updated.
246
+ """
247
+ return await self._action('tm1.Update', {'BeginOrdinal': begin_ordinal, 'EndOrdinal': end_ordinal, 'ReferenceCube': reference_cube, 'ReferenceCell': reference_cell, 'Value': value}, _r.Returns(), None, 'Action Cellset/Update')
248
+
249
+ @endpoint('Action Cellset/UpdateCells')
250
+ async def update_cells(self, *, updates: list[m.CellsetUpdate] | None = _r.UNSET, order: m.UpdateOrder | None = _r.UNSET) -> None:
251
+ """``POST …/tm1.UpdateCells``: the action.
252
+
253
+ Applies updates to cells in a cellset.
254
+
255
+ Since TM1 schema 11.0.0.
256
+
257
+ Endpoint ``Action Cellset/UpdateCells``.
258
+
259
+ Parameters (left out when not passed; ``None`` sends ``null``):
260
+
261
+ * ``updates`` (``Updates``, ``Collection(ibm.tm1.api.v1.CellsetUpdate)``): Specifies the
262
+ cells to update and the values with which to update the cells.
263
+
264
+ * ``order`` (``Order``, ``ibm.tm1.api.v1.UpdateOrder``): The update order to use.
265
+ Specify 0 for no ordering.
266
+ """
267
+ return await self._action('tm1.UpdateCells', {'Updates': updates, 'Order': order}, _r.Returns(), None, 'Action Cellset/UpdateCells')
268
+
269
+ @endpoint('Function Cellset/GetPartition')
270
+ async def get_partition(self, *, begin: int | None = _r.UNSET, end: int | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> list[m.CellsetCell]:
271
+ """``GET …/tm1.GetPartition``: the function.
272
+
273
+ Retrieves the cells of a cellset in multiple partitions.
274
+
275
+ This allows the application to manage processing of the area of the partition based on a
276
+ defined boundary.
277
+
278
+ Since TM1 schema 10.2.2.3.
279
+
280
+ Endpoint ``Function Cellset/GetPartition``.
281
+
282
+ Parameters (left out when not passed; ``None`` sends ``null``):
283
+
284
+ * ``begin`` (``Begin``, ``Edm.Int64``): Defines the cell ordinal of the left or right
285
+ corner of the closest rectangular area of your cellset.
286
+
287
+ * ``end`` (``End``, ``Edm.Int64``): Defines the cell ordinal of the other edge of the
288
+ closest rectangular area of your cellset.
289
+ """
290
+ return await self._function('tm1.GetPartition', {'Begin': begin, 'End': end}, _r.Returns(m.CellsetCell, collection=True, structured=True), _r.query_of(query, options), 'Function Cellset/GetPartition')
291
+
292
+
293
+ class CellsetAxisEntity(_r.EntityResource[m.CellsetAxis]):
294
+ """An entity of type :class:`~skipcheck_tm1._generated.model.CellsetAxis`: ``get``, ``update``,
295
+ ``delete``, its navigation properties and bound operations.
296
+ """
297
+
298
+ model = m.CellsetAxis
299
+
300
+ @property
301
+ @endpoint('Navigation CellsetAxis/Hierarchies')
302
+ def hierarchies(self) -> HierarchyCollection:
303
+ """``…/Hierarchies``: the collection (a reference: read through here, change through its
304
+ own collection).
305
+
306
+ A collection of hierarchies for this cellset axis.
307
+
308
+ Endpoint ``Navigation CellsetAxis/Hierarchies``.
309
+ """
310
+ return HierarchyCollection(self._session, self._path.nav('Hierarchies'), contained=False)
311
+
312
+ @property
313
+ @endpoint('Navigation CellsetAxis/Tuples')
314
+ def tuples(self) -> CellsetAxisTupleCollection:
315
+ """``…/Tuples``: the collection (contained).
316
+
317
+ A collection of tuples for this cellset axis.
318
+
319
+ Endpoint ``Navigation CellsetAxis/Tuples``.
320
+ """
321
+ return CellsetAxisTupleCollection(self._session, self._path.nav('Tuples'), contained=True)
322
+
323
+
324
+ class CellsetAxisTupleEntity(_r.EntityResource[m.CellsetAxisTuple]):
325
+ """An entity of type :class:`~skipcheck_tm1._generated.model.CellsetAxisTuple`: ``get``,
326
+ ``update``, ``delete``, its navigation properties and bound operations.
327
+ """
328
+
329
+ model = m.CellsetAxisTuple
330
+
331
+ @property
332
+ @endpoint('Navigation CellsetAxisTuple/Members')
333
+ def members(self) -> TupleMemberCollection:
334
+ """``…/Members``: the collection (a reference: read through here, change through its own
335
+ collection).
336
+
337
+ A collection of members that make up this cellset axis.
338
+
339
+ Endpoint ``Navigation CellsetAxisTuple/Members``.
340
+ """
341
+ return TupleMemberCollection(self._session, self._path.nav('Members'), contained=False)
342
+
343
+
344
+ class CellsetCellEntity(_r.EntityResource[m.CellsetCell]):
345
+ """An entity of type :class:`~skipcheck_tm1._generated.model.CellsetCell`: ``get``, ``update``,
346
+ ``delete``, its navigation properties and bound operations.
347
+ """
348
+
349
+ model = m.CellsetCell
350
+
351
+ @property
352
+ @endpoint('Navigation CellsetCell/DrillthroughScripts')
353
+ def drillthrough_scripts(self) -> DrillthroughCollection:
354
+ """``…/DrillthroughScripts``: the collection (a reference: read through here, change
355
+ through its own collection).
356
+
357
+ The collection of drill throughs.
358
+
359
+ Since TM1 schema 10.2.2.6.
360
+
361
+ Endpoint ``Navigation CellsetCell/DrillthroughScripts``.
362
+ """
363
+ return DrillthroughCollection(self._session, self._path.nav('DrillthroughScripts'), contained=False)
364
+
365
+ @property
366
+ @endpoint('Navigation CellsetCell/Members')
367
+ def members(self) -> MemberCollection:
368
+ """``…/Members``: the collection (a reference: read through here, change through its own
369
+ collection).
370
+
371
+ A collection of all members that represent the location, the tuple if you will, of this
372
+ cell in the cube. Using the cellset's Cells property and expending this Members property
373
+ effectively returns the flattened cellset.
374
+
375
+ Since TM1 schema 10.2.2.7.
376
+
377
+ Endpoint ``Navigation CellsetCell/Members``.
378
+ """
379
+ return MemberCollection(self._session, self._path.nav('Members'), contained=False)
380
+
381
+ @property
382
+ @endpoint('Navigation CellsetCell/Annotations')
383
+ def annotations(self) -> AnnotationCollection:
384
+ """``…/Annotations``: the collection (a reference: read through here, change through its
385
+ own collection).
386
+
387
+ The collection of annotations associated to this cell.
388
+
389
+ Since TM1 schema 11.8.19.
390
+
391
+ Endpoint ``Navigation CellsetCell/Annotations``.
392
+ """
393
+ return AnnotationCollection(self._session, self._path.nav('Annotations'), contained=False)
394
+
395
+
396
+ class ChoreEntity(_r.EntityResource[m.Chore]):
397
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Chore`: ``get``, ``update``,
398
+ ``delete``, its navigation properties and bound operations.
399
+ """
400
+
401
+ model = m.Chore
402
+
403
+ @property
404
+ @endpoint('Navigation Chore/LocalizedAttributes')
405
+ def localized_attributes(self) -> LocalizedAttributesCollection:
406
+ """``…/LocalizedAttributes``: the collection (contained).
407
+
408
+ Translated string values for properties of the chore.
409
+
410
+ Endpoint ``Navigation Chore/LocalizedAttributes``.
411
+ """
412
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
413
+
414
+ @property
415
+ @endpoint('Navigation Chore/Tasks')
416
+ def tasks(self) -> ChoreTaskCollection:
417
+ """``…/Tasks``: the collection (contained).
418
+
419
+ A collection of tasks that make up the chore.
420
+
421
+ Endpoint ``Navigation Chore/Tasks``.
422
+ """
423
+ return ChoreTaskCollection(self._session, self._path.nav('Tasks'), contained=True)
424
+
425
+ @endpoint('Action Chore/Activate')
426
+ async def activate(self) -> None:
427
+ """``POST …/tm1.Activate``: the action.
428
+
429
+ Activates a chore.
430
+
431
+ Since TM1 schema 10.2.2.1.
432
+
433
+ .. deprecated:: 11.8.3 Please patch the 'Active' property of the chore to activate or
434
+ deactivate the chore.
435
+
436
+ Endpoint ``Action Chore/Activate``.
437
+ """
438
+ return await self._action('tm1.Activate', {}, _r.Returns(), None, 'Action Chore/Activate')
439
+
440
+ @endpoint('Action Chore/Deactivate')
441
+ async def deactivate(self) -> None:
442
+ """``POST …/tm1.Deactivate``: the action.
443
+
444
+ Deactivates a chore.
445
+
446
+ Since TM1 schema 10.2.2.1.
447
+
448
+ .. deprecated:: 11.8.3 Please patch the 'Active' property of the chore to activate or
449
+ deactivate the chore.
450
+
451
+ Endpoint ``Action Chore/Deactivate``.
452
+ """
453
+ return await self._action('tm1.Deactivate', {}, _r.Returns(), None, 'Action Chore/Deactivate')
454
+
455
+ @endpoint('Action Chore/Execute')
456
+ async def execute(self) -> None:
457
+ """``POST …/tm1.Execute``: the action.
458
+
459
+ Executes a chore.
460
+
461
+ Since TM1 schema 10.2.2.2.
462
+
463
+ Endpoint ``Action Chore/Execute``.
464
+ """
465
+ return await self._action('tm1.Execute', {}, _r.Returns(), None, 'Action Chore/Execute')
466
+
467
+ @endpoint('Action Chore/SetServerLocalStartTime')
468
+ async def set_server_local_start_time(self, *, start_date: date, start_time: time) -> None:
469
+ """``POST …/tm1.SetServerLocalStartTime``: the action.
470
+
471
+ Sets the local start time for a server.
472
+
473
+ Since TM1 schema 10.2.2.1.
474
+
475
+ .. deprecated:: 11.8.3 Please patch the 'StartTime' property of the chore to set the
476
+ start time for the chore.
477
+
478
+ Endpoint ``Action Chore/SetServerLocalStartTime``.
479
+
480
+ Parameters (left out when not passed; ``None`` sends ``null``):
481
+
482
+ * ``start_date`` (``StartDate``, ``Edm.Date``): The start date to set for this chore.
483
+
484
+ * ``start_time`` (``StartTime``, ``Edm.TimeOfDay``): The start time to set for this
485
+ chore.
486
+ """
487
+ return await self._action('tm1.SetServerLocalStartTime', {'StartDate': start_date, 'StartTime': start_time}, _r.Returns(), None, 'Action Chore/SetServerLocalStartTime')
488
+
489
+
490
+ class ChoreTaskEntity(_r.EntityResource[m.ChoreTask]):
491
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ChoreTask`: ``get``, ``update``,
492
+ ``delete``, its navigation properties and bound operations.
493
+ """
494
+
495
+ model = m.ChoreTask
496
+
497
+ @property
498
+ @endpoint('Navigation ChoreTask/Process')
499
+ def process(self) -> ProcessEntity:
500
+ """``…/Process``: the entity (a reference: read through here, change through its own
501
+ collection).
502
+
503
+ The process completed in the task.
504
+
505
+ Endpoint ``Navigation ChoreTask/Process``.
506
+ """
507
+ return ProcessEntity(self._session, self._path.nav('Process'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
508
+
509
+ @property
510
+ @endpoint('Navigation ChoreTask/Chore')
511
+ def chore(self) -> ChoreEntity:
512
+ """``…/Chore``: the entity (a reference: read through here, change through its own
513
+ collection).
514
+
515
+ The Chore that the task belongs to.
516
+
517
+ .. deprecated:: 11.4.0
518
+
519
+ Endpoint ``Navigation ChoreTask/Chore``.
520
+ """
521
+ return ChoreEntity(self._session, self._path.nav('Chore'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
522
+
523
+
524
+ class ConfigurationEntity(_r.EntityResource[m.Configuration]):
525
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Configuration`: ``get``,
526
+ ``update``, ``delete``, its navigation properties and bound operations.
527
+ """
528
+
529
+ model = m.Configuration
530
+
531
+
532
+ class CubeEntity(_r.EntityResource[m.Cube]):
533
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Cube`: ``get``, ``update``,
534
+ ``delete``, its navigation properties and bound operations.
535
+ """
536
+
537
+ model = m.Cube
538
+
539
+ @property
540
+ @endpoint('Navigation Cube/Dimensions')
541
+ def dimensions(self) -> DimensionCollection:
542
+ """``…/Dimensions``: the collection (a reference: read through here, change through its own
543
+ collection).
544
+
545
+ Represents dimensions that perform calculations, control labels, and format data entry.
546
+
547
+ Endpoint ``Navigation Cube/Dimensions``.
548
+ """
549
+ return DimensionCollection(self._session, self._path.nav('Dimensions'), contained=False)
550
+
551
+ @property
552
+ @endpoint('Navigation Cube/Views')
553
+ def views(self) -> ViewCollection:
554
+ """``…/Views``: the collection (contained).
555
+
556
+ Represents a View object on the TM1 Server.
557
+
558
+ A View is a child object of a Cube. You can retrieve a list of available Views, or find
559
+ a specific View using the appropriate methods in the Cube class. View objects can be
560
+ queried for information (such as name or subsets) or changed. Executing a View results
561
+ in a Cellset object, which can be used to read the actual cell data.
562
+
563
+ Endpoint ``Navigation Cube/Views``.
564
+ """
565
+ return ViewCollection(self._session, self._path.nav('Views'), contained=True)
566
+
567
+ @property
568
+ @endpoint('Navigation Cube/ViewAttributes')
569
+ def view_attributes(self) -> AttributeDefinitionCollection:
570
+ """``…/ViewAttributes``: the collection (contained).
571
+
572
+ Specific attributes for each View object of the cube.
573
+
574
+ Endpoint ``Navigation Cube/ViewAttributes``.
575
+ """
576
+ return AttributeDefinitionCollection(self._session, self._path.nav('ViewAttributes'), contained=True)
577
+
578
+ @property
579
+ @endpoint('Navigation Cube/PrivateViews')
580
+ def private_views(self) -> ViewCollection:
581
+ """``…/PrivateViews``: the collection (contained).
582
+
583
+ Private views are accessible only by the user who registered them.
584
+
585
+ A private registered view is a named object. It persists after the termination of a
586
+ client session.
587
+
588
+ Endpoint ``Navigation Cube/PrivateViews``.
589
+ """
590
+ return ViewCollection(self._session, self._path.nav('PrivateViews'), contained=True)
591
+
592
+ @property
593
+ @endpoint('Navigation Cube/Annotations')
594
+ def annotations(self) -> AnnotationCollection:
595
+ """``…/Annotations``: the collection (a reference: read through here, change through its
596
+ own collection).
597
+
598
+ Comments that provide additional information about the cube.
599
+
600
+ Endpoint ``Navigation Cube/Annotations``.
601
+ """
602
+ return AnnotationCollection(self._session, self._path.nav('Annotations'), contained=False)
603
+
604
+ @property
605
+ @endpoint('Navigation Cube/LocalizedAttributes')
606
+ def localized_attributes(self) -> LocalizedAttributesCollection:
607
+ """``…/LocalizedAttributes``: the collection (contained).
608
+
609
+ Translated string values for properties of the cube.
610
+
611
+ Endpoint ``Navigation Cube/LocalizedAttributes``.
612
+ """
613
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
614
+
615
+ @endpoint('Action Cube/CheckFeeders')
616
+ async def check_feeders(self, *, selection: str, tuple: list[m.Element | Bind] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> list[m.FedCellDescriptor]:
617
+ """``POST …/tm1.CheckFeeders``: the action.
618
+
619
+ Returns a list of components of a consolidation that are not properly fed.
620
+
621
+ Since TM1 schema 11.1.0.
622
+
623
+ Endpoint ``Action Cube/CheckFeeders``.
624
+
625
+ Parameters (left out when not passed; ``None`` sends ``null``):
626
+
627
+ * ``tuple`` (``Tuple``, ``Collection(ibm.tm1.api.v1.Element)``): Coordinates of the cell
628
+ that should be checked.
629
+
630
+ * ``selection`` (``Selection``, ``ibm.tm1.api.v1.CheckFeedersSelection``): Defines if
631
+ either the unfed, fed or both type of cells ought to be included.
632
+ """
633
+ return await self._action('tm1.CheckFeeders', {'Tuple': tuple, 'Selection': selection}, _r.Returns(m.FedCellDescriptor, collection=True, structured=True), _r.query_of(query, options), 'Action Cube/CheckFeeders')
634
+
635
+ @endpoint('Action Cube/CheckRules')
636
+ async def check_rules(self, *, rules: str | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> list[m.RuleSyntaxError]:
637
+ """``POST …/tm1.CheckRules``: the action.
638
+
639
+ Checks the Cube rules for errors.
640
+
641
+ Since TM1 schema 11.1.0.
642
+
643
+ Endpoint ``Action Cube/CheckRules``.
644
+
645
+ Parameters (left out when not passed; ``None`` sends ``null``):
646
+
647
+ * ``rules`` (``Rules``, ``Edm.String``): Optional. If specified these are the set of
648
+ rules checked against the cube. If not specified the cube's already set set of rules
649
+ will be checked instead.
650
+ """
651
+ return await self._action('tm1.CheckRules', {'Rules': rules}, _r.Returns(m.RuleSyntaxError, collection=True, structured=True), _r.query_of(query, options), 'Action Cube/CheckRules')
652
+
653
+ @endpoint('Action Cube/Load')
654
+ async def load(self) -> None:
655
+ """``POST …/tm1.Load``: the action.
656
+
657
+ Loads the cube into memory on the server.
658
+
659
+ Since TM1 schema 11.6.0.
660
+
661
+ Endpoint ``Action Cube/Load``.
662
+ """
663
+ return await self._action('tm1.Load', {}, _r.Returns(), None, 'Action Cube/Load')
664
+
665
+ @endpoint('Action Cube/Lock')
666
+ async def lock(self) -> None:
667
+ """``POST …/tm1.Lock``: the action.
668
+
669
+ Locks a cube, preventing any users from modifying it until the cube is unlocked.
670
+
671
+ Endpoint ``Action Cube/Lock``.
672
+ """
673
+ return await self._action('tm1.Lock', {}, _r.Returns(), None, 'Action Cube/Lock')
674
+
675
+ @endpoint('Action Cube/Release')
676
+ async def release(self) -> None:
677
+ """``POST …/tm1.Release``: the action.
678
+
679
+ Releases a cube, allowing modifications.
680
+
681
+ Since TM1 schema 11.8.34.
682
+
683
+ Endpoint ``Action Cube/Release``.
684
+ """
685
+ return await self._action('tm1.Release', {}, _r.Returns(), None, 'Action Cube/Release')
686
+
687
+ @endpoint('Action Cube/ReorderDimensions')
688
+ async def reorder_dimensions(self, *, dimensions: list[m.Dimension | Bind] | None = _r.UNSET) -> float | None:
689
+ """``POST …/tm1.ReorderDimensions``: the action.
690
+
691
+ Reorders a Cube's Dimensions.
692
+
693
+ Since TM1 schema 11.4.0.
694
+
695
+ Endpoint ``Action Cube/ReorderDimensions``.
696
+
697
+ Parameters (left out when not passed; ``None`` sends ``null``):
698
+
699
+ * ``dimensions`` (``Dimensions``, ``Collection(ibm.tm1.api.v1.Dimension)``): The new
700
+ order of Dimensions.
701
+ """
702
+ return await self._action('tm1.ReorderDimensions', {'Dimensions': dimensions}, _r.Returns(float, structured=False), None, 'Action Cube/ReorderDimensions')
703
+
704
+ @endpoint('Action Cube/Reserve')
705
+ async def reserve(self) -> None:
706
+ """``POST …/tm1.Reserve``: the action.
707
+
708
+ Reserves a cube, preventing any users from modifying it until the cube is released.
709
+
710
+ Since TM1 schema 11.8.34.
711
+
712
+ Endpoint ``Action Cube/Reserve``.
713
+ """
714
+ return await self._action('tm1.Reserve', {}, _r.Returns(), None, 'Action Cube/Reserve')
715
+
716
+ @endpoint('Action Cube/TraceCellCalculation')
717
+ async def trace_cell_calculation(self, *, tuple: list[m.Element | Bind] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.CalculationComponent | None:
718
+ """``POST …/tm1.TraceCellCalculation``: the action.
719
+
720
+ Traces the calculation of a single cell. The result will contain, recursively, any
721
+ components of the calculation.
722
+
723
+ Since TM1 schema 11.1.0.
724
+
725
+ Endpoint ``Action Cube/TraceCellCalculation``.
726
+
727
+ Parameters (left out when not passed; ``None`` sends ``null``):
728
+
729
+ * ``tuple`` (``Tuple``, ``Collection(ibm.tm1.api.v1.Element)``): Coordinates of the cell
730
+ that should be traced.
731
+ """
732
+ return await self._action('tm1.TraceCellCalculation', {'Tuple': tuple}, _r.Returns(m.CalculationComponent, structured=True), _r.query_of(query, options), 'Action Cube/TraceCellCalculation')
733
+
734
+ @endpoint('Action Cube/TraceFeeders')
735
+ async def trace_feeders(self, *, tuple: list[m.Element | Bind] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.FeederTrace | None:
736
+ """``POST …/tm1.TraceFeeders``: the action.
737
+
738
+ Get a list of cells that are fed by the specified cell.
739
+
740
+ Since TM1 schema 11.1.0.
741
+
742
+ Endpoint ``Action Cube/TraceFeeders``.
743
+
744
+ Parameters (left out when not passed; ``None`` sends ``null``):
745
+
746
+ * ``tuple`` (``Tuple``, ``Collection(ibm.tm1.api.v1.Element)``): Coordinates of the cell
747
+ that should be traced.
748
+ """
749
+ return await self._action('tm1.TraceFeeders', {'Tuple': tuple}, _r.Returns(m.FeederTrace, structured=True), _r.query_of(query, options), 'Action Cube/TraceFeeders')
750
+
751
+ @endpoint('Action Cube/Unload')
752
+ async def unload(self) -> None:
753
+ """``POST …/tm1.Unload``: the action.
754
+
755
+ Unloads the cube from memory on the server.
756
+
757
+ Since TM1 schema 11.6.0.
758
+
759
+ Endpoint ``Action Cube/Unload``.
760
+ """
761
+ return await self._action('tm1.Unload', {}, _r.Returns(), None, 'Action Cube/Unload')
762
+
763
+ @endpoint('Action Cube/Unlock')
764
+ async def unlock(self) -> None:
765
+ """``POST …/tm1.Unlock``: the action.
766
+
767
+ Unlocks a cube, allowing modifications.
768
+
769
+ Endpoint ``Action Cube/Unlock``.
770
+ """
771
+ return await self._action('tm1.Unlock', {}, _r.Returns(), None, 'Action Cube/Unlock')
772
+
773
+ @endpoint('Action Cube/Update')
774
+ async def update_action(self, *, slice: list[m.Element | Bind] | None = _r.UNSET, cells: list[m.CellDescriptor] | None = _r.UNSET, reference_cube: m.Cube | Bind | None = _r.UNSET, reference_cell: list[m.Element | Bind] | None = _r.UNSET, value: Any | None = _r.UNSET) -> None:
775
+ """``POST …/tm1.Update``: the action.
776
+
777
+ Applies updates to a cube, a slice of a cube, or cells of a cube, depending on the value
778
+ of the parameters provided.
779
+
780
+ Since TM1 schema 10.2.2.1.
781
+
782
+ TM1 (11.8): with several ``Cells``, only the first is written; use ``UpdateCells`` for
783
+ many.
784
+
785
+ Endpoint ``Action Cube/Update``.
786
+
787
+ Parameters (left out when not passed; ``None`` sends ``null``):
788
+
789
+ * ``slice`` (``Slice``, ``Collection(ibm.tm1.api.v1.Element)``): The slice of the cube
790
+ targeted by the update.
791
+
792
+ * ``cells`` (``Cells``, ``Collection(ibm.tm1.api.v1.CellDescriptor)``): The cells of the
793
+ cube targeted by the update.
794
+
795
+ * ``reference_cube`` (``ReferenceCube``, ``ibm.tm1.api.v1.Cube``): The cube containing
796
+ the source data required by the spreading command.
797
+
798
+ * ``reference_cell`` (``ReferenceCell``, ``Collection(ibm.tm1.api.v1.Element)``): The
799
+ cell containing the source data required by the spreading command.
800
+
801
+ * ``value`` (``Value``, ``Edm.PrimitiveType``): The numeric value, string value,
802
+ spreading command or null value with which the cell is updated.
803
+ """
804
+ return await self._action('tm1.Update', {'Slice': slice, 'Cells': cells, 'ReferenceCube': reference_cube, 'ReferenceCell': reference_cell, 'Value': value}, _r.Returns(), None, 'Action Cube/Update')
805
+
806
+ @endpoint('Action Cube/UpdateCells')
807
+ async def update_cells(self, *, updates: list[m.CubeUpdate] | None = _r.UNSET, order: m.UpdateOrder | None = _r.UNSET) -> None:
808
+ """``POST …/tm1.UpdateCells``: the action.
809
+
810
+ Applies updates to cells of a cube.
811
+
812
+ Since TM1 schema 11.0.0.
813
+
814
+ Endpoint ``Action Cube/UpdateCells``.
815
+
816
+ Parameters (left out when not passed; ``None`` sends ``null``):
817
+
818
+ * ``updates`` (``Updates``, ``Collection(ibm.tm1.api.v1.CubeUpdate)``): The cells of the
819
+ cube targeted by the update and the values with which to update those cells.
820
+
821
+ * ``order`` (``Order``, ``ibm.tm1.api.v1.UpdateOrder``): The update order to use.
822
+ Specify 0 for no ordering.
823
+ """
824
+ return await self._action('tm1.UpdateCells', {'Updates': updates, 'Order': order}, _r.Returns(), None, 'Action Cube/UpdateCells')
825
+
826
+ @endpoint('Function Cube/DimensionsStorageOrder')
827
+ async def dimensions_storage_order(self, *, query: ODataQuery | None = None, **options: Any) -> list[m.Dimension]:
828
+ """``GET …/tm1.DimensionsStorageOrder``: the function.
829
+
830
+ Gets a Cube's Dimensions in current storage order.
831
+
832
+ Since TM1 schema 11.4.0.
833
+
834
+ Endpoint ``Function Cube/DimensionsStorageOrder``.
835
+ """
836
+ return await self._function('tm1.DimensionsStorageOrder', {}, _r.Returns(m.Dimension, collection=True, structured=True), _r.query_of(query, options), 'Function Cube/DimensionsStorageOrder')
837
+
838
+
839
+ class DimensionEntity(_r.EntityResource[m.Dimension]):
840
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Dimension`: ``get``, ``update``,
841
+ ``delete``, its navigation properties and bound operations.
842
+ """
843
+
844
+ model = m.Dimension
845
+
846
+ @property
847
+ @endpoint('Navigation Dimension/Hierarchies')
848
+ def hierarchies(self) -> HierarchyCollection:
849
+ """``…/Hierarchies``: the collection (contained).
850
+
851
+ More specific groupings within a dimension.
852
+
853
+ For example, for the Years dimension, data can be organized into smaller groups, such as
854
+ Years, Current Month, and All Dates.
855
+
856
+ Endpoint ``Navigation Dimension/Hierarchies``.
857
+ """
858
+ return HierarchyCollection(self._session, self._path.nav('Hierarchies'), contained=True)
859
+
860
+ @property
861
+ @endpoint('Navigation Dimension/DefaultHierarchy')
862
+ def default_hierarchy(self) -> HierarchyEntity:
863
+ """``…/DefaultHierarchy``: the entity (a reference: read through here, change through its
864
+ own collection).
865
+
866
+ The default hierarchy of the dimension.
867
+
868
+ Since TM1 schema 10.2.2.5.
869
+
870
+ Endpoint ``Navigation Dimension/DefaultHierarchy``.
871
+ """
872
+ return HierarchyEntity(self._session, self._path.nav('DefaultHierarchy'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
873
+
874
+ @property
875
+ @endpoint('Navigation Dimension/HierarchyAttributes')
876
+ def hierarchy_attributes(self) -> AttributeDefinitionCollection:
877
+ """``…/HierarchyAttributes``: the collection (contained).
878
+
879
+ Attributes of a hierarchy.
880
+
881
+ Endpoint ``Navigation Dimension/HierarchyAttributes``.
882
+ """
883
+ return AttributeDefinitionCollection(self._session, self._path.nav('HierarchyAttributes'), contained=True)
884
+
885
+ @property
886
+ @endpoint('Navigation Dimension/LocalizedAttributes')
887
+ def localized_attributes(self) -> LocalizedAttributesCollection:
888
+ """``…/LocalizedAttributes``: the collection (contained).
889
+
890
+ Translated string values for properties of the dimensions.
891
+
892
+ Endpoint ``Navigation Dimension/LocalizedAttributes``.
893
+ """
894
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
895
+
896
+ @endpoint('Action Dimension/AddAllLeavesHierarchy')
897
+ async def add_all_leaves_hierarchy(self, *, all_leaves_hierarchy_name: str | None = _r.UNSET, visible: bool | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Hierarchy | None:
898
+ """``POST …/tm1.AddAllLeavesHierarchy``: the action.
899
+
900
+ Adds the all leaves hierarchy to a single hierarchy dimension and implicitly converts
901
+ that dimension into a multi hierarchy dimension.
902
+
903
+ Since TM1 schema 11.0.0.
904
+
905
+ Endpoint ``Action Dimension/AddAllLeavesHierarchy``.
906
+
907
+ Parameters (left out when not passed; ``None`` sends ``null``):
908
+
909
+ * ``all_leaves_hierarchy_name`` (``AllLeavesHierarchyName``, ``Edm.String``): The name
910
+ of the all leaves hierarchy (default='Leaves')
911
+
912
+ * ``visible`` (``Visible``, ``Edm.Boolean``): A Boolean indicating if the visible
913
+ property of the new all leaves hierarchy should be set to true (default=false).
914
+ """
915
+ return await self._action('tm1.AddAllLeavesHierarchy', {'AllLeavesHierarchyName': all_leaves_hierarchy_name, 'Visible': visible}, _r.Returns(m.Hierarchy, structured=True), _r.query_of(query, options), 'Action Dimension/AddAllLeavesHierarchy')
916
+
917
+ @endpoint('Action Dimension/Lock')
918
+ async def lock(self) -> None:
919
+ """``POST …/tm1.Lock``: the action.
920
+
921
+ Locks a dimension, preventing any users from modifying it until the dimension is
922
+ unlocked.
923
+
924
+ Endpoint ``Action Dimension/Lock``.
925
+ """
926
+ return await self._action('tm1.Lock', {}, _r.Returns(), None, 'Action Dimension/Lock')
927
+
928
+ @endpoint('Action Dimension/Release')
929
+ async def release(self) -> None:
930
+ """``POST …/tm1.Release``: the action.
931
+
932
+ Releases a dimension, allowing modifications.
933
+
934
+ Since TM1 schema 11.8.34.
935
+
936
+ Endpoint ``Action Dimension/Release``.
937
+ """
938
+ return await self._action('tm1.Release', {}, _r.Returns(), None, 'Action Dimension/Release')
939
+
940
+ @endpoint('Action Dimension/Reserve')
941
+ async def reserve(self) -> None:
942
+ """``POST …/tm1.Reserve``: the action.
943
+
944
+ Reserves a dimension, preventing any users from modifying it until the dimension is
945
+ released.
946
+
947
+ Since TM1 schema 11.8.34.
948
+
949
+ Endpoint ``Action Dimension/Reserve``.
950
+ """
951
+ return await self._action('tm1.Reserve', {}, _r.Returns(), None, 'Action Dimension/Reserve')
952
+
953
+ @endpoint('Action Dimension/SaveAs')
954
+ async def save_as(self, *, name: str, overwrite: bool | None = _r.UNSET, keep_existing_attributes: bool | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Dimension | None:
955
+ """``POST …/tm1.SaveAs``: the action.
956
+
957
+ Saves a dimension.
958
+
959
+ Since TM1 schema 11.0.0.
960
+
961
+ Endpoint ``Action Dimension/SaveAs``.
962
+
963
+ Parameters (left out when not passed; ``None`` sends ``null``):
964
+
965
+ * ``name`` (``Name``, ``Edm.String``): The name to save the dimension as.
966
+
967
+ * ``overwrite`` (``Overwrite``, ``Edm.Boolean``): A Boolean that indicates whether to
968
+ overwrite the dimension that was passed in if it already exists.
969
+
970
+ * ``keep_existing_attributes`` (``KeepExistingAttributes``, ``Edm.Boolean``): A Boolean
971
+ that indicates whether overwrite any existing attributes for the dimension, and all
972
+ contained objects, we might be replacing with an overwrite. If the save is not
973
+ overwriting, and this value is set to true, then no attributes will be created for the
974
+ new dimension.
975
+ """
976
+ return await self._action('tm1.SaveAs', {'Name': name, 'Overwrite': overwrite, 'KeepExistingAttributes': keep_existing_attributes}, _r.Returns(m.Dimension, structured=True), _r.query_of(query, options), 'Action Dimension/SaveAs')
977
+
978
+ @endpoint('Action Dimension/Unlock')
979
+ async def unlock(self) -> None:
980
+ """``POST …/tm1.Unlock``: the action.
981
+
982
+ Unlocks a dimension, allowing modifications.
983
+
984
+ Endpoint ``Action Dimension/Unlock``.
985
+ """
986
+ return await self._action('tm1.Unlock', {}, _r.Returns(), None, 'Action Dimension/Unlock')
987
+
988
+
989
+ class DrillthroughEntity(_r.EntityResource[m.Drillthrough]):
990
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Drillthrough`: ``get``,
991
+ ``update``, ``delete``, its navigation properties and bound operations.
992
+ """
993
+
994
+ model = m.Drillthrough
995
+
996
+ def as_cube_drillthrough(self) -> CubeDrillthroughEntity:
997
+ """``…/tm1.CubeDrillthrough``: this entity as a
998
+ :class:`~skipcheck_tm1._generated.model.CubeDrillthrough`, for its own properties,
999
+ navigation and operations.
1000
+ """
1001
+ return CubeDrillthroughEntity(self._session, self._path.cast('tm1.CubeDrillthrough'), self._forbidden)
1002
+
1003
+ def as_relational_drillthrough(self) -> RelationalDrillthroughEntity:
1004
+ """``…/tm1.RelationalDrillthrough``: this entity as a
1005
+ :class:`~skipcheck_tm1._generated.model.RelationalDrillthrough`, for its own properties,
1006
+ navigation and operations.
1007
+ """
1008
+ return RelationalDrillthroughEntity(self._session, self._path.cast('tm1.RelationalDrillthrough'), self._forbidden)
1009
+
1010
+
1011
+ class EdgeEntity(_r.EntityResource[m.Edge]):
1012
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Edge`: ``get``, ``update``,
1013
+ ``delete``, its navigation properties and bound operations.
1014
+ """
1015
+
1016
+ model = m.Edge
1017
+
1018
+ @property
1019
+ @endpoint('Navigation Edge/Hierarchy')
1020
+ def hierarchy(self) -> HierarchyEntity:
1021
+ """``…/Hierarchy``: the entity (a reference: read through here, change through its own
1022
+ collection).
1023
+
1024
+ The hierarchy of the component in the edge.
1025
+
1026
+ Endpoint ``Navigation Edge/Hierarchy``.
1027
+ """
1028
+ return HierarchyEntity(self._session, self._path.nav('Hierarchy'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1029
+
1030
+ @property
1031
+ @endpoint('Navigation Edge/Parent')
1032
+ def parent(self) -> ElementEntity:
1033
+ """``…/Parent``: the entity (a reference: read through here, change through its own
1034
+ collection).
1035
+
1036
+ The parent of the component.
1037
+
1038
+ Endpoint ``Navigation Edge/Parent``.
1039
+ """
1040
+ return ElementEntity(self._session, self._path.nav('Parent'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1041
+
1042
+ @property
1043
+ @endpoint('Navigation Edge/Component')
1044
+ def component(self) -> ElementEntity:
1045
+ """``…/Component``: the entity (a reference: read through here, change through its own
1046
+ collection).
1047
+
1048
+ The component.
1049
+
1050
+ Endpoint ``Navigation Edge/Component``.
1051
+ """
1052
+ return ElementEntity(self._session, self._path.nav('Component'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1053
+
1054
+
1055
+ class ElementEntity(_r.EntityResource[m.Element]):
1056
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Element`: ``get``, ``update``,
1057
+ ``delete``, its navigation properties and bound operations.
1058
+ """
1059
+
1060
+ model = m.Element
1061
+
1062
+ @property
1063
+ @endpoint('Navigation Element/Hierarchy')
1064
+ def hierarchy(self) -> HierarchyEntity:
1065
+ """``…/Hierarchy``: the entity (a reference: read through here, change through its own
1066
+ collection).
1067
+
1068
+ The hierarchy of the element in the dimension.
1069
+
1070
+ Endpoint ``Navigation Element/Hierarchy``.
1071
+ """
1072
+ return HierarchyEntity(self._session, self._path.nav('Hierarchy'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1073
+
1074
+ @property
1075
+ @endpoint('Navigation Element/Parents')
1076
+ def parents(self) -> ElementCollection:
1077
+ """``…/Parents``: the collection (a reference: read through here, change through its own
1078
+ collection).
1079
+
1080
+ The parent element of the element in the hierarchy.
1081
+
1082
+ Endpoint ``Navigation Element/Parents``.
1083
+ """
1084
+ return ElementCollection(self._session, self._path.nav('Parents'), contained=False)
1085
+
1086
+ @property
1087
+ @endpoint('Navigation Element/Components')
1088
+ def components(self) -> ElementCollection:
1089
+ """``…/Components``: the collection (a reference: read through here, change through its own
1090
+ collection).
1091
+
1092
+ The collection of elements in the dimension.
1093
+
1094
+ Endpoint ``Navigation Element/Components``.
1095
+ """
1096
+ return ElementCollection(self._session, self._path.nav('Components'), contained=False)
1097
+
1098
+ @property
1099
+ @endpoint('Navigation Element/Edges')
1100
+ def edges(self) -> EdgeCollection:
1101
+ """``…/Edges``: the collection (a reference: read through here, change through its own
1102
+ collection).
1103
+
1104
+ The collection of edges in the dimension.
1105
+
1106
+ Endpoint ``Navigation Element/Edges``.
1107
+ """
1108
+ return EdgeCollection(self._session, self._path.nav('Edges'), contained=False)
1109
+
1110
+ @property
1111
+ @endpoint('Navigation Element/LocalizedAttributes')
1112
+ def localized_attributes(self) -> LocalizedAttributesCollection:
1113
+ """``…/LocalizedAttributes``: the collection (contained).
1114
+
1115
+ Translated string values for properties of the element.
1116
+
1117
+ Endpoint ``Navigation Element/LocalizedAttributes``.
1118
+ """
1119
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
1120
+
1121
+ @endpoint('Action Element/Lock')
1122
+ async def lock(self) -> None:
1123
+ """``POST …/tm1.Lock``: the action.
1124
+
1125
+ Locks an element, preventing any users from modifying it until the element is unlocked.
1126
+
1127
+ Since TM1 schema 11.8.23.
1128
+
1129
+ Endpoint ``Action Element/Lock``.
1130
+ """
1131
+ return await self._action('tm1.Lock', {}, _r.Returns(), None, 'Action Element/Lock')
1132
+
1133
+ @endpoint('Action Element/Release')
1134
+ async def release(self) -> None:
1135
+ """``POST …/tm1.Release``: the action.
1136
+
1137
+ Releases an element, allowing modifications.
1138
+
1139
+ Since TM1 schema 11.8.34.
1140
+
1141
+ Endpoint ``Action Element/Release``.
1142
+ """
1143
+ return await self._action('tm1.Release', {}, _r.Returns(), None, 'Action Element/Release')
1144
+
1145
+ @endpoint('Action Element/Reserve')
1146
+ async def reserve(self) -> None:
1147
+ """``POST …/tm1.Reserve``: the action.
1148
+
1149
+ Reserves an element, preventing any users from modifying any data associated with it
1150
+ until the element is released.
1151
+
1152
+ Since TM1 schema 11.8.34.
1153
+
1154
+ Endpoint ``Action Element/Reserve``.
1155
+ """
1156
+ return await self._action('tm1.Reserve', {}, _r.Returns(), None, 'Action Element/Reserve')
1157
+
1158
+ @endpoint('Action Element/SetComponent')
1159
+ async def set_component(self, *, element: m.Element | Bind, before: m.Element | Bind | None = _r.UNSET, weight: float | None = _r.UNSET) -> None:
1160
+ """``POST …/tm1.SetComponent``: the action.
1161
+
1162
+ Sets the child element of a particular element, allowing you to specify the relationship
1163
+ to the parent.
1164
+
1165
+ Endpoint ``Action Element/SetComponent``.
1166
+
1167
+ Parameters (left out when not passed; ``None`` sends ``null``):
1168
+
1169
+ * ``element`` (``Element``, ``ibm.tm1.api.v1.Element``): The element to set as a child
1170
+ of this parent.
1171
+
1172
+ * ``before`` (``Before``, ``ibm.tm1.api.v1.Element``): Specifies the position where the
1173
+ new component should be created.
1174
+
1175
+ * ``weight`` (``Weight``, ``Edm.Double``): The weight of the element.
1176
+ """
1177
+ return await self._action('tm1.SetComponent', {'Element': element, 'Before': before, 'Weight': weight}, _r.Returns(), None, 'Action Element/SetComponent')
1178
+
1179
+ @endpoint('Action Element/Unlock')
1180
+ async def unlock(self) -> None:
1181
+ """``POST …/tm1.Unlock``: the action.
1182
+
1183
+ Unlocks an element, allowing modifications.
1184
+
1185
+ Since TM1 schema 11.8.23.
1186
+
1187
+ Endpoint ``Action Element/Unlock``.
1188
+ """
1189
+ return await self._action('tm1.Unlock', {}, _r.Returns(), None, 'Action Element/Unlock')
1190
+
1191
+
1192
+ class EntryEntity(_r.EntityResource[m.Entry]):
1193
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Entry`: ``get``, ``update``,
1194
+ ``delete``, its navigation properties and bound operations.
1195
+ """
1196
+
1197
+ model = m.Entry
1198
+
1199
+ @property
1200
+ @endpoint('Navigation Entry/ContainedBy')
1201
+ def contained_by(self) -> FolderEntity:
1202
+ """``…/ContainedBy``: the entity (a reference: read through here, change through its own
1203
+ collection).
1204
+
1205
+ The folder that contains the entries.
1206
+
1207
+ Endpoint ``Navigation Entry/ContainedBy``.
1208
+ """
1209
+ return FolderEntity(self._session, self._path.nav('ContainedBy'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1210
+
1211
+ @property
1212
+ @endpoint('Navigation Entry/LocalizedAttributes')
1213
+ def localized_attributes(self) -> LocalizedAttributesCollection:
1214
+ """``…/LocalizedAttributes``: the collection (contained).
1215
+
1216
+ Translated string values for properties of the entry.
1217
+
1218
+ Endpoint ``Navigation Entry/LocalizedAttributes``.
1219
+ """
1220
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
1221
+
1222
+ @endpoint('Action Entry/Copy')
1223
+ async def copy(self, *, target: m.Folder | Bind | None = _r.UNSET, private: bool | None = _r.UNSET, name: str | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Entry | None:
1224
+ """``POST …/tm1.Copy``: the action.
1225
+
1226
+ Copies an Entry.
1227
+
1228
+ Since TM1 schema 11.2.0.
1229
+
1230
+ Endpoint ``Action Entry/Copy``.
1231
+
1232
+ Parameters (left out when not passed; ``None`` sends ``null``):
1233
+
1234
+ * ``target`` (``Target``, ``ibm.tm1.api.v1.Folder``): The destination folder. If not
1235
+ specified, the source Entry's parent is used.
1236
+
1237
+ * ``private`` (``Private``, ``Edm.Boolean``): Whether the new Entry should be private.
1238
+ If not specified, the existing scope is used. Cannot be true if the destination folder
1239
+ is private.
1240
+
1241
+ * ``name`` (``Name``, ``Edm.String``): The name of the new Entry.
1242
+ """
1243
+ return await self._action('tm1.Copy', {'Target': target, 'Private': private, 'Name': name}, _r.Returns(m.Entry, structured=True), _r.query_of(query, options), 'Action Entry/Copy')
1244
+
1245
+ @endpoint('Action Entry/Move')
1246
+ async def move(self, *, target: m.Folder | Bind | None = _r.UNSET, private: bool | None = _r.UNSET, name: str | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Entry | None:
1247
+ """``POST …/tm1.Move``: the action.
1248
+
1249
+ Moves an Entry to a new parent folder, renames an Entry, and publishes or privatizes it.
1250
+
1251
+ Since TM1 schema 11.2.0.
1252
+
1253
+ Endpoint ``Action Entry/Move``.
1254
+
1255
+ Parameters (left out when not passed; ``None`` sends ``null``):
1256
+
1257
+ * ``target`` (``Target``, ``ibm.tm1.api.v1.Folder``): The destination folder. If not
1258
+ specified, the existing parent is used.
1259
+
1260
+ * ``private`` (``Private``, ``Edm.Boolean``): Whether the Entry should be private. If
1261
+ not specified, the existing scope is used. Cannot be true if the destination folder is
1262
+ private.
1263
+
1264
+ * ``name`` (``Name``, ``Edm.String``): The new name of the Entry.
1265
+ """
1266
+ return await self._action('tm1.Move', {'Target': target, 'Private': private, 'Name': name}, _r.Returns(m.Entry, structured=True), _r.query_of(query, options), 'Action Entry/Move')
1267
+
1268
+ def as_chore_reference(self) -> ChoreReferenceEntity:
1269
+ """``…/tm1.ChoreReference``: this entity as a
1270
+ :class:`~skipcheck_tm1._generated.model.ChoreReference`, for its own properties,
1271
+ navigation and operations.
1272
+ """
1273
+ return ChoreReferenceEntity(self._session, self._path.cast('tm1.ChoreReference'), self._forbidden)
1274
+
1275
+ def as_cube_reference(self) -> CubeReferenceEntity:
1276
+ """``…/tm1.CubeReference``: this entity as a
1277
+ :class:`~skipcheck_tm1._generated.model.CubeReference`, for its own properties,
1278
+ navigation and operations.
1279
+ """
1280
+ return CubeReferenceEntity(self._session, self._path.cast('tm1.CubeReference'), self._forbidden)
1281
+
1282
+ def as_dimension_reference(self) -> DimensionReferenceEntity:
1283
+ """``…/tm1.DimensionReference``: this entity as a
1284
+ :class:`~skipcheck_tm1._generated.model.DimensionReference`, for its own properties,
1285
+ navigation and operations.
1286
+ """
1287
+ return DimensionReferenceEntity(self._session, self._path.cast('tm1.DimensionReference'), self._forbidden)
1288
+
1289
+ def as_document(self) -> DocumentEntity:
1290
+ """``…/tm1.Document``: this entity as a :class:`~skipcheck_tm1._generated.model.Document`,
1291
+ for its own properties, navigation and operations.
1292
+ """
1293
+ return DocumentEntity(self._session, self._path.cast('tm1.Document'), self._forbidden)
1294
+
1295
+ def as_document_reference(self) -> DocumentReferenceEntity:
1296
+ """``…/tm1.DocumentReference``: this entity as a
1297
+ :class:`~skipcheck_tm1._generated.model.DocumentReference`, for its own properties,
1298
+ navigation and operations.
1299
+ """
1300
+ return DocumentReferenceEntity(self._session, self._path.cast('tm1.DocumentReference'), self._forbidden)
1301
+
1302
+ def as_folder(self) -> FolderEntity:
1303
+ """``…/tm1.Folder``: this entity as a :class:`~skipcheck_tm1._generated.model.Folder`, for
1304
+ its own properties, navigation and operations.
1305
+ """
1306
+ return FolderEntity(self._session, self._path.cast('tm1.Folder'), self._forbidden)
1307
+
1308
+ def as_link(self) -> LinkEntity:
1309
+ """``…/tm1.Link``: this entity as a :class:`~skipcheck_tm1._generated.model.Link`, for its
1310
+ own properties, navigation and operations.
1311
+ """
1312
+ return LinkEntity(self._session, self._path.cast('tm1.Link'), self._forbidden)
1313
+
1314
+ def as_process_reference(self) -> ProcessReferenceEntity:
1315
+ """``…/tm1.ProcessReference``: this entity as a
1316
+ :class:`~skipcheck_tm1._generated.model.ProcessReference`, for its own properties,
1317
+ navigation and operations.
1318
+ """
1319
+ return ProcessReferenceEntity(self._session, self._path.cast('tm1.ProcessReference'), self._forbidden)
1320
+
1321
+ def as_subset_reference(self) -> SubsetReferenceEntity:
1322
+ """``…/tm1.SubsetReference``: this entity as a
1323
+ :class:`~skipcheck_tm1._generated.model.SubsetReference`, for its own properties,
1324
+ navigation and operations.
1325
+ """
1326
+ return SubsetReferenceEntity(self._session, self._path.cast('tm1.SubsetReference'), self._forbidden)
1327
+
1328
+ def as_view_reference(self) -> ViewReferenceEntity:
1329
+ """``…/tm1.ViewReference``: this entity as a
1330
+ :class:`~skipcheck_tm1._generated.model.ViewReference`, for its own properties,
1331
+ navigation and operations.
1332
+ """
1333
+ return ViewReferenceEntity(self._session, self._path.cast('tm1.ViewReference'), self._forbidden)
1334
+
1335
+
1336
+ class ErrorLogFileEntity(_r.EntityResource[m.ErrorLogFile]):
1337
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ErrorLogFile`: ``get``,
1338
+ ``update``, ``delete``, its navigation properties and bound operations.
1339
+ """
1340
+
1341
+ model = m.ErrorLogFile
1342
+
1343
+ async def read_content(self) -> bytes:
1344
+ """``GET …/Content/$value``: The content of the process error."""
1345
+ return await self._read_stream('Content')
1346
+
1347
+ async def write_content(self, data: bytes, content_type: str = "application/octet-stream") -> None:
1348
+ """``PUT …/Content/$value``: replaces it."""
1349
+ await self._write_stream('Content', data, content_type)
1350
+
1351
+
1352
+ class GitPlanEntity(_r.EntityResource[m.GitPlan]):
1353
+ """An entity of type :class:`~skipcheck_tm1._generated.model.GitPlan`: ``get``, ``update``,
1354
+ ``delete``, its navigation properties and bound operations.
1355
+ """
1356
+
1357
+ model = m.GitPlan
1358
+
1359
+ def as_git_pull_plan(self) -> GitPullPlanEntity:
1360
+ """``…/tm1.GitPullPlan``: this entity as a
1361
+ :class:`~skipcheck_tm1._generated.model.GitPullPlan`, for its own properties, navigation
1362
+ and operations.
1363
+ """
1364
+ return GitPullPlanEntity(self._session, self._path.cast('tm1.GitPullPlan'), self._forbidden)
1365
+
1366
+ def as_git_push_plan(self) -> GitPushPlanEntity:
1367
+ """``…/tm1.GitPushPlan``: this entity as a
1368
+ :class:`~skipcheck_tm1._generated.model.GitPushPlan`, for its own properties, navigation
1369
+ and operations.
1370
+ """
1371
+ return GitPushPlanEntity(self._session, self._path.cast('tm1.GitPushPlan'), self._forbidden)
1372
+
1373
+
1374
+ class GroupEntity(_r.EntityResource[m.Group]):
1375
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Group`: ``get``, ``update``,
1376
+ ``delete``, its navigation properties and bound operations.
1377
+ """
1378
+
1379
+ model = m.Group
1380
+
1381
+ @property
1382
+ @endpoint('Navigation Group/Users')
1383
+ def users(self) -> UserCollection:
1384
+ """``…/Users``: the collection (a reference: read through here, change through its own
1385
+ collection).
1386
+
1387
+ The names of users in a given group.
1388
+
1389
+ Deleting through this navigation deletes the user itself, not the membership.
1390
+
1391
+ Endpoint ``Navigation Group/Users``.
1392
+ """
1393
+ return UserCollection(self._session, self._path.nav('Users'), dict.fromkeys(('create', 'delete'), 'Deleting through this navigation deletes the user itself, not the membership.'), contained=False)
1394
+
1395
+
1396
+ class HierarchyEntity(_r.EntityResource[m.Hierarchy]):
1397
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Hierarchy`: ``get``, ``update``,
1398
+ ``delete``, its navigation properties and bound operations.
1399
+ """
1400
+
1401
+ model = m.Hierarchy
1402
+
1403
+ @property
1404
+ @endpoint('Navigation Hierarchy/Dimension')
1405
+ def dimension(self) -> DimensionEntity:
1406
+ """``…/Dimension``: the entity (a reference: read through here, change through its own
1407
+ collection).
1408
+
1409
+ A dimension that is part of the hierarchy.
1410
+
1411
+ Endpoint ``Navigation Hierarchy/Dimension``.
1412
+ """
1413
+ return DimensionEntity(self._session, self._path.nav('Dimension'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1414
+
1415
+ @property
1416
+ @endpoint('Navigation Hierarchy/Elements')
1417
+ def elements(self) -> ElementCollection:
1418
+ """``…/Elements``: the collection (contained).
1419
+
1420
+ The elements of the hierarchy.
1421
+
1422
+ TM1 (11.8): a hierarchy PATCH binding ``Elements`` or ``Edges`` replaces the collection,
1423
+ deleting elements not listed.
1424
+
1425
+ Endpoint ``Navigation Hierarchy/Elements``.
1426
+ """
1427
+ return ElementCollection(self._session, self._path.nav('Elements'), contained=True)
1428
+
1429
+ @property
1430
+ @endpoint('Navigation Hierarchy/Edges')
1431
+ def edges(self) -> EdgeCollection:
1432
+ """``…/Edges``: the collection (contained).
1433
+
1434
+ The edges of the hierarchy.
1435
+
1436
+ Endpoint ``Navigation Hierarchy/Edges``.
1437
+ """
1438
+ return EdgeCollection(self._session, self._path.nav('Edges'), contained=True)
1439
+
1440
+ @property
1441
+ @endpoint('Navigation Hierarchy/Subsets')
1442
+ def subsets(self) -> SubsetCollection:
1443
+ """``…/Subsets``: the collection (contained).
1444
+
1445
+ The subsets of the hierarchy.
1446
+
1447
+ Endpoint ``Navigation Hierarchy/Subsets``.
1448
+ """
1449
+ return SubsetCollection(self._session, self._path.nav('Subsets'), contained=True)
1450
+
1451
+ @property
1452
+ @endpoint('Navigation Hierarchy/PrivateSubsets')
1453
+ def private_subsets(self) -> SubsetCollection:
1454
+ """``…/PrivateSubsets``: the collection (contained).
1455
+
1456
+ The private subsets of the hierarchy.
1457
+
1458
+ Endpoint ``Navigation Hierarchy/PrivateSubsets``.
1459
+ """
1460
+ return SubsetCollection(self._session, self._path.nav('PrivateSubsets'), contained=True)
1461
+
1462
+ @property
1463
+ @endpoint('Navigation Hierarchy/SessionSubsets')
1464
+ def session_subsets(self) -> SubsetCollection:
1465
+ """``…/SessionSubsets``: the collection (contained).
1466
+
1467
+ The session-scoped subsets generated on this hierarchy.
1468
+
1469
+ This collection will always appear empty, like the Cellsets collection, but generated
1470
+ SessionSubsets can be retrieved directly by ID.
1471
+
1472
+ Endpoint ``Navigation Hierarchy/SessionSubsets``.
1473
+ """
1474
+ return SubsetCollection(self._session, self._path.nav('SessionSubsets'), contained=True)
1475
+
1476
+ @property
1477
+ @endpoint('Navigation Hierarchy/Members')
1478
+ def members(self) -> MemberCollection:
1479
+ """``…/Members``: the collection (contained).
1480
+
1481
+ The members of the hierarchy.
1482
+
1483
+ Endpoint ``Navigation Hierarchy/Members``.
1484
+ """
1485
+ return MemberCollection(self._session, self._path.nav('Members'), contained=True)
1486
+
1487
+ @property
1488
+ @endpoint('Navigation Hierarchy/AllMember')
1489
+ def all_member(self) -> MemberEntity:
1490
+ """``…/AllMember``: the entity (a reference: read through here, change through its own
1491
+ collection).
1492
+
1493
+ An aggregation of all of the members of the hierarchy.
1494
+
1495
+ Endpoint ``Navigation Hierarchy/AllMember``.
1496
+ """
1497
+ return MemberEntity(self._session, self._path.nav('AllMember'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1498
+
1499
+ @property
1500
+ @endpoint('Navigation Hierarchy/DefaultMember')
1501
+ def default_member(self) -> MemberEntity:
1502
+ """``…/DefaultMember``: the entity (a reference: read through here, change through its own
1503
+ collection).
1504
+
1505
+ The default member of the hierarchy.
1506
+
1507
+ Endpoint ``Navigation Hierarchy/DefaultMember``.
1508
+ """
1509
+ return MemberEntity(self._session, self._path.nav('DefaultMember'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1510
+
1511
+ @property
1512
+ @endpoint('Navigation Hierarchy/Levels')
1513
+ def levels(self) -> LevelCollection:
1514
+ """``…/Levels``: the collection (contained).
1515
+
1516
+ A collection of levels in the hierarchy.
1517
+
1518
+ Endpoint ``Navigation Hierarchy/Levels``.
1519
+ """
1520
+ return LevelCollection(self._session, self._path.nav('Levels'), contained=True)
1521
+
1522
+ @property
1523
+ @endpoint('Navigation Hierarchy/LocalizedAttributes')
1524
+ def localized_attributes(self) -> LocalizedAttributesCollection:
1525
+ """``…/LocalizedAttributes``: the collection (contained).
1526
+
1527
+ Translated string values for properties of the hierarchy.
1528
+
1529
+ Endpoint ``Navigation Hierarchy/LocalizedAttributes``.
1530
+ """
1531
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
1532
+
1533
+ @property
1534
+ @endpoint('Navigation Hierarchy/ElementAttributes')
1535
+ def element_attributes(self) -> AttributeDefinitionCollection:
1536
+ """``…/ElementAttributes``: the collection (contained).
1537
+
1538
+ The attributes of the elements of the hierarchy.
1539
+
1540
+ Since TM1 schema 10.2.2.1.
1541
+
1542
+ Endpoint ``Navigation Hierarchy/ElementAttributes``.
1543
+ """
1544
+ return AttributeDefinitionCollection(self._session, self._path.nav('ElementAttributes'), contained=True)
1545
+
1546
+ @property
1547
+ @endpoint('Navigation Hierarchy/SubsetAttributes')
1548
+ def subset_attributes(self) -> AttributeDefinitionCollection:
1549
+ """``…/SubsetAttributes``: the collection (contained).
1550
+
1551
+ The attributes of the subsets of the hierarchy.
1552
+
1553
+ Endpoint ``Navigation Hierarchy/SubsetAttributes``.
1554
+ """
1555
+ return AttributeDefinitionCollection(self._session, self._path.nav('SubsetAttributes'), contained=True)
1556
+
1557
+ @endpoint('Action Hierarchy/CreateSessionSubset')
1558
+ async def create_session_subset(self, *, subset: m.Subset | Bind | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Subset | None:
1559
+ """``POST …/tm1.CreateSessionSubset``: the action.
1560
+
1561
+ Creates a session-scoped subset within the hierarchy.
1562
+
1563
+ The subset will have a generated name, and will not be listed on any collection. The
1564
+ subsets can be looked up by ID, edited with PATCH, and DELETEd. They may also be used by
1565
+ ID in MDX queries, in place of the subset name. If a named subset exists with the
1566
+ generated ID, the named subset (public or private) will be used in the query instead.
1567
+ These subsets are not persisted and are automatically destroyed when the session expires
1568
+ or is logged out. They cannot be retrieved, modified, or used in an MDX query from
1569
+ another session.
1570
+
1571
+ Endpoint ``Action Hierarchy/CreateSessionSubset``.
1572
+
1573
+ Parameters (left out when not passed; ``None`` sends ``null``):
1574
+
1575
+ * ``subset`` (``Subset``, ``ibm.tm1.api.v1.Subset``): Optional. Subset to be copied (if
1576
+ value is supplied with an entity reference) or a definition to be used (if a subset
1577
+ definition is given as an object).
1578
+ """
1579
+ return await self._action('tm1.CreateSessionSubset', {'Subset': subset}, _r.Returns(m.Subset, structured=True), _r.query_of(query, options), 'Action Hierarchy/CreateSessionSubset')
1580
+
1581
+ @endpoint('Action Hierarchy/SaveAs')
1582
+ async def save_as(self, *, name: str, overwrite: bool | None = _r.UNSET, keep_existing_attributes: bool | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Hierarchy | None:
1583
+ """``POST …/tm1.SaveAs``: the action.
1584
+
1585
+ Saves a hierarchy.
1586
+
1587
+ Since TM1 schema 11.0.0.
1588
+
1589
+ Endpoint ``Action Hierarchy/SaveAs``.
1590
+
1591
+ Parameters (left out when not passed; ``None`` sends ``null``):
1592
+
1593
+ * ``name`` (``Name``, ``Edm.String``): The name to save the hierarchy as.
1594
+
1595
+ * ``overwrite`` (``Overwrite``, ``Edm.Boolean``): A Boolean that indicates whether to
1596
+ overwrite the hierarchy that was passed in if it already exists.
1597
+
1598
+ * ``keep_existing_attributes`` (``KeepExistingAttributes``, ``Edm.Boolean``): A Boolean
1599
+ that indicates whether overwrite any existing attributes for the hierarchy, and all
1600
+ contained objects, we might be replacing with an overwrite. If the save is not
1601
+ overwriting, and this value is set to true, then no attributes will be created for the
1602
+ new hierarchy.
1603
+ """
1604
+ return await self._action('tm1.SaveAs', {'Name': name, 'Overwrite': overwrite, 'KeepExistingAttributes': keep_existing_attributes}, _r.Returns(m.Hierarchy, structured=True), _r.query_of(query, options), 'Action Hierarchy/SaveAs')
1605
+
1606
+ @endpoint('Action Hierarchy/SetElement')
1607
+ async def set_element(self, *, element: m.Element | Bind, before: m.Element | Bind | None = _r.UNSET) -> None:
1608
+ """``POST …/tm1.SetElement``: the action.
1609
+
1610
+ Inserts an element into a specified position by setting the parent.
1611
+
1612
+ Endpoint ``Action Hierarchy/SetElement``.
1613
+
1614
+ Parameters (left out when not passed; ``None`` sends ``null``):
1615
+
1616
+ * ``element`` (``Element``, ``ibm.tm1.api.v1.Element``): The element to insert.
1617
+
1618
+ * ``before`` (``Before``, ``ibm.tm1.api.v1.Element``): If specified, inserts the element
1619
+ before the element specified.
1620
+ """
1621
+ return await self._action('tm1.SetElement', {'Element': element, 'Before': before}, _r.Returns(), None, 'Action Hierarchy/SetElement')
1622
+
1623
+ @endpoint('Function Hierarchy/RootMembers')
1624
+ async def root_members(self, *, query: ODataQuery | None = None, **options: Any) -> list[m.Member]:
1625
+ """``GET …/tm1.RootMembers``: the function.
1626
+
1627
+ Returns the root members of a hierarchy.
1628
+
1629
+ Since TM1 schema 11.4.7.
1630
+
1631
+ Endpoint ``Function Hierarchy/RootMembers``.
1632
+ """
1633
+ return await self._function('tm1.RootMembers', {}, _r.Returns(m.Member, collection=True, structured=True), _r.query_of(query, options), 'Function Hierarchy/RootMembers')
1634
+
1635
+
1636
+ class LevelEntity(_r.EntityResource[m.Level]):
1637
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Level`: ``get``, ``update``,
1638
+ ``delete``, its navigation properties and bound operations.
1639
+ """
1640
+
1641
+ model = m.Level
1642
+
1643
+ @property
1644
+ @endpoint('Navigation Level/Hierarchy')
1645
+ def hierarchy(self) -> HierarchyEntity:
1646
+ """``…/Hierarchy``: the entity (a reference: read through here, change through its own
1647
+ collection).
1648
+
1649
+ The hierarchy of the level.
1650
+
1651
+ Endpoint ``Navigation Level/Hierarchy``.
1652
+ """
1653
+ return HierarchyEntity(self._session, self._path.nav('Hierarchy'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1654
+
1655
+ @property
1656
+ @endpoint('Navigation Level/Members')
1657
+ def members(self) -> MemberCollection:
1658
+ """``…/Members``: the collection (a reference: read through here, change through its own
1659
+ collection).
1660
+
1661
+ The members of the level.
1662
+
1663
+ Endpoint ``Navigation Level/Members``.
1664
+ """
1665
+ return MemberCollection(self._session, self._path.nav('Members'), contained=False)
1666
+
1667
+
1668
+ class LocalizedAttributesEntity(_r.EntityResource[m.LocalizedAttributes]):
1669
+ """An entity of type :class:`~skipcheck_tm1._generated.model.LocalizedAttributes`: ``get``,
1670
+ ``update``, ``delete``, its navigation properties and bound operations.
1671
+ """
1672
+
1673
+ model = m.LocalizedAttributes
1674
+
1675
+
1676
+ class LoggerEntity(_r.EntityResource[m.Logger]):
1677
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Logger`: ``get``, ``update``,
1678
+ ``delete``, its navigation properties and bound operations.
1679
+ """
1680
+
1681
+ model = m.Logger
1682
+
1683
+
1684
+ class MemberEntity(_r.EntityResource[m.Member]):
1685
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Member`: ``get``, ``update``,
1686
+ ``delete``, its navigation properties and bound operations.
1687
+ """
1688
+
1689
+ model = m.Member
1690
+
1691
+ @property
1692
+ @endpoint('Navigation Member/Hierarchy')
1693
+ def hierarchy(self) -> HierarchyEntity:
1694
+ """``…/Hierarchy``: the entity (a reference: read through here, change through its own
1695
+ collection).
1696
+
1697
+ The hierarchy of the member.
1698
+
1699
+ Endpoint ``Navigation Member/Hierarchy``.
1700
+ """
1701
+ return HierarchyEntity(self._session, self._path.nav('Hierarchy'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1702
+
1703
+ @property
1704
+ @endpoint('Navigation Member/Level')
1705
+ def level(self) -> LevelEntity:
1706
+ """``…/Level``: the entity (a reference: read through here, change through its own
1707
+ collection).
1708
+
1709
+ The level within the hierarchy on which this member resides.
1710
+
1711
+ Since TM1 schema 10.2.2.5.
1712
+
1713
+ Endpoint ``Navigation Member/Level``.
1714
+ """
1715
+ return LevelEntity(self._session, self._path.nav('Level'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1716
+
1717
+ @property
1718
+ @endpoint('Navigation Member/Element')
1719
+ def element(self) -> ElementEntity:
1720
+ """``…/Element``: the entity (a reference: read through here, change through its own
1721
+ collection).
1722
+
1723
+ The member element.
1724
+
1725
+ Endpoint ``Navigation Member/Element``.
1726
+ """
1727
+ return ElementEntity(self._session, self._path.nav('Element'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1728
+
1729
+ @property
1730
+ @endpoint('Navigation Member/Parent')
1731
+ def parent(self) -> MemberEntity:
1732
+ """``…/Parent``: the entity (a reference: read through here, change through its own
1733
+ collection).
1734
+
1735
+ The parent of the member in the consolidation.
1736
+
1737
+ Endpoint ``Navigation Member/Parent``.
1738
+ """
1739
+ return MemberEntity(self._session, self._path.nav('Parent'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1740
+
1741
+ @property
1742
+ @endpoint('Navigation Member/Children')
1743
+ def children(self) -> MemberCollection:
1744
+ """``…/Children``: the collection (a reference: read through here, change through its own
1745
+ collection).
1746
+
1747
+ The children of the member in the consolidation.
1748
+
1749
+ Endpoint ``Navigation Member/Children``.
1750
+ """
1751
+ return MemberCollection(self._session, self._path.nav('Children'), contained=False)
1752
+
1753
+ @property
1754
+ @endpoint('Navigation Member/LocalizedAttributes')
1755
+ def localized_attributes(self) -> LocalizedAttributesCollection:
1756
+ """``…/LocalizedAttributes``: the collection (contained).
1757
+
1758
+ Translated string values for properties of the member.
1759
+
1760
+ Endpoint ``Navigation Member/LocalizedAttributes``.
1761
+ """
1762
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
1763
+
1764
+ def as_tuple_member(self) -> TupleMemberEntity:
1765
+ """``…/tm1.TupleMember``: this entity as a
1766
+ :class:`~skipcheck_tm1._generated.model.TupleMember`, for its own properties, navigation
1767
+ and operations.
1768
+ """
1769
+ return TupleMemberEntity(self._session, self._path.cast('tm1.TupleMember'), self._forbidden)
1770
+
1771
+
1772
+ class MessageLogEntryEntity(_r.EntityResource[m.MessageLogEntry]):
1773
+ """An entity of type :class:`~skipcheck_tm1._generated.model.MessageLogEntry`: ``get``,
1774
+ ``update``, ``delete``, its navigation properties and bound operations.
1775
+ """
1776
+
1777
+ model = m.MessageLogEntry
1778
+
1779
+
1780
+ class ProcessEntity(_r.EntityResource[m.Process]):
1781
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Process`: ``get``, ``update``,
1782
+ ``delete``, its navigation properties and bound operations.
1783
+ """
1784
+
1785
+ model = m.Process
1786
+
1787
+ @property
1788
+ @endpoint('Navigation Process/LocalizedAttributes')
1789
+ def localized_attributes(self) -> LocalizedAttributesCollection:
1790
+ """``…/LocalizedAttributes``: the collection (contained).
1791
+
1792
+ Translated string values for properties of the process.
1793
+
1794
+ Endpoint ``Navigation Process/LocalizedAttributes``.
1795
+ """
1796
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
1797
+
1798
+ @property
1799
+ @endpoint('Navigation Process/ErrorLogs')
1800
+ def error_logs(self) -> ProcessErrorLogCollection:
1801
+ """``…/ErrorLogs``: the collection (contained).
1802
+
1803
+ A collection of error logs for the process.
1804
+
1805
+ Since TM1 schema 10.2.2.2.
1806
+
1807
+ Endpoint ``Navigation Process/ErrorLogs``.
1808
+ """
1809
+ return ProcessErrorLogCollection(self._session, self._path.nav('ErrorLogs'), contained=True)
1810
+
1811
+ @endpoint('Action Process/Compile')
1812
+ async def compile(self, *, query: ODataQuery | None = None, **options: Any) -> list[m.ProcessSyntaxError]:
1813
+ """``POST …/tm1.Compile``: the action.
1814
+
1815
+ Since TM1 schema 11.0.0.
1816
+
1817
+ Endpoint ``Action Process/Compile``.
1818
+ """
1819
+ return await self._action('tm1.Compile', {}, _r.Returns(m.ProcessSyntaxError, collection=True, structured=True), _r.query_of(query, options), 'Action Process/Compile')
1820
+
1821
+ @endpoint('Action Process/Debug')
1822
+ async def debug(self, *, parameters: list[m.NameValuePair] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.ProcessDebugContext | None:
1823
+ """``POST …/tm1.Debug``: the action.
1824
+
1825
+ Starts a debug session for a process defined in Turbo Integrator.
1826
+
1827
+ Endpoint ``Action Process/Debug``.
1828
+
1829
+ Parameters (left out when not passed; ``None`` sends ``null``):
1830
+
1831
+ * ``parameters`` (``Parameters``, ``Collection(ibm.tm1.api.v1.NameValuePair)``):
1832
+ Override default values (numeric or string) defined in the model.
1833
+ """
1834
+ return await self._action('tm1.Debug', {'Parameters': parameters}, _r.Returns(m.ProcessDebugContext, structured=True), _r.query_of(query, options), 'Action Process/Debug')
1835
+
1836
+ @endpoint('Action Process/Execute')
1837
+ async def execute(self, *, parameters: list[m.NameValuePair] | None = _r.UNSET) -> None:
1838
+ """``POST …/tm1.Execute``: the action.
1839
+
1840
+ Runs a process defined in Turbo Integrator.
1841
+
1842
+ .. deprecated:: 11.3.0
1843
+
1844
+ Endpoint ``Action Process/Execute``.
1845
+
1846
+ Parameters (left out when not passed; ``None`` sends ``null``):
1847
+
1848
+ * ``parameters`` (``Parameters``, ``Collection(ibm.tm1.api.v1.NameValuePair)``):
1849
+ Override default values (numeric or string) defined in the model.
1850
+ """
1851
+ return await self._action('tm1.Execute', {'Parameters': parameters}, _r.Returns(), None, 'Action Process/Execute')
1852
+
1853
+ @endpoint('Action Process/ExecuteWithReturn')
1854
+ async def execute_with_return(self, *, parameters: list[m.NameValuePair] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.ProcessExecuteResult | None:
1855
+ """``POST …/tm1.ExecuteWithReturn``: the action.
1856
+
1857
+ Runs a process defined in Turbo Integrator and returns back the status.
1858
+
1859
+ Since TM1 schema 11.3.0.
1860
+
1861
+ Endpoint ``Action Process/ExecuteWithReturn``.
1862
+
1863
+ Parameters (left out when not passed; ``None`` sends ``null``):
1864
+
1865
+ * ``parameters`` (``Parameters``, ``Collection(ibm.tm1.api.v1.NameValuePair)``):
1866
+ Override default values (numeric or string) defined in the model.
1867
+ """
1868
+ return await self._action('tm1.ExecuteWithReturn', {'Parameters': parameters}, _r.Returns(m.ProcessExecuteResult, structured=True), _r.query_of(query, options), 'Action Process/ExecuteWithReturn')
1869
+
1870
+
1871
+ class ProcessDebugContextEntity(_r.EntityResource[m.ProcessDebugContext]):
1872
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ProcessDebugContext`: ``get``,
1873
+ ``update``, ``delete``, its navigation properties and bound operations.
1874
+ """
1875
+
1876
+ model = m.ProcessDebugContext
1877
+
1878
+ @property
1879
+ @endpoint('Navigation ProcessDebugContext/CurrentBreakpoint')
1880
+ def current_breakpoint(self) -> ProcessDebugContextBreakpointEntity:
1881
+ """``…/CurrentBreakpoint``: the entity (a reference: read through here, change through its
1882
+ own collection).
1883
+
1884
+ The breakpoint that the process is currently paused at.
1885
+
1886
+ Endpoint ``Navigation ProcessDebugContext/CurrentBreakpoint``.
1887
+ """
1888
+ return ProcessDebugContextBreakpointEntity(self._session, self._path.nav('CurrentBreakpoint'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1889
+
1890
+ @property
1891
+ @endpoint('Navigation ProcessDebugContext/Process')
1892
+ def process(self) -> ProcessEntity:
1893
+ """``…/Process``: the entity (a reference: read through here, change through its own
1894
+ collection).
1895
+
1896
+ The TurboIntegrator process passed to the debug action.
1897
+
1898
+ Endpoint ``Navigation ProcessDebugContext/Process``.
1899
+ """
1900
+ return ProcessEntity(self._session, self._path.nav('Process'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1901
+
1902
+ @property
1903
+ @endpoint('Navigation ProcessDebugContext/CallStack')
1904
+ def call_stack(self) -> ProcessDebugContextStackFrameCollection:
1905
+ """``…/CallStack``: the collection (contained).
1906
+
1907
+ The execution stack that represents the current execution state.
1908
+
1909
+ Endpoint ``Navigation ProcessDebugContext/CallStack``.
1910
+ """
1911
+ return ProcessDebugContextStackFrameCollection(self._session, self._path.nav('CallStack'), contained=True)
1912
+
1913
+ @property
1914
+ @endpoint('Navigation ProcessDebugContext/Breakpoints')
1915
+ def breakpoints(self) -> ProcessDebugContextBreakpointCollection:
1916
+ """``…/Breakpoints``: the collection (contained).
1917
+
1918
+ A list of breakpoints that apply to this debug session.
1919
+
1920
+ Endpoint ``Navigation ProcessDebugContext/Breakpoints``.
1921
+ """
1922
+ return ProcessDebugContextBreakpointCollection(self._session, self._path.nav('Breakpoints'), contained=True)
1923
+
1924
+ @property
1925
+ @endpoint('Navigation ProcessDebugContext/Thread')
1926
+ def thread(self) -> ThreadEntity:
1927
+ """``…/Thread``: the entity (a reference: read through here, change through its own
1928
+ collection).
1929
+
1930
+ The thread that is executing the process for the debug session.
1931
+
1932
+ Endpoint ``Navigation ProcessDebugContext/Thread``.
1933
+ """
1934
+ return ThreadEntity(self._session, self._path.nav('Thread'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
1935
+
1936
+ @endpoint('Action ProcessDebugContext/Continue')
1937
+ async def continue_(self, *, query: ODataQuery | None = None, **options: Any) -> m.ProcessDebugContext | None:
1938
+ """``POST …/tm1.Continue``: the action.
1939
+
1940
+ Continues execution of a paused process debug context.
1941
+
1942
+ Endpoint ``Action ProcessDebugContext/Continue``.
1943
+ """
1944
+ return await self._action('tm1.Continue', {}, _r.Returns(m.ProcessDebugContext, structured=True), _r.query_of(query, options), 'Action ProcessDebugContext/Continue')
1945
+
1946
+ @endpoint('Action ProcessDebugContext/StepIn')
1947
+ async def step_in(self, *, query: ODataQuery | None = None, **options: Any) -> m.ProcessDebugContext | None:
1948
+ """``POST …/tm1.StepIn``: the action.
1949
+
1950
+ Runs a single statement from the process.
1951
+
1952
+ If that statement is an ExecuteProcess function call, pause at the first statement
1953
+ inside that process.
1954
+
1955
+ Endpoint ``Action ProcessDebugContext/StepIn``.
1956
+ """
1957
+ return await self._action('tm1.StepIn', {}, _r.Returns(m.ProcessDebugContext, structured=True), _r.query_of(query, options), 'Action ProcessDebugContext/StepIn')
1958
+
1959
+ @endpoint('Action ProcessDebugContext/StepOut')
1960
+ async def step_out(self, *, query: ODataQuery | None = None, **options: Any) -> m.ProcessDebugContext | None:
1961
+ """``POST …/tm1.StepOut``: the action.
1962
+
1963
+ Resumes execution and runs until the current process has finished.
1964
+
1965
+ Endpoint ``Action ProcessDebugContext/StepOut``.
1966
+ """
1967
+ return await self._action('tm1.StepOut', {}, _r.Returns(m.ProcessDebugContext, structured=True), _r.query_of(query, options), 'Action ProcessDebugContext/StepOut')
1968
+
1969
+ @endpoint('Action ProcessDebugContext/StepOver')
1970
+ async def step_over(self, *, query: ODataQuery | None = None, **options: Any) -> m.ProcessDebugContext | None:
1971
+ """``POST …/tm1.StepOver``: the action.
1972
+
1973
+ Runs a single statement from the process.
1974
+
1975
+ If the statement is an ExecuteProcess function call, do not debug inside the function
1976
+ call.
1977
+
1978
+ Endpoint ``Action ProcessDebugContext/StepOver``.
1979
+ """
1980
+ return await self._action('tm1.StepOver', {}, _r.Returns(m.ProcessDebugContext, structured=True), _r.query_of(query, options), 'Action ProcessDebugContext/StepOver')
1981
+
1982
+
1983
+ class ProcessDebugContextBreakpointEntity(_r.EntityResource[m.ProcessDebugContextBreakpoint]):
1984
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ProcessDebugContextBreakpoint`:
1985
+ ``get``, ``update``, ``delete``, its navigation properties and bound operations.
1986
+ """
1987
+
1988
+ model = m.ProcessDebugContextBreakpoint
1989
+
1990
+ def as_process_debug_context_data_breakpoint(self) -> ProcessDebugContextDataBreakpointEntity:
1991
+ """``…/tm1.ProcessDebugContextDataBreakpoint``: this entity as a
1992
+ :class:`~skipcheck_tm1._generated.model.ProcessDebugContextDataBreakpoint`, for its own
1993
+ properties, navigation and operations.
1994
+ """
1995
+ return ProcessDebugContextDataBreakpointEntity(self._session, self._path.cast('tm1.ProcessDebugContextDataBreakpoint'), self._forbidden)
1996
+
1997
+ def as_process_debug_context_line_breakpoint(self) -> ProcessDebugContextLineBreakpointEntity:
1998
+ """``…/tm1.ProcessDebugContextLineBreakpoint``: this entity as a
1999
+ :class:`~skipcheck_tm1._generated.model.ProcessDebugContextLineBreakpoint`, for its own
2000
+ properties, navigation and operations.
2001
+ """
2002
+ return ProcessDebugContextLineBreakpointEntity(self._session, self._path.cast('tm1.ProcessDebugContextLineBreakpoint'), self._forbidden)
2003
+
2004
+ def as_process_debug_context_lock_breakpoint(self) -> ProcessDebugContextLockBreakpointEntity:
2005
+ """``…/tm1.ProcessDebugContextLockBreakpoint``: this entity as a
2006
+ :class:`~skipcheck_tm1._generated.model.ProcessDebugContextLockBreakpoint`, for its own
2007
+ properties, navigation and operations.
2008
+ """
2009
+ return ProcessDebugContextLockBreakpointEntity(self._session, self._path.cast('tm1.ProcessDebugContextLockBreakpoint'), self._forbidden)
2010
+
2011
+
2012
+ class ProcessDebugContextStackFrameEntity(_r.EntityResource[m.ProcessDebugContextStackFrame]):
2013
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ProcessDebugContextStackFrame`:
2014
+ ``get``, ``update``, ``delete``, its navigation properties and bound operations.
2015
+ """
2016
+
2017
+ model = m.ProcessDebugContextStackFrame
2018
+
2019
+ @property
2020
+ @endpoint('Navigation ProcessDebugContextStackFrame/Process')
2021
+ def process(self) -> ProcessEntity:
2022
+ """``…/Process``: the entity (a reference: read through here, change through its own
2023
+ collection).
2024
+
2025
+ Endpoint ``Navigation ProcessDebugContextStackFrame/Process``.
2026
+ """
2027
+ return ProcessEntity(self._session, self._path.nav('Process'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2028
+
2029
+ @property
2030
+ @endpoint('Navigation ProcessDebugContextStackFrame/Variables')
2031
+ def variables(self) -> ProcessDebugContextVariableCollection:
2032
+ """``…/Variables``: the collection (contained).
2033
+
2034
+ The entire list of active variables available to the process.
2035
+
2036
+ Endpoint ``Navigation ProcessDebugContextStackFrame/Variables``.
2037
+ """
2038
+ return ProcessDebugContextVariableCollection(self._session, self._path.nav('Variables'), contained=True)
2039
+
2040
+
2041
+ class ProcessDebugContextVariableEntity(_r.EntityResource[m.ProcessDebugContextVariable]):
2042
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ProcessDebugContextVariable`:
2043
+ ``get``, ``update``, ``delete``, its navigation properties and bound operations.
2044
+ """
2045
+
2046
+ model = m.ProcessDebugContextVariable
2047
+
2048
+
2049
+ class ProcessErrorLogEntity(_r.EntityResource[m.ProcessErrorLog]):
2050
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ProcessErrorLog`: ``get``,
2051
+ ``update``, ``delete``, its navigation properties and bound operations.
2052
+ """
2053
+
2054
+ model = m.ProcessErrorLog
2055
+
2056
+ async def read_content(self) -> bytes:
2057
+ """``GET …/Content/$value``: The content of the process error."""
2058
+ return await self._read_stream('Content')
2059
+
2060
+ async def write_content(self, data: bytes, content_type: str = "application/octet-stream") -> None:
2061
+ """``PUT …/Content/$value``: replaces it."""
2062
+ await self._write_stream('Content', data, content_type)
2063
+
2064
+
2065
+ class RowsetEntity(_r.EntityResource[m.Rowset]):
2066
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Rowset`: ``get``, ``update``,
2067
+ ``delete``, its navigation properties and bound operations.
2068
+ """
2069
+
2070
+ model = m.Rowset
2071
+
2072
+ @property
2073
+ @endpoint('Navigation Rowset/Rows')
2074
+ def rows(self) -> RowsetRowCollection:
2075
+ """``…/Rows``: the collection (contained).
2076
+
2077
+ Individual row value that makes up part of the rowset.
2078
+
2079
+ Endpoint ``Navigation Rowset/Rows``.
2080
+ """
2081
+ return RowsetRowCollection(self._session, self._path.nav('Rows'), contained=True)
2082
+
2083
+
2084
+ class RowsetRowEntity(_r.EntityResource[m.RowsetRow]):
2085
+ """An entity of type :class:`~skipcheck_tm1._generated.model.RowsetRow`: ``get``, ``update``,
2086
+ ``delete``, its navigation properties and bound operations.
2087
+ """
2088
+
2089
+ model = m.RowsetRow
2090
+
2091
+
2092
+ class SQLDataSourceEntity(_r.EntityResource[m.SQLDataSource]):
2093
+ """An entity of type :class:`~skipcheck_tm1._generated.model.SQLDataSource`: ``get``,
2094
+ ``update``, ``delete``, its navigation properties and bound operations.
2095
+ """
2096
+
2097
+ model = m.SQLDataSource
2098
+
2099
+
2100
+ class SandboxEntity(_r.EntityResource[m.Sandbox]):
2101
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Sandbox`: ``get``, ``update``,
2102
+ ``delete``, its navigation properties and bound operations.
2103
+ """
2104
+
2105
+ model = m.Sandbox
2106
+
2107
+ @endpoint('Action Sandbox/DiscardChanges')
2108
+ async def discard_changes(self) -> None:
2109
+ """``POST …/tm1.DiscardChanges``: the action.
2110
+
2111
+ Resets the values in the sandbox back to the base.
2112
+
2113
+ Endpoint ``Action Sandbox/DiscardChanges``.
2114
+ """
2115
+ return await self._action('tm1.DiscardChanges', {}, _r.Returns(), None, 'Action Sandbox/DiscardChanges')
2116
+
2117
+ @endpoint('Action Sandbox/Load')
2118
+ async def load(self) -> None:
2119
+ """``POST …/tm1.Load``: the action.
2120
+
2121
+ Loads the sandbox into memory on the server.
2122
+
2123
+ This action sets the IsLoaded property for Sandbox entity.
2124
+
2125
+ Endpoint ``Action Sandbox/Load``.
2126
+ """
2127
+ return await self._action('tm1.Load', {}, _r.Returns(), None, 'Action Sandbox/Load')
2128
+
2129
+ @endpoint('Action Sandbox/Merge')
2130
+ async def merge(self, *, target: m.Sandbox | Bind, conflict_resolution: m.ConflictResolution | None = _r.UNSET, allow_queueing: bool | None = _r.UNSET, clean_after: bool | None = _r.UNSET) -> None:
2131
+ """``POST …/tm1.Merge``: the action.
2132
+
2133
+ Merges the values of one sandbox with another.
2134
+
2135
+ Endpoint ``Action Sandbox/Merge``.
2136
+
2137
+ Parameters (left out when not passed; ``None`` sends ``null``):
2138
+
2139
+ * ``target`` (``Target``, ``ibm.tm1.api.v1.Sandbox``): The sandbox target that you want
2140
+ to merge to.
2141
+
2142
+ * ``conflict_resolution`` (``ConflictResolution``,
2143
+ ``ibm.tm1.api.v1.ConflictResolution``): An enumerated value that indicates whether to
2144
+ resolve conflicts using the source, target, or individually.
2145
+
2146
+ * ``allow_queueing`` (``AllowQueueing``, ``Edm.Boolean``): A Boolean that indicates
2147
+ whether to allow queuing.
2148
+
2149
+ * ``clean_after`` (``CleanAfter``, ``Edm.Boolean``): A Boolean that indicates whether to
2150
+ clean the sandbox after merging.
2151
+ """
2152
+ return await self._action('tm1.Merge', {'Target': target, 'ConflictResolution': conflict_resolution, 'AllowQueueing': allow_queueing, 'CleanAfter': clean_after}, _r.Returns(), None, 'Action Sandbox/Merge')
2153
+
2154
+ @endpoint('Action Sandbox/Publish')
2155
+ async def publish(self, *, conflict_resolution: m.ConflictResolution | None = _r.UNSET, allow_queueing: bool | None = _r.UNSET, clean_after: bool | None = _r.UNSET) -> None:
2156
+ """``POST …/tm1.Publish``: the action.
2157
+
2158
+ Publishes the contents (values) of the sandbox back to base.
2159
+
2160
+ The sandbox specified is still available for use and is left unchanged.
2161
+
2162
+ Endpoint ``Action Sandbox/Publish``.
2163
+
2164
+ Parameters (left out when not passed; ``None`` sends ``null``):
2165
+
2166
+ * ``conflict_resolution`` (``ConflictResolution``,
2167
+ ``ibm.tm1.api.v1.ConflictResolution``): An enumerated value that indicates whether to
2168
+ resolve conflicts using the source, target, or individually.
2169
+
2170
+ * ``allow_queueing`` (``AllowQueueing``, ``Edm.Boolean``): A Boolean that indicates
2171
+ whether to allow queuing.
2172
+
2173
+ * ``clean_after`` (``CleanAfter``, ``Edm.Boolean``): A Boolean that indicates whether to
2174
+ clean the sandbox after merging.
2175
+ """
2176
+ return await self._action('tm1.Publish', {'ConflictResolution': conflict_resolution, 'AllowQueueing': allow_queueing, 'CleanAfter': clean_after}, _r.Returns(), None, 'Action Sandbox/Publish')
2177
+
2178
+ @endpoint('Action Sandbox/Unload')
2179
+ async def unload(self) -> None:
2180
+ """``POST …/tm1.Unload``: the action.
2181
+
2182
+ Unloads the sandbox from memory on the server.
2183
+
2184
+ This action is useful for freeing up resources when they are no longer needed.
2185
+
2186
+ Endpoint ``Action Sandbox/Unload``.
2187
+ """
2188
+ return await self._action('tm1.Unload', {}, _r.Returns(), None, 'Action Sandbox/Unload')
2189
+
2190
+
2191
+ class ServerEntity(_r.EntityResource[m.Server]):
2192
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Server`: ``get``, ``update``,
2193
+ ``delete``, its navigation properties and bound operations.
2194
+ """
2195
+
2196
+ model = m.Server
2197
+
2198
+
2199
+ class ServerSettingsEntity(_r.EntityResource[m.ServerSettings]):
2200
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ServerSettings`: ``get``,
2201
+ ``update``, ``delete``, its navigation properties and bound operations.
2202
+ """
2203
+
2204
+ model = m.ServerSettings
2205
+
2206
+
2207
+ class SessionEntity(_r.EntityResource[m.Session]):
2208
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Session`: ``get``, ``update``,
2209
+ ``delete``, its navigation properties and bound operations.
2210
+ """
2211
+
2212
+ model = m.Session
2213
+
2214
+ @property
2215
+ @endpoint('Navigation Session/User')
2216
+ def user(self) -> UserEntity:
2217
+ """``…/User``: the entity (a reference: read through here, change through its own
2218
+ collection).
2219
+
2220
+ The user that is associated to this session.
2221
+
2222
+ Endpoint ``Navigation Session/User``.
2223
+ """
2224
+ return UserEntity(self._session, self._path.nav('User'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2225
+
2226
+ @property
2227
+ @endpoint('Navigation Session/Threads')
2228
+ def threads(self) -> ThreadCollection:
2229
+ """``…/Threads``: the collection (a reference: read through here, change through its own
2230
+ collection).
2231
+
2232
+ The names of users in a given group.
2233
+
2234
+ Endpoint ``Navigation Session/Threads``.
2235
+ """
2236
+ return ThreadCollection(self._session, self._path.nav('Threads'), contained=False)
2237
+
2238
+ @endpoint('Action Session/Close')
2239
+ async def close(self) -> None:
2240
+ """``POST …/tm1.Close``: the action.
2241
+
2242
+ Closes the session.
2243
+
2244
+ Since TM1 schema 10.2.2.5.
2245
+
2246
+ Endpoint ``Action Session/Close``.
2247
+ """
2248
+ return await self._action('tm1.Close', {}, _r.Returns(), None, 'Action Session/Close')
2249
+
2250
+
2251
+ class SubsetEntity(_r.EntityResource[m.Subset]):
2252
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Subset`: ``get``, ``update``,
2253
+ ``delete``, its navigation properties and bound operations.
2254
+ """
2255
+
2256
+ model = m.Subset
2257
+
2258
+ @property
2259
+ @endpoint('Navigation Subset/Hierarchy')
2260
+ def hierarchy(self) -> HierarchyEntity:
2261
+ """``…/Hierarchy``: the entity (a reference: read through here, change through its own
2262
+ collection).
2263
+
2264
+ The hierarchies that are included in the subset.
2265
+
2266
+ Endpoint ``Navigation Subset/Hierarchy``.
2267
+ """
2268
+ return HierarchyEntity(self._session, self._path.nav('Hierarchy'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2269
+
2270
+ @property
2271
+ @endpoint('Navigation Subset/Elements')
2272
+ def elements(self) -> ElementCollection:
2273
+ """``…/Elements``: the collection (a reference: read through here, change through its own
2274
+ collection).
2275
+
2276
+ The elements that are included in the subset.
2277
+
2278
+ TM1 (11.8): a subset PATCH binding ``Elements`` appends.
2279
+
2280
+ Endpoint ``Navigation Subset/Elements``.
2281
+ """
2282
+ return ElementCollection(self._session, self._path.nav('Elements'), contained=False)
2283
+
2284
+ @property
2285
+ @endpoint('Navigation Subset/LocalizedAttributes')
2286
+ def localized_attributes(self) -> LocalizedAttributesCollection:
2287
+ """``…/LocalizedAttributes``: the collection (contained).
2288
+
2289
+ Translated string values for properties of the subset.
2290
+
2291
+ Endpoint ``Navigation Subset/LocalizedAttributes``.
2292
+ """
2293
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
2294
+
2295
+ @endpoint('Action Subset/SaveAs')
2296
+ async def save_as(self, *, name: str, make_private: bool | None = _r.UNSET, make_static: bool | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Subset | None:
2297
+ """``POST …/tm1.SaveAs``: the action.
2298
+
2299
+ Saves a subset.
2300
+
2301
+ Since TM1 schema 11.0.0.
2302
+
2303
+ Endpoint ``Action Subset/SaveAs``.
2304
+
2305
+ Parameters (left out when not passed; ``None`` sends ``null``):
2306
+
2307
+ * ``name`` (``Name``, ``Edm.String``): The name to save the subset as.
2308
+
2309
+ * ``make_private`` (``MakePrivate``, ``Edm.Boolean``): A Boolean that indicates whether
2310
+ to save this subset as private.
2311
+
2312
+ * ``make_static`` (``MakeStatic``, ``Edm.Boolean``): A Boolean that indicates whether to
2313
+ save this subset as static.
2314
+ """
2315
+ return await self._action('tm1.SaveAs', {'Name': name, 'MakePrivate': make_private, 'MakeStatic': make_static}, _r.Returns(m.Subset, structured=True), _r.query_of(query, options), 'Action Subset/SaveAs')
2316
+
2317
+ @endpoint('Action Subset/SetElement')
2318
+ async def set_element(self, *, element: m.Element | Bind, before: m.Element | Bind | None = _r.UNSET, after: m.Element | Bind | None = _r.UNSET) -> None:
2319
+ """``POST …/tm1.SetElement``: the action.
2320
+
2321
+ Inserts an element into a specified subset at a specified location.
2322
+
2323
+ Since TM1 schema 10.2.2.6.
2324
+
2325
+ Endpoint ``Action Subset/SetElement``.
2326
+
2327
+ Parameters (left out when not passed; ``None`` sends ``null``):
2328
+
2329
+ * ``element`` (``Element``, ``ibm.tm1.api.v1.Element``): The element to insert.
2330
+
2331
+ * ``before`` (``Before``, ``ibm.tm1.api.v1.Element``): If specified, inserts the element
2332
+ before the element specified.
2333
+
2334
+ * ``after`` (``After``, ``ibm.tm1.api.v1.Element``): If specified, inserts the element
2335
+ after the element specified.
2336
+ """
2337
+ return await self._action('tm1.SetElement', {'Element': element, 'Before': before, 'After': after}, _r.Returns(), None, 'Action Subset/SetElement')
2338
+
2339
+
2340
+ class ThreadEntity(_r.EntityResource[m.Thread]):
2341
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Thread`: ``get``, ``update``,
2342
+ ``delete``, its navigation properties and bound operations.
2343
+ """
2344
+
2345
+ model = m.Thread
2346
+
2347
+ @property
2348
+ @endpoint('Navigation Thread/Session')
2349
+ def session_(self) -> SessionEntity:
2350
+ """``…/Session``: the entity (a reference: read through here, change through its own
2351
+ collection).
2352
+
2353
+ The Session that this thread is currently servicing.
2354
+
2355
+ Endpoint ``Navigation Thread/Session``.
2356
+ """
2357
+ return SessionEntity(self._session, self._path.nav('Session'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2358
+
2359
+ @endpoint('Action Thread/CancelOperation')
2360
+ async def cancel_operation(self) -> None:
2361
+ """``POST …/tm1.CancelOperation``: the action.
2362
+
2363
+ Cancels an operation.
2364
+
2365
+ Since TM1 schema 10.2.2.1.
2366
+
2367
+ Endpoint ``Action Thread/CancelOperation``.
2368
+ """
2369
+ return await self._action('tm1.CancelOperation', {}, _r.Returns(), None, 'Action Thread/CancelOperation')
2370
+
2371
+
2372
+ class TransactionLogEntryEntity(_r.EntityResource[m.TransactionLogEntry]):
2373
+ """An entity of type :class:`~skipcheck_tm1._generated.model.TransactionLogEntry`: ``get``,
2374
+ ``update``, ``delete``, its navigation properties and bound operations.
2375
+ """
2376
+
2377
+ model = m.TransactionLogEntry
2378
+
2379
+
2380
+ class UserEntity(_r.EntityResource[m.User]):
2381
+ """An entity of type :class:`~skipcheck_tm1._generated.model.User`: ``get``, ``update``,
2382
+ ``delete``, its navigation properties and bound operations.
2383
+ """
2384
+
2385
+ model = m.User
2386
+
2387
+ @property
2388
+ @endpoint('Navigation User/Groups')
2389
+ def groups(self) -> GroupCollection:
2390
+ """``…/Groups``: the collection (a reference: read through here, change through its own
2391
+ collection).
2392
+
2393
+ The defined groups that the user belongs to. A user can belong to multiple groups.
2394
+
2395
+ TM1 (11.8): ``DELETE Users('u')/Groups('g')`` (and its ``$ref``) deletes the group
2396
+ itself, for everyone, not the link. Binding ``Groups`` in a user PATCH replaces them; a
2397
+ POST through it tries to create a group.
2398
+
2399
+ Endpoint ``Navigation User/Groups``.
2400
+ """
2401
+ return GroupCollection(self._session, self._path.nav('Groups'), dict.fromkeys(('create', 'delete'), "TM1 (11.8): `DELETE Users('u')/Groups('g')` (and its `$ref`) deletes the group itself, for everyone, not the link. Binding `Groups` in a user PATCH replaces them; a POST through it tries to create a group."), contained=False)
2402
+
2403
+ @property
2404
+ @endpoint('Navigation User/Sessions')
2405
+ def sessions(self) -> SessionCollection:
2406
+ """``…/Sessions``: the collection (a reference: read through here, change through its own
2407
+ collection).
2408
+
2409
+ The set of currently active sessions of this user.
2410
+
2411
+ Since TM1 schema 10.2.2.5.
2412
+
2413
+ Endpoint ``Navigation User/Sessions``.
2414
+ """
2415
+ return SessionCollection(self._session, self._path.nav('Sessions'), contained=False)
2416
+
2417
+ @endpoint('Action User/Disconnect')
2418
+ async def disconnect(self) -> None:
2419
+ """``POST …/tm1.Disconnect``: the action.
2420
+
2421
+ Disconnects a user but lets threads that are active continue to run until they are done.
2422
+
2423
+ Since TM1 schema 10.2.2.6.
2424
+
2425
+ Endpoint ``Action User/Disconnect``.
2426
+ """
2427
+ return await self._action('tm1.Disconnect', {}, _r.Returns(), None, 'Action User/Disconnect')
2428
+
2429
+
2430
+ class ViewEntity(_r.EntityResource[m.View]):
2431
+ """An entity of type :class:`~skipcheck_tm1._generated.model.View`: ``get``, ``update``,
2432
+ ``delete``, its navigation properties and bound operations.
2433
+ """
2434
+
2435
+ model = m.View
2436
+
2437
+ @property
2438
+ @endpoint('Navigation View/Cube')
2439
+ def cube(self) -> CubeEntity:
2440
+ """``…/Cube``: the entity (a reference: read through here, change through its own
2441
+ collection).
2442
+
2443
+ The parent cube of the view.
2444
+
2445
+ Endpoint ``Navigation View/Cube``.
2446
+ """
2447
+ return CubeEntity(self._session, self._path.nav('Cube'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2448
+
2449
+ @property
2450
+ @endpoint('Navigation View/LocalizedAttributes')
2451
+ def localized_attributes(self) -> LocalizedAttributesCollection:
2452
+ """``…/LocalizedAttributes``: the collection (contained).
2453
+
2454
+ Translated string values for properties of the view.
2455
+
2456
+ Endpoint ``Navigation View/LocalizedAttributes``.
2457
+ """
2458
+ return LocalizedAttributesCollection(self._session, self._path.nav('LocalizedAttributes'), contained=True)
2459
+
2460
+ def as_mdx_view(self) -> MDXViewEntity:
2461
+ """``…/tm1.MDXView``: this entity as a :class:`~skipcheck_tm1._generated.model.MDXView`,
2462
+ for its own properties, navigation and operations.
2463
+ """
2464
+ return MDXViewEntity(self._session, self._path.cast('tm1.MDXView'), self._forbidden)
2465
+
2466
+ def as_native_view(self) -> NativeViewEntity:
2467
+ """``…/tm1.NativeView``: this entity as a
2468
+ :class:`~skipcheck_tm1._generated.model.NativeView`, for its own properties, navigation
2469
+ and operations.
2470
+ """
2471
+ return NativeViewEntity(self._session, self._path.cast('tm1.NativeView'), self._forbidden)
2472
+
2473
+
2474
+ class ChoreReferenceEntity(EntryEntity):
2475
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ChoreReference`: ``get``,
2476
+ ``update``, ``delete``, its navigation properties and bound operations.
2477
+ """
2478
+
2479
+ model = m.ChoreReference
2480
+
2481
+ @property
2482
+ @endpoint('Navigation ChoreReference/Chore')
2483
+ def chore(self) -> ChoreEntity:
2484
+ """``…/Chore``: the entity (a reference: read through here, change through its own
2485
+ collection).
2486
+
2487
+ The chore that is referenced.
2488
+
2489
+ Endpoint ``Navigation ChoreReference/Chore``.
2490
+ """
2491
+ return ChoreEntity(self._session, self._path.nav('Chore'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2492
+
2493
+
2494
+ class CubeDrillthroughEntity(DrillthroughEntity):
2495
+ """An entity of type :class:`~skipcheck_tm1._generated.model.CubeDrillthrough`: ``get``,
2496
+ ``update``, ``delete``, its navigation properties and bound operations.
2497
+ """
2498
+
2499
+ model = m.CubeDrillthrough
2500
+
2501
+ @endpoint('Action CubeDrillthrough/Execute')
2502
+ async def execute(self, *, query: ODataQuery | None = None, **options: Any) -> m.Cellset | None:
2503
+ """``POST …/tm1.Execute``: the action.
2504
+
2505
+ Drill into a cell.
2506
+
2507
+ Since TM1 schema 10.2.2.6.
2508
+
2509
+ Endpoint ``Action CubeDrillthrough/Execute``.
2510
+ """
2511
+ return await self._action('tm1.Execute', {}, _r.Returns(m.Cellset, structured=True), _r.query_of(query, options), 'Action CubeDrillthrough/Execute')
2512
+
2513
+
2514
+ class CubeReferenceEntity(EntryEntity):
2515
+ """An entity of type :class:`~skipcheck_tm1._generated.model.CubeReference`: ``get``,
2516
+ ``update``, ``delete``, its navigation properties and bound operations.
2517
+ """
2518
+
2519
+ model = m.CubeReference
2520
+
2521
+ @property
2522
+ @endpoint('Navigation CubeReference/Cube')
2523
+ def cube(self) -> CubeEntity:
2524
+ """``…/Cube``: the entity (a reference: read through here, change through its own
2525
+ collection).
2526
+
2527
+ The cube that is referenced.
2528
+
2529
+ Endpoint ``Navigation CubeReference/Cube``.
2530
+ """
2531
+ return CubeEntity(self._session, self._path.nav('Cube'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2532
+
2533
+
2534
+ class DimensionReferenceEntity(EntryEntity):
2535
+ """An entity of type :class:`~skipcheck_tm1._generated.model.DimensionReference`: ``get``,
2536
+ ``update``, ``delete``, its navigation properties and bound operations.
2537
+ """
2538
+
2539
+ model = m.DimensionReference
2540
+
2541
+ @property
2542
+ @endpoint('Navigation DimensionReference/Dimension')
2543
+ def dimension(self) -> DimensionEntity:
2544
+ """``…/Dimension``: the entity (a reference: read through here, change through its own
2545
+ collection).
2546
+
2547
+ The dimension that is referenced.
2548
+
2549
+ Endpoint ``Navigation DimensionReference/Dimension``.
2550
+ """
2551
+ return DimensionEntity(self._session, self._path.nav('Dimension'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2552
+
2553
+
2554
+ class DocumentEntity(EntryEntity):
2555
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Document`: ``get``, ``update``,
2556
+ ``delete``, its navigation properties and bound operations.
2557
+ """
2558
+
2559
+ model = m.Document
2560
+
2561
+ async def read_content(self) -> bytes:
2562
+ """``GET …/Content/$value``: The contents of the document."""
2563
+ return await self._read_stream('Content')
2564
+
2565
+ async def write_content(self, data: bytes, content_type: str = "application/octet-stream") -> None:
2566
+ """``PUT …/Content/$value``: replaces it."""
2567
+ await self._write_stream('Content', data, content_type)
2568
+
2569
+
2570
+ class DocumentReferenceEntity(EntryEntity):
2571
+ """An entity of type :class:`~skipcheck_tm1._generated.model.DocumentReference`: ``get``,
2572
+ ``update``, ``delete``, its navigation properties and bound operations.
2573
+ """
2574
+
2575
+ model = m.DocumentReference
2576
+
2577
+ @property
2578
+ @endpoint('Navigation DocumentReference/Document')
2579
+ def document(self) -> DocumentEntity:
2580
+ """``…/Document``: the entity (a reference: read through here, change through its own
2581
+ collection).
2582
+
2583
+ The document that is referenced.
2584
+
2585
+ Endpoint ``Navigation DocumentReference/Document``.
2586
+ """
2587
+ return DocumentEntity(self._session, self._path.nav('Document'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2588
+
2589
+
2590
+ class FolderEntity(EntryEntity):
2591
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Folder`: ``get``, ``update``,
2592
+ ``delete``, its navigation properties and bound operations.
2593
+ """
2594
+
2595
+ model = m.Folder
2596
+
2597
+ @property
2598
+ @endpoint('Navigation Folder/Contents')
2599
+ def contents(self) -> EntryCollection:
2600
+ """``…/Contents``: the collection (contained).
2601
+
2602
+ A collection of entries that are in the folder.
2603
+
2604
+ Endpoint ``Navigation Folder/Contents``.
2605
+ """
2606
+ return EntryCollection(self._session, self._path.nav('Contents'), contained=True)
2607
+
2608
+ @property
2609
+ @endpoint('Navigation Folder/PrivateContents')
2610
+ def private_contents(self) -> EntryCollection:
2611
+ """``…/PrivateContents``: the collection (contained).
2612
+
2613
+ A collection of private entries that are in the folder.
2614
+
2615
+ Endpoint ``Navigation Folder/PrivateContents``.
2616
+ """
2617
+ return EntryCollection(self._session, self._path.nav('PrivateContents'), contained=True)
2618
+
2619
+
2620
+ class GitPullPlanEntity(GitPlanEntity):
2621
+ """An entity of type :class:`~skipcheck_tm1._generated.model.GitPullPlan`: ``get``, ``update``,
2622
+ ``delete``, its navigation properties and bound operations.
2623
+ """
2624
+
2625
+ model = m.GitPullPlan
2626
+
2627
+ @endpoint('Action GitPullPlan/Execute')
2628
+ async def execute(self) -> None:
2629
+ """``POST …/tm1.Execute``: the action.
2630
+
2631
+ Execute a Git pull plan.
2632
+
2633
+ Since TM1 schema 11.5.0.
2634
+
2635
+ Endpoint ``Action GitPullPlan/Execute``.
2636
+ """
2637
+ return await self._action('tm1.Execute', {}, _r.Returns(), None, 'Action GitPullPlan/Execute')
2638
+
2639
+
2640
+ class GitPushPlanEntity(GitPlanEntity):
2641
+ """An entity of type :class:`~skipcheck_tm1._generated.model.GitPushPlan`: ``get``, ``update``,
2642
+ ``delete``, its navigation properties and bound operations.
2643
+ """
2644
+
2645
+ model = m.GitPushPlan
2646
+
2647
+ @endpoint('Action GitPushPlan/Execute')
2648
+ async def execute(self) -> None:
2649
+ """``POST …/tm1.Execute``: the action.
2650
+
2651
+ Execute a Git push plan.
2652
+
2653
+ Since TM1 schema 11.5.0.
2654
+
2655
+ Endpoint ``Action GitPushPlan/Execute``.
2656
+ """
2657
+ return await self._action('tm1.Execute', {}, _r.Returns(), None, 'Action GitPushPlan/Execute')
2658
+
2659
+
2660
+ class LinkEntity(EntryEntity):
2661
+ """An entity of type :class:`~skipcheck_tm1._generated.model.Link`: ``get``, ``update``,
2662
+ ``delete``, its navigation properties and bound operations.
2663
+ """
2664
+
2665
+ model = m.Link
2666
+
2667
+
2668
+ class MDXViewEntity(ViewEntity):
2669
+ """An entity of type :class:`~skipcheck_tm1._generated.model.MDXView`: ``get``, ``update``,
2670
+ ``delete``, its navigation properties and bound operations.
2671
+ """
2672
+
2673
+ model = m.MDXView
2674
+
2675
+ @endpoint('Action MDXView/Execute')
2676
+ async def execute(self, *, query: ODataQuery | None = None, **options: Any) -> m.Cellset | None:
2677
+ """``POST …/tm1.Execute``: the action.
2678
+
2679
+ Runs a view against the model.
2680
+
2681
+ Endpoint ``Action MDXView/Execute``.
2682
+ """
2683
+ return await self._action('tm1.Execute', {}, _r.Returns(m.Cellset, structured=True), _r.query_of(query, options), 'Action MDXView/Execute')
2684
+
2685
+
2686
+ class NativeViewEntity(ViewEntity):
2687
+ """An entity of type :class:`~skipcheck_tm1._generated.model.NativeView`: ``get``, ``update``,
2688
+ ``delete``, its navigation properties and bound operations.
2689
+ """
2690
+
2691
+ model = m.NativeView
2692
+
2693
+ @endpoint('Action NativeView/Execute')
2694
+ async def execute(self, *, titles: list[m.Element | Bind] | None = _r.UNSET, suppress_empty_columns: bool | None = _r.UNSET, suppress_empty_rows: bool | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Cellset | None:
2695
+ """``POST …/tm1.Execute``: the action.
2696
+
2697
+ Runs a view against the model.
2698
+
2699
+ Endpoint ``Action NativeView/Execute``.
2700
+
2701
+ Parameters (left out when not passed; ``None`` sends ``null``):
2702
+
2703
+ * ``titles`` (``Titles``, ``Collection(ibm.tm1.api.v1.Element)``): The values of the
2704
+ titles in the title axis that you are slicing the view against.
2705
+
2706
+ * ``suppress_empty_columns`` (``SuppressEmptyColumns``, ``Edm.Boolean``): Columns
2707
+ without a value are not returned in the result set.
2708
+
2709
+ * ``suppress_empty_rows`` (``SuppressEmptyRows``, ``Edm.Boolean``): Rows without a value
2710
+ are not returned in the result set.
2711
+ """
2712
+ return await self._action('tm1.Execute', {'Titles': titles, 'SuppressEmptyColumns': suppress_empty_columns, 'SuppressEmptyRows': suppress_empty_rows}, _r.Returns(m.Cellset, structured=True), _r.query_of(query, options), 'Action NativeView/Execute')
2713
+
2714
+
2715
+ class ProcessDebugContextDataBreakpointEntity(ProcessDebugContextBreakpointEntity):
2716
+ """An entity of type
2717
+ :class:`~skipcheck_tm1._generated.model.ProcessDebugContextDataBreakpoint`: ``get``,
2718
+ ``update``, ``delete``, its navigation properties and bound operations.
2719
+ """
2720
+
2721
+ model = m.ProcessDebugContextDataBreakpoint
2722
+
2723
+
2724
+ class ProcessDebugContextLineBreakpointEntity(ProcessDebugContextBreakpointEntity):
2725
+ """An entity of type
2726
+ :class:`~skipcheck_tm1._generated.model.ProcessDebugContextLineBreakpoint`: ``get``,
2727
+ ``update``, ``delete``, its navigation properties and bound operations.
2728
+ """
2729
+
2730
+ model = m.ProcessDebugContextLineBreakpoint
2731
+
2732
+
2733
+ class ProcessDebugContextLockBreakpointEntity(ProcessDebugContextBreakpointEntity):
2734
+ """An entity of type
2735
+ :class:`~skipcheck_tm1._generated.model.ProcessDebugContextLockBreakpoint`: ``get``,
2736
+ ``update``, ``delete``, its navigation properties and bound operations.
2737
+ """
2738
+
2739
+ model = m.ProcessDebugContextLockBreakpoint
2740
+
2741
+
2742
+ class ProcessReferenceEntity(EntryEntity):
2743
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ProcessReference`: ``get``,
2744
+ ``update``, ``delete``, its navigation properties and bound operations.
2745
+ """
2746
+
2747
+ model = m.ProcessReference
2748
+
2749
+ @property
2750
+ @endpoint('Navigation ProcessReference/Process')
2751
+ def process(self) -> ProcessEntity:
2752
+ """``…/Process``: the entity (a reference: read through here, change through its own
2753
+ collection).
2754
+
2755
+ The process that is referenced.
2756
+
2757
+ Endpoint ``Navigation ProcessReference/Process``.
2758
+ """
2759
+ return ProcessEntity(self._session, self._path.nav('Process'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2760
+
2761
+
2762
+ class RelationalDrillthroughEntity(DrillthroughEntity):
2763
+ """An entity of type :class:`~skipcheck_tm1._generated.model.RelationalDrillthrough`: ``get``,
2764
+ ``update``, ``delete``, its navigation properties and bound operations.
2765
+ """
2766
+
2767
+ model = m.RelationalDrillthrough
2768
+
2769
+ @endpoint('Action RelationalDrillthrough/Execute')
2770
+ async def execute(self, *, query: ODataQuery | None = None, **options: Any) -> list[m.DrillthroughRow]:
2771
+ """``POST …/tm1.Execute``: the action.
2772
+
2773
+ Drill into a cell.
2774
+
2775
+ Since TM1 schema 10.2.2.6.
2776
+
2777
+ Endpoint ``Action RelationalDrillthrough/Execute``.
2778
+ """
2779
+ return await self._action('tm1.Execute', {}, _r.Returns(m.DrillthroughRow, collection=True, structured=True), _r.query_of(query, options), 'Action RelationalDrillthrough/Execute')
2780
+
2781
+ @endpoint('Action RelationalDrillthrough/ExecuteWithRowset')
2782
+ async def execute_with_rowset(self, *, query: ODataQuery | None = None, **options: Any) -> m.Rowset | None:
2783
+ """``POST …/tm1.ExecuteWithRowset``: the action.
2784
+
2785
+ Drill into a cell to get a rowset of a relational table.
2786
+
2787
+ Since TM1 schema 11.6.0.
2788
+
2789
+ Endpoint ``Action RelationalDrillthrough/ExecuteWithRowset``.
2790
+ """
2791
+ return await self._action('tm1.ExecuteWithRowset', {}, _r.Returns(m.Rowset, structured=True), _r.query_of(query, options), 'Action RelationalDrillthrough/ExecuteWithRowset')
2792
+
2793
+
2794
+ class SubsetReferenceEntity(EntryEntity):
2795
+ """An entity of type :class:`~skipcheck_tm1._generated.model.SubsetReference`: ``get``,
2796
+ ``update``, ``delete``, its navigation properties and bound operations.
2797
+ """
2798
+
2799
+ model = m.SubsetReference
2800
+
2801
+ @property
2802
+ @endpoint('Navigation SubsetReference/Subset')
2803
+ def subset(self) -> SubsetEntity:
2804
+ """``…/Subset``: the entity (a reference: read through here, change through its own
2805
+ collection).
2806
+
2807
+ The subset that is referenced.
2808
+
2809
+ Endpoint ``Navigation SubsetReference/Subset``.
2810
+ """
2811
+ return SubsetEntity(self._session, self._path.nav('Subset'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2812
+
2813
+
2814
+ class TupleMemberEntity(MemberEntity):
2815
+ """An entity of type :class:`~skipcheck_tm1._generated.model.TupleMember`: ``get``, ``update``,
2816
+ ``delete``, its navigation properties and bound operations.
2817
+ """
2818
+
2819
+ model = m.TupleMember
2820
+
2821
+
2822
+ class ViewReferenceEntity(EntryEntity):
2823
+ """An entity of type :class:`~skipcheck_tm1._generated.model.ViewReference`: ``get``,
2824
+ ``update``, ``delete``, its navigation properties and bound operations.
2825
+ """
2826
+
2827
+ model = m.ViewReference
2828
+
2829
+ @property
2830
+ @endpoint('Navigation ViewReference/View')
2831
+ def view(self) -> ViewEntity:
2832
+ """``…/View``: the entity (a reference: read through here, change through its own
2833
+ collection).
2834
+
2835
+ The view that is referenced.
2836
+
2837
+ Endpoint ``Navigation ViewReference/View``.
2838
+ """
2839
+ return ViewEntity(self._session, self._path.nav('View'), {'delete': 'it refers to an entity kept elsewhere; delete it through its own collection'})
2840
+
2841
+
2842
+ class AnnotationCollection(_r.CollectionResource[m.Annotation, AnnotationEntity]):
2843
+ """A collection of :class:`~skipcheck_tm1._generated.model.Annotation`: ``list``, ``iter``,
2844
+ ``count``, ``create``, and ``[key]`` for one.
2845
+ """
2846
+
2847
+ model = m.Annotation
2848
+ entity = AnnotationEntity
2849
+ key_names = ('ID',)
2850
+
2851
+
2852
+ class ApplicationContextFacetCollection(_r.CollectionResource[m.ApplicationContextFacet, ApplicationContextFacetEntity]):
2853
+ """A collection of :class:`~skipcheck_tm1._generated.model.ApplicationContextFacet`: ``list``,
2854
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
2855
+ """
2856
+
2857
+ model = m.ApplicationContextFacet
2858
+ entity = ApplicationContextFacetEntity
2859
+ key_names = ('Name',)
2860
+
2861
+
2862
+ class ApplicationContextFacetValueCollection(_r.CollectionResource[m.ApplicationContextFacetValue, ApplicationContextFacetValueEntity]):
2863
+ """A collection of :class:`~skipcheck_tm1._generated.model.ApplicationContextFacetValue`:
2864
+ ``list``, ``iter``, ``count``, ``create``, and ``[key]`` for one.
2865
+ """
2866
+
2867
+ model = m.ApplicationContextFacetValue
2868
+ entity = ApplicationContextFacetValueEntity
2869
+ key_names = ('Value',)
2870
+
2871
+
2872
+ class AttachmentCollection(_r.CollectionResource[m.Attachment, AttachmentEntity]):
2873
+ """A collection of :class:`~skipcheck_tm1._generated.model.Attachment`: ``list``, ``iter``,
2874
+ ``count``, ``create``, and ``[key]`` for one.
2875
+ """
2876
+
2877
+ model = m.Attachment
2878
+ entity = AttachmentEntity
2879
+ key_names = ('Name',)
2880
+
2881
+
2882
+ class AttributeDefinitionCollection(_r.CollectionResource[m.AttributeDefinition, AttributeDefinitionEntity]):
2883
+ """A collection of :class:`~skipcheck_tm1._generated.model.AttributeDefinition`: ``list``,
2884
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
2885
+ """
2886
+
2887
+ model = m.AttributeDefinition
2888
+ entity = AttributeDefinitionEntity
2889
+ key_names = ('Name',)
2890
+
2891
+
2892
+ class AuditDetailCollection(_r.CollectionResource[m.AuditDetail, AuditDetailEntity]):
2893
+ """A collection of :class:`~skipcheck_tm1._generated.model.AuditDetail`: ``list``, ``iter``,
2894
+ ``count``, ``create``, and ``[key]`` for one.
2895
+ """
2896
+
2897
+ model = m.AuditDetail
2898
+ entity = AuditDetailEntity
2899
+ key_names = ('ID',)
2900
+
2901
+
2902
+ class AuditLogEntryCollection(_r.CollectionResource[m.AuditLogEntry, AuditLogEntryEntity]):
2903
+ """A collection of :class:`~skipcheck_tm1._generated.model.AuditLogEntry`: ``list``, ``iter``,
2904
+ ``count``, ``create``, and ``[key]`` for one.
2905
+ """
2906
+
2907
+ model = m.AuditLogEntry
2908
+ entity = AuditLogEntryEntity
2909
+ key_names = ('ID',)
2910
+
2911
+
2912
+ class CellsetCollection(_r.CollectionResource[m.Cellset, CellsetEntity]):
2913
+ """A collection of :class:`~skipcheck_tm1._generated.model.Cellset`: ``list``, ``iter``,
2914
+ ``count``, ``create``, and ``[key]`` for one.
2915
+ """
2916
+
2917
+ model = m.Cellset
2918
+ entity = CellsetEntity
2919
+ key_names = ('ID',)
2920
+
2921
+
2922
+ class CellsetAxisCollection(_r.CollectionResource[m.CellsetAxis, CellsetAxisEntity]):
2923
+ """A collection of :class:`~skipcheck_tm1._generated.model.CellsetAxis`: ``list``, ``iter``,
2924
+ ``count``, ``create``, and ``[key]`` for one.
2925
+ """
2926
+
2927
+ model = m.CellsetAxis
2928
+ entity = CellsetAxisEntity
2929
+ key_names = ('Ordinal',)
2930
+
2931
+
2932
+ class CellsetAxisTupleCollection(_r.CollectionResource[m.CellsetAxisTuple, CellsetAxisTupleEntity]):
2933
+ """A collection of :class:`~skipcheck_tm1._generated.model.CellsetAxisTuple`: ``list``,
2934
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
2935
+ """
2936
+
2937
+ model = m.CellsetAxisTuple
2938
+ entity = CellsetAxisTupleEntity
2939
+ key_names = ('Ordinal',)
2940
+
2941
+
2942
+ class CellsetCellCollection(_r.CollectionResource[m.CellsetCell, CellsetCellEntity]):
2943
+ """A collection of :class:`~skipcheck_tm1._generated.model.CellsetCell`: ``list``, ``iter``,
2944
+ ``count``, ``create``, and ``[key]`` for one.
2945
+ """
2946
+
2947
+ model = m.CellsetCell
2948
+ entity = CellsetCellEntity
2949
+ key_names = ('Ordinal',)
2950
+
2951
+
2952
+ class ChoreCollection(_r.CollectionResource[m.Chore, ChoreEntity]):
2953
+ """A collection of :class:`~skipcheck_tm1._generated.model.Chore`: ``list``, ``iter``,
2954
+ ``count``, ``create``, and ``[key]`` for one.
2955
+ """
2956
+
2957
+ model = m.Chore
2958
+ entity = ChoreEntity
2959
+ key_names = ('Name',)
2960
+
2961
+
2962
+ class ChoreTaskCollection(_r.CollectionResource[m.ChoreTask, ChoreTaskEntity]):
2963
+ """A collection of :class:`~skipcheck_tm1._generated.model.ChoreTask`: ``list``, ``iter``,
2964
+ ``count``, ``create``, and ``[key]`` for one.
2965
+ """
2966
+
2967
+ model = m.ChoreTask
2968
+ entity = ChoreTaskEntity
2969
+ key_names = ('Step',)
2970
+
2971
+
2972
+ class ConfigurationCollection(_r.CollectionResource[m.Configuration, ConfigurationEntity]):
2973
+ """A collection of :class:`~skipcheck_tm1._generated.model.Configuration`: ``list``, ``iter``,
2974
+ ``count``, ``create``, and ``[key]`` for one.
2975
+ """
2976
+
2977
+ model = m.Configuration
2978
+ entity = ConfigurationEntity
2979
+ key_names = ('ServerName',)
2980
+
2981
+
2982
+ class CubeCollection(_r.CollectionResource[m.Cube, CubeEntity]):
2983
+ """A collection of :class:`~skipcheck_tm1._generated.model.Cube`: ``list``, ``iter``,
2984
+ ``count``, ``create``, and ``[key]`` for one.
2985
+ """
2986
+
2987
+ model = m.Cube
2988
+ entity = CubeEntity
2989
+ key_names = ('Name',)
2990
+
2991
+
2992
+ class DimensionCollection(_r.CollectionResource[m.Dimension, DimensionEntity]):
2993
+ """A collection of :class:`~skipcheck_tm1._generated.model.Dimension`: ``list``, ``iter``,
2994
+ ``count``, ``create``, and ``[key]`` for one.
2995
+ """
2996
+
2997
+ model = m.Dimension
2998
+ entity = DimensionEntity
2999
+ key_names = ('Name',)
3000
+
3001
+
3002
+ class DrillthroughCollection(_r.CollectionResource[m.Drillthrough, DrillthroughEntity]):
3003
+ """A collection of :class:`~skipcheck_tm1._generated.model.Drillthrough`: ``list``, ``iter``,
3004
+ ``count``, ``create``, and ``[key]`` for one.
3005
+ """
3006
+
3007
+ model = m.Drillthrough
3008
+ entity = DrillthroughEntity
3009
+ key_names = ('Name',)
3010
+
3011
+
3012
+ class EdgeCollection(_r.CollectionResource[m.Edge, EdgeEntity]):
3013
+ """A collection of :class:`~skipcheck_tm1._generated.model.Edge`: ``list``, ``iter``,
3014
+ ``count``, ``create``, and ``[key]`` for one.
3015
+ """
3016
+
3017
+ model = m.Edge
3018
+ entity = EdgeEntity
3019
+ key_names = ('ParentName', 'ComponentName')
3020
+
3021
+
3022
+ class ElementCollection(_r.CollectionResource[m.Element, ElementEntity]):
3023
+ """A collection of :class:`~skipcheck_tm1._generated.model.Element`: ``list``, ``iter``,
3024
+ ``count``, ``create``, and ``[key]`` for one.
3025
+ """
3026
+
3027
+ model = m.Element
3028
+ entity = ElementEntity
3029
+ key_names = ('Name',)
3030
+
3031
+
3032
+ class EntryCollection(_r.CollectionResource[m.Entry, EntryEntity]):
3033
+ """A collection of :class:`~skipcheck_tm1._generated.model.Entry`: ``list``, ``iter``,
3034
+ ``count``, ``create``, and ``[key]`` for one.
3035
+ """
3036
+
3037
+ model = m.Entry
3038
+ entity = EntryEntity
3039
+ key_names = ('Name',)
3040
+
3041
+
3042
+ class ErrorLogFileCollection(_r.CollectionResource[m.ErrorLogFile, ErrorLogFileEntity]):
3043
+ """A collection of :class:`~skipcheck_tm1._generated.model.ErrorLogFile`: ``list``, ``iter``,
3044
+ ``count``, ``create``, and ``[key]`` for one.
3045
+ """
3046
+
3047
+ model = m.ErrorLogFile
3048
+ entity = ErrorLogFileEntity
3049
+ key_names = ('Filename',)
3050
+
3051
+
3052
+ class GitPlanCollection(_r.CollectionResource[m.GitPlan, GitPlanEntity]):
3053
+ """A collection of :class:`~skipcheck_tm1._generated.model.GitPlan`: ``list``, ``iter``,
3054
+ ``count``, ``create``, and ``[key]`` for one.
3055
+ """
3056
+
3057
+ model = m.GitPlan
3058
+ entity = GitPlanEntity
3059
+ key_names = ('ID',)
3060
+
3061
+
3062
+ class GroupCollection(_r.CollectionResource[m.Group, GroupEntity]):
3063
+ """A collection of :class:`~skipcheck_tm1._generated.model.Group`: ``list``, ``iter``,
3064
+ ``count``, ``create``, and ``[key]`` for one.
3065
+ """
3066
+
3067
+ model = m.Group
3068
+ entity = GroupEntity
3069
+ key_names = ('Name',)
3070
+
3071
+
3072
+ class HierarchyCollection(_r.CollectionResource[m.Hierarchy, HierarchyEntity]):
3073
+ """A collection of :class:`~skipcheck_tm1._generated.model.Hierarchy`: ``list``, ``iter``,
3074
+ ``count``, ``create``, and ``[key]`` for one.
3075
+ """
3076
+
3077
+ model = m.Hierarchy
3078
+ entity = HierarchyEntity
3079
+ key_names = ('Name',)
3080
+
3081
+
3082
+ class LevelCollection(_r.CollectionResource[m.Level, LevelEntity]):
3083
+ """A collection of :class:`~skipcheck_tm1._generated.model.Level`: ``list``, ``iter``,
3084
+ ``count``, ``create``, and ``[key]`` for one.
3085
+ """
3086
+
3087
+ model = m.Level
3088
+ entity = LevelEntity
3089
+ key_names = ('Number',)
3090
+
3091
+
3092
+ class LocalizedAttributesCollection(_r.CollectionResource[m.LocalizedAttributes, LocalizedAttributesEntity]):
3093
+ """A collection of :class:`~skipcheck_tm1._generated.model.LocalizedAttributes`: ``list``,
3094
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3095
+ """
3096
+
3097
+ model = m.LocalizedAttributes
3098
+ entity = LocalizedAttributesEntity
3099
+ key_names = ('LocaleID',)
3100
+
3101
+
3102
+ class LoggerCollection(_r.CollectionResource[m.Logger, LoggerEntity]):
3103
+ """A collection of :class:`~skipcheck_tm1._generated.model.Logger`: ``list``, ``iter``,
3104
+ ``count``, ``create``, and ``[key]`` for one.
3105
+ """
3106
+
3107
+ model = m.Logger
3108
+ entity = LoggerEntity
3109
+ key_names = ('Name',)
3110
+
3111
+
3112
+ class MemberCollection(_r.CollectionResource[m.Member, MemberEntity]):
3113
+ """A collection of :class:`~skipcheck_tm1._generated.model.Member`: ``list``, ``iter``,
3114
+ ``count``, ``create``, and ``[key]`` for one.
3115
+ """
3116
+
3117
+ model = m.Member
3118
+ entity = MemberEntity
3119
+ key_names = ('Name',)
3120
+
3121
+
3122
+ class MessageLogEntryCollection(_r.CollectionResource[m.MessageLogEntry, MessageLogEntryEntity]):
3123
+ """A collection of :class:`~skipcheck_tm1._generated.model.MessageLogEntry`: ``list``,
3124
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3125
+ """
3126
+
3127
+ model = m.MessageLogEntry
3128
+ entity = MessageLogEntryEntity
3129
+ key_names = ('ID',)
3130
+
3131
+
3132
+ class ProcessCollection(_r.CollectionResource[m.Process, ProcessEntity]):
3133
+ """A collection of :class:`~skipcheck_tm1._generated.model.Process`: ``list``, ``iter``,
3134
+ ``count``, ``create``, and ``[key]`` for one.
3135
+ """
3136
+
3137
+ model = m.Process
3138
+ entity = ProcessEntity
3139
+ key_names = ('Name',)
3140
+
3141
+
3142
+ class ProcessDebugContextCollection(_r.CollectionResource[m.ProcessDebugContext, ProcessDebugContextEntity]):
3143
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessDebugContext`: ``list``,
3144
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3145
+ """
3146
+
3147
+ model = m.ProcessDebugContext
3148
+ entity = ProcessDebugContextEntity
3149
+ key_names = ('ID',)
3150
+
3151
+
3152
+ class ProcessDebugContextBreakpointCollection(_r.CollectionResource[m.ProcessDebugContextBreakpoint, ProcessDebugContextBreakpointEntity]):
3153
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessDebugContextBreakpoint`:
3154
+ ``list``, ``iter``, ``count``, ``create``, and ``[key]`` for one.
3155
+ """
3156
+
3157
+ model = m.ProcessDebugContextBreakpoint
3158
+ entity = ProcessDebugContextBreakpointEntity
3159
+ key_names = ('ID',)
3160
+
3161
+
3162
+ class ProcessDebugContextStackFrameCollection(_r.CollectionResource[m.ProcessDebugContextStackFrame, ProcessDebugContextStackFrameEntity]):
3163
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessDebugContextStackFrame`:
3164
+ ``list``, ``iter``, ``count``, ``create``, and ``[key]`` for one.
3165
+ """
3166
+
3167
+ model = m.ProcessDebugContextStackFrame
3168
+ entity = ProcessDebugContextStackFrameEntity
3169
+ key_names = ('ID',)
3170
+
3171
+
3172
+ class ProcessDebugContextVariableCollection(_r.CollectionResource[m.ProcessDebugContextVariable, ProcessDebugContextVariableEntity]):
3173
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessDebugContextVariable`:
3174
+ ``list``, ``iter``, ``count``, ``create``, and ``[key]`` for one.
3175
+ """
3176
+
3177
+ model = m.ProcessDebugContextVariable
3178
+ entity = ProcessDebugContextVariableEntity
3179
+ key_names = ('Name',)
3180
+
3181
+
3182
+ class ProcessErrorLogCollection(_r.CollectionResource[m.ProcessErrorLog, ProcessErrorLogEntity]):
3183
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessErrorLog`: ``list``,
3184
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3185
+ """
3186
+
3187
+ model = m.ProcessErrorLog
3188
+ entity = ProcessErrorLogEntity
3189
+ key_names = ('Timestamp',)
3190
+
3191
+
3192
+ class RowsetCollection(_r.CollectionResource[m.Rowset, RowsetEntity]):
3193
+ """A collection of :class:`~skipcheck_tm1._generated.model.Rowset`: ``list``, ``iter``,
3194
+ ``count``, ``create``, and ``[key]`` for one.
3195
+ """
3196
+
3197
+ model = m.Rowset
3198
+ entity = RowsetEntity
3199
+ key_names = ('ID',)
3200
+
3201
+
3202
+ class RowsetRowCollection(_r.CollectionResource[m.RowsetRow, RowsetRowEntity]):
3203
+ """A collection of :class:`~skipcheck_tm1._generated.model.RowsetRow`: ``list``, ``iter``,
3204
+ ``count``, ``create``, and ``[key]`` for one.
3205
+ """
3206
+
3207
+ model = m.RowsetRow
3208
+ entity = RowsetRowEntity
3209
+ key_names = ('Ordinal',)
3210
+
3211
+
3212
+ class SQLDataSourceCollection(_r.CollectionResource[m.SQLDataSource, SQLDataSourceEntity]):
3213
+ """A collection of :class:`~skipcheck_tm1._generated.model.SQLDataSource`: ``list``, ``iter``,
3214
+ ``count``, ``create``, and ``[key]`` for one.
3215
+ """
3216
+
3217
+ model = m.SQLDataSource
3218
+ entity = SQLDataSourceEntity
3219
+ key_names = ('Name',)
3220
+
3221
+
3222
+ class SandboxCollection(_r.CollectionResource[m.Sandbox, SandboxEntity]):
3223
+ """A collection of :class:`~skipcheck_tm1._generated.model.Sandbox`: ``list``, ``iter``,
3224
+ ``count``, ``create``, and ``[key]`` for one.
3225
+ """
3226
+
3227
+ model = m.Sandbox
3228
+ entity = SandboxEntity
3229
+ key_names = ('Name',)
3230
+
3231
+
3232
+ class ServerCollection(_r.CollectionResource[m.Server, ServerEntity]):
3233
+ """A collection of :class:`~skipcheck_tm1._generated.model.Server`: ``list``, ``iter``,
3234
+ ``count``, ``create``, and ``[key]`` for one.
3235
+ """
3236
+
3237
+ model = m.Server
3238
+ entity = ServerEntity
3239
+ key_names = ('Name',)
3240
+
3241
+
3242
+ class ServerSettingsCollection(_r.CollectionResource[m.ServerSettings, ServerSettingsEntity]):
3243
+ """A collection of :class:`~skipcheck_tm1._generated.model.ServerSettings`: ``list``, ``iter``,
3244
+ ``count``, ``create``, and ``[key]`` for one.
3245
+ """
3246
+
3247
+ model = m.ServerSettings
3248
+ entity = ServerSettingsEntity
3249
+ key_names = ('ServerName',)
3250
+
3251
+
3252
+ class SessionCollection(_r.CollectionResource[m.Session, SessionEntity]):
3253
+ """A collection of :class:`~skipcheck_tm1._generated.model.Session`: ``list``, ``iter``,
3254
+ ``count``, ``create``, and ``[key]`` for one.
3255
+ """
3256
+
3257
+ model = m.Session
3258
+ entity = SessionEntity
3259
+ key_names = ('ID',)
3260
+
3261
+
3262
+ class SubsetCollection(_r.CollectionResource[m.Subset, SubsetEntity]):
3263
+ """A collection of :class:`~skipcheck_tm1._generated.model.Subset`: ``list``, ``iter``,
3264
+ ``count``, ``create``, and ``[key]`` for one.
3265
+ """
3266
+
3267
+ model = m.Subset
3268
+ entity = SubsetEntity
3269
+ key_names = ('Name',)
3270
+
3271
+
3272
+ class ThreadCollection(_r.CollectionResource[m.Thread, ThreadEntity]):
3273
+ """A collection of :class:`~skipcheck_tm1._generated.model.Thread`: ``list``, ``iter``,
3274
+ ``count``, ``create``, and ``[key]`` for one.
3275
+ """
3276
+
3277
+ model = m.Thread
3278
+ entity = ThreadEntity
3279
+ key_names = ('ID',)
3280
+
3281
+
3282
+ class TransactionLogEntryCollection(_r.CollectionResource[m.TransactionLogEntry, TransactionLogEntryEntity]):
3283
+ """A collection of :class:`~skipcheck_tm1._generated.model.TransactionLogEntry`: ``list``,
3284
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3285
+ """
3286
+
3287
+ model = m.TransactionLogEntry
3288
+ entity = TransactionLogEntryEntity
3289
+ key_names = ('ID',)
3290
+
3291
+
3292
+ class UserCollection(_r.CollectionResource[m.User, UserEntity]):
3293
+ """A collection of :class:`~skipcheck_tm1._generated.model.User`: ``list``, ``iter``,
3294
+ ``count``, ``create``, and ``[key]`` for one.
3295
+ """
3296
+
3297
+ model = m.User
3298
+ entity = UserEntity
3299
+ key_names = ('Name',)
3300
+
3301
+
3302
+ class ViewCollection(_r.CollectionResource[m.View, ViewEntity]):
3303
+ """A collection of :class:`~skipcheck_tm1._generated.model.View`: ``list``, ``iter``,
3304
+ ``count``, ``create``, and ``[key]`` for one.
3305
+ """
3306
+
3307
+ model = m.View
3308
+ entity = ViewEntity
3309
+ key_names = ('Name',)
3310
+
3311
+
3312
+ class ChoreReferenceCollection(_r.CollectionResource[m.ChoreReference, ChoreReferenceEntity]):
3313
+ """A collection of :class:`~skipcheck_tm1._generated.model.ChoreReference`: ``list``, ``iter``,
3314
+ ``count``, ``create``, and ``[key]`` for one.
3315
+ """
3316
+
3317
+ model = m.ChoreReference
3318
+ entity = ChoreReferenceEntity
3319
+ key_names = ('Name',)
3320
+
3321
+
3322
+ class CubeDrillthroughCollection(_r.CollectionResource[m.CubeDrillthrough, CubeDrillthroughEntity]):
3323
+ """A collection of :class:`~skipcheck_tm1._generated.model.CubeDrillthrough`: ``list``,
3324
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3325
+ """
3326
+
3327
+ model = m.CubeDrillthrough
3328
+ entity = CubeDrillthroughEntity
3329
+ key_names = ('Name',)
3330
+
3331
+
3332
+ class CubeReferenceCollection(_r.CollectionResource[m.CubeReference, CubeReferenceEntity]):
3333
+ """A collection of :class:`~skipcheck_tm1._generated.model.CubeReference`: ``list``, ``iter``,
3334
+ ``count``, ``create``, and ``[key]`` for one.
3335
+ """
3336
+
3337
+ model = m.CubeReference
3338
+ entity = CubeReferenceEntity
3339
+ key_names = ('Name',)
3340
+
3341
+
3342
+ class DimensionReferenceCollection(_r.CollectionResource[m.DimensionReference, DimensionReferenceEntity]):
3343
+ """A collection of :class:`~skipcheck_tm1._generated.model.DimensionReference`: ``list``,
3344
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3345
+ """
3346
+
3347
+ model = m.DimensionReference
3348
+ entity = DimensionReferenceEntity
3349
+ key_names = ('Name',)
3350
+
3351
+
3352
+ class DocumentCollection(_r.CollectionResource[m.Document, DocumentEntity]):
3353
+ """A collection of :class:`~skipcheck_tm1._generated.model.Document`: ``list``, ``iter``,
3354
+ ``count``, ``create``, and ``[key]`` for one.
3355
+ """
3356
+
3357
+ model = m.Document
3358
+ entity = DocumentEntity
3359
+ key_names = ('Name',)
3360
+
3361
+
3362
+ class DocumentReferenceCollection(_r.CollectionResource[m.DocumentReference, DocumentReferenceEntity]):
3363
+ """A collection of :class:`~skipcheck_tm1._generated.model.DocumentReference`: ``list``,
3364
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3365
+ """
3366
+
3367
+ model = m.DocumentReference
3368
+ entity = DocumentReferenceEntity
3369
+ key_names = ('Name',)
3370
+
3371
+
3372
+ class FolderCollection(_r.CollectionResource[m.Folder, FolderEntity]):
3373
+ """A collection of :class:`~skipcheck_tm1._generated.model.Folder`: ``list``, ``iter``,
3374
+ ``count``, ``create``, and ``[key]`` for one.
3375
+ """
3376
+
3377
+ model = m.Folder
3378
+ entity = FolderEntity
3379
+ key_names = ('Name',)
3380
+
3381
+
3382
+ class GitPullPlanCollection(_r.CollectionResource[m.GitPullPlan, GitPullPlanEntity]):
3383
+ """A collection of :class:`~skipcheck_tm1._generated.model.GitPullPlan`: ``list``, ``iter``,
3384
+ ``count``, ``create``, and ``[key]`` for one.
3385
+ """
3386
+
3387
+ model = m.GitPullPlan
3388
+ entity = GitPullPlanEntity
3389
+ key_names = ('ID',)
3390
+
3391
+
3392
+ class GitPushPlanCollection(_r.CollectionResource[m.GitPushPlan, GitPushPlanEntity]):
3393
+ """A collection of :class:`~skipcheck_tm1._generated.model.GitPushPlan`: ``list``, ``iter``,
3394
+ ``count``, ``create``, and ``[key]`` for one.
3395
+ """
3396
+
3397
+ model = m.GitPushPlan
3398
+ entity = GitPushPlanEntity
3399
+ key_names = ('ID',)
3400
+
3401
+
3402
+ class LinkCollection(_r.CollectionResource[m.Link, LinkEntity]):
3403
+ """A collection of :class:`~skipcheck_tm1._generated.model.Link`: ``list``, ``iter``,
3404
+ ``count``, ``create``, and ``[key]`` for one.
3405
+ """
3406
+
3407
+ model = m.Link
3408
+ entity = LinkEntity
3409
+ key_names = ('Name',)
3410
+
3411
+
3412
+ class MDXViewCollection(_r.CollectionResource[m.MDXView, MDXViewEntity]):
3413
+ """A collection of :class:`~skipcheck_tm1._generated.model.MDXView`: ``list``, ``iter``,
3414
+ ``count``, ``create``, and ``[key]`` for one.
3415
+ """
3416
+
3417
+ model = m.MDXView
3418
+ entity = MDXViewEntity
3419
+ key_names = ('Name',)
3420
+
3421
+
3422
+ class NativeViewCollection(_r.CollectionResource[m.NativeView, NativeViewEntity]):
3423
+ """A collection of :class:`~skipcheck_tm1._generated.model.NativeView`: ``list``, ``iter``,
3424
+ ``count``, ``create``, and ``[key]`` for one.
3425
+ """
3426
+
3427
+ model = m.NativeView
3428
+ entity = NativeViewEntity
3429
+ key_names = ('Name',)
3430
+
3431
+
3432
+ class ProcessDebugContextDataBreakpointCollection(_r.CollectionResource[m.ProcessDebugContextDataBreakpoint, ProcessDebugContextDataBreakpointEntity]):
3433
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessDebugContextDataBreakpoint`:
3434
+ ``list``, ``iter``, ``count``, ``create``, and ``[key]`` for one.
3435
+ """
3436
+
3437
+ model = m.ProcessDebugContextDataBreakpoint
3438
+ entity = ProcessDebugContextDataBreakpointEntity
3439
+ key_names = ('ID',)
3440
+
3441
+
3442
+ class ProcessDebugContextLineBreakpointCollection(_r.CollectionResource[m.ProcessDebugContextLineBreakpoint, ProcessDebugContextLineBreakpointEntity]):
3443
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessDebugContextLineBreakpoint`:
3444
+ ``list``, ``iter``, ``count``, ``create``, and ``[key]`` for one.
3445
+ """
3446
+
3447
+ model = m.ProcessDebugContextLineBreakpoint
3448
+ entity = ProcessDebugContextLineBreakpointEntity
3449
+ key_names = ('ID',)
3450
+
3451
+
3452
+ class ProcessDebugContextLockBreakpointCollection(_r.CollectionResource[m.ProcessDebugContextLockBreakpoint, ProcessDebugContextLockBreakpointEntity]):
3453
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessDebugContextLockBreakpoint`:
3454
+ ``list``, ``iter``, ``count``, ``create``, and ``[key]`` for one.
3455
+ """
3456
+
3457
+ model = m.ProcessDebugContextLockBreakpoint
3458
+ entity = ProcessDebugContextLockBreakpointEntity
3459
+ key_names = ('ID',)
3460
+
3461
+
3462
+ class ProcessReferenceCollection(_r.CollectionResource[m.ProcessReference, ProcessReferenceEntity]):
3463
+ """A collection of :class:`~skipcheck_tm1._generated.model.ProcessReference`: ``list``,
3464
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3465
+ """
3466
+
3467
+ model = m.ProcessReference
3468
+ entity = ProcessReferenceEntity
3469
+ key_names = ('Name',)
3470
+
3471
+
3472
+ class RelationalDrillthroughCollection(_r.CollectionResource[m.RelationalDrillthrough, RelationalDrillthroughEntity]):
3473
+ """A collection of :class:`~skipcheck_tm1._generated.model.RelationalDrillthrough`: ``list``,
3474
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3475
+ """
3476
+
3477
+ model = m.RelationalDrillthrough
3478
+ entity = RelationalDrillthroughEntity
3479
+ key_names = ('Name',)
3480
+
3481
+
3482
+ class SubsetReferenceCollection(_r.CollectionResource[m.SubsetReference, SubsetReferenceEntity]):
3483
+ """A collection of :class:`~skipcheck_tm1._generated.model.SubsetReference`: ``list``,
3484
+ ``iter``, ``count``, ``create``, and ``[key]`` for one.
3485
+ """
3486
+
3487
+ model = m.SubsetReference
3488
+ entity = SubsetReferenceEntity
3489
+ key_names = ('Name',)
3490
+
3491
+
3492
+ class TupleMemberCollection(_r.CollectionResource[m.TupleMember, TupleMemberEntity]):
3493
+ """A collection of :class:`~skipcheck_tm1._generated.model.TupleMember`: ``list``, ``iter``,
3494
+ ``count``, ``create``, and ``[key]`` for one.
3495
+ """
3496
+
3497
+ model = m.TupleMember
3498
+ entity = TupleMemberEntity
3499
+ key_names = ('Name',)
3500
+
3501
+
3502
+ class ViewReferenceCollection(_r.CollectionResource[m.ViewReference, ViewReferenceEntity]):
3503
+ """A collection of :class:`~skipcheck_tm1._generated.model.ViewReference`: ``list``, ``iter``,
3504
+ ``count``, ``create``, and ``[key]`` for one.
3505
+ """
3506
+
3507
+ model = m.ViewReference
3508
+ entity = ViewReferenceEntity
3509
+ key_names = ('Name',)
3510
+
3511
+
3512
+ class Tm1Api(_r.Resource):
3513
+ """The root of the TM1 REST API: every entity set, singleton and unbound operation.
3514
+
3515
+ The generated, complete layer: one member per endpoint of the spec.
3516
+ :class:`~skipcheck_tm1.Tm1Client` adds hand-written conveniences on top.
3517
+ """
3518
+
3519
+ def __init__(self, session: Tm1Session):
3520
+ super().__init__(session, ODataPath())
3521
+
3522
+ @property
3523
+ @endpoint('EntitySet Annotations')
3524
+ def annotations(self) -> AnnotationCollection:
3525
+ """``Annotations``: the entity set.
3526
+
3527
+ TM1 (11.8): ``GET Annotations`` lists none, though ``Cubes('c')/Annotations`` shows
3528
+ them. Missing annotations return 400, not 404.
3529
+
3530
+ Endpoint ``EntitySet Annotations``.
3531
+ """
3532
+ return AnnotationCollection(self._session, ODataPath.of('Annotations'))
3533
+
3534
+ @property
3535
+ @endpoint('EntitySet ApplicationContextFacets')
3536
+ def application_context_facets(self) -> ApplicationContextFacetCollection:
3537
+ """``ApplicationContextFacets``: the entity set.
3538
+
3539
+ Endpoint ``EntitySet ApplicationContextFacets``.
3540
+ """
3541
+ return ApplicationContextFacetCollection(self._session, ODataPath.of('ApplicationContextFacets'))
3542
+
3543
+ @property
3544
+ @endpoint('EntitySet AuditLogEntries')
3545
+ def audit_log_entries(self) -> AuditLogEntryCollection:
3546
+ """``AuditLogEntries``: the entity set.
3547
+
3548
+ Since TM1 schema 11.6.0.
3549
+
3550
+ Endpoint ``EntitySet AuditLogEntries``.
3551
+ """
3552
+ return AuditLogEntryCollection(self._session, ODataPath.of('AuditLogEntries'))
3553
+
3554
+ @property
3555
+ @endpoint('EntitySet Cellsets')
3556
+ def cellsets(self) -> CellsetCollection:
3557
+ """``Cellsets``: the entity set.
3558
+
3559
+ TM1 (11.8): ``Cellsets`` lists none, though each reads by ID.
3560
+
3561
+ Endpoint ``EntitySet Cellsets``.
3562
+ """
3563
+ return CellsetCollection(self._session, ODataPath.of('Cellsets'))
3564
+
3565
+ @property
3566
+ @endpoint('EntitySet ChoreAttributes')
3567
+ def chore_attributes(self) -> AttributeDefinitionCollection:
3568
+ """``ChoreAttributes``: the entity set.
3569
+
3570
+ Endpoint ``EntitySet ChoreAttributes``.
3571
+ """
3572
+ return AttributeDefinitionCollection(self._session, ODataPath.of('ChoreAttributes'))
3573
+
3574
+ @property
3575
+ @endpoint('EntitySet Chores')
3576
+ def chores(self) -> ChoreCollection:
3577
+ """``Chores``: the entity set.
3578
+
3579
+ Endpoint ``EntitySet Chores``.
3580
+ """
3581
+ return ChoreCollection(self._session, ODataPath.of('Chores'))
3582
+
3583
+ @property
3584
+ @endpoint('EntitySet Contents')
3585
+ def contents(self) -> FolderCollection:
3586
+ """``Contents``: the entity set.
3587
+
3588
+ TM1 (11.8): entries are keyed by ``ID`` (name plus a kind suffix: ``.blob``, ``.extr``,
3589
+ ``.cube``), not by ``Name`` as ``$metadata`` says. Entries refuse PATCH.
3590
+
3591
+ Endpoint ``EntitySet Contents``.
3592
+ """
3593
+ return FolderCollection(self._session, ODataPath.of('Contents'))
3594
+
3595
+ @property
3596
+ @endpoint('EntitySet CubeAttributes')
3597
+ def cube_attributes(self) -> AttributeDefinitionCollection:
3598
+ """``CubeAttributes``: the entity set.
3599
+
3600
+ Endpoint ``EntitySet CubeAttributes``.
3601
+ """
3602
+ return AttributeDefinitionCollection(self._session, ODataPath.of('CubeAttributes'))
3603
+
3604
+ @property
3605
+ @endpoint('EntitySet Cubes')
3606
+ def cubes(self) -> CubeCollection:
3607
+ """``Cubes``: the entity set.
3608
+
3609
+ Endpoint ``EntitySet Cubes``.
3610
+ """
3611
+ return CubeCollection(self._session, ODataPath.of('Cubes'))
3612
+
3613
+ @property
3614
+ @endpoint('EntitySet DimensionAttributes')
3615
+ def dimension_attributes(self) -> AttributeDefinitionCollection:
3616
+ """``DimensionAttributes``: the entity set.
3617
+
3618
+ Endpoint ``EntitySet DimensionAttributes``.
3619
+ """
3620
+ return AttributeDefinitionCollection(self._session, ODataPath.of('DimensionAttributes'))
3621
+
3622
+ @property
3623
+ @endpoint('EntitySet Dimensions')
3624
+ def dimensions(self) -> DimensionCollection:
3625
+ """``Dimensions``: the entity set.
3626
+
3627
+ Endpoint ``EntitySet Dimensions``.
3628
+ """
3629
+ return DimensionCollection(self._session, ODataPath.of('Dimensions'))
3630
+
3631
+ @property
3632
+ @endpoint('EntitySet ErrorLogFiles')
3633
+ def error_log_files(self) -> ErrorLogFileCollection:
3634
+ """``ErrorLogFiles``: the entity set.
3635
+
3636
+ Since TM1 schema 11.3.0.
3637
+
3638
+ Endpoint ``EntitySet ErrorLogFiles``.
3639
+ """
3640
+ return ErrorLogFileCollection(self._session, ODataPath.of('ErrorLogFiles'))
3641
+
3642
+ @property
3643
+ @endpoint('EntitySet GitPlans')
3644
+ def git_plans(self) -> GitPlanCollection:
3645
+ """``GitPlans``: the entity set.
3646
+
3647
+ Since TM1 schema 11.5.0.
3648
+
3649
+ Endpoint ``EntitySet GitPlans``.
3650
+ """
3651
+ return GitPlanCollection(self._session, ODataPath.of('GitPlans'))
3652
+
3653
+ @property
3654
+ @endpoint('EntitySet Groups')
3655
+ def groups(self) -> GroupCollection:
3656
+ """``Groups``: the entity set.
3657
+
3658
+ Endpoint ``EntitySet Groups``.
3659
+ """
3660
+ return GroupCollection(self._session, ODataPath.of('Groups'))
3661
+
3662
+ @property
3663
+ @endpoint('EntitySet Loggers')
3664
+ def loggers(self) -> LoggerCollection:
3665
+ """``Loggers``: the entity set.
3666
+
3667
+ Endpoint ``EntitySet Loggers``.
3668
+ """
3669
+ return LoggerCollection(self._session, ODataPath.of('Loggers'))
3670
+
3671
+ @property
3672
+ @endpoint('EntitySet MemberSets')
3673
+ def member_sets(self) -> CellsetAxisCollection:
3674
+ """``MemberSets``: the entity set.
3675
+
3676
+ Since TM1 schema 11.0.2.
3677
+
3678
+ Endpoint ``EntitySet MemberSets``.
3679
+ """
3680
+ return CellsetAxisCollection(self._session, ODataPath.of('MemberSets'))
3681
+
3682
+ @property
3683
+ @endpoint('EntitySet MessageLogEntries')
3684
+ def message_log_entries(self) -> MessageLogEntryCollection:
3685
+ """``MessageLogEntries``: the entity set.
3686
+
3687
+ Since TM1 schema 10.2.2.4.
3688
+
3689
+ Endpoint ``EntitySet MessageLogEntries``.
3690
+ """
3691
+ return MessageLogEntryCollection(self._session, ODataPath.of('MessageLogEntries'))
3692
+
3693
+ @property
3694
+ @endpoint('EntitySet ProcessAttributes')
3695
+ def process_attributes(self) -> AttributeDefinitionCollection:
3696
+ """``ProcessAttributes``: the entity set.
3697
+
3698
+ Endpoint ``EntitySet ProcessAttributes``.
3699
+ """
3700
+ return AttributeDefinitionCollection(self._session, ODataPath.of('ProcessAttributes'))
3701
+
3702
+ @property
3703
+ @endpoint('EntitySet ProcessDebugContexts')
3704
+ def process_debug_contexts(self) -> ProcessDebugContextCollection:
3705
+ """``ProcessDebugContexts``: the entity set.
3706
+
3707
+ Since TM1 schema 11.0.0.
3708
+
3709
+ Endpoint ``EntitySet ProcessDebugContexts``.
3710
+ """
3711
+ return ProcessDebugContextCollection(self._session, ODataPath.of('ProcessDebugContexts'))
3712
+
3713
+ @property
3714
+ @endpoint('EntitySet Processes')
3715
+ def processes(self) -> ProcessCollection:
3716
+ """``Processes``: the entity set.
3717
+
3718
+ Endpoint ``EntitySet Processes``.
3719
+ """
3720
+ return ProcessCollection(self._session, ODataPath.of('Processes'))
3721
+
3722
+ @property
3723
+ @endpoint('EntitySet Rowsets')
3724
+ def rowsets(self) -> RowsetCollection:
3725
+ """``Rowsets``: the entity set.
3726
+
3727
+ Endpoint ``EntitySet Rowsets``.
3728
+ """
3729
+ return RowsetCollection(self._session, ODataPath.of('Rowsets'))
3730
+
3731
+ @property
3732
+ @endpoint('EntitySet SQLDataSources')
3733
+ def sql_data_sources(self) -> SQLDataSourceCollection:
3734
+ """``SQLDataSources``: the entity set.
3735
+
3736
+ Since TM1 schema 11.2.0.
3737
+
3738
+ Endpoint ``EntitySet SQLDataSources``.
3739
+ """
3740
+ return SQLDataSourceCollection(self._session, ODataPath.of('SQLDataSources'))
3741
+
3742
+ @property
3743
+ @endpoint('EntitySet Sandboxes')
3744
+ def sandboxes(self) -> SandboxCollection:
3745
+ """``Sandboxes``: the entity set.
3746
+
3747
+ Endpoint ``EntitySet Sandboxes``.
3748
+ """
3749
+ return SandboxCollection(self._session, ODataPath.of('Sandboxes'))
3750
+
3751
+ @property
3752
+ @endpoint('EntitySet Sessions')
3753
+ def sessions(self) -> SessionCollection:
3754
+ """``Sessions``: the entity set.
3755
+
3756
+ Since TM1 schema 10.2.2.5.
3757
+
3758
+ Endpoint ``EntitySet Sessions``.
3759
+ """
3760
+ return SessionCollection(self._session, ODataPath.of('Sessions'))
3761
+
3762
+ @property
3763
+ @endpoint('EntitySet Threads')
3764
+ def threads(self) -> ThreadCollection:
3765
+ """``Threads``: the entity set.
3766
+
3767
+ Since TM1 schema 10.2.2.1.
3768
+
3769
+ Endpoint ``EntitySet Threads``.
3770
+ """
3771
+ return ThreadCollection(self._session, ODataPath.of('Threads'))
3772
+
3773
+ @property
3774
+ @endpoint('EntitySet TransactionLogEntries')
3775
+ def transaction_log_entries(self) -> TransactionLogEntryCollection:
3776
+ """``TransactionLogEntries``: the entity set.
3777
+
3778
+ Since TM1 schema 10.2.2.4.
3779
+
3780
+ Endpoint ``EntitySet TransactionLogEntries``.
3781
+ """
3782
+ return TransactionLogEntryCollection(self._session, ODataPath.of('TransactionLogEntries'))
3783
+
3784
+ @property
3785
+ @endpoint('EntitySet Users')
3786
+ def users(self) -> UserCollection:
3787
+ """``Users``: the entity set.
3788
+
3789
+ Endpoint ``EntitySet Users``.
3790
+ """
3791
+ return UserCollection(self._session, ODataPath.of('Users'))
3792
+
3793
+ @property
3794
+ @endpoint('Singleton ActiveConfiguration')
3795
+ def active_configuration(self) -> ServerSettingsEntity:
3796
+ """``ActiveConfiguration``: the singleton.
3797
+
3798
+ Since TM1 schema 11.0.0.
3799
+
3800
+ Endpoint ``Singleton ActiveConfiguration``.
3801
+ """
3802
+ return ServerSettingsEntity(self._session, ODataPath.of('ActiveConfiguration'), {'delete': 'a singleton can\'t be deleted'})
3803
+
3804
+ @property
3805
+ @endpoint('Singleton ActiveSession')
3806
+ def active_session(self) -> SessionEntity:
3807
+ """``ActiveSession``: the singleton.
3808
+
3809
+ Since TM1 schema 10.2.2.5.
3810
+
3811
+ Endpoint ``Singleton ActiveSession``.
3812
+ """
3813
+ return SessionEntity(self._session, ODataPath.of('ActiveSession'), {'delete': 'a singleton can\'t be deleted'})
3814
+
3815
+ @property
3816
+ @endpoint('Singleton ActiveUser')
3817
+ def active_user(self) -> UserEntity:
3818
+ """``ActiveUser``: the singleton.
3819
+
3820
+ Since TM1 schema 10.2.2.4.
3821
+
3822
+ Endpoint ``Singleton ActiveUser``.
3823
+ """
3824
+ return UserEntity(self._session, ODataPath.of('ActiveUser'), {'delete': 'a singleton can\'t be deleted'})
3825
+
3826
+ @property
3827
+ @endpoint('Singleton Configuration')
3828
+ def configuration(self) -> ConfigurationEntity:
3829
+ """``Configuration``: the singleton.
3830
+
3831
+ .. deprecated:: 11.0.0
3832
+
3833
+ Endpoint ``Singleton Configuration``.
3834
+ """
3835
+ return ConfigurationEntity(self._session, ODataPath.of('Configuration'), {'delete': 'a singleton can\'t be deleted'})
3836
+
3837
+ @property
3838
+ @endpoint('Singleton Server')
3839
+ def server(self) -> ServerEntity:
3840
+ """``Server``: the singleton.
3841
+
3842
+ Endpoint ``Singleton Server``.
3843
+ """
3844
+ return ServerEntity(self._session, ODataPath.of('Server'), {'delete': 'a singleton can\'t be deleted'})
3845
+
3846
+ @property
3847
+ @endpoint('Singleton StaticConfiguration')
3848
+ def static_configuration(self) -> ServerSettingsEntity:
3849
+ """``StaticConfiguration``: the singleton.
3850
+
3851
+ Since TM1 schema 11.0.0.
3852
+
3853
+ Endpoint ``Singleton StaticConfiguration``.
3854
+ """
3855
+ return ServerSettingsEntity(self._session, ODataPath.of('StaticConfiguration'), {'delete': 'a singleton can\'t be deleted'})
3856
+
3857
+ @endpoint('ActionImport BeginChangeSet')
3858
+ async def begin_change_set(self) -> str | None:
3859
+ """``POST BeginChangeSet``: the action.
3860
+
3861
+ Begins a change set.
3862
+
3863
+ Since TM1 schema 10.2.2.6.
3864
+
3865
+ Endpoint ``ActionImport BeginChangeSet``.
3866
+ """
3867
+ return await self._action('BeginChangeSet', {}, _r.Returns(str, structured=False), None, 'ActionImport BeginChangeSet')
3868
+
3869
+ @endpoint('ActionImport CompileProcess')
3870
+ async def compile_process(self, *, process: m.Process | Bind, query: ODataQuery | None = None, **options: Any) -> list[m.ProcessSyntaxError]:
3871
+ """``POST CompileProcess``: the action.
3872
+
3873
+ Since TM1 schema 11.0.0.
3874
+
3875
+ Endpoint ``ActionImport CompileProcess``.
3876
+
3877
+ Parameters (left out when not passed; ``None`` sends ``null``):
3878
+
3879
+ * ``process`` (``Process``, ``ibm.tm1.api.v1.Process``)
3880
+ """
3881
+ return await self._action('CompileProcess', {'Process': process}, _r.Returns(m.ProcessSyntaxError, collection=True, structured=True), _r.query_of(query, options), 'ActionImport CompileProcess')
3882
+
3883
+ @endpoint('ActionImport ConfigureEncryptionAtRest')
3884
+ async def configure_encryption_at_rest(self, *, settings: m.EncryptionAtRestProviderSettings | None = _r.UNSET) -> None:
3885
+ """``POST ConfigureEncryptionAtRest``: the action.
3886
+
3887
+ Validates KMS reachability/permissions and key existence using the provided concrete
3888
+ provider settings, then applies the config. If the database is unencrypted, it activates
3889
+ encryption.
3890
+
3891
+ Since TM1 schema 11.8.35.
3892
+
3893
+ Endpoint ``ActionImport ConfigureEncryptionAtRest``.
3894
+
3895
+ Parameters (left out when not passed; ``None`` sends ``null``):
3896
+
3897
+ * ``settings`` (``Settings``, ``ibm.tm1.api.v1.EncryptionAtRestProviderSettings``): The
3898
+ provider settings to be used for encryption at rest.
3899
+ """
3900
+ return await self._action('ConfigureEncryptionAtRest', {'Settings': settings}, _r.Returns(), None, 'ActionImport ConfigureEncryptionAtRest')
3901
+
3902
+ @endpoint('FunctionImport ControlCubes')
3903
+ async def control_cubes(self, *, query: ODataQuery | None = None, **options: Any) -> list[m.Cube]:
3904
+ """``GET ControlCubes``: the function.
3905
+
3906
+ Returns only control cubes in the model.
3907
+
3908
+ Control cubes are used for "system use" (for example, localized attribute values) to TM1
3909
+ (identified with '}'). Control cubes don't contain your actual data.
3910
+
3911
+ Endpoint ``FunctionImport ControlCubes``.
3912
+ """
3913
+ return await self._function('ControlCubes', {}, _r.Returns(m.Cube, collection=True, structured=True), _r.query_of(query, options), 'FunctionImport ControlCubes')
3914
+
3915
+ @endpoint('FunctionImport ControlDimensions')
3916
+ async def control_dimensions(self, *, query: ODataQuery | None = None, **options: Any) -> list[m.Dimension]:
3917
+ """``GET ControlDimensions``: the function.
3918
+
3919
+ Return only control dimensions.
3920
+
3921
+ Endpoint ``FunctionImport ControlDimensions``.
3922
+ """
3923
+ return await self._function('ControlDimensions', {}, _r.Returns(m.Dimension, collection=True, structured=True), _r.query_of(query, options), 'FunctionImport ControlDimensions')
3924
+
3925
+ @endpoint('ActionImport DecryptDataFile')
3926
+ async def decrypt_data_file(self, *, source_path: str | None = _r.UNSET, destination_path: str | None = _r.UNSET, file_type: m.EncryptionFileType | None = _r.UNSET) -> None:
3927
+ """``POST DecryptDataFile``: the action.
3928
+
3929
+ Decrypts a single file. Must be performed by a full admin.
3930
+
3931
+ Since TM1 schema 11.3.0.
3932
+
3933
+ Endpoint ``ActionImport DecryptDataFile``.
3934
+
3935
+ Parameters (left out when not passed; ``None`` sends ``null``):
3936
+
3937
+ * ``source_path`` (``SourcePath``, ``Edm.String``): The path to the file to be
3938
+ decrypted.
3939
+
3940
+ * ``destination_path`` (``DestinationPath``, ``Edm.String``): The path to the directory
3941
+ where the decrypted file should be stored. If unspecified, the file will be decrypted
3942
+ and replaced.
3943
+
3944
+ * ``file_type`` (``FileType``, ``ibm.tm1.api.v1.EncryptionFileType``): The file type of
3945
+ the source file.
3946
+ """
3947
+ return await self._action('DecryptDataFile', {'SourcePath': source_path, 'DestinationPath': destination_path, 'FileType': file_type}, _r.Returns(), None, 'ActionImport DecryptDataFile')
3948
+
3949
+ @endpoint('ActionImport DecryptDataModel')
3950
+ async def decrypt_data_model(self, *, time_until_shutdown: timedelta | None = _r.UNSET) -> None:
3951
+ """``POST DecryptDataModel``: the action.
3952
+
3953
+ Decrypts the data model. Must be performed by a full admin. Will result in a server
3954
+ shutdown.
3955
+
3956
+ Since TM1 schema 11.3.0.
3957
+
3958
+ .. deprecated:: 11.8.35 This function is deprecated. Use DisableEncryptionAtRest action
3959
+ instead.
3960
+
3961
+ Endpoint ``ActionImport DecryptDataModel``.
3962
+
3963
+ Parameters (left out when not passed; ``None`` sends ``null``):
3964
+
3965
+ * ``time_until_shutdown`` (``TimeUntilShutdown``, ``Edm.Duration``): The time until the
3966
+ server shuts down, rounded up to the minute.
3967
+ """
3968
+ return await self._action('DecryptDataModel', {'TimeUntilShutdown': time_until_shutdown}, _r.Returns(), None, 'ActionImport DecryptDataModel')
3969
+
3970
+ @endpoint('ActionImport DeleteAnnotationArtifacts')
3971
+ async def delete_annotation_artifacts(self) -> None:
3972
+ """``POST DeleteAnnotationArtifacts``: the action.
3973
+
3974
+ Removes all annotation-related control cubes and all things related to annotations for
3975
+ the entire model including context facets, comments, attachments, and so on. Use this
3976
+ action with caution because it cannot be undone.
3977
+
3978
+ Endpoint ``ActionImport DeleteAnnotationArtifacts``.
3979
+ """
3980
+ return await self._action('DeleteAnnotationArtifacts', {}, _r.Returns(), None, 'ActionImport DeleteAnnotationArtifacts')
3981
+
3982
+ @endpoint('ActionImport DisableEncryptionAtRest')
3983
+ async def disable_encryption_at_rest(self) -> None:
3984
+ """``POST DisableEncryptionAtRest``: the action.
3985
+
3986
+ Decrypts the database and clears the encryption at rest settings.
3987
+
3988
+ Since TM1 schema 11.8.35.
3989
+
3990
+ Endpoint ``ActionImport DisableEncryptionAtRest``.
3991
+ """
3992
+ return await self._action('DisableEncryptionAtRest', {}, _r.Returns(), None, 'ActionImport DisableEncryptionAtRest')
3993
+
3994
+ @endpoint('ActionImport EncryptDataFile')
3995
+ async def encrypt_data_file(self, *, source_path: str | None = _r.UNSET, destination_path: str | None = _r.UNSET, file_type: m.EncryptionFileType | None = _r.UNSET) -> None:
3996
+ """``POST EncryptDataFile``: the action.
3997
+
3998
+ Encrypts a single file. Must be performed by a full admin.
3999
+
4000
+ Since TM1 schema 11.3.0.
4001
+
4002
+ Endpoint ``ActionImport EncryptDataFile``.
4003
+
4004
+ Parameters (left out when not passed; ``None`` sends ``null``):
4005
+
4006
+ * ``source_path`` (``SourcePath``, ``Edm.String``): The path to the file to be
4007
+ encrypted.
4008
+
4009
+ * ``destination_path`` (``DestinationPath``, ``Edm.String``): The path to the directory
4010
+ where the encrypted file should be stored. If unspecified, the file will be encrypted
4011
+ and replaced.
4012
+
4013
+ * ``file_type`` (``FileType``, ``ibm.tm1.api.v1.EncryptionFileType``): The file type of
4014
+ the source file.
4015
+ """
4016
+ return await self._action('EncryptDataFile', {'SourcePath': source_path, 'DestinationPath': destination_path, 'FileType': file_type}, _r.Returns(), None, 'ActionImport EncryptDataFile')
4017
+
4018
+ @endpoint('ActionImport EncryptDataModel')
4019
+ async def encrypt_data_model(self, *, time_until_shutdown: timedelta | None = _r.UNSET) -> None:
4020
+ """``POST EncryptDataModel``: the action.
4021
+
4022
+ Encrypts the data model. Must be performed by a full admin. Will result in a server
4023
+ shutdown.
4024
+
4025
+ Since TM1 schema 11.3.0.
4026
+
4027
+ .. deprecated:: 11.8.35 This function is deprecated. Use ConfigureEncryptionAtRest
4028
+ action instead.
4029
+
4030
+ Endpoint ``ActionImport EncryptDataModel``.
4031
+
4032
+ Parameters (left out when not passed; ``None`` sends ``null``):
4033
+
4034
+ * ``time_until_shutdown`` (``TimeUntilShutdown``, ``Edm.Duration``): The time until the
4035
+ server shuts down, rounded up to the minute.
4036
+ """
4037
+ return await self._action('EncryptDataModel', {'TimeUntilShutdown': time_until_shutdown}, _r.Returns(), None, 'ActionImport EncryptDataModel')
4038
+
4039
+ @endpoint('ActionImport EndChangeSet')
4040
+ async def end_change_set(self, *, change_set_id: str) -> int | None:
4041
+ """``POST EndChangeSet``: the action.
4042
+
4043
+ Ends a change set.
4044
+
4045
+ Since TM1 schema 10.2.2.6.
4046
+
4047
+ Endpoint ``ActionImport EndChangeSet``.
4048
+
4049
+ Parameters (left out when not passed; ``None`` sends ``null``):
4050
+
4051
+ * ``change_set_id`` (``ChangeSetID``, ``Edm.String``): The ID of the change set to end.
4052
+ """
4053
+ return await self._action('EndChangeSet', {'ChangeSetID': change_set_id}, _r.Returns(int, structured=False), None, 'ActionImport EndChangeSet')
4054
+
4055
+ @endpoint('ActionImport ExecuteChore')
4056
+ async def execute_chore(self, *, chore: m.Chore | Bind) -> None:
4057
+ """``POST ExecuteChore``: the action.
4058
+
4059
+ Runs a chore.
4060
+
4061
+ Since TM1 schema 11.1.1.
4062
+
4063
+ Endpoint ``ActionImport ExecuteChore``.
4064
+
4065
+ Parameters (left out when not passed; ``None`` sends ``null``):
4066
+
4067
+ * ``chore`` (``Chore``, ``ibm.tm1.api.v1.Chore``): Specifies the chore to be executed.
4068
+ """
4069
+ return await self._action('ExecuteChore', {'Chore': chore}, _r.Returns(), None, 'ActionImport ExecuteChore')
4070
+
4071
+ @endpoint('ActionImport ExecuteCubeDrillthrough')
4072
+ async def execute_cube_drillthrough(self, *, drillthrough_process: m.Process | Bind, parameters: list[m.ProcessParameter] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Cellset | None:
4073
+ """``POST ExecuteCubeDrillthrough``: the action.
4074
+
4075
+ Drill to the drillthrough process returned cube view.
4076
+
4077
+ Since TM1 schema 11.2.0.
4078
+
4079
+ Endpoint ``ActionImport ExecuteCubeDrillthrough``.
4080
+
4081
+ Parameters (left out when not passed; ``None`` sends ``null``):
4082
+
4083
+ * ``drillthrough_process`` (``DrillthroughProcess``, ``ibm.tm1.api.v1.Process``): A
4084
+ process that returns a handle of a view.
4085
+
4086
+ * ``parameters`` (``Parameters``, ``Collection(ibm.tm1.api.v1.ProcessParameter)``):
4087
+ Parameters used by the process.
4088
+ """
4089
+ return await self._action('ExecuteCubeDrillthrough', {'DrillthroughProcess': drillthrough_process, 'Parameters': parameters}, _r.Returns(m.Cellset, structured=True), _r.query_of(query, options), 'ActionImport ExecuteCubeDrillthrough')
4090
+
4091
+ @endpoint('ActionImport ExecuteMDX')
4092
+ async def execute_mdx(self, *, mdx: str, query: ODataQuery | None = None, **options: Any) -> m.Cellset | None:
4093
+ """``POST ExecuteMDX``: the action.
4094
+
4095
+ Runs an MDX expression at root level.
4096
+
4097
+ Since TM1 schema 10.2.2.1.
4098
+
4099
+ Endpoint ``ActionImport ExecuteMDX``.
4100
+
4101
+ Parameters (left out when not passed; ``None`` sends ``null``):
4102
+
4103
+ * ``mdx`` (``MDX``, ``Edm.String``): A string value that represents your MDX query.
4104
+ """
4105
+ return await self._action('ExecuteMDX', {'MDX': mdx}, _r.Returns(m.Cellset, structured=True), _r.query_of(query, options), 'ActionImport ExecuteMDX')
4106
+
4107
+ @endpoint('ActionImport ExecuteMDXSetExpression')
4108
+ async def execute_mdx_set_expression(self, *, mdx: str, query: ODataQuery | None = None, **options: Any) -> m.CellsetAxis | None:
4109
+ """``POST ExecuteMDXSetExpression``: the action.
4110
+
4111
+ Runs an MDX set expression at root level.
4112
+
4113
+ Since TM1 schema 11.1.0.
4114
+
4115
+ Endpoint ``ActionImport ExecuteMDXSetExpression``.
4116
+
4117
+ Parameters (left out when not passed; ``None`` sends ``null``):
4118
+
4119
+ * ``mdx`` (``MDX``, ``Edm.String``): A string value that represents your MDX Set
4120
+ expression.
4121
+ """
4122
+ return await self._action('ExecuteMDXSetExpression', {'MDX': mdx}, _r.Returns(m.CellsetAxis, structured=True), _r.query_of(query, options), 'ActionImport ExecuteMDXSetExpression')
4123
+
4124
+ @endpoint('ActionImport ExecuteMDXStatement')
4125
+ async def execute_mdx_statement(self, *, mdx: str) -> None:
4126
+ """``POST ExecuteMDXStatement``: the action.
4127
+
4128
+ Executes the MDX statement expression provided.
4129
+
4130
+ Since TM1 schema 11.8.20.
4131
+
4132
+ Endpoint ``ActionImport ExecuteMDXStatement``.
4133
+
4134
+ Parameters (left out when not passed; ``None`` sends ``null``):
4135
+
4136
+ * ``mdx`` (``MDX``, ``Edm.String``): A string value that represents your MDX statement.
4137
+ Currently only 'CREATE SET' and 'DROP SET' statements are supported.
4138
+ """
4139
+ return await self._action('ExecuteMDXStatement', {'MDX': mdx}, _r.Returns(), None, 'ActionImport ExecuteMDXStatement')
4140
+
4141
+ @endpoint('ActionImport ExecuteProcess')
4142
+ async def execute_process(self, *, process: m.Process | Bind, parameters: list[m.NameValuePair] | None = _r.UNSET) -> None:
4143
+ """``POST ExecuteProcess``: the action.
4144
+
4145
+ Runs a process defined in Turbo Integrator.
4146
+
4147
+ Since TM1 schema 11.0.0.
4148
+
4149
+ .. deprecated:: 11.3.0
4150
+
4151
+ Endpoint ``ActionImport ExecuteProcess``.
4152
+
4153
+ Parameters (left out when not passed; ``None`` sends ``null``):
4154
+
4155
+ * ``process`` (``Process``, ``ibm.tm1.api.v1.Process``): Specifies the process to be
4156
+ executed.
4157
+
4158
+ * ``parameters`` (``Parameters``, ``Collection(ibm.tm1.api.v1.NameValuePair)``):
4159
+ Override default values (numeric or string) defined in the model.
4160
+ """
4161
+ return await self._action('ExecuteProcess', {'Process': process, 'Parameters': parameters}, _r.Returns(), None, 'ActionImport ExecuteProcess')
4162
+
4163
+ @endpoint('ActionImport ExecuteProcessWithReturn')
4164
+ async def execute_process_with_return(self, *, process: m.Process | Bind, parameters: list[m.NameValuePair] | None = _r.UNSET, with_process: list[m.Process | Bind] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.ProcessExecuteResult | None:
4165
+ """``POST ExecuteProcessWithReturn``: the action.
4166
+
4167
+ Runs a process defined in Turbo Integrator and returns back the status.
4168
+
4169
+ Since TM1 schema 11.3.0.
4170
+
4171
+ Endpoint ``ActionImport ExecuteProcessWithReturn``.
4172
+
4173
+ Parameters (left out when not passed; ``None`` sends ``null``):
4174
+
4175
+ * ``process`` (``Process``, ``ibm.tm1.api.v1.Process``): Specifies the process to be
4176
+ executed.
4177
+
4178
+ * ``parameters`` (``Parameters``, ``Collection(ibm.tm1.api.v1.NameValuePair)``):
4179
+ Override default values (numeric or string) defined in the model.
4180
+
4181
+ * ``with_process`` (``WithProcess``, ``Collection(ibm.tm1.api.v1.Process)``): Optional.
4182
+ A collection of temporary processes available to the main, transient, process being
4183
+ executed.
4184
+ """
4185
+ return await self._action('ExecuteProcessWithReturn', {'Process': process, 'Parameters': parameters, 'WithProcess': with_process}, _r.Returns(m.ProcessExecuteResult, structured=True), _r.query_of(query, options), 'ActionImport ExecuteProcessWithReturn')
4186
+
4187
+ @endpoint('ActionImport ExecuteRelationalDrillthrough')
4188
+ async def execute_relational_drillthrough(self, *, drillthrough_process: m.Process | Bind, parameters: list[m.ProcessParameter] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> list[m.DrillthroughRow]:
4189
+ """``POST ExecuteRelationalDrillthrough``: the action.
4190
+
4191
+ Drill to relational tables.
4192
+
4193
+ Since TM1 schema 11.2.0.
4194
+
4195
+ Endpoint ``ActionImport ExecuteRelationalDrillthrough``.
4196
+
4197
+ Parameters (left out when not passed; ``None`` sends ``null``):
4198
+
4199
+ * ``drillthrough_process`` (``DrillthroughProcess``, ``ibm.tm1.api.v1.Process``): A
4200
+ process that returns a handle of a SQL or CSV table.
4201
+
4202
+ * ``parameters`` (``Parameters``, ``Collection(ibm.tm1.api.v1.ProcessParameter)``):
4203
+ Parameters used by the process.
4204
+ """
4205
+ return await self._action('ExecuteRelationalDrillthrough', {'DrillthroughProcess': drillthrough_process, 'Parameters': parameters}, _r.Returns(m.DrillthroughRow, collection=True, structured=True), _r.query_of(query, options), 'ActionImport ExecuteRelationalDrillthrough')
4206
+
4207
+ @endpoint('ActionImport ExecuteRelationalDrillthroughWithRowset')
4208
+ async def execute_relational_drillthrough_with_rowset(self, *, drillthrough_process: m.Process | Bind, parameters: list[m.ProcessParameter] | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Rowset | None:
4209
+ """``POST ExecuteRelationalDrillthroughWithRowset``: the action.
4210
+
4211
+ Execute a relational drillthrough to get a rowset of a relational table.
4212
+
4213
+ Since TM1 schema 11.6.0.
4214
+
4215
+ Endpoint ``ActionImport ExecuteRelationalDrillthroughWithRowset``.
4216
+
4217
+ Parameters (left out when not passed; ``None`` sends ``null``):
4218
+
4219
+ * ``drillthrough_process`` (``DrillthroughProcess``, ``ibm.tm1.api.v1.Process``): A
4220
+ process that returns a handle of a SQL or CSV table.
4221
+
4222
+ * ``parameters`` (``Parameters``, ``Collection(ibm.tm1.api.v1.ProcessParameter)``):
4223
+ Parameters used by the process.
4224
+ """
4225
+ return await self._action('ExecuteRelationalDrillthroughWithRowset', {'DrillthroughProcess': drillthrough_process, 'Parameters': parameters}, _r.Returns(m.Rowset, structured=True), _r.query_of(query, options), 'ActionImport ExecuteRelationalDrillthroughWithRowset')
4226
+
4227
+ @endpoint('FunctionImport GetOIDCKeys')
4228
+ async def get_oidc_keys(self) -> list[str]:
4229
+ """``GET GetOIDCKeys``: the function.
4230
+
4231
+ Returns OIDC keys. Must be performed by a full admin.
4232
+
4233
+ Endpoint ``FunctionImport GetOIDCKeys``.
4234
+ """
4235
+ return await self._function('GetOIDCKeys', {}, _r.Returns(str, collection=True, structured=False), None, 'FunctionImport GetOIDCKeys')
4236
+
4237
+ @endpoint('ActionImport GitDeploy')
4238
+ async def git_deploy(self, *, url: str, username: str, password: str, public_key: str, private_key: str, passphrase: str, branch: str, force: bool, deployment: str | None = _r.UNSET, config: m.GitConfiguration | None = _r.UNSET) -> None:
4239
+ """``POST GitDeploy``: the action.
4240
+
4241
+ Deploy a model using the source from the specified Git repository.
4242
+
4243
+ Since TM1 schema 11.5.0.
4244
+
4245
+ Endpoint ``ActionImport GitDeploy``.
4246
+
4247
+ Parameters (left out when not passed; ``None`` sends ``null``):
4248
+
4249
+ * ``url`` (``URL``, ``Edm.String``): The URL of the remote Git repository.
4250
+
4251
+ * ``username`` (``Username``, ``Edm.String``): The username of the remote Git
4252
+ repository.
4253
+
4254
+ * ``password`` (``Password``, ``Edm.String``): The password of the remote Git
4255
+ repository.
4256
+
4257
+ * ``public_key`` (``PublicKey``, ``Edm.String``): The SSH public key for connecting to
4258
+ the remote Git repository.
4259
+
4260
+ * ``private_key`` (``PrivateKey``, ``Edm.String``): The SSH private key paired with the
4261
+ SSH public key.
4262
+
4263
+ * ``passphrase`` (``Passphrase``, ``Edm.String``): The passphrase for decrypting the SSH
4264
+ private key.
4265
+
4266
+ * ``branch`` (``Branch``, ``Edm.String``): The branch to pull.
4267
+
4268
+ * ``deployment`` (``Deployment``, ``Edm.String``): The deployment of the repository
4269
+ instance.
4270
+
4271
+ * ``force`` (``Force``, ``Edm.Boolean``): A flag which is used to evaluate
4272
+ preconditions.
4273
+
4274
+ * ``config`` (``Config``, ``ibm.tm1.api.v1.GitConfiguration``): The configuration
4275
+ parameters.
4276
+ """
4277
+ return await self._action('GitDeploy', {'URL': url, 'Username': username, 'Password': password, 'PublicKey': public_key, 'PrivateKey': private_key, 'Passphrase': passphrase, 'Branch': branch, 'Deployment': deployment, 'Force': force, 'Config': config}, _r.Returns(), None, 'ActionImport GitDeploy')
4278
+
4279
+ @endpoint('ActionImport GitInit')
4280
+ async def git_init(self, *, url: str, force: bool, username: str | None = _r.UNSET, password: str | None = _r.UNSET, public_key: str | None = _r.UNSET, private_key: str | None = _r.UNSET, passphrase: str | None = _r.UNSET, deployment: str | None = _r.UNSET, config: m.GitConfiguration | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Git | None:
4281
+ """``POST GitInit``: the action.
4282
+
4283
+ Initialize TM1 Server's Git environment.
4284
+
4285
+ Since TM1 schema 11.5.0.
4286
+
4287
+ Endpoint ``ActionImport GitInit``.
4288
+
4289
+ Parameters (left out when not passed; ``None`` sends ``null``):
4290
+
4291
+ * ``url`` (``URL``, ``Edm.String``): The URL of the remote Git repository.
4292
+
4293
+ * ``username`` (``Username``, ``Edm.String``): The username of the remote Git
4294
+ repository.
4295
+
4296
+ * ``password`` (``Password``, ``Edm.String``): The password of the remote Git
4297
+ repository.
4298
+
4299
+ * ``public_key`` (``PublicKey``, ``Edm.String``): The SSH public key for connecting to
4300
+ the remote Git repository.
4301
+
4302
+ * ``private_key`` (``PrivateKey``, ``Edm.String``): The SSH private key paired with the
4303
+ SSH public key.
4304
+
4305
+ * ``passphrase`` (``Passphrase``, ``Edm.String``): The passphrase for decrypting the SSH
4306
+ private key.
4307
+
4308
+ * ``deployment`` (``Deployment``, ``Edm.String``): The deployment chosen for current Git
4309
+ operations.
4310
+
4311
+ * ``force`` (``Force``, ``Edm.Boolean``): Reset existing Git context and initialize.
4312
+
4313
+ * ``config`` (``Config``, ``ibm.tm1.api.v1.GitConfiguration``): The configuration
4314
+ parameters.
4315
+ """
4316
+ return await self._action('GitInit', {'URL': url, 'Username': username, 'Password': password, 'PublicKey': public_key, 'PrivateKey': private_key, 'Passphrase': passphrase, 'Deployment': deployment, 'Force': force, 'Config': config}, _r.Returns(m.Git, structured=True), _r.query_of(query, options), 'ActionImport GitInit')
4317
+
4318
+ @endpoint('ActionImport GitPull')
4319
+ async def git_pull(self, *, username: str, password: str, public_key: str, private_key: str, passphrase: str, branch: str, force: bool, execution_mode: m.GitPlanExecutionMode | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.GitPlan | None:
4320
+ """``POST GitPull``: the action.
4321
+
4322
+ Fetch a remote branch and create a plan which contains the actions of loading the
4323
+ sources from the branch into the server.
4324
+
4325
+ Since TM1 schema 11.5.0.
4326
+
4327
+ Endpoint ``ActionImport GitPull``.
4328
+
4329
+ Parameters (left out when not passed; ``None`` sends ``null``):
4330
+
4331
+ * ``username`` (``Username``, ``Edm.String``): The username of the remote Git
4332
+ repository.
4333
+
4334
+ * ``password`` (``Password``, ``Edm.String``): The password of the remote Git
4335
+ repository.
4336
+
4337
+ * ``public_key`` (``PublicKey``, ``Edm.String``): The SSH public key for connecting to
4338
+ the remote Git repository.
4339
+
4340
+ * ``private_key`` (``PrivateKey``, ``Edm.String``): The SSH private key paired with the
4341
+ SSH public key.
4342
+
4343
+ * ``passphrase`` (``Passphrase``, ``Edm.String``): The passphrase for decrypting the SSH
4344
+ private key.
4345
+
4346
+ * ``branch`` (``Branch``, ``Edm.String``): The branch to pull.
4347
+
4348
+ * ``execution_mode`` (``ExecutionMode``, ``ibm.tm1.api.v1.GitPlanExecutionMode``): The
4349
+ execution mode of the Git pull plan, that is, single or multiple commit.
4350
+
4351
+ * ``force`` (``Force``, ``Edm.Boolean``): A flag which is used to evaluate
4352
+ preconditions.
4353
+ """
4354
+ return await self._action('GitPull', {'Username': username, 'Password': password, 'PublicKey': public_key, 'PrivateKey': private_key, 'Passphrase': passphrase, 'Branch': branch, 'ExecutionMode': execution_mode, 'Force': force}, _r.Returns(m.GitPlan, structured=True), _r.query_of(query, options), 'ActionImport GitPull')
4355
+
4356
+ @endpoint('ActionImport GitPush')
4357
+ async def git_push(self, *, username: str, password: str, public_key: str, private_key: str, passphrase: str, branch: str, message: str, author: str, email: str, force: bool, new_branch: str | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.GitPlan | None:
4358
+ """``POST GitPush``: the action.
4359
+
4360
+ Generate sources and use those files to create a Git commit to push to the remote Git
4361
+ repository.
4362
+
4363
+ Since TM1 schema 11.5.0.
4364
+
4365
+ Endpoint ``ActionImport GitPush``.
4366
+
4367
+ Parameters (left out when not passed; ``None`` sends ``null``):
4368
+
4369
+ * ``username`` (``Username``, ``Edm.String``): The username of the remote Git
4370
+ repository.
4371
+
4372
+ * ``password`` (``Password``, ``Edm.String``): The password of the remote Git
4373
+ repository.
4374
+
4375
+ * ``public_key`` (``PublicKey``, ``Edm.String``): The SSH public key for connecting to
4376
+ the remote Git repository.
4377
+
4378
+ * ``private_key`` (``PrivateKey``, ``Edm.String``): The SSH private key paired with the
4379
+ SSH public key.
4380
+
4381
+ * ``passphrase`` (``Passphrase``, ``Edm.String``): The passphrase for decrypting the SSH
4382
+ private key.
4383
+
4384
+ * ``branch`` (``Branch``, ``Edm.String``): The branch which contains the commit to be
4385
+ used as the parent commit of the new commit to push.
4386
+
4387
+ * ``new_branch`` (``NewBranch``, ``Edm.String``): The branch to create and push on.
4388
+
4389
+ * ``message`` (``Message``, ``Edm.String``): The commit message.
4390
+
4391
+ * ``author`` (``Author``, ``Edm.String``): The name of the commit author.
4392
+
4393
+ * ``email`` (``Email``, ``Edm.String``): The Email of the commit author.
4394
+
4395
+ * ``force`` (``Force``, ``Edm.Boolean``): A flag which is used to evaluate
4396
+ preconditions.
4397
+ """
4398
+ return await self._action('GitPush', {'Username': username, 'Password': password, 'PublicKey': public_key, 'PrivateKey': private_key, 'Passphrase': passphrase, 'Branch': branch, 'NewBranch': new_branch, 'Message': message, 'Author': author, 'Email': email, 'Force': force}, _r.Returns(m.GitPlan, structured=True), _r.query_of(query, options), 'ActionImport GitPush')
4399
+
4400
+ @endpoint('ActionImport GitStatus')
4401
+ async def git_status(self, *, username: str | None = _r.UNSET, password: str | None = _r.UNSET, public_key: str | None = _r.UNSET, private_key: str | None = _r.UNSET, passphrase: str | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> m.Git | None:
4402
+ """``POST GitStatus``: the action.
4403
+
4404
+ Check Git status.
4405
+
4406
+ Since TM1 schema 11.5.0.
4407
+
4408
+ Endpoint ``ActionImport GitStatus``.
4409
+
4410
+ Parameters (left out when not passed; ``None`` sends ``null``):
4411
+
4412
+ * ``username`` (``Username``, ``Edm.String``): The username of the remote Git
4413
+ repository.
4414
+
4415
+ * ``password`` (``Password``, ``Edm.String``): The password of the remote Git
4416
+ repository.
4417
+
4418
+ * ``public_key`` (``PublicKey``, ``Edm.String``): The SSH public key for connecting to
4419
+ the remote Git repository.
4420
+
4421
+ * ``private_key`` (``PrivateKey``, ``Edm.String``): The SSH private key paired with the
4422
+ SSH public key.
4423
+
4424
+ * ``passphrase`` (``Passphrase``, ``Edm.String``): The passphrase for decrypting the SSH
4425
+ private key.
4426
+ """
4427
+ return await self._action('GitStatus', {'Username': username, 'Password': password, 'PublicKey': public_key, 'PrivateKey': private_key, 'Passphrase': passphrase}, _r.Returns(m.Git, structured=True), _r.query_of(query, options), 'ActionImport GitStatus')
4428
+
4429
+ @endpoint('ActionImport GitUninit')
4430
+ async def git_uninit(self, *, force: bool) -> None:
4431
+ """``POST GitUninit``: the action.
4432
+
4433
+ Clean up the local Git repository and reset Git context.
4434
+
4435
+ Since TM1 schema 11.5.0.
4436
+
4437
+ Endpoint ``ActionImport GitUninit``.
4438
+
4439
+ Parameters (left out when not passed; ``None`` sends ``null``):
4440
+
4441
+ * ``force`` (``Force``, ``Edm.Boolean``): A Boolean that indicates whether to reset the
4442
+ Git context.
4443
+ """
4444
+ return await self._action('GitUninit', {'Force': force}, _r.Returns(), None, 'ActionImport GitUninit')
4445
+
4446
+ @endpoint('FunctionImport MessageLog')
4447
+ async def message_log(self, *, reverse: bool | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> list[m.MessageLogEntry]:
4448
+ """``GET MessageLog``: the function.
4449
+
4450
+ Returns a collection of message log entries.
4451
+
4452
+ By default, the most recent message log entry is returned first.
4453
+
4454
+ Since TM1 schema 10.2.2.1.
4455
+
4456
+ Endpoint ``FunctionImport MessageLog``.
4457
+
4458
+ Parameters (left out when not passed; ``None`` sends ``null``):
4459
+
4460
+ * ``reverse`` (``Reverse``, ``Edm.Boolean``): A Boolean that indicates whether to order
4461
+ message log entries chronologically as they occurred in time.
4462
+ """
4463
+ return await self._function('MessageLog', {'Reverse': reverse}, _r.Returns(m.MessageLogEntry, collection=True, structured=True), _r.query_of(query, options), 'FunctionImport MessageLog')
4464
+
4465
+ @endpoint('FunctionImport ModelCubes')
4466
+ async def model_cubes(self, *, query: ODataQuery | None = None, **options: Any) -> list[m.Cube]:
4467
+ """``GET ModelCubes``: the function.
4468
+
4469
+ Returns only non-control cubes in the model.
4470
+
4471
+ Endpoint ``FunctionImport ModelCubes``.
4472
+ """
4473
+ return await self._function('ModelCubes', {}, _r.Returns(m.Cube, collection=True, structured=True), _r.query_of(query, options), 'FunctionImport ModelCubes')
4474
+
4475
+ @endpoint('FunctionImport ModelDimensions')
4476
+ async def model_dimensions(self, *, query: ODataQuery | None = None, **options: Any) -> list[m.Dimension]:
4477
+ """``GET ModelDimensions``: the function.
4478
+
4479
+ Returns only model dimensions.
4480
+
4481
+ Endpoint ``FunctionImport ModelDimensions``.
4482
+ """
4483
+ return await self._function('ModelDimensions', {}, _r.Returns(m.Dimension, collection=True, structured=True), _r.query_of(query, options), 'FunctionImport ModelDimensions')
4484
+
4485
+ @endpoint('ActionImport RemoveOIDCKeyFromCache')
4486
+ async def remove_oidc_key_from_cache(self, *, key_id: list[str] | None = _r.UNSET) -> None:
4487
+ """``POST RemoveOIDCKeyFromCache``: the action.
4488
+
4489
+ Removes OIDC key from server cache. Must be performed by a full admin.
4490
+
4491
+ Endpoint ``ActionImport RemoveOIDCKeyFromCache``.
4492
+
4493
+ Parameters (left out when not passed; ``None`` sends ``null``):
4494
+
4495
+ * ``key_id`` (``KeyId``, ``Collection(Edm.String)``): Optional. The collection of keys
4496
+ to remove. If this parameter is omitted, all keys are removed.
4497
+ """
4498
+ return await self._action('RemoveOIDCKeyFromCache', {'KeyId': key_id}, _r.Returns(), None, 'ActionImport RemoveOIDCKeyFromCache')
4499
+
4500
+ @endpoint('ActionImport RotateDataEncryptionKey')
4501
+ async def rotate_data_encryption_key(self) -> None:
4502
+ """``POST RotateDataEncryptionKey``: the action.
4503
+
4504
+ Generates a new Data Encryption Key (DEK) and re-encrypts the entire database.
4505
+
4506
+ Since TM1 schema 11.8.35.
4507
+
4508
+ Endpoint ``ActionImport RotateDataEncryptionKey``.
4509
+ """
4510
+ return await self._action('RotateDataEncryptionKey', {}, _r.Returns(), None, 'ActionImport RotateDataEncryptionKey')
4511
+
4512
+ @endpoint('ActionImport RotateDataModelKey')
4513
+ async def rotate_data_model_key(self) -> None:
4514
+ """``POST RotateDataModelKey``: the action.
4515
+
4516
+ Rotates the model key. Must be performed by a full admin.
4517
+
4518
+ Endpoint ``ActionImport RotateDataModelKey``.
4519
+ """
4520
+ return await self._action('RotateDataModelKey', {}, _r.Returns(), None, 'ActionImport RotateDataModelKey')
4521
+
4522
+ @endpoint('FunctionImport TailAuditLog')
4523
+ async def tail_audit_log(self) -> str | None:
4524
+ """``GET TailAuditLog``: the function.
4525
+
4526
+ Initiates change tracking on the audit log.
4527
+
4528
+ Initiates change tracking on the audit log and returns a delta link referencing the
4529
+ timestamp end of the audit log.
4530
+
4531
+ Since TM1 schema 11.6.0.
4532
+
4533
+ Endpoint ``FunctionImport TailAuditLog``.
4534
+ """
4535
+ return await self._function('TailAuditLog', {}, _r.Returns(str, structured=False), None, 'FunctionImport TailAuditLog')
4536
+
4537
+ @endpoint('FunctionImport TailMessageLog')
4538
+ async def tail_message_log(self) -> str | None:
4539
+ """``GET TailMessageLog``: the function.
4540
+
4541
+ Initiates change tracking on the message log.
4542
+
4543
+ Initiates change tracking on the message log and returns a delta link referencing the
4544
+ end of the message log as-is.
4545
+
4546
+ Since TM1 schema 11.3.0.
4547
+
4548
+ Endpoint ``FunctionImport TailMessageLog``.
4549
+ """
4550
+ return await self._function('TailMessageLog', {}, _r.Returns(str, structured=False), None, 'FunctionImport TailMessageLog')
4551
+
4552
+ @endpoint('FunctionImport TailTransactionLog')
4553
+ async def tail_transaction_log(self) -> str | None:
4554
+ """``GET TailTransactionLog``: the function.
4555
+
4556
+ Initiates change tracking on the transaction log.
4557
+
4558
+ Initiates change tracking on the transaction log and returns a delta link referencing
4559
+ the end of the transaction log as-is.
4560
+
4561
+ Since TM1 schema 11.3.0.
4562
+
4563
+ Endpoint ``FunctionImport TailTransactionLog``.
4564
+ """
4565
+ return await self._function('TailTransactionLog', {}, _r.Returns(str, structured=False), None, 'FunctionImport TailTransactionLog')
4566
+
4567
+ @endpoint('FunctionImport TransactionLog')
4568
+ async def transaction_log(self, *, reverse: bool | None = _r.UNSET, ignore_status_messages: bool | None = _r.UNSET, query: ODataQuery | None = None, **options: Any) -> list[m.TransactionLogEntry]:
4569
+ """``GET TransactionLog``: the function.
4570
+
4571
+ Returns a collection of transaction log entries.
4572
+
4573
+ By default, the most recent transaction log entry is returned first.
4574
+
4575
+ Since TM1 schema 10.2.2.1.
4576
+
4577
+ Endpoint ``FunctionImport TransactionLog``.
4578
+
4579
+ Parameters (left out when not passed; ``None`` sends ``null``):
4580
+
4581
+ * ``reverse`` (``Reverse``, ``Edm.Boolean``): A Boolean that indicates whether to order
4582
+ transaction log entries chronologically as they occurred in time.
4583
+
4584
+ * ``ignore_status_messages`` (``IgnoreStatusMessages``, ``Edm.Boolean``): A Boolean that
4585
+ indicates whether to include or not include status messages in the translation log.
4586
+ """
4587
+ return await self._function('TransactionLog', {'Reverse': reverse, 'IgnoreStatusMessages': ignore_status_messages}, _r.Returns(m.TransactionLogEntry, collection=True, structured=True), _r.query_of(query, options), 'FunctionImport TransactionLog')
4588
+
4589
+ @endpoint('ActionImport UndoChangeSet')
4590
+ async def undo_change_set(self, *, change_set_id: str) -> None:
4591
+ """``POST UndoChangeSet``: the action.
4592
+
4593
+ Reverts a change set.
4594
+
4595
+ Deleting the change set effectively removes all changes made to-date by the session.
4596
+
4597
+ Since TM1 schema 10.2.2.6.
4598
+
4599
+ Endpoint ``ActionImport UndoChangeSet``.
4600
+
4601
+ Parameters (left out when not passed; ``None`` sends ``null``):
4602
+
4603
+ * ``change_set_id`` (``ChangeSetID``, ``Edm.String``): The ID of the change set to
4604
+ revert.
4605
+ """
4606
+ return await self._action('UndoChangeSet', {'ChangeSetID': change_set_id}, _r.Returns(), None, 'ActionImport UndoChangeSet')
4607
+
4608
+ @endpoint('ActionImport Update')
4609
+ async def update_action(self, *, cube: m.Cube | Bind, slice: list[m.Element | Bind] | None = _r.UNSET, cells: list[m.CellDescriptor] | None = _r.UNSET, reference_cube: m.Cube | Bind | None = _r.UNSET, reference_cell: list[m.Element | Bind] | None = _r.UNSET, value: Any | None = _r.UNSET) -> None:
4610
+ """``POST Update``: the action.
4611
+
4612
+ Applies updates to a cube, a slice of a cube, or cells of a cube, depending on the value
4613
+ of the parameters provided.
4614
+
4615
+ Since TM1 schema 10.2.2.4.
4616
+
4617
+ Endpoint ``ActionImport Update``.
4618
+
4619
+ Parameters (left out when not passed; ``None`` sends ``null``):
4620
+
4621
+ * ``cube`` (``Cube``, ``ibm.tm1.api.v1.Cube``): The cube targeted by the update,
4622
+ specified in the resource path of the URL.
4623
+
4624
+ * ``slice`` (``Slice``, ``Collection(ibm.tm1.api.v1.Element)``): The slice of the cube
4625
+ targeted by the update.
4626
+
4627
+ * ``cells`` (``Cells``, ``Collection(ibm.tm1.api.v1.CellDescriptor)``): The cells of the
4628
+ cube targeted by the update.
4629
+
4630
+ * ``reference_cube`` (``ReferenceCube``, ``ibm.tm1.api.v1.Cube``): The cube containing
4631
+ the source data required by the spreading command.
4632
+
4633
+ * ``reference_cell`` (``ReferenceCell``, ``Collection(ibm.tm1.api.v1.Element)``): The
4634
+ cell containing the source data required by the spreading command.
4635
+
4636
+ * ``value`` (``Value``, ``Edm.PrimitiveType``): The numeric value, string value,
4637
+ spreading command or null value with which the cell is updated.
4638
+ """
4639
+ return await self._action('Update', {'Cube': cube, 'Slice': slice, 'Cells': cells, 'ReferenceCube': reference_cube, 'ReferenceCell': reference_cell, 'Value': value}, _r.Returns(), None, 'ActionImport Update')
4640
+
4641
+ @endpoint('FunctionImport ValidateEncryptionAtRestSettings')
4642
+ async def validate_encryption_at_rest_settings(self, *, settings: m.EncryptionAtRestProviderSettings, query: ODataQuery | None = None, **options: Any) -> m.EncryptionAtRestValidationReport | None:
4643
+ """``GET ValidateEncryptionAtRestSettings``: the function.
4644
+
4645
+ Validates KMS reachability/permissions and key existence using the provided concrete
4646
+ provider settings. Summarizes whether the given settings are actionable for
4647
+ ConfigureEncryptionAtRest right now. The returned report contains no secrets and does
4648
+ not persist or change any service state.
4649
+
4650
+ Since TM1 schema 11.8.35.
4651
+
4652
+ Endpoint ``FunctionImport ValidateEncryptionAtRestSettings``.
4653
+
4654
+ Parameters (left out when not passed; ``None`` sends ``null``):
4655
+
4656
+ * ``settings`` (``Settings``, ``ibm.tm1.api.v1.EncryptionAtRestProviderSettings``): The
4657
+ provider settings to be validated as if they were used for encryption at rest.
4658
+ """
4659
+ return await self._function('ValidateEncryptionAtRestSettings', {'Settings': settings}, _r.Returns(m.EncryptionAtRestValidationReport, structured=True), _r.query_of(query, options), 'FunctionImport ValidateEncryptionAtRestSettings')