Show / Hide Table of Contents

Class OrderServiceClient

OrderService client wrapper, for convenient use.

Inheritance
object
OrderServiceClient
OrderServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class OrderServiceClient
Remarks

Provides methods for handling Order objects.

Properties

DefaultEndpoint

The default endpoint for the OrderService service, which is a host of "admanager.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default OrderService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default OrderService scopes are:

  • https://www.googleapis.com/auth/admanager
  • https://www.googleapis.com/auth/admanager.readonly

GrpcClient

The underlying gRPC OrderService client

Declaration
public virtual OrderService.OrderServiceClient GrpcClient { get; }
Property Value
Type Description
OrderService.OrderServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

BatchApproveAndOverbookOrders(BatchApproveAndOverbookOrdersRequest, CallSettings)

Approves and overbooks a list of Order objects.

Declaration
public virtual BatchApproveAndOverbookOrdersResponse BatchApproveAndOverbookOrders(BatchApproveAndOverbookOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchApproveAndOverbookOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveAndOverbookOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchApproveAndOverbookOrdersRequest request = new BatchApproveAndOverbookOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = orderServiceClient.BatchApproveAndOverbookOrders(request);

BatchApproveAndOverbookOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Approves and overbooks a list of Order objects.

Declaration
public virtual BatchApproveAndOverbookOrdersResponse BatchApproveAndOverbookOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveAndOverbookOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = orderServiceClient.BatchApproveAndOverbookOrders(parent, names);

BatchApproveAndOverbookOrders(string, IEnumerable<string>, CallSettings)

Approves and overbooks a list of Order objects.

Declaration
public virtual BatchApproveAndOverbookOrdersResponse BatchApproveAndOverbookOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveAndOverbookOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = orderServiceClient.BatchApproveAndOverbookOrders(parent, names);

BatchApproveAndOverbookOrdersAsync(BatchApproveAndOverbookOrdersRequest, CallSettings)

Approves and overbooks a list of Order objects.

Declaration
public virtual Task<BatchApproveAndOverbookOrdersResponse> BatchApproveAndOverbookOrdersAsync(BatchApproveAndOverbookOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchApproveAndOverbookOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchApproveAndOverbookOrdersRequest request = new BatchApproveAndOverbookOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = await orderServiceClient.BatchApproveAndOverbookOrdersAsync(request);

BatchApproveAndOverbookOrdersAsync(BatchApproveAndOverbookOrdersRequest, CancellationToken)

Approves and overbooks a list of Order objects.

Declaration
public virtual Task<BatchApproveAndOverbookOrdersResponse> BatchApproveAndOverbookOrdersAsync(BatchApproveAndOverbookOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchApproveAndOverbookOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchApproveAndOverbookOrdersRequest request = new BatchApproveAndOverbookOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = await orderServiceClient.BatchApproveAndOverbookOrdersAsync(request);

BatchApproveAndOverbookOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Approves and overbooks a list of Order objects.

Declaration
public virtual Task<BatchApproveAndOverbookOrdersResponse> BatchApproveAndOverbookOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = await orderServiceClient.BatchApproveAndOverbookOrdersAsync(parent, names);

BatchApproveAndOverbookOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Approves and overbooks a list of Order objects.

Declaration
public virtual Task<BatchApproveAndOverbookOrdersResponse> BatchApproveAndOverbookOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve and overbook. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = await orderServiceClient.BatchApproveAndOverbookOrdersAsync(parent, names);

BatchApproveAndOverbookOrdersAsync(string, IEnumerable<string>, CallSettings)

Approves and overbooks a list of Order objects.

Declaration
public virtual Task<BatchApproveAndOverbookOrdersResponse> BatchApproveAndOverbookOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = await orderServiceClient.BatchApproveAndOverbookOrdersAsync(parent, names);

BatchApproveAndOverbookOrdersAsync(string, IEnumerable<string>, CancellationToken)

Approves and overbooks a list of Order objects.

Declaration
public virtual Task<BatchApproveAndOverbookOrdersResponse> BatchApproveAndOverbookOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve and overbook. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveAndOverbookOrdersResponse response = await orderServiceClient.BatchApproveAndOverbookOrdersAsync(parent, names);

BatchApproveOrders(BatchApproveOrdersRequest, CallSettings)

Approves a list of Order objects.

Declaration
public virtual BatchApproveOrdersResponse BatchApproveOrders(BatchApproveOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchApproveOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchApproveOrdersRequest request = new BatchApproveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchApproveOrdersResponse response = orderServiceClient.BatchApproveOrders(request);

BatchApproveOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Approves a list of Order objects.

Declaration
public virtual BatchApproveOrdersResponse BatchApproveOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveOrdersResponse response = orderServiceClient.BatchApproveOrders(parent, names);

BatchApproveOrders(string, IEnumerable<string>, CallSettings)

Approves a list of Order objects.

Declaration
public virtual BatchApproveOrdersResponse BatchApproveOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveOrdersResponse response = orderServiceClient.BatchApproveOrders(parent, names);

BatchApproveOrdersAsync(BatchApproveOrdersRequest, CallSettings)

Approves a list of Order objects.

Declaration
public virtual Task<BatchApproveOrdersResponse> BatchApproveOrdersAsync(BatchApproveOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchApproveOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchApproveOrdersRequest request = new BatchApproveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchApproveOrdersResponse response = await orderServiceClient.BatchApproveOrdersAsync(request);

BatchApproveOrdersAsync(BatchApproveOrdersRequest, CancellationToken)

Approves a list of Order objects.

Declaration
public virtual Task<BatchApproveOrdersResponse> BatchApproveOrdersAsync(BatchApproveOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchApproveOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchApproveOrdersRequest request = new BatchApproveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchApproveOrdersResponse response = await orderServiceClient.BatchApproveOrdersAsync(request);

BatchApproveOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Approves a list of Order objects.

Declaration
public virtual Task<BatchApproveOrdersResponse> BatchApproveOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveOrdersResponse response = await orderServiceClient.BatchApproveOrdersAsync(parent, names);

BatchApproveOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Approves a list of Order objects.

Declaration
public virtual Task<BatchApproveOrdersResponse> BatchApproveOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveOrdersResponse response = await orderServiceClient.BatchApproveOrdersAsync(parent, names);

BatchApproveOrdersAsync(string, IEnumerable<string>, CallSettings)

Approves a list of Order objects.

Declaration
public virtual Task<BatchApproveOrdersResponse> BatchApproveOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveOrdersResponse response = await orderServiceClient.BatchApproveOrdersAsync(parent, names);

BatchApproveOrdersAsync(string, IEnumerable<string>, CancellationToken)

Approves a list of Order objects.

Declaration
public virtual Task<BatchApproveOrdersResponse> BatchApproveOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveOrdersResponse response = await orderServiceClient.BatchApproveOrdersAsync(parent, names);

BatchApproveOrdersWithoutReservation(BatchApproveOrdersWithoutReservationRequest, CallSettings)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual BatchApproveOrdersWithoutReservationResponse BatchApproveOrdersWithoutReservation(BatchApproveOrdersWithoutReservationRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchApproveOrdersWithoutReservationRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveOrdersWithoutReservationResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchApproveOrdersWithoutReservationRequest request = new BatchApproveOrdersWithoutReservationRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = orderServiceClient.BatchApproveOrdersWithoutReservation(request);

BatchApproveOrdersWithoutReservation(NetworkName, IEnumerable<OrderName>, CallSettings)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual BatchApproveOrdersWithoutReservationResponse BatchApproveOrdersWithoutReservation(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveOrdersWithoutReservationResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = orderServiceClient.BatchApproveOrdersWithoutReservation(parent, names);

BatchApproveOrdersWithoutReservation(string, IEnumerable<string>, CallSettings)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual BatchApproveOrdersWithoutReservationResponse BatchApproveOrdersWithoutReservation(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchApproveOrdersWithoutReservationResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = orderServiceClient.BatchApproveOrdersWithoutReservation(parent, names);

BatchApproveOrdersWithoutReservationAsync(BatchApproveOrdersWithoutReservationRequest, CallSettings)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchApproveOrdersWithoutReservationResponse> BatchApproveOrdersWithoutReservationAsync(BatchApproveOrdersWithoutReservationRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchApproveOrdersWithoutReservationRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveOrdersWithoutReservationResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchApproveOrdersWithoutReservationRequest request = new BatchApproveOrdersWithoutReservationRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = await orderServiceClient.BatchApproveOrdersWithoutReservationAsync(request);

BatchApproveOrdersWithoutReservationAsync(BatchApproveOrdersWithoutReservationRequest, CancellationToken)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchApproveOrdersWithoutReservationResponse> BatchApproveOrdersWithoutReservationAsync(BatchApproveOrdersWithoutReservationRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchApproveOrdersWithoutReservationRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveOrdersWithoutReservationResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchApproveOrdersWithoutReservationRequest request = new BatchApproveOrdersWithoutReservationRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = await orderServiceClient.BatchApproveOrdersWithoutReservationAsync(request);

BatchApproveOrdersWithoutReservationAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchApproveOrdersWithoutReservationResponse> BatchApproveOrdersWithoutReservationAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveOrdersWithoutReservationResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = await orderServiceClient.BatchApproveOrdersWithoutReservationAsync(parent, names);

BatchApproveOrdersWithoutReservationAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchApproveOrdersWithoutReservationResponse> BatchApproveOrdersWithoutReservationAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveOrdersWithoutReservationResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = await orderServiceClient.BatchApproveOrdersWithoutReservationAsync(parent, names);

BatchApproveOrdersWithoutReservationAsync(string, IEnumerable<string>, CallSettings)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchApproveOrdersWithoutReservationResponse> BatchApproveOrdersWithoutReservationAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchApproveOrdersWithoutReservationResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = await orderServiceClient.BatchApproveOrdersWithoutReservationAsync(parent, names);

BatchApproveOrdersWithoutReservationAsync(string, IEnumerable<string>, CancellationToken)

Approves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchApproveOrdersWithoutReservationResponse> BatchApproveOrdersWithoutReservationAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to approve. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchApproveOrdersWithoutReservationResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchApproveOrdersWithoutReservationResponse response = await orderServiceClient.BatchApproveOrdersWithoutReservationAsync(parent, names);

BatchArchiveOrders(BatchArchiveOrdersRequest, CallSettings)

Archives a list of Order objects.

Declaration
public virtual BatchArchiveOrdersResponse BatchArchiveOrders(BatchArchiveOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchArchiveOrdersRequest request = new BatchArchiveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchArchiveOrdersResponse response = orderServiceClient.BatchArchiveOrders(request);

BatchArchiveOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Archives a list of Order objects.

Declaration
public virtual BatchArchiveOrdersResponse BatchArchiveOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to archive. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchArchiveOrdersResponse response = orderServiceClient.BatchArchiveOrders(parent, names);

BatchArchiveOrders(string, IEnumerable<string>, CallSettings)

Archives a list of Order objects.

Declaration
public virtual BatchArchiveOrdersResponse BatchArchiveOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to archive. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchArchiveOrdersResponse response = orderServiceClient.BatchArchiveOrders(parent, names);

BatchArchiveOrdersAsync(BatchArchiveOrdersRequest, CallSettings)

Archives a list of Order objects.

Declaration
public virtual Task<BatchArchiveOrdersResponse> BatchArchiveOrdersAsync(BatchArchiveOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveOrdersRequest request = new BatchArchiveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchArchiveOrdersResponse response = await orderServiceClient.BatchArchiveOrdersAsync(request);

BatchArchiveOrdersAsync(BatchArchiveOrdersRequest, CancellationToken)

Archives a list of Order objects.

Declaration
public virtual Task<BatchArchiveOrdersResponse> BatchArchiveOrdersAsync(BatchArchiveOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchArchiveOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveOrdersRequest request = new BatchArchiveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchArchiveOrdersResponse response = await orderServiceClient.BatchArchiveOrdersAsync(request);

BatchArchiveOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Archives a list of Order objects.

Declaration
public virtual Task<BatchArchiveOrdersResponse> BatchArchiveOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to archive. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchArchiveOrdersResponse response = await orderServiceClient.BatchArchiveOrdersAsync(parent, names);

BatchArchiveOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Archives a list of Order objects.

Declaration
public virtual Task<BatchArchiveOrdersResponse> BatchArchiveOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to archive. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchArchiveOrdersResponse response = await orderServiceClient.BatchArchiveOrdersAsync(parent, names);

BatchArchiveOrdersAsync(string, IEnumerable<string>, CallSettings)

Archives a list of Order objects.

Declaration
public virtual Task<BatchArchiveOrdersResponse> BatchArchiveOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to archive. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchArchiveOrdersResponse response = await orderServiceClient.BatchArchiveOrdersAsync(parent, names);

BatchArchiveOrdersAsync(string, IEnumerable<string>, CancellationToken)

Archives a list of Order objects.

Declaration
public virtual Task<BatchArchiveOrdersResponse> BatchArchiveOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to archive. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchArchiveOrdersResponse response = await orderServiceClient.BatchArchiveOrdersAsync(parent, names);

BatchCreateOrders(BatchCreateOrdersRequest, CallSettings)

Creates Order objects.

Declaration
public virtual BatchCreateOrdersResponse BatchCreateOrders(BatchCreateOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchCreateOrdersRequest request = new BatchCreateOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateOrderRequest(),
    },
};
// Make the request
BatchCreateOrdersResponse response = orderServiceClient.BatchCreateOrders(request);

BatchCreateOrders(NetworkName, IEnumerable<CreateOrderRequest>, CallSettings)

Creates Order objects.

Declaration
public virtual BatchCreateOrdersResponse BatchCreateOrders(NetworkName parent, IEnumerable<CreateOrderRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Orders will be created. Format: networks/{network_code} The parent field in the CreateOrderRequest must match this field.

IEnumerable<CreateOrderRequest> requests

Required. The Order objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateOrderRequest> requests = new CreateOrderRequest[]
{
    new CreateOrderRequest(),
};
// Make the request
BatchCreateOrdersResponse response = orderServiceClient.BatchCreateOrders(parent, requests);

BatchCreateOrders(string, IEnumerable<CreateOrderRequest>, CallSettings)

Creates Order objects.

Declaration
public virtual BatchCreateOrdersResponse BatchCreateOrders(string parent, IEnumerable<CreateOrderRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where Orders will be created. Format: networks/{network_code} The parent field in the CreateOrderRequest must match this field.

IEnumerable<CreateOrderRequest> requests

Required. The Order objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateOrderRequest> requests = new CreateOrderRequest[]
{
    new CreateOrderRequest(),
};
// Make the request
BatchCreateOrdersResponse response = orderServiceClient.BatchCreateOrders(parent, requests);

BatchCreateOrdersAsync(BatchCreateOrdersRequest, CallSettings)

Creates Order objects.

Declaration
public virtual Task<BatchCreateOrdersResponse> BatchCreateOrdersAsync(BatchCreateOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateOrdersRequest request = new BatchCreateOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateOrderRequest(),
    },
};
// Make the request
BatchCreateOrdersResponse response = await orderServiceClient.BatchCreateOrdersAsync(request);

BatchCreateOrdersAsync(BatchCreateOrdersRequest, CancellationToken)

Creates Order objects.

Declaration
public virtual Task<BatchCreateOrdersResponse> BatchCreateOrdersAsync(BatchCreateOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchCreateOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateOrdersRequest request = new BatchCreateOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateOrderRequest(),
    },
};
// Make the request
BatchCreateOrdersResponse response = await orderServiceClient.BatchCreateOrdersAsync(request);

BatchCreateOrdersAsync(NetworkName, IEnumerable<CreateOrderRequest>, CallSettings)

Creates Order objects.

Declaration
public virtual Task<BatchCreateOrdersResponse> BatchCreateOrdersAsync(NetworkName parent, IEnumerable<CreateOrderRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Orders will be created. Format: networks/{network_code} The parent field in the CreateOrderRequest must match this field.

IEnumerable<CreateOrderRequest> requests

Required. The Order objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateOrderRequest> requests = new CreateOrderRequest[]
{
    new CreateOrderRequest(),
};
// Make the request
BatchCreateOrdersResponse response = await orderServiceClient.BatchCreateOrdersAsync(parent, requests);

BatchCreateOrdersAsync(NetworkName, IEnumerable<CreateOrderRequest>, CancellationToken)

Creates Order objects.

Declaration
public virtual Task<BatchCreateOrdersResponse> BatchCreateOrdersAsync(NetworkName parent, IEnumerable<CreateOrderRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Orders will be created. Format: networks/{network_code} The parent field in the CreateOrderRequest must match this field.

IEnumerable<CreateOrderRequest> requests

Required. The Order objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateOrderRequest> requests = new CreateOrderRequest[]
{
    new CreateOrderRequest(),
};
// Make the request
BatchCreateOrdersResponse response = await orderServiceClient.BatchCreateOrdersAsync(parent, requests);

BatchCreateOrdersAsync(string, IEnumerable<CreateOrderRequest>, CallSettings)

Creates Order objects.

Declaration
public virtual Task<BatchCreateOrdersResponse> BatchCreateOrdersAsync(string parent, IEnumerable<CreateOrderRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where Orders will be created. Format: networks/{network_code} The parent field in the CreateOrderRequest must match this field.

IEnumerable<CreateOrderRequest> requests

Required. The Order objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateOrderRequest> requests = new CreateOrderRequest[]
{
    new CreateOrderRequest(),
};
// Make the request
BatchCreateOrdersResponse response = await orderServiceClient.BatchCreateOrdersAsync(parent, requests);

BatchCreateOrdersAsync(string, IEnumerable<CreateOrderRequest>, CancellationToken)

Creates Order objects.

Declaration
public virtual Task<BatchCreateOrdersResponse> BatchCreateOrdersAsync(string parent, IEnumerable<CreateOrderRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where Orders will be created. Format: networks/{network_code} The parent field in the CreateOrderRequest must match this field.

IEnumerable<CreateOrderRequest> requests

Required. The Order objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateOrderRequest> requests = new CreateOrderRequest[]
{
    new CreateOrderRequest(),
};
// Make the request
BatchCreateOrdersResponse response = await orderServiceClient.BatchCreateOrdersAsync(parent, requests);

BatchDeleteOrders(BatchDeleteOrdersRequest, CallSettings)

Deletes a list of Order objects.

Declaration
public virtual BatchDeleteOrdersResponse BatchDeleteOrders(BatchDeleteOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeleteOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeleteOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchDeleteOrdersRequest request = new BatchDeleteOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDeleteOrdersResponse response = orderServiceClient.BatchDeleteOrders(request);

BatchDeleteOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Deletes a list of Order objects.

Declaration
public virtual BatchDeleteOrdersResponse BatchDeleteOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to delete. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeleteOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDeleteOrdersResponse response = orderServiceClient.BatchDeleteOrders(parent, names);

BatchDeleteOrders(string, IEnumerable<string>, CallSettings)

Deletes a list of Order objects.

Declaration
public virtual BatchDeleteOrdersResponse BatchDeleteOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to delete. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeleteOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDeleteOrdersResponse response = orderServiceClient.BatchDeleteOrders(parent, names);

BatchDeleteOrdersAsync(BatchDeleteOrdersRequest, CallSettings)

Deletes a list of Order objects.

Declaration
public virtual Task<BatchDeleteOrdersResponse> BatchDeleteOrdersAsync(BatchDeleteOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeleteOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeleteOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteOrdersRequest request = new BatchDeleteOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDeleteOrdersResponse response = await orderServiceClient.BatchDeleteOrdersAsync(request);

BatchDeleteOrdersAsync(BatchDeleteOrdersRequest, CancellationToken)

Deletes a list of Order objects.

Declaration
public virtual Task<BatchDeleteOrdersResponse> BatchDeleteOrdersAsync(BatchDeleteOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchDeleteOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeleteOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteOrdersRequest request = new BatchDeleteOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDeleteOrdersResponse response = await orderServiceClient.BatchDeleteOrdersAsync(request);

BatchDeleteOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Deletes a list of Order objects.

Declaration
public virtual Task<BatchDeleteOrdersResponse> BatchDeleteOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to delete. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeleteOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDeleteOrdersResponse response = await orderServiceClient.BatchDeleteOrdersAsync(parent, names);

BatchDeleteOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Deletes a list of Order objects.

Declaration
public virtual Task<BatchDeleteOrdersResponse> BatchDeleteOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to delete. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeleteOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDeleteOrdersResponse response = await orderServiceClient.BatchDeleteOrdersAsync(parent, names);

BatchDeleteOrdersAsync(string, IEnumerable<string>, CallSettings)

Deletes a list of Order objects.

Declaration
public virtual Task<BatchDeleteOrdersResponse> BatchDeleteOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to delete. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeleteOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDeleteOrdersResponse response = await orderServiceClient.BatchDeleteOrdersAsync(parent, names);

BatchDeleteOrdersAsync(string, IEnumerable<string>, CancellationToken)

Deletes a list of Order objects.

Declaration
public virtual Task<BatchDeleteOrdersResponse> BatchDeleteOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to delete. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeleteOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDeleteOrdersResponse response = await orderServiceClient.BatchDeleteOrdersAsync(parent, names);

BatchDisapproveOrders(BatchDisapproveOrdersRequest, CallSettings)

Disapproves a list of Order objects.

Declaration
public virtual BatchDisapproveOrdersResponse BatchDisapproveOrders(BatchDisapproveOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDisapproveOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDisapproveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchDisapproveOrdersRequest request = new BatchDisapproveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDisapproveOrdersResponse response = orderServiceClient.BatchDisapproveOrders(request);

BatchDisapproveOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Disapproves a list of Order objects.

Declaration
public virtual BatchDisapproveOrdersResponse BatchDisapproveOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to disapprove. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDisapproveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDisapproveOrdersResponse response = orderServiceClient.BatchDisapproveOrders(parent, names);

BatchDisapproveOrders(string, IEnumerable<string>, CallSettings)

Disapproves a list of Order objects.

Declaration
public virtual BatchDisapproveOrdersResponse BatchDisapproveOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to disapprove. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDisapproveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDisapproveOrdersResponse response = orderServiceClient.BatchDisapproveOrders(parent, names);

BatchDisapproveOrdersAsync(BatchDisapproveOrdersRequest, CallSettings)

Disapproves a list of Order objects.

Declaration
public virtual Task<BatchDisapproveOrdersResponse> BatchDisapproveOrdersAsync(BatchDisapproveOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDisapproveOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDisapproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDisapproveOrdersRequest request = new BatchDisapproveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDisapproveOrdersResponse response = await orderServiceClient.BatchDisapproveOrdersAsync(request);

BatchDisapproveOrdersAsync(BatchDisapproveOrdersRequest, CancellationToken)

Disapproves a list of Order objects.

Declaration
public virtual Task<BatchDisapproveOrdersResponse> BatchDisapproveOrdersAsync(BatchDisapproveOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchDisapproveOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDisapproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDisapproveOrdersRequest request = new BatchDisapproveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDisapproveOrdersResponse response = await orderServiceClient.BatchDisapproveOrdersAsync(request);

BatchDisapproveOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Disapproves a list of Order objects.

Declaration
public virtual Task<BatchDisapproveOrdersResponse> BatchDisapproveOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to disapprove. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDisapproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDisapproveOrdersResponse response = await orderServiceClient.BatchDisapproveOrdersAsync(parent, names);

BatchDisapproveOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Disapproves a list of Order objects.

Declaration
public virtual Task<BatchDisapproveOrdersResponse> BatchDisapproveOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to disapprove. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDisapproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDisapproveOrdersResponse response = await orderServiceClient.BatchDisapproveOrdersAsync(parent, names);

BatchDisapproveOrdersAsync(string, IEnumerable<string>, CallSettings)

Disapproves a list of Order objects.

Declaration
public virtual Task<BatchDisapproveOrdersResponse> BatchDisapproveOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to disapprove. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDisapproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDisapproveOrdersResponse response = await orderServiceClient.BatchDisapproveOrdersAsync(parent, names);

BatchDisapproveOrdersAsync(string, IEnumerable<string>, CancellationToken)

Disapproves a list of Order objects.

Declaration
public virtual Task<BatchDisapproveOrdersResponse> BatchDisapproveOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to disapprove. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDisapproveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDisapproveOrdersResponse response = await orderServiceClient.BatchDisapproveOrdersAsync(parent, names);

BatchDisapproveOrdersWithoutReservationChanges(BatchDisapproveOrdersWithoutReservationChangesRequest, CallSettings)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual BatchDisapproveOrdersWithoutReservationChangesResponse BatchDisapproveOrdersWithoutReservationChanges(BatchDisapproveOrdersWithoutReservationChangesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDisapproveOrdersWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDisapproveOrdersWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchDisapproveOrdersWithoutReservationChangesRequest request = new BatchDisapproveOrdersWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = orderServiceClient.BatchDisapproveOrdersWithoutReservationChanges(request);

BatchDisapproveOrdersWithoutReservationChanges(NetworkName, IEnumerable<OrderName>, CallSettings)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual BatchDisapproveOrdersWithoutReservationChangesResponse BatchDisapproveOrdersWithoutReservationChanges(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to disapprove without reservation changes. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDisapproveOrdersWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = orderServiceClient.BatchDisapproveOrdersWithoutReservationChanges(parent, names);

BatchDisapproveOrdersWithoutReservationChanges(string, IEnumerable<string>, CallSettings)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual BatchDisapproveOrdersWithoutReservationChangesResponse BatchDisapproveOrdersWithoutReservationChanges(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to disapprove without reservation changes. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDisapproveOrdersWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = orderServiceClient.BatchDisapproveOrdersWithoutReservationChanges(parent, names);

BatchDisapproveOrdersWithoutReservationChangesAsync(BatchDisapproveOrdersWithoutReservationChangesRequest, CallSettings)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchDisapproveOrdersWithoutReservationChangesResponse> BatchDisapproveOrdersWithoutReservationChangesAsync(BatchDisapproveOrdersWithoutReservationChangesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDisapproveOrdersWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDisapproveOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDisapproveOrdersWithoutReservationChangesRequest request = new BatchDisapproveOrdersWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchDisapproveOrdersWithoutReservationChangesAsync(request);

BatchDisapproveOrdersWithoutReservationChangesAsync(BatchDisapproveOrdersWithoutReservationChangesRequest, CancellationToken)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchDisapproveOrdersWithoutReservationChangesResponse> BatchDisapproveOrdersWithoutReservationChangesAsync(BatchDisapproveOrdersWithoutReservationChangesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchDisapproveOrdersWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDisapproveOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDisapproveOrdersWithoutReservationChangesRequest request = new BatchDisapproveOrdersWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchDisapproveOrdersWithoutReservationChangesAsync(request);

BatchDisapproveOrdersWithoutReservationChangesAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchDisapproveOrdersWithoutReservationChangesResponse> BatchDisapproveOrdersWithoutReservationChangesAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to disapprove without reservation changes. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDisapproveOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchDisapproveOrdersWithoutReservationChangesAsync(parent, names);

BatchDisapproveOrdersWithoutReservationChangesAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchDisapproveOrdersWithoutReservationChangesResponse> BatchDisapproveOrdersWithoutReservationChangesAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to disapprove without reservation changes. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDisapproveOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchDisapproveOrdersWithoutReservationChangesAsync(parent, names);

BatchDisapproveOrdersWithoutReservationChangesAsync(string, IEnumerable<string>, CallSettings)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchDisapproveOrdersWithoutReservationChangesResponse> BatchDisapproveOrdersWithoutReservationChangesAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to disapprove without reservation changes. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDisapproveOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchDisapproveOrdersWithoutReservationChangesAsync(parent, names);

BatchDisapproveOrdersWithoutReservationChangesAsync(string, IEnumerable<string>, CancellationToken)

Disapproves a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchDisapproveOrdersWithoutReservationChangesResponse> BatchDisapproveOrdersWithoutReservationChangesAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to disapprove without reservation changes. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDisapproveOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchDisapproveOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchDisapproveOrdersWithoutReservationChangesAsync(parent, names);

BatchPauseOrders(BatchPauseOrdersRequest, CallSettings)

Pauses a list of Order objects.

Declaration
public virtual BatchPauseOrdersResponse BatchPauseOrders(BatchPauseOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchPauseOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPauseOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchPauseOrdersRequest request = new BatchPauseOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchPauseOrdersResponse response = orderServiceClient.BatchPauseOrders(request);

BatchPauseOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Pauses a list of Order objects.

Declaration
public virtual BatchPauseOrdersResponse BatchPauseOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to pause. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPauseOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchPauseOrdersResponse response = orderServiceClient.BatchPauseOrders(parent, names);

BatchPauseOrders(string, IEnumerable<string>, CallSettings)

Pauses a list of Order objects.

Declaration
public virtual BatchPauseOrdersResponse BatchPauseOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to pause. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPauseOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchPauseOrdersResponse response = orderServiceClient.BatchPauseOrders(parent, names);

BatchPauseOrdersAsync(BatchPauseOrdersRequest, CallSettings)

Pauses a list of Order objects.

Declaration
public virtual Task<BatchPauseOrdersResponse> BatchPauseOrdersAsync(BatchPauseOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchPauseOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchPauseOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPauseOrdersRequest request = new BatchPauseOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchPauseOrdersResponse response = await orderServiceClient.BatchPauseOrdersAsync(request);

BatchPauseOrdersAsync(BatchPauseOrdersRequest, CancellationToken)

Pauses a list of Order objects.

Declaration
public virtual Task<BatchPauseOrdersResponse> BatchPauseOrdersAsync(BatchPauseOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchPauseOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchPauseOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPauseOrdersRequest request = new BatchPauseOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchPauseOrdersResponse response = await orderServiceClient.BatchPauseOrdersAsync(request);

BatchPauseOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Pauses a list of Order objects.

Declaration
public virtual Task<BatchPauseOrdersResponse> BatchPauseOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to pause. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchPauseOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchPauseOrdersResponse response = await orderServiceClient.BatchPauseOrdersAsync(parent, names);

BatchPauseOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Pauses a list of Order objects.

Declaration
public virtual Task<BatchPauseOrdersResponse> BatchPauseOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to pause. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchPauseOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchPauseOrdersResponse response = await orderServiceClient.BatchPauseOrdersAsync(parent, names);

BatchPauseOrdersAsync(string, IEnumerable<string>, CallSettings)

Pauses a list of Order objects.

Declaration
public virtual Task<BatchPauseOrdersResponse> BatchPauseOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to pause. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchPauseOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchPauseOrdersResponse response = await orderServiceClient.BatchPauseOrdersAsync(parent, names);

BatchPauseOrdersAsync(string, IEnumerable<string>, CancellationToken)

Pauses a list of Order objects.

Declaration
public virtual Task<BatchPauseOrdersResponse> BatchPauseOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to pause. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchPauseOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchPauseOrdersResponse response = await orderServiceClient.BatchPauseOrdersAsync(parent, names);

BatchResumeAndOverbookOrders(BatchResumeAndOverbookOrdersRequest, CallSettings)

Resumes and overbooks a list of Order objects.

Declaration
public virtual BatchResumeAndOverbookOrdersResponse BatchResumeAndOverbookOrders(BatchResumeAndOverbookOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchResumeAndOverbookOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeAndOverbookOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchResumeAndOverbookOrdersRequest request = new BatchResumeAndOverbookOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = orderServiceClient.BatchResumeAndOverbookOrders(request);

BatchResumeAndOverbookOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Resumes and overbooks a list of Order objects.

Declaration
public virtual BatchResumeAndOverbookOrdersResponse BatchResumeAndOverbookOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to resume and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeAndOverbookOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = orderServiceClient.BatchResumeAndOverbookOrders(parent, names);

BatchResumeAndOverbookOrders(string, IEnumerable<string>, CallSettings)

Resumes and overbooks a list of Order objects.

Declaration
public virtual BatchResumeAndOverbookOrdersResponse BatchResumeAndOverbookOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to resume and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeAndOverbookOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = orderServiceClient.BatchResumeAndOverbookOrders(parent, names);

BatchResumeAndOverbookOrdersAsync(BatchResumeAndOverbookOrdersRequest, CallSettings)

Resumes and overbooks a list of Order objects.

Declaration
public virtual Task<BatchResumeAndOverbookOrdersResponse> BatchResumeAndOverbookOrdersAsync(BatchResumeAndOverbookOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchResumeAndOverbookOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeAndOverbookOrdersRequest request = new BatchResumeAndOverbookOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = await orderServiceClient.BatchResumeAndOverbookOrdersAsync(request);

BatchResumeAndOverbookOrdersAsync(BatchResumeAndOverbookOrdersRequest, CancellationToken)

Resumes and overbooks a list of Order objects.

Declaration
public virtual Task<BatchResumeAndOverbookOrdersResponse> BatchResumeAndOverbookOrdersAsync(BatchResumeAndOverbookOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchResumeAndOverbookOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeAndOverbookOrdersRequest request = new BatchResumeAndOverbookOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = await orderServiceClient.BatchResumeAndOverbookOrdersAsync(request);

BatchResumeAndOverbookOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Resumes and overbooks a list of Order objects.

Declaration
public virtual Task<BatchResumeAndOverbookOrdersResponse> BatchResumeAndOverbookOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to resume and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = await orderServiceClient.BatchResumeAndOverbookOrdersAsync(parent, names);

BatchResumeAndOverbookOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Resumes and overbooks a list of Order objects.

Declaration
public virtual Task<BatchResumeAndOverbookOrdersResponse> BatchResumeAndOverbookOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to resume and overbook. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = await orderServiceClient.BatchResumeAndOverbookOrdersAsync(parent, names);

BatchResumeAndOverbookOrdersAsync(string, IEnumerable<string>, CallSettings)

Resumes and overbooks a list of Order objects.

Declaration
public virtual Task<BatchResumeAndOverbookOrdersResponse> BatchResumeAndOverbookOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to resume and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = await orderServiceClient.BatchResumeAndOverbookOrdersAsync(parent, names);

BatchResumeAndOverbookOrdersAsync(string, IEnumerable<string>, CancellationToken)

Resumes and overbooks a list of Order objects.

Declaration
public virtual Task<BatchResumeAndOverbookOrdersResponse> BatchResumeAndOverbookOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to resume and overbook. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeAndOverbookOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchResumeAndOverbookOrdersResponse response = await orderServiceClient.BatchResumeAndOverbookOrdersAsync(parent, names);

BatchResumeOrders(BatchResumeOrdersRequest, CallSettings)

Resumes a list of Order objects.

Declaration
public virtual BatchResumeOrdersResponse BatchResumeOrders(BatchResumeOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchResumeOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchResumeOrdersRequest request = new BatchResumeOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchResumeOrdersResponse response = orderServiceClient.BatchResumeOrders(request);

BatchResumeOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Resumes a list of Order objects.

Declaration
public virtual BatchResumeOrdersResponse BatchResumeOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to resume. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchResumeOrdersResponse response = orderServiceClient.BatchResumeOrders(parent, names);

BatchResumeOrders(string, IEnumerable<string>, CallSettings)

Resumes a list of Order objects.

Declaration
public virtual BatchResumeOrdersResponse BatchResumeOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to resume. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchResumeOrdersResponse response = orderServiceClient.BatchResumeOrders(parent, names);

BatchResumeOrdersAsync(BatchResumeOrdersRequest, CallSettings)

Resumes a list of Order objects.

Declaration
public virtual Task<BatchResumeOrdersResponse> BatchResumeOrdersAsync(BatchResumeOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchResumeOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeOrdersRequest request = new BatchResumeOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchResumeOrdersResponse response = await orderServiceClient.BatchResumeOrdersAsync(request);

BatchResumeOrdersAsync(BatchResumeOrdersRequest, CancellationToken)

Resumes a list of Order objects.

Declaration
public virtual Task<BatchResumeOrdersResponse> BatchResumeOrdersAsync(BatchResumeOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchResumeOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeOrdersRequest request = new BatchResumeOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchResumeOrdersResponse response = await orderServiceClient.BatchResumeOrdersAsync(request);

BatchResumeOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Resumes a list of Order objects.

Declaration
public virtual Task<BatchResumeOrdersResponse> BatchResumeOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to resume. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchResumeOrdersResponse response = await orderServiceClient.BatchResumeOrdersAsync(parent, names);

BatchResumeOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Resumes a list of Order objects.

Declaration
public virtual Task<BatchResumeOrdersResponse> BatchResumeOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to resume. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchResumeOrdersResponse response = await orderServiceClient.BatchResumeOrdersAsync(parent, names);

BatchResumeOrdersAsync(string, IEnumerable<string>, CallSettings)

Resumes a list of Order objects.

Declaration
public virtual Task<BatchResumeOrdersResponse> BatchResumeOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to resume. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchResumeOrdersResponse response = await orderServiceClient.BatchResumeOrdersAsync(parent, names);

BatchResumeOrdersAsync(string, IEnumerable<string>, CancellationToken)

Resumes a list of Order objects.

Declaration
public virtual Task<BatchResumeOrdersResponse> BatchResumeOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to resume. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchResumeOrdersResponse response = await orderServiceClient.BatchResumeOrdersAsync(parent, names);

BatchRetractOrders(BatchRetractOrdersRequest, CallSettings)

Retracts a list of Order objects.

Declaration
public virtual BatchRetractOrdersResponse BatchRetractOrders(BatchRetractOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchRetractOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchRetractOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchRetractOrdersRequest request = new BatchRetractOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchRetractOrdersResponse response = orderServiceClient.BatchRetractOrders(request);

BatchRetractOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Retracts a list of Order objects.

Declaration
public virtual BatchRetractOrdersResponse BatchRetractOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchRetractOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchRetractOrdersResponse response = orderServiceClient.BatchRetractOrders(parent, names);

BatchRetractOrders(string, IEnumerable<string>, CallSettings)

Retracts a list of Order objects.

Declaration
public virtual BatchRetractOrdersResponse BatchRetractOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchRetractOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchRetractOrdersResponse response = orderServiceClient.BatchRetractOrders(parent, names);

BatchRetractOrdersAsync(BatchRetractOrdersRequest, CallSettings)

Retracts a list of Order objects.

Declaration
public virtual Task<BatchRetractOrdersResponse> BatchRetractOrdersAsync(BatchRetractOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchRetractOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchRetractOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRetractOrdersRequest request = new BatchRetractOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchRetractOrdersResponse response = await orderServiceClient.BatchRetractOrdersAsync(request);

BatchRetractOrdersAsync(BatchRetractOrdersRequest, CancellationToken)

Retracts a list of Order objects.

Declaration
public virtual Task<BatchRetractOrdersResponse> BatchRetractOrdersAsync(BatchRetractOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchRetractOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchRetractOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRetractOrdersRequest request = new BatchRetractOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchRetractOrdersResponse response = await orderServiceClient.BatchRetractOrdersAsync(request);

BatchRetractOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Retracts a list of Order objects.

Declaration
public virtual Task<BatchRetractOrdersResponse> BatchRetractOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchRetractOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchRetractOrdersResponse response = await orderServiceClient.BatchRetractOrdersAsync(parent, names);

BatchRetractOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Retracts a list of Order objects.

Declaration
public virtual Task<BatchRetractOrdersResponse> BatchRetractOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchRetractOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchRetractOrdersResponse response = await orderServiceClient.BatchRetractOrdersAsync(parent, names);

BatchRetractOrdersAsync(string, IEnumerable<string>, CallSettings)

Retracts a list of Order objects.

Declaration
public virtual Task<BatchRetractOrdersResponse> BatchRetractOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchRetractOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchRetractOrdersResponse response = await orderServiceClient.BatchRetractOrdersAsync(parent, names);

BatchRetractOrdersAsync(string, IEnumerable<string>, CancellationToken)

Retracts a list of Order objects.

Declaration
public virtual Task<BatchRetractOrdersResponse> BatchRetractOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchRetractOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchRetractOrdersResponse response = await orderServiceClient.BatchRetractOrdersAsync(parent, names);

BatchRetractOrdersWithoutReservationChanges(BatchRetractOrdersWithoutReservationChangesRequest, CallSettings)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual BatchRetractOrdersWithoutReservationChangesResponse BatchRetractOrdersWithoutReservationChanges(BatchRetractOrdersWithoutReservationChangesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchRetractOrdersWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchRetractOrdersWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchRetractOrdersWithoutReservationChangesRequest request = new BatchRetractOrdersWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = orderServiceClient.BatchRetractOrdersWithoutReservationChanges(request);

BatchRetractOrdersWithoutReservationChanges(NetworkName, IEnumerable<OrderName>, CallSettings)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual BatchRetractOrdersWithoutReservationChangesResponse BatchRetractOrdersWithoutReservationChanges(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchRetractOrdersWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = orderServiceClient.BatchRetractOrdersWithoutReservationChanges(parent, names);

BatchRetractOrdersWithoutReservationChanges(string, IEnumerable<string>, CallSettings)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual BatchRetractOrdersWithoutReservationChangesResponse BatchRetractOrdersWithoutReservationChanges(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchRetractOrdersWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = orderServiceClient.BatchRetractOrdersWithoutReservationChanges(parent, names);

BatchRetractOrdersWithoutReservationChangesAsync(BatchRetractOrdersWithoutReservationChangesRequest, CallSettings)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchRetractOrdersWithoutReservationChangesResponse> BatchRetractOrdersWithoutReservationChangesAsync(BatchRetractOrdersWithoutReservationChangesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchRetractOrdersWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchRetractOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRetractOrdersWithoutReservationChangesRequest request = new BatchRetractOrdersWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchRetractOrdersWithoutReservationChangesAsync(request);

BatchRetractOrdersWithoutReservationChangesAsync(BatchRetractOrdersWithoutReservationChangesRequest, CancellationToken)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchRetractOrdersWithoutReservationChangesResponse> BatchRetractOrdersWithoutReservationChangesAsync(BatchRetractOrdersWithoutReservationChangesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchRetractOrdersWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchRetractOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRetractOrdersWithoutReservationChangesRequest request = new BatchRetractOrdersWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchRetractOrdersWithoutReservationChangesAsync(request);

BatchRetractOrdersWithoutReservationChangesAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchRetractOrdersWithoutReservationChangesResponse> BatchRetractOrdersWithoutReservationChangesAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchRetractOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchRetractOrdersWithoutReservationChangesAsync(parent, names);

BatchRetractOrdersWithoutReservationChangesAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchRetractOrdersWithoutReservationChangesResponse> BatchRetractOrdersWithoutReservationChangesAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchRetractOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchRetractOrdersWithoutReservationChangesAsync(parent, names);

BatchRetractOrdersWithoutReservationChangesAsync(string, IEnumerable<string>, CallSettings)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchRetractOrdersWithoutReservationChangesResponse> BatchRetractOrdersWithoutReservationChangesAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchRetractOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchRetractOrdersWithoutReservationChangesAsync(parent, names);

BatchRetractOrdersWithoutReservationChangesAsync(string, IEnumerable<string>, CancellationToken)

Retracts a list of Order objects without changing reservation status.

Declaration
public virtual Task<BatchRetractOrdersWithoutReservationChangesResponse> BatchRetractOrdersWithoutReservationChangesAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to retract. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchRetractOrdersWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchRetractOrdersWithoutReservationChangesResponse response = await orderServiceClient.BatchRetractOrdersWithoutReservationChangesAsync(parent, names);

BatchSubmitOrdersForApproval(BatchSubmitOrdersForApprovalRequest, CallSettings)

Submits a list of Order objects for approval.

Declaration
public virtual BatchSubmitOrdersForApprovalResponse BatchSubmitOrdersForApproval(BatchSubmitOrdersForApprovalRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalRequest request = new BatchSubmitOrdersForApprovalRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = orderServiceClient.BatchSubmitOrdersForApproval(request);

BatchSubmitOrdersForApproval(NetworkName, IEnumerable<OrderName>, CallSettings)

Submits a list of Order objects for approval.

Declaration
public virtual BatchSubmitOrdersForApprovalResponse BatchSubmitOrdersForApproval(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = orderServiceClient.BatchSubmitOrdersForApproval(parent, names);

BatchSubmitOrdersForApproval(string, IEnumerable<string>, CallSettings)

Submits a list of Order objects for approval.

Declaration
public virtual BatchSubmitOrdersForApprovalResponse BatchSubmitOrdersForApproval(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = orderServiceClient.BatchSubmitOrdersForApproval(parent, names);

BatchSubmitOrdersForApprovalAndOverbook(BatchSubmitOrdersForApprovalAndOverbookRequest, CallSettings)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual BatchSubmitOrdersForApprovalAndOverbookResponse BatchSubmitOrdersForApprovalAndOverbook(BatchSubmitOrdersForApprovalAndOverbookRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalAndOverbookRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalAndOverbookResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalAndOverbookRequest request = new BatchSubmitOrdersForApprovalAndOverbookRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = orderServiceClient.BatchSubmitOrdersForApprovalAndOverbook(request);

BatchSubmitOrdersForApprovalAndOverbook(NetworkName, IEnumerable<OrderName>, CallSettings)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual BatchSubmitOrdersForApprovalAndOverbookResponse BatchSubmitOrdersForApprovalAndOverbook(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalAndOverbookResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = orderServiceClient.BatchSubmitOrdersForApprovalAndOverbook(parent, names);

BatchSubmitOrdersForApprovalAndOverbook(string, IEnumerable<string>, CallSettings)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual BatchSubmitOrdersForApprovalAndOverbookResponse BatchSubmitOrdersForApprovalAndOverbook(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalAndOverbookResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = orderServiceClient.BatchSubmitOrdersForApprovalAndOverbook(parent, names);

BatchSubmitOrdersForApprovalAndOverbookAsync(BatchSubmitOrdersForApprovalAndOverbookRequest, CallSettings)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalAndOverbookResponse> BatchSubmitOrdersForApprovalAndOverbookAsync(BatchSubmitOrdersForApprovalAndOverbookRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalAndOverbookRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalAndOverbookResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalAndOverbookRequest request = new BatchSubmitOrdersForApprovalAndOverbookRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAndOverbookAsync(request);

BatchSubmitOrdersForApprovalAndOverbookAsync(BatchSubmitOrdersForApprovalAndOverbookRequest, CancellationToken)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalAndOverbookResponse> BatchSubmitOrdersForApprovalAndOverbookAsync(BatchSubmitOrdersForApprovalAndOverbookRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalAndOverbookRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalAndOverbookResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalAndOverbookRequest request = new BatchSubmitOrdersForApprovalAndOverbookRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAndOverbookAsync(request);

BatchSubmitOrdersForApprovalAndOverbookAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalAndOverbookResponse> BatchSubmitOrdersForApprovalAndOverbookAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalAndOverbookResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAndOverbookAsync(parent, names);

BatchSubmitOrdersForApprovalAndOverbookAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalAndOverbookResponse> BatchSubmitOrdersForApprovalAndOverbookAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval and overbook. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalAndOverbookResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAndOverbookAsync(parent, names);

BatchSubmitOrdersForApprovalAndOverbookAsync(string, IEnumerable<string>, CallSettings)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalAndOverbookResponse> BatchSubmitOrdersForApprovalAndOverbookAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval and overbook. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalAndOverbookResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAndOverbookAsync(parent, names);

BatchSubmitOrdersForApprovalAndOverbookAsync(string, IEnumerable<string>, CancellationToken)

Submits and overbooks a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalAndOverbookResponse> BatchSubmitOrdersForApprovalAndOverbookAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval and overbook. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalAndOverbookResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalAndOverbookResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAndOverbookAsync(parent, names);

BatchSubmitOrdersForApprovalAsync(BatchSubmitOrdersForApprovalRequest, CallSettings)

Submits a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalResponse> BatchSubmitOrdersForApprovalAsync(BatchSubmitOrdersForApprovalRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalRequest request = new BatchSubmitOrdersForApprovalRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAsync(request);

BatchSubmitOrdersForApprovalAsync(BatchSubmitOrdersForApprovalRequest, CancellationToken)

Submits a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalResponse> BatchSubmitOrdersForApprovalAsync(BatchSubmitOrdersForApprovalRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalRequest request = new BatchSubmitOrdersForApprovalRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
    SkipInventoryCheck = false,
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAsync(request);

BatchSubmitOrdersForApprovalAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Submits a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalResponse> BatchSubmitOrdersForApprovalAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAsync(parent, names);

BatchSubmitOrdersForApprovalAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Submits a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalResponse> BatchSubmitOrdersForApprovalAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAsync(parent, names);

BatchSubmitOrdersForApprovalAsync(string, IEnumerable<string>, CallSettings)

Submits a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalResponse> BatchSubmitOrdersForApprovalAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAsync(parent, names);

BatchSubmitOrdersForApprovalAsync(string, IEnumerable<string>, CancellationToken)

Submits a list of Order objects for approval.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalResponse> BatchSubmitOrdersForApprovalAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalAsync(parent, names);

BatchSubmitOrdersForApprovalWithoutReservationChanges(BatchSubmitOrdersForApprovalWithoutReservationChangesRequest, CallSettings)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual BatchSubmitOrdersForApprovalWithoutReservationChangesResponse BatchSubmitOrdersForApprovalWithoutReservationChanges(BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request = new BatchSubmitOrdersForApprovalWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChanges(request);

BatchSubmitOrdersForApprovalWithoutReservationChanges(NetworkName, IEnumerable<OrderName>, CallSettings)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual BatchSubmitOrdersForApprovalWithoutReservationChangesResponse BatchSubmitOrdersForApprovalWithoutReservationChanges(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChanges(parent, names);

BatchSubmitOrdersForApprovalWithoutReservationChanges(string, IEnumerable<string>, CallSettings)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual BatchSubmitOrdersForApprovalWithoutReservationChangesResponse BatchSubmitOrdersForApprovalWithoutReservationChanges(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChanges(parent, names);

BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(BatchSubmitOrdersForApprovalWithoutReservationChangesRequest, CallSettings)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse> BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request = new BatchSubmitOrdersForApprovalWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(request);

BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(BatchSubmitOrdersForApprovalWithoutReservationChangesRequest, CancellationToken)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse> BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request = new BatchSubmitOrdersForApprovalWithoutReservationChangesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(request);

BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse> BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(parent, names);

BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse> BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(parent, names);

BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(string, IEnumerable<string>, CallSettings)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse> BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(parent, names);

BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(string, IEnumerable<string>, CancellationToken)

Submits a list of Order objects for approval without changing reservation status.

Declaration
public virtual Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse> BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to submit for approval. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchSubmitOrdersForApprovalWithoutReservationChangesResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchSubmitOrdersForApprovalWithoutReservationChangesResponse response = await orderServiceClient.BatchSubmitOrdersForApprovalWithoutReservationChangesAsync(parent, names);

BatchUnarchiveOrders(BatchUnarchiveOrdersRequest, CallSettings)

Unarchives a list of Order objects.

Declaration
public virtual BatchUnarchiveOrdersResponse BatchUnarchiveOrders(BatchUnarchiveOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUnarchiveOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUnarchiveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchUnarchiveOrdersRequest request = new BatchUnarchiveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchUnarchiveOrdersResponse response = orderServiceClient.BatchUnarchiveOrders(request);

BatchUnarchiveOrders(NetworkName, IEnumerable<OrderName>, CallSettings)

Unarchives a list of Order objects.

Declaration
public virtual BatchUnarchiveOrdersResponse BatchUnarchiveOrders(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to extract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUnarchiveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchUnarchiveOrdersResponse response = orderServiceClient.BatchUnarchiveOrders(parent, names);

BatchUnarchiveOrders(string, IEnumerable<string>, CallSettings)

Unarchives a list of Order objects.

Declaration
public virtual BatchUnarchiveOrdersResponse BatchUnarchiveOrders(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to extract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUnarchiveOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchUnarchiveOrdersResponse response = orderServiceClient.BatchUnarchiveOrders(parent, names);

BatchUnarchiveOrdersAsync(BatchUnarchiveOrdersRequest, CallSettings)

Unarchives a list of Order objects.

Declaration
public virtual Task<BatchUnarchiveOrdersResponse> BatchUnarchiveOrdersAsync(BatchUnarchiveOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUnarchiveOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUnarchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUnarchiveOrdersRequest request = new BatchUnarchiveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchUnarchiveOrdersResponse response = await orderServiceClient.BatchUnarchiveOrdersAsync(request);

BatchUnarchiveOrdersAsync(BatchUnarchiveOrdersRequest, CancellationToken)

Unarchives a list of Order objects.

Declaration
public virtual Task<BatchUnarchiveOrdersResponse> BatchUnarchiveOrdersAsync(BatchUnarchiveOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUnarchiveOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUnarchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUnarchiveOrdersRequest request = new BatchUnarchiveOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    OrderNames =
    {
        OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
    },
};
// Make the request
BatchUnarchiveOrdersResponse response = await orderServiceClient.BatchUnarchiveOrdersAsync(request);

BatchUnarchiveOrdersAsync(NetworkName, IEnumerable<OrderName>, CallSettings)

Unarchives a list of Order objects.

Declaration
public virtual Task<BatchUnarchiveOrdersResponse> BatchUnarchiveOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to extract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUnarchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchUnarchiveOrdersResponse response = await orderServiceClient.BatchUnarchiveOrdersAsync(parent, names);

BatchUnarchiveOrdersAsync(NetworkName, IEnumerable<OrderName>, CancellationToken)

Unarchives a list of Order objects.

Declaration
public virtual Task<BatchUnarchiveOrdersResponse> BatchUnarchiveOrdersAsync(NetworkName parent, IEnumerable<OrderName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<OrderName> names

Required. The resource names of the orders to extract. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUnarchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<OrderName> names = new OrderName[]
{
    OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
BatchUnarchiveOrdersResponse response = await orderServiceClient.BatchUnarchiveOrdersAsync(parent, names);

BatchUnarchiveOrdersAsync(string, IEnumerable<string>, CallSettings)

Unarchives a list of Order objects.

Declaration
public virtual Task<BatchUnarchiveOrdersResponse> BatchUnarchiveOrdersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to extract. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUnarchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchUnarchiveOrdersResponse response = await orderServiceClient.BatchUnarchiveOrdersAsync(parent, names);

BatchUnarchiveOrdersAsync(string, IEnumerable<string>, CancellationToken)

Unarchives a list of Order objects.

Declaration
public virtual Task<BatchUnarchiveOrdersResponse> BatchUnarchiveOrdersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the orders to extract. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUnarchiveOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/orders/[ORDER]",
};
// Make the request
BatchUnarchiveOrdersResponse response = await orderServiceClient.BatchUnarchiveOrdersAsync(parent, names);

BatchUpdateOrders(BatchUpdateOrdersRequest, CallSettings)

Batch updates Order objects.

Declaration
public virtual BatchUpdateOrdersResponse BatchUpdateOrders(BatchUpdateOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
BatchUpdateOrdersRequest request = new BatchUpdateOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateOrderRequest(),
    },
};
// Make the request
BatchUpdateOrdersResponse response = orderServiceClient.BatchUpdateOrders(request);

BatchUpdateOrders(NetworkName, IEnumerable<UpdateOrderRequest>, CallSettings)

Batch updates Order objects.

Declaration
public virtual BatchUpdateOrdersResponse BatchUpdateOrders(NetworkName parent, IEnumerable<UpdateOrderRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Orders will be updated. Format: networks/{network_code} The parent field in the UpdateOrderRequest must match this field.

IEnumerable<UpdateOrderRequest> requests

Required. The Order objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateOrderRequest> requests = new UpdateOrderRequest[]
{
    new UpdateOrderRequest(),
};
// Make the request
BatchUpdateOrdersResponse response = orderServiceClient.BatchUpdateOrders(parent, requests);

BatchUpdateOrders(string, IEnumerable<UpdateOrderRequest>, CallSettings)

Batch updates Order objects.

Declaration
public virtual BatchUpdateOrdersResponse BatchUpdateOrders(string parent, IEnumerable<UpdateOrderRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where Orders will be updated. Format: networks/{network_code} The parent field in the UpdateOrderRequest must match this field.

IEnumerable<UpdateOrderRequest> requests

Required. The Order objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateOrdersResponse

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateOrderRequest> requests = new UpdateOrderRequest[]
{
    new UpdateOrderRequest(),
};
// Make the request
BatchUpdateOrdersResponse response = orderServiceClient.BatchUpdateOrders(parent, requests);

BatchUpdateOrdersAsync(BatchUpdateOrdersRequest, CallSettings)

Batch updates Order objects.

Declaration
public virtual Task<BatchUpdateOrdersResponse> BatchUpdateOrdersAsync(BatchUpdateOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateOrdersRequest request = new BatchUpdateOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateOrderRequest(),
    },
};
// Make the request
BatchUpdateOrdersResponse response = await orderServiceClient.BatchUpdateOrdersAsync(request);

BatchUpdateOrdersAsync(BatchUpdateOrdersRequest, CancellationToken)

Batch updates Order objects.

Declaration
public virtual Task<BatchUpdateOrdersResponse> BatchUpdateOrdersAsync(BatchUpdateOrdersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUpdateOrdersRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateOrdersRequest request = new BatchUpdateOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateOrderRequest(),
    },
};
// Make the request
BatchUpdateOrdersResponse response = await orderServiceClient.BatchUpdateOrdersAsync(request);

BatchUpdateOrdersAsync(NetworkName, IEnumerable<UpdateOrderRequest>, CallSettings)

Batch updates Order objects.

Declaration
public virtual Task<BatchUpdateOrdersResponse> BatchUpdateOrdersAsync(NetworkName parent, IEnumerable<UpdateOrderRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Orders will be updated. Format: networks/{network_code} The parent field in the UpdateOrderRequest must match this field.

IEnumerable<UpdateOrderRequest> requests

Required. The Order objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateOrderRequest> requests = new UpdateOrderRequest[]
{
    new UpdateOrderRequest(),
};
// Make the request
BatchUpdateOrdersResponse response = await orderServiceClient.BatchUpdateOrdersAsync(parent, requests);

BatchUpdateOrdersAsync(NetworkName, IEnumerable<UpdateOrderRequest>, CancellationToken)

Batch updates Order objects.

Declaration
public virtual Task<BatchUpdateOrdersResponse> BatchUpdateOrdersAsync(NetworkName parent, IEnumerable<UpdateOrderRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Orders will be updated. Format: networks/{network_code} The parent field in the UpdateOrderRequest must match this field.

IEnumerable<UpdateOrderRequest> requests

Required. The Order objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateOrderRequest> requests = new UpdateOrderRequest[]
{
    new UpdateOrderRequest(),
};
// Make the request
BatchUpdateOrdersResponse response = await orderServiceClient.BatchUpdateOrdersAsync(parent, requests);

BatchUpdateOrdersAsync(string, IEnumerable<UpdateOrderRequest>, CallSettings)

Batch updates Order objects.

Declaration
public virtual Task<BatchUpdateOrdersResponse> BatchUpdateOrdersAsync(string parent, IEnumerable<UpdateOrderRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where Orders will be updated. Format: networks/{network_code} The parent field in the UpdateOrderRequest must match this field.

IEnumerable<UpdateOrderRequest> requests

Required. The Order objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateOrderRequest> requests = new UpdateOrderRequest[]
{
    new UpdateOrderRequest(),
};
// Make the request
BatchUpdateOrdersResponse response = await orderServiceClient.BatchUpdateOrdersAsync(parent, requests);

BatchUpdateOrdersAsync(string, IEnumerable<UpdateOrderRequest>, CancellationToken)

Batch updates Order objects.

Declaration
public virtual Task<BatchUpdateOrdersResponse> BatchUpdateOrdersAsync(string parent, IEnumerable<UpdateOrderRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where Orders will be updated. Format: networks/{network_code} The parent field in the UpdateOrderRequest must match this field.

IEnumerable<UpdateOrderRequest> requests

Required. The Order objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateOrdersResponse>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateOrderRequest> requests = new UpdateOrderRequest[]
{
    new UpdateOrderRequest(),
};
// Make the request
BatchUpdateOrdersResponse response = await orderServiceClient.BatchUpdateOrdersAsync(parent, requests);

Create()

Synchronously creates a OrderServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use OrderServiceClientBuilder.

Declaration
public static OrderServiceClient Create()
Returns
Type Description
OrderServiceClient

The created OrderServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a OrderServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use OrderServiceClientBuilder.

Declaration
public static Task<OrderServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<OrderServiceClient>

The task representing the created OrderServiceClient.

GetOrder(GetOrderRequest, CallSettings)

Retrieves an Order object.

Declaration
public virtual Order GetOrder(GetOrderRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetOrderRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Order

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
GetOrderRequest request = new GetOrderRequest
{
    OrderName = OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
Order response = orderServiceClient.GetOrder(request);

GetOrder(OrderName, CallSettings)

Retrieves an Order object.

Declaration
public virtual Order GetOrder(OrderName name, CallSettings callSettings = null)
Parameters
Type Name Description
OrderName name

Required. The resource name of the Order. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Order

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
OrderName name = OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]");
// Make the request
Order response = orderServiceClient.GetOrder(name);

GetOrder(string, CallSettings)

Retrieves an Order object.

Declaration
public virtual Order GetOrder(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the Order. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Order

The RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/orders/[ORDER]";
// Make the request
Order response = orderServiceClient.GetOrder(name);

GetOrderAsync(GetOrderRequest, CallSettings)

Retrieves an Order object.

Declaration
public virtual Task<Order> GetOrderAsync(GetOrderRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetOrderRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Order>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
GetOrderRequest request = new GetOrderRequest
{
    OrderName = OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
Order response = await orderServiceClient.GetOrderAsync(request);

GetOrderAsync(GetOrderRequest, CancellationToken)

Retrieves an Order object.

Declaration
public virtual Task<Order> GetOrderAsync(GetOrderRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetOrderRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Order>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
GetOrderRequest request = new GetOrderRequest
{
    OrderName = OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]"),
};
// Make the request
Order response = await orderServiceClient.GetOrderAsync(request);

GetOrderAsync(OrderName, CallSettings)

Retrieves an Order object.

Declaration
public virtual Task<Order> GetOrderAsync(OrderName name, CallSettings callSettings = null)
Parameters
Type Name Description
OrderName name

Required. The resource name of the Order. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Order>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
OrderName name = OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]");
// Make the request
Order response = await orderServiceClient.GetOrderAsync(name);

GetOrderAsync(OrderName, CancellationToken)

Retrieves an Order object.

Declaration
public virtual Task<Order> GetOrderAsync(OrderName name, CancellationToken cancellationToken)
Parameters
Type Name Description
OrderName name

Required. The resource name of the Order. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Order>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
OrderName name = OrderName.FromNetworkCodeOrder("[NETWORK_CODE]", "[ORDER]");
// Make the request
Order response = await orderServiceClient.GetOrderAsync(name);

GetOrderAsync(string, CallSettings)

Retrieves an Order object.

Declaration
public virtual Task<Order> GetOrderAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the Order. Format: networks/{network_code}/orders/{order_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Order>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/orders/[ORDER]";
// Make the request
Order response = await orderServiceClient.GetOrderAsync(name);

GetOrderAsync(string, CancellationToken)

Retrieves an Order object.

Declaration
public virtual Task<Order> GetOrderAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the Order. Format: networks/{network_code}/orders/{order_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Order>

A Task containing the RPC response.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/orders/[ORDER]";
// Make the request
Order response = await orderServiceClient.GetOrderAsync(name);

ListOrders(ListOrdersRequest, CallSettings)

Lists Order objects.

Fields used for literal matching in filter string:

  • order_id
  • display_name
  • external_order_id
Declaration
public virtual PagedEnumerable<ListOrdersResponse, Order> ListOrders(ListOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListOrdersResponse, Order>

A pageable sequence of Order resources.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
ListOrdersRequest request = new ListOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListOrdersResponse, Order> response = orderServiceClient.ListOrders(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Order item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListOrdersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Order item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Order> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Order item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListOrders(NetworkName, string, int?, CallSettings)

Lists Order objects.

Fields used for literal matching in filter string:

  • order_id
  • display_name
  • external_order_id
Declaration
public virtual PagedEnumerable<ListOrdersResponse, Order> ListOrders(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListOrdersResponse, Order>

A pageable sequence of Order resources.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListOrdersResponse, Order> response = orderServiceClient.ListOrders(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Order item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListOrdersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Order item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Order> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Order item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListOrders(string, string, int?, CallSettings)

Lists Order objects.

Fields used for literal matching in filter string:

  • order_id
  • display_name
  • external_order_id
Declaration
public virtual PagedEnumerable<ListOrdersResponse, Order> ListOrders(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListOrdersResponse, Order>

A pageable sequence of Order resources.

Sample code
// Create client
OrderServiceClient orderServiceClient = OrderServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListOrdersResponse, Order> response = orderServiceClient.ListOrders(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Order item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListOrdersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Order item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Order> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Order item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListOrdersAsync(ListOrdersRequest, CallSettings)

Lists Order objects.

Fields used for literal matching in filter string:

  • order_id
  • display_name
  • external_order_id
Declaration
public virtual PagedAsyncEnumerable<ListOrdersResponse, Order> ListOrdersAsync(ListOrdersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListOrdersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListOrdersResponse, Order>

A pageable asynchronous sequence of Order resources.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
ListOrdersRequest request = new ListOrdersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListOrdersResponse, Order> response = orderServiceClient.ListOrdersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Order item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListOrdersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Order item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Order> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Order item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListOrdersAsync(NetworkName, string, int?, CallSettings)

Lists Order objects.

Fields used for literal matching in filter string:

  • order_id
  • display_name
  • external_order_id
Declaration
public virtual PagedAsyncEnumerable<ListOrdersResponse, Order> ListOrdersAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListOrdersResponse, Order>

A pageable asynchronous sequence of Order resources.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListOrdersResponse, Order> response = orderServiceClient.ListOrdersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Order item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListOrdersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Order item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Order> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Order item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListOrdersAsync(string, string, int?, CallSettings)

Lists Order objects.

Fields used for literal matching in filter string:

  • order_id
  • display_name
  • external_order_id
Declaration
public virtual PagedAsyncEnumerable<ListOrdersResponse, Order> ListOrdersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of Orders. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListOrdersResponse, Order>

A pageable asynchronous sequence of Order resources.

Sample code
// Create client
OrderServiceClient orderServiceClient = await OrderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListOrdersResponse, Order> response = orderServiceClient.ListOrdersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Order item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListOrdersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Order item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Order> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Order item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

In this article
Back to top Generated by DocFX