/// <summary>Snippet for CreateCall</summary> public void CreateCall() { // Snippet: CreateCall(string, Call, CallSettings) // Create client CallsClient callsClient = CallsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Call call = new Call(); // Make the request Call response = callsClient.CreateCall(parent, call); // End snippet }
/// <summary>Snippet for CreateCall</summary> public void CreateCallResourceNames() { // Snippet: CreateCall(ProjectName, Call, CallSettings) // Create client CallsClient callsClient = CallsClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Call call = new Call(); // Make the request Call response = callsClient.CreateCall(parent, call); // End snippet }
/// <summary>Snippet for CreateCall</summary> public void CreateCallRequestObject() { // Snippet: CreateCall(CreateCallRequest, CallSettings) // Create client CallsClient callsClient = CallsClient.Create(); // Initialize request argument(s) CreateCallRequest request = new CreateCallRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), Call = new Call(), }; // Make the request Call response = callsClient.CreateCall(request); // End snippet }