FaceStub
#
- class ansys.speos.core.kernel.face.FaceStub(channel)#
Bases:
ansys.speos.core.kernel.crud.CrudStub
Database interactions for face.
- Parameters:
- channel
grpc.Channel
Channel to use for the stub.
- channel
Examples
The best way to get a FaceStub is to retrieve it from SpeosClient via faces() method. Like in the following example:
>>> from ansys.speos.core.speos import Speos >>> speos = Speos(host="localhost", port=50098) >>> face_db = speos.client.faces()
Overview#
Create new entries. |
|
Create a new entry. |
|
Get existing entries. |
|
Get an existing entry. |
|
Change existing entries. |
|
Change an existing entry. |
|
Remove an existing entry. |
|
List existing entries. |
Import detail#
from ansys.speos.core.kernel.face import FaceStub
Method detail#
- FaceStub.create_batch(message_list)#
Create new entries.
- Parameters:
- message_list
List
[face.Face
] List of datamodels for the new entries.
- message_list
- Returns:
List
[ansys.speos.core.kernel.face.FaceLink
]List pf link objects created.
- FaceStub.create(message)#
Create a new entry.
- Parameters:
- message
face.Face
Datamodel for the new entry.
- message
- Returns:
ansys.speos.core.kernel.face.FaceLink
Link object created.
- FaceStub.read_batch(refs)#
Get existing entries.
- Parameters:
- refs
List
[ansys.speos.core.kernel.face.FaceLink
] List of link objects to read.
- refs
- Returns:
List
[face.Face
]Datamodels of the entries.
- FaceStub.read(ref)#
Get an existing entry.
- Parameters:
- ref
ansys.speos.core.kernel.face.FaceLink
Link object to read.
- ref
- Returns:
face.Face
Datamodel of the entry.
- FaceStub.update_batch(refs, data)#
Change existing entries.
- Parameters:
- ref
List
[ansys.speos.core.kernel.face.FaceLink
] Link objects to update.
- data
List
[face.Face
] New datamodels for the entries.
- ref
- FaceStub.update(ref, data)#
Change an existing entry.
- Parameters:
- ref
ansys.speos.core.kernel.face.FaceLink
Link object to update.
- data
face.Face
New datamodel for the entry.
- ref
- FaceStub.delete(ref)#
Remove an existing entry.
- Parameters:
- ref
ansys.speos.core.kernel.face.FaceLink
Link object to delete.
- ref
- FaceStub.list()#
List existing entries.
- Returns:
List
[ansys.speos.core.kernel.face.FaceLink
]Link objects.