Inventory gRPC service.
GrpcInventory
(inventory_api)[source]¶Bases: google.cloud.forseti.services.inventory.inventory_pb2_grpc.InventoryServicer
Inventory gRPC handler.
Create
()¶Wrapper function, checks context state to close stream.
Parameters: | *args (list) – All arguments provided to the wrapped function. |
---|---|
Yields: | object – Whatever the wrapped function yields to the stream. |
Delete
(request, _)[source]¶Deletes existing inventory.
Parameters: |
|
---|---|
Returns: | Inventory API object that is deleted. |
Return type: | object |
Get
(request, _)[source]¶Gets existing inventory.
Parameters: |
|
---|---|
Returns: | Inventory API object that is requested. |
Return type: | object |
List
()¶Wrapper function, checks context state to close stream.
Parameters: | *args (list) – All arguments provided to the wrapped function. |
---|---|
Yields: | object – Whatever the wrapped function yields to the stream. |
GrpcInventoryFactory
(config)[source]¶Bases: object
Factory class for Inventory service gRPC interface
inventory_pb_from_object
(inventory_index, warning_messages)[source]¶Convert internal inventory data structure to protobuf.
Parameters: |
|
---|---|
Returns: | proto message of InventoryIndex |
Return type: | object |