/// <summary>Snippet for ReportPhishing</summary> public void ReportPhishingResourceNames() { // Snippet: ReportPhishing(ProjectName, string, CallSettings) // Create client PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = PhishingProtectionServiceV1Beta1Client.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string uri = ""; // Make the request ReportPhishingResponse response = phishingProtectionServiceV1Beta1Client.ReportPhishing(parent, uri); // End snippet }
/// <summary>Snippet for ReportPhishing</summary> public void ReportPhishing() { // Snippet: ReportPhishing(string, string, CallSettings) // Create client PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = PhishingProtectionServiceV1Beta1Client.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string uri = ""; // Make the request ReportPhishingResponse response = phishingProtectionServiceV1Beta1Client.ReportPhishing(parent, uri); // End snippet }
/// <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 ReportPhishing</summary> public void ReportPhishingRequestObject() { // Snippet: ReportPhishing(ReportPhishingRequest, CallSettings) // Create client PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = PhishingProtectionServiceV1Beta1Client.Create(); // Initialize request argument(s) ReportPhishingRequest request = new ReportPhishingRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), Uri = "", }; // Make the request ReportPhishingResponse response = phishingProtectionServiceV1Beta1Client.ReportPhishing(request); // 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 }