/// <summary>Snippet for ReportPhishingAsync</summary> public async Task ReportPhishingAsync() { // Snippet: ReportPhishingAsync(string, string, CallSettings) // Additional: ReportPhishingAsync(string, string, CancellationToken) // Create client PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = await PhishingProtectionServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string uri = ""; // Make the request ReportPhishingResponse response = await phishingProtectionServiceV1Beta1Client.ReportPhishingAsync(parent, uri); // End snippet }
/// <summary>Snippet for ReportPhishingAsync</summary> public async Task ReportPhishingRequestObjectAsync() { // Snippet: ReportPhishingAsync(ReportPhishingRequest, CallSettings) // Additional: ReportPhishingAsync(ReportPhishingRequest, CancellationToken) // Create client PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = await PhishingProtectionServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) ReportPhishingRequest request = new ReportPhishingRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), Uri = "", }; // Make the request ReportPhishingResponse response = await phishingProtectionServiceV1Beta1Client.ReportPhishingAsync(request); // End snippet }