Interface ConsumerProcurementServiceGrpc.AsyncService
-
- All Known Implementing Classes:
ConsumerProcurementServiceGrpc.ConsumerProcurementServiceImplBase
- Enclosing class:
- ConsumerProcurementServiceGrpc
public static interface ConsumerProcurementServiceGrpc.AsyncService
ConsumerProcurementService allows customers to make purchases of products served by the Cloud Commerce platform. When purchases are made, the [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService] programs the appropriate backends, including both Google's own infrastructure, as well as third-party systems, and to enable billing setup for charging for the procured item.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
getOrder(GetOrderRequest request, io.grpc.stub.StreamObserver<Order> responseObserver)
Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.default void
listOrders(ListOrdersRequest request, io.grpc.stub.StreamObserver<ListOrdersResponse> responseObserver)
Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the scope of the parent resource.default void
placeOrder(PlaceOrderRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
-
-
-
Method Detail
-
placeOrder
default void placeOrder(PlaceOrderRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. This API only supports GCP spend-based committed use discounts specified by GCP documentation. The returned long-running operation is in-progress until the backend completes the creation of the resource. Once completed, the order is in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1alpha1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the order resource will be removed.
-
getOrder
default void getOrder(GetOrderRequest request, io.grpc.stub.StreamObserver<Order> responseObserver)
Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.
-
listOrders
default void listOrders(ListOrdersRequest request, io.grpc.stub.StreamObserver<ListOrdersResponse> responseObserver)
Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the scope of the parent resource.
-
-