Skip to content

platformassets_pb2_grpc

frequenz.api.platformassets.v1alpha1.platformassets_pb2_grpc ¤

Client and server classes corresponding to protobuf-defined services.

Classes¤

frequenz.api.platformassets.v1alpha1.platformassets_pb2_grpc.PlatformAssetsService ¤

Bases: object

PlatformAssetsService provides read-only access to platform asset and market-topology metadata.

The service exposes a platform-wide read model for resolving stable identifiers, asset inventories, and relationships managed by the Frequenz platform. This includes Gridpools, microgrids, Market Locations, market-topology relations, Gridpool energy schedules, electrical component inventories, sensor inventories, and the directed electrical component graph within a microgrid.

Gridpools represent virtual balancing-group structures used for market interactions, such as electricity trading, scheduled energy exchange, and flexibility or ancillary-service participation.

Market-topology relations describe how Gridpools, Microgrids, and Market Locations are connected. These relations define which market-facing metering points and technical Microgrids participate in a Gridpool context, and can also describe Microgrid-to-Market-Location relations that exist without market participation.

Microgrid asset metadata describes the technical structure of deployed or planned microgrids, including electrical components, sensors, and the directed electrical component graph.

Authentication

All requests to PlatformAssetsService must be signed. The key identifier and signature must be included in the request metadata (gRPC metadata / HTTP headers). The signature must be computed using the HMAC-SHA256 algorithm and secret key. All requests to this service must be made over TLS (HTTPS).

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
class PlatformAssetsService(object):
    """PlatformAssetsService provides read-only access to platform asset and
    market-topology metadata.

    The service exposes a platform-wide read model for resolving stable
    identifiers, asset inventories, and relationships managed by the Frequenz
    platform. This includes Gridpools, microgrids, Market Locations,
    market-topology relations, Gridpool energy schedules, electrical component
    inventories, sensor inventories, and the directed electrical component graph
    within a microgrid.

    Gridpools represent virtual balancing-group structures used for market
    interactions, such as electricity trading, scheduled energy exchange, and
    flexibility or ancillary-service participation.

    Market-topology relations describe how Gridpools, Microgrids, and Market
    Locations are connected. These relations define which market-facing metering
    points and technical Microgrids participate in a Gridpool context, and can
    also describe Microgrid-to-Market-Location relations that exist without
    market participation.

    Microgrid asset metadata describes the technical structure of deployed or
    planned microgrids, including electrical components, sensors, and the
    directed electrical component graph.

    !!! important "Authentication"
    All requests to PlatformAssetsService must be signed. The key identifier
    and signature must be included in the request metadata (gRPC metadata /
    HTTP headers). The signature must be computed using the HMAC-SHA256
    algorithm and secret key. All requests to this service must be made
    over TLS (HTTPS).

    """

    @staticmethod
    def ListGridpools(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListGridpools',
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolsRequest.SerializeToString,
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListGridpoolEnergySchedules(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListGridpoolEnergySchedules',
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolEnergySchedulesRequest.SerializeToString,
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolEnergySchedulesResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListMarketTopologyRelations(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMarketTopologyRelations',
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMarketTopologyRelationsRequest.SerializeToString,
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMarketTopologyRelationsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def GetMicrogrid(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/GetMicrogrid',
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.GetMicrogridRequest.SerializeToString,
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.GetMicrogridResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListMicrogrids(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogrids',
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridsRequest.SerializeToString,
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListMicrogridElectricalComponents(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponents',
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentsRequest.SerializeToString,
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListMicrogridElectricalComponentConnections(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponentConnections',
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentConnectionsRequest.SerializeToString,
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentConnectionsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListMicrogridSensors(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridSensors',
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridSensorsRequest.SerializeToString,
            frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridSensorsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

frequenz.api.platformassets.v1alpha1.platformassets_pb2_grpc.PlatformAssetsServiceAsyncStub ¤

Bases: PlatformAssetsServiceStub

PlatformAssetsService provides read-only access to platform asset and market-topology metadata.

The service exposes a platform-wide read model for resolving stable identifiers, asset inventories, and relationships managed by the Frequenz platform. This includes Gridpools, microgrids, Market Locations, market-topology relations, Gridpool energy schedules, electrical component inventories, sensor inventories, and the directed electrical component graph within a microgrid.

Gridpools represent virtual balancing-group structures used for market interactions, such as electricity trading, scheduled energy exchange, and flexibility or ancillary-service participation.

Market-topology relations describe how Gridpools, Microgrids, and Market Locations are connected. These relations define which market-facing metering points and technical Microgrids participate in a Gridpool context, and can also describe Microgrid-to-Market-Location relations that exist without market participation.

Microgrid asset metadata describes the technical structure of deployed or planned microgrids, including electrical components, sensors, and the directed electrical component graph.

Authentication

All requests to PlatformAssetsService must be signed. The key identifier and signature must be included in the request metadata (gRPC metadata / HTTP headers). The signature must be computed using the HMAC-SHA256 algorithm and secret key. All requests to this service must be made over TLS (HTTPS).

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponents',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentsResponse.FromString,
                _registered_method=True)
        self.ListMicrogridElectricalComponentConnections = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponentConnections',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentConnectionsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentConnectionsResponse.FromString,
                _registered_method=True)
        self.ListMicrogridSensors = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridSensors',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridSensorsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridSensorsResponse.FromString,
                _registered_method=True)


class PlatformAssetsServiceServicer(object):
    """PlatformAssetsService provides read-only access to platform asset and
    market-topology metadata.

    The service exposes a platform-wide read model for resolving stable
    identifiers, asset inventories, and relationships managed by the Frequenz
    platform. This includes Gridpools, microgrids, Market Locations,
    market-topology relations, Gridpool energy schedules, electrical component
    inventories, sensor inventories, and the directed electrical component graph
    within a microgrid.

    Gridpools represent virtual balancing-group structures used for market
    interactions, such as electricity trading, scheduled energy exchange, and
    flexibility or ancillary-service participation.

    Market-topology relations describe how Gridpools, Microgrids, and Market
    Locations are connected. These relations define which market-facing metering
    points and technical Microgrids participate in a Gridpool context, and can
    also describe Microgrid-to-Market-Location relations that exist without
    market participation.

    Microgrid asset metadata describes the technical structure of deployed or
    planned microgrids, including electrical components, sensors, and the
    directed electrical component graph.

    !!! important "Authentication"
    All requests to PlatformAssetsService must be signed. The key identifier
    and signature must be included in the request metadata (gRPC metadata /
    HTTP headers). The signature must be computed using the HMAC-SHA256
    algorithm and secret key. All requests to this service must be made
    over TLS (HTTPS).

    """

    def ListGridpools(self, request, context):
        """Lists Gridpools within the current enterprise scope.
        """
Attributes¤
GetMicrogrid instance-attribute ¤

Returns metadata for a specific microgrid.

ListGridpoolEnergySchedules instance-attribute ¤

Lists energy schedules for a specific Gridpool.

ListGridpools instance-attribute ¤

Lists Gridpools within the current enterprise scope.

ListMarketTopologyRelations instance-attribute ¤

Lists market-topology relations within the current enterprise scope.

ListMicrogridElectricalComponentConnections instance-attribute ¤

Lists directed electrical connections between components in a specific microgrid.

ListMicrogridElectricalComponents instance-attribute ¤

Lists electrical components for a specific microgrid.

ListMicrogridSensors instance-attribute ¤

Lists sensors for a specific microgrid.

ListMicrogrids instance-attribute ¤

Lists microgrids within the current enterprise scope.

frequenz.api.platformassets.v1alpha1.platformassets_pb2_grpc.PlatformAssetsServiceServicer ¤

Bases: object

PlatformAssetsService provides read-only access to platform asset and market-topology metadata.

The service exposes a platform-wide read model for resolving stable identifiers, asset inventories, and relationships managed by the Frequenz platform. This includes Gridpools, microgrids, Market Locations, market-topology relations, Gridpool energy schedules, electrical component inventories, sensor inventories, and the directed electrical component graph within a microgrid.

Gridpools represent virtual balancing-group structures used for market interactions, such as electricity trading, scheduled energy exchange, and flexibility or ancillary-service participation.

Market-topology relations describe how Gridpools, Microgrids, and Market Locations are connected. These relations define which market-facing metering points and technical Microgrids participate in a Gridpool context, and can also describe Microgrid-to-Market-Location relations that exist without market participation.

Microgrid asset metadata describes the technical structure of deployed or planned microgrids, including electrical components, sensors, and the directed electrical component graph.

Authentication

All requests to PlatformAssetsService must be signed. The key identifier and signature must be included in the request metadata (gRPC metadata / HTTP headers). The signature must be computed using the HMAC-SHA256 algorithm and secret key. All requests to this service must be made over TLS (HTTPS).

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
class PlatformAssetsServiceServicer(object):
    """PlatformAssetsService provides read-only access to platform asset and
    market-topology metadata.

    The service exposes a platform-wide read model for resolving stable
    identifiers, asset inventories, and relationships managed by the Frequenz
    platform. This includes Gridpools, microgrids, Market Locations,
    market-topology relations, Gridpool energy schedules, electrical component
    inventories, sensor inventories, and the directed electrical component graph
    within a microgrid.

    Gridpools represent virtual balancing-group structures used for market
    interactions, such as electricity trading, scheduled energy exchange, and
    flexibility or ancillary-service participation.

    Market-topology relations describe how Gridpools, Microgrids, and Market
    Locations are connected. These relations define which market-facing metering
    points and technical Microgrids participate in a Gridpool context, and can
    also describe Microgrid-to-Market-Location relations that exist without
    market participation.

    Microgrid asset metadata describes the technical structure of deployed or
    planned microgrids, including electrical components, sensors, and the
    directed electrical component graph.

    !!! important "Authentication"
    All requests to PlatformAssetsService must be signed. The key identifier
    and signature must be included in the request metadata (gRPC metadata /
    HTTP headers). The signature must be computed using the HMAC-SHA256
    algorithm and secret key. All requests to this service must be made
    over TLS (HTTPS).

    """

    def ListGridpools(self, request, context):
        """Lists Gridpools within the current enterprise scope.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListGridpoolEnergySchedules(self, request, context):
        """Lists energy schedules for a specific Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListMarketTopologyRelations(self, request, context):
        """Lists market-topology relations within the current enterprise scope.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetMicrogrid(self, request, context):
        """Returns metadata for a specific microgrid.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListMicrogrids(self, request, context):
        """Lists microgrids within the current enterprise scope.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListMicrogridElectricalComponents(self, request, context):
        """Lists electrical components for a specific microgrid.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListMicrogridElectricalComponentConnections(self, request, context):
        """Lists directed electrical connections between components in a specific
        microgrid.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListMicrogridSensors(self, request, context):
        """Lists sensors for a specific microgrid.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')
Functions¤
GetMicrogrid ¤
GetMicrogrid(
    request: GetMicrogridRequest, context: _ServicerContext
) -> Union[
    GetMicrogridResponse, Awaitable[GetMicrogridResponse]
]

Returns metadata for a specific microgrid.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def GetMicrogrid(self, request, context):
    """Returns metadata for a specific microgrid.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListGridpoolEnergySchedules ¤
ListGridpoolEnergySchedules(
    request: ListGridpoolEnergySchedulesRequest,
    context: _ServicerContext,
) -> Union[
    ListGridpoolEnergySchedulesResponse,
    Awaitable[ListGridpoolEnergySchedulesResponse],
]

Lists energy schedules for a specific Gridpool.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def ListGridpoolEnergySchedules(self, request, context):
    """Lists energy schedules for a specific Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListGridpools ¤
ListGridpools(
    request: ListGridpoolsRequest, context: _ServicerContext
) -> Union[
    ListGridpoolsResponse, Awaitable[ListGridpoolsResponse]
]

Lists Gridpools within the current enterprise scope.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def ListGridpools(self, request, context):
    """Lists Gridpools within the current enterprise scope.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListMarketTopologyRelations ¤
ListMarketTopologyRelations(
    request: ListMarketTopologyRelationsRequest,
    context: _ServicerContext,
) -> Union[
    ListMarketTopologyRelationsResponse,
    Awaitable[ListMarketTopologyRelationsResponse],
]

Lists market-topology relations within the current enterprise scope.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def ListMarketTopologyRelations(self, request, context):
    """Lists market-topology relations within the current enterprise scope.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListMicrogridElectricalComponentConnections ¤

Lists directed electrical connections between components in a specific microgrid.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def ListMicrogridElectricalComponentConnections(self, request, context):
    """Lists directed electrical connections between components in a specific
    microgrid.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListMicrogridElectricalComponents ¤

Lists electrical components for a specific microgrid.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def ListMicrogridElectricalComponents(self, request, context):
    """Lists electrical components for a specific microgrid.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListMicrogridSensors ¤
ListMicrogridSensors(
    request: ListMicrogridSensorsRequest,
    context: _ServicerContext,
) -> Union[
    ListMicrogridSensorsResponse,
    Awaitable[ListMicrogridSensorsResponse],
]

Lists sensors for a specific microgrid.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def ListMicrogridSensors(self, request, context):
    """Lists sensors for a specific microgrid.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListMicrogrids ¤
ListMicrogrids(
    request: ListMicrogridsRequest,
    context: _ServicerContext,
) -> Union[
    ListMicrogridsResponse,
    Awaitable[ListMicrogridsResponse],
]

Lists microgrids within the current enterprise scope.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def ListMicrogrids(self, request, context):
    """Lists microgrids within the current enterprise scope.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

frequenz.api.platformassets.v1alpha1.platformassets_pb2_grpc.PlatformAssetsServiceStub ¤

Bases: object

PlatformAssetsService provides read-only access to platform asset and market-topology metadata.

The service exposes a platform-wide read model for resolving stable identifiers, asset inventories, and relationships managed by the Frequenz platform. This includes Gridpools, microgrids, Market Locations, market-topology relations, Gridpool energy schedules, electrical component inventories, sensor inventories, and the directed electrical component graph within a microgrid.

Gridpools represent virtual balancing-group structures used for market interactions, such as electricity trading, scheduled energy exchange, and flexibility or ancillary-service participation.

Market-topology relations describe how Gridpools, Microgrids, and Market Locations are connected. These relations define which market-facing metering points and technical Microgrids participate in a Gridpool context, and can also describe Microgrid-to-Market-Location relations that exist without market participation.

Microgrid asset metadata describes the technical structure of deployed or planned microgrids, including electrical components, sensors, and the directed electrical component graph.

Authentication

All requests to PlatformAssetsService must be signed. The key identifier and signature must be included in the request metadata (gRPC metadata / HTTP headers). The signature must be computed using the HMAC-SHA256 algorithm and secret key. All requests to this service must be made over TLS (HTTPS).

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
class PlatformAssetsServiceStub(object):
    """PlatformAssetsService provides read-only access to platform asset and
    market-topology metadata.

    The service exposes a platform-wide read model for resolving stable
    identifiers, asset inventories, and relationships managed by the Frequenz
    platform. This includes Gridpools, microgrids, Market Locations,
    market-topology relations, Gridpool energy schedules, electrical component
    inventories, sensor inventories, and the directed electrical component graph
    within a microgrid.

    Gridpools represent virtual balancing-group structures used for market
    interactions, such as electricity trading, scheduled energy exchange, and
    flexibility or ancillary-service participation.

    Market-topology relations describe how Gridpools, Microgrids, and Market
    Locations are connected. These relations define which market-facing metering
    points and technical Microgrids participate in a Gridpool context, and can
    also describe Microgrid-to-Market-Location relations that exist without
    market participation.

    Microgrid asset metadata describes the technical structure of deployed or
    planned microgrids, including electrical components, sensors, and the
    directed electrical component graph.

    !!! important "Authentication"
    All requests to PlatformAssetsService must be signed. The key identifier
    and signature must be included in the request metadata (gRPC metadata /
    HTTP headers). The signature must be computed using the HMAC-SHA256
    algorithm and secret key. All requests to this service must be made
    over TLS (HTTPS).

    """

    def __init__(self, channel):
        """Constructor.

        Args:
            channel: A grpc.Channel.
        """
        self.ListGridpools = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListGridpools',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolsResponse.FromString,
                _registered_method=True)
        self.ListGridpoolEnergySchedules = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListGridpoolEnergySchedules',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolEnergySchedulesRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolEnergySchedulesResponse.FromString,
                _registered_method=True)
        self.ListMarketTopologyRelations = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMarketTopologyRelations',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMarketTopologyRelationsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMarketTopologyRelationsResponse.FromString,
                _registered_method=True)
        self.GetMicrogrid = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/GetMicrogrid',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.GetMicrogridRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.GetMicrogridResponse.FromString,
                _registered_method=True)
        self.ListMicrogrids = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogrids',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridsResponse.FromString,
                _registered_method=True)
        self.ListMicrogridElectricalComponents = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponents',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentsResponse.FromString,
                _registered_method=True)
        self.ListMicrogridElectricalComponentConnections = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponentConnections',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentConnectionsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentConnectionsResponse.FromString,
                _registered_method=True)
        self.ListMicrogridSensors = channel.unary_unary(
                '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridSensors',
                request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridSensorsRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridSensorsResponse.FromString,
                _registered_method=True)
Attributes¤
GetMicrogrid instance-attribute ¤
GetMicrogrid: UnaryUnaryMultiCallable[
    GetMicrogridRequest, GetMicrogridResponse
] = unary_unary(
    "/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/GetMicrogrid",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Returns metadata for a specific microgrid.

ListGridpoolEnergySchedules instance-attribute ¤
ListGridpoolEnergySchedules: UnaryUnaryMultiCallable[
    ListGridpoolEnergySchedulesRequest,
    ListGridpoolEnergySchedulesResponse,
] = unary_unary(
    "/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListGridpoolEnergySchedules",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists energy schedules for a specific Gridpool.

ListGridpools instance-attribute ¤
ListGridpools: UnaryUnaryMultiCallable[
    ListGridpoolsRequest, ListGridpoolsResponse
] = unary_unary(
    "/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListGridpools",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists Gridpools within the current enterprise scope.

ListMarketTopologyRelations instance-attribute ¤
ListMarketTopologyRelations: UnaryUnaryMultiCallable[
    ListMarketTopologyRelationsRequest,
    ListMarketTopologyRelationsResponse,
] = unary_unary(
    "/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMarketTopologyRelations",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists market-topology relations within the current enterprise scope.

ListMicrogridElectricalComponentConnections instance-attribute ¤
ListMicrogridElectricalComponentConnections: (
    UnaryUnaryMultiCallable[
        ListMicrogridElectricalComponentConnectionsRequest,
        ListMicrogridElectricalComponentConnectionsResponse,
    ]
) = unary_unary(
    "/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponentConnections",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists directed electrical connections between components in a specific microgrid.

ListMicrogridElectricalComponents instance-attribute ¤
ListMicrogridElectricalComponents: UnaryUnaryMultiCallable[
    ListMicrogridElectricalComponentsRequest,
    ListMicrogridElectricalComponentsResponse,
] = unary_unary(
    "/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponents",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists electrical components for a specific microgrid.

ListMicrogridSensors instance-attribute ¤
ListMicrogridSensors: UnaryUnaryMultiCallable[
    ListMicrogridSensorsRequest,
    ListMicrogridSensorsResponse,
] = unary_unary(
    "/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridSensors",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists sensors for a specific microgrid.

ListMicrogrids instance-attribute ¤
ListMicrogrids: UnaryUnaryMultiCallable[
    ListMicrogridsRequest, ListMicrogridsResponse
] = unary_unary(
    "/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogrids",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists microgrids within the current enterprise scope.

Functions¤
__init__ ¤
__init__(channel)

Constructor.

PARAMETER DESCRIPTION
channel

A grpc.Channel.

Source code in py/frequenz/api/platformassets/v1alpha1/platformassets_pb2_grpc.py
def __init__(self, channel):
    """Constructor.

    Args:
        channel: A grpc.Channel.
    """
    self.ListGridpools = channel.unary_unary(
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListGridpools',
            request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolsRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolsResponse.FromString,
            _registered_method=True)
    self.ListGridpoolEnergySchedules = channel.unary_unary(
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListGridpoolEnergySchedules',
            request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolEnergySchedulesRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListGridpoolEnergySchedulesResponse.FromString,
            _registered_method=True)
    self.ListMarketTopologyRelations = channel.unary_unary(
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMarketTopologyRelations',
            request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMarketTopologyRelationsRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMarketTopologyRelationsResponse.FromString,
            _registered_method=True)
    self.GetMicrogrid = channel.unary_unary(
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/GetMicrogrid',
            request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.GetMicrogridRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.GetMicrogridResponse.FromString,
            _registered_method=True)
    self.ListMicrogrids = channel.unary_unary(
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogrids',
            request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridsRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridsResponse.FromString,
            _registered_method=True)
    self.ListMicrogridElectricalComponents = channel.unary_unary(
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponents',
            request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentsRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentsResponse.FromString,
            _registered_method=True)
    self.ListMicrogridElectricalComponentConnections = channel.unary_unary(
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridElectricalComponentConnections',
            request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentConnectionsRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridElectricalComponentConnectionsResponse.FromString,
            _registered_method=True)
    self.ListMicrogridSensors = channel.unary_unary(
            '/frequenz.api.platformassets.v1alpha1.PlatformAssetsService/ListMicrogridSensors',
            request_serializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridSensorsRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_platformassets_dot_v1alpha1_dot_platformassets__pb2.ListMicrogridSensorsResponse.FromString,
            _registered_method=True)