AnnotationService
AnnotationService(rest)
Bases: ObjectService
Service to handle Object Updates for TM1 CellAnnotations
Source code in TM1py/Services/AnnotationService.py
create(annotation, **kwargs)
create an Annotation
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
annotation
|
Annotation
|
instance of TM1py.Annotation |
required |
Source code in TM1py/Services/AnnotationService.py
create_many(annotations, **kwargs)
create an Annotation
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
annotations
|
Iterable[Annotation]
|
instances of TM1py.Annotation |
required |
Source code in TM1py/Services/AnnotationService.py
delete(annotation_id, **kwargs)
delete Annotation
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
annotation_id
|
str
|
string, the id of the annotation |
required |
Source code in TM1py/Services/AnnotationService.py
get(annotation_id, **kwargs)
get an annotation from any cube through its unique id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
annotation_id
|
str
|
String, the id of the annotation |
required |
Source code in TM1py/Services/AnnotationService.py
get_all(cube_name, **kwargs)
get all annotations from given cube as a List.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cube_name
|
str
|
|
required |
Source code in TM1py/Services/AnnotationService.py
update(annotation, **kwargs)
update Annotation. updateable attributes: commentValue
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
annotation
|
Annotation
|
instance of TM1py.Annotation |
required |