aas_client3_2.description
Implement the operation of the Description API.
Every service gives its description at /description, relative to its base URL,
so the function takes the server of whichever service is to be described.
Every public function implements exactly one operation of the specification;
get_self_description_profiles() implements the same operation as
get_self_description(), but keeps the proprietary profiles. The
private functions _build_* and _parse_* build the request and parse
the response of the operation. They do no I/O, and constitute a semi-public
interface for the testing client, which is released in lockstep with this client.
- aas_client3_2.description.get_self_description(server: Server) ServiceDescription[source]
Get the description of the service, which lists the profiles it implements.
The profiles are the literals of
aas_core3_2.types.ServiceSpecificationProfileEnum, such ashttps://admin-shell.io/aas/API/3/2/SubmodelRepositoryServiceSpecification/SSP-001. A server may also list proprietary profiles and properties; the client ignores them, as the OpenAPI of Part 2 asks the clients to. Useget_self_description_profiles()to get the proprietary profiles too.- Parameters:
server¶ – the service to be described
- Returns:
the description of the service
- Implements:
GetSelfDescription –
GET /description
- aas_client3_2.description.get_self_description_profiles(server: Server) List[str][source]
Get all the profiles which the service lists in its description, as strings.
In contrast to
get_self_description(), the proprietary profiles, which Part 2 allows, are kept, such ashttps://basyx.org/...of Eclipse BaSyx. The proprietary properties of the description are ignored.- Parameters:
server¶ – the service to be described
- Returns:
the profiles in the order of the server
- Implements:
GetSelfDescription –
GET /description