Cloud Commerce Consumer Procurement v1 API - Class ConsumerProcurementService.ConsumerProcurementServiceBase (1.0.0)

[BindServiceMethod(typeof(ConsumerProcurementService), "BindService")]
public abstract class ConsumerProcurementService.ConsumerProcurementServiceBase

Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class ConsumerProcurementService.ConsumerProcurementServiceBase.

Base class for server-side implementations of ConsumerProcurementService

Inheritance

object > ConsumerProcurementService.ConsumerProcurementServiceBase

Namespace

Google.Cloud.Commerce.Consumer.Procurement.V1

Assembly

Google.Cloud.Commerce.Consumer.Procurement.V1.dll

Methods

GetOrder(GetOrderRequest, ServerCallContext)

public virtual Task<Order> GetOrder(GetOrderRequest request, ServerCallContext context)

Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource.

Parameters
NameDescription
requestGetOrderRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOrder

The response to send back to the client (wrapped by a task).

ListOrders(ListOrdersRequest, ServerCallContext)

public virtual Task<ListOrdersResponse> ListOrders(ListOrdersRequest request, ServerCallContext context)

Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] resources that the user has access to, within the scope of the parent resource.

Parameters
NameDescription
requestListOrdersRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListOrdersResponse

The response to send back to the client (wrapped by a task).

PlaceOrder(PlaceOrderRequest, ServerCallContext)

public virtual Task<Operation> PlaceOrder(PlaceOrderRequest request, ServerCallContext context)

Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.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.v1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the order resource will be removed.

Parameters
NameDescription
requestPlaceOrderRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).