/// <summary>Snippet for CreateAssessment</summary> public void CreateAssessment() { // Snippet: CreateAssessment(string, Assessment, CallSettings) // Create client RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Assessment assessment = new Assessment(); // Make the request Assessment response = recaptchaEnterpriseServiceV1Beta1Client.CreateAssessment(parent, assessment); // End snippet }
/// <summary>Snippet for CreateAssessment</summary> public void CreateAssessmentResourceNames() { // Snippet: CreateAssessment(ProjectName, Assessment, CallSettings) // Create client RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Assessment assessment = new Assessment(); // Make the request Assessment response = recaptchaEnterpriseServiceV1Beta1Client.CreateAssessment(parent, assessment); // End snippet }
/// <summary>Snippet for CreateAssessment</summary> public void CreateAssessmentRequestObject() { // Snippet: CreateAssessment(CreateAssessmentRequest, CallSettings) // Create client RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.Create(); // Initialize request argument(s) CreateAssessmentRequest request = new CreateAssessmentRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), Assessment = new Assessment(), }; // Make the request Assessment response = recaptchaEnterpriseServiceV1Beta1Client.CreateAssessment(request); // End snippet }