/// <summary>Snippet for CreateSubmission</summary> public void CreateSubmission() { // Snippet: CreateSubmission(string, Submission, CallSettings) // Create client WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Submission submission = new Submission(); // Make the request Submission response = webRiskServiceClient.CreateSubmission(parent, submission); // End snippet }
/// <summary>Snippet for CreateSubmission</summary> public void CreateSubmissionResourceNames() { // Snippet: CreateSubmission(ProjectName, Submission, CallSettings) // Create client WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Submission submission = new Submission(); // Make the request Submission response = webRiskServiceClient.CreateSubmission(parent, submission); // End snippet }
/// <summary>Snippet for CreateSubmission</summary> public void CreateSubmissionRequestObject() { // Snippet: CreateSubmission(CreateSubmissionRequest, CallSettings) // Create client WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.Create(); // Initialize request argument(s) CreateSubmissionRequest request = new CreateSubmissionRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), Submission = new Submission(), }; // Make the request Submission response = webRiskServiceClient.CreateSubmission(request); // End snippet }