assets_pb2_grpc
frequenz.api.assets.v1.assets_pb2_grpc ¤
Client and server classes corresponding to protobuf-defined services.
Classes¤
frequenz.api.assets.v1.assets_pb2_grpc.PlatformAssets ¤
Bases: object
Service providing access to manage and retrieve information related to gridpools and microgrids, and other platform assets.
Source code in frequenz/api/assets/v1/assets_pb2_grpc.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
|
frequenz.api.assets.v1.assets_pb2_grpc.PlatformAssetsAsyncStub ¤
Service providing access to manage and retrieve information related to gridpools and microgrids, and other platform assets.
Source code in frequenz/api/assets/v1/assets_pb2_grpc.py
Attributes¤
GetMicrogrid
instance-attribute
¤
GetMicrogrid: UnaryUnaryMultiCallable[
GetMicrogridRequest, GetMicrogridResponse
]
Returns details of a specific microgrid.
ListMicrogridElectricalComponentConnections
instance-attribute
¤
ListMicrogridElectricalComponentConnections: (
UnaryUnaryMultiCallable[
ListMicrogridElectricalComponentConnectionsRequest,
ListMicrogridElectricalComponentConnectionsResponse,
]
)
Returns a list of the connections between electrical components for a specific microgrid.
ListMicrogridElectricalComponents
instance-attribute
¤
ListMicrogridElectricalComponents: UnaryUnaryMultiCallable[
ListMicrogridElectricalComponentsRequest,
ListMicrogridElectricalComponentsResponse,
]
Returns list of a electrical components for a specific microgrid.
frequenz.api.assets.v1.assets_pb2_grpc.PlatformAssetsServicer ¤
Bases: object
Service providing access to manage and retrieve information related to gridpools and microgrids, and other platform assets.
Source code in frequenz/api/assets/v1/assets_pb2_grpc.py
Functions¤
GetMicrogrid ¤
GetMicrogrid(
request: GetMicrogridRequest, context: _ServicerContext
) -> Union[
GetMicrogridResponse, Awaitable[GetMicrogridResponse]
]
Returns details of a specific microgrid.
Source code in frequenz/api/assets/v1/assets_pb2_grpc.py
ListMicrogridElectricalComponentConnections ¤
ListMicrogridElectricalComponentConnections(
request: ListMicrogridElectricalComponentConnectionsRequest,
context: _ServicerContext,
) -> Union[
ListMicrogridElectricalComponentConnectionsResponse,
Awaitable[
ListMicrogridElectricalComponentConnectionsResponse
],
]
Returns a list of the connections between electrical components for a specific microgrid.
Source code in frequenz/api/assets/v1/assets_pb2_grpc.py
ListMicrogridElectricalComponents ¤
ListMicrogridElectricalComponents(
request: ListMicrogridElectricalComponentsRequest,
context: _ServicerContext,
) -> Union[
ListMicrogridElectricalComponentsResponse,
Awaitable[ListMicrogridElectricalComponentsResponse],
]
Returns list of a electrical components for a specific microgrid.
Source code in frequenz/api/assets/v1/assets_pb2_grpc.py
frequenz.api.assets.v1.assets_pb2_grpc.PlatformAssetsStub ¤
Bases: object
Service providing access to manage and retrieve information related to gridpools and microgrids, and other platform assets.
Source code in frequenz/api/assets/v1/assets_pb2_grpc.py
Attributes¤
GetMicrogrid
instance-attribute
¤
GetMicrogrid: UnaryUnaryMultiCallable[
GetMicrogridRequest, GetMicrogridResponse
] = unary_unary(
"/frequenz.api.assets.v1.PlatformAssets/GetMicrogrid",
request_serializer=SerializeToString,
response_deserializer=FromString,
_registered_method=True,
)
Returns details of a specific microgrid.
ListMicrogridElectricalComponentConnections
instance-attribute
¤
ListMicrogridElectricalComponentConnections: (
UnaryUnaryMultiCallable[
ListMicrogridElectricalComponentConnectionsRequest,
ListMicrogridElectricalComponentConnectionsResponse,
]
) = unary_unary(
"/frequenz.api.assets.v1.PlatformAssets/ListMicrogridElectricalComponentConnections",
request_serializer=SerializeToString,
response_deserializer=FromString,
_registered_method=True,
)
Returns a list of the connections between electrical components for a specific microgrid.
ListMicrogridElectricalComponents
instance-attribute
¤
ListMicrogridElectricalComponents: UnaryUnaryMultiCallable[
ListMicrogridElectricalComponentsRequest,
ListMicrogridElectricalComponentsResponse,
] = unary_unary(
"/frequenz.api.assets.v1.PlatformAssets/ListMicrogridElectricalComponents",
request_serializer=SerializeToString,
response_deserializer=FromString,
_registered_method=True,
)
Returns list of a electrical components for a specific microgrid.
Functions¤
__init__ ¤
Constructor.
PARAMETER | DESCRIPTION |
---|---|
channel
|
A grpc.Channel. |