Class PhishingProtectionServiceV1Beta1Client (1.0.0-beta05)

public abstract class PhishingProtectionServiceV1Beta1Client

PhishingProtectionServiceV1Beta1 client wrapper, for convenient use.

Inheritance

Object > PhishingProtectionServiceV1Beta1Client

Namespace

Google.Cloud.PhishingProtection.V1Beta1

Assembly

Google.Cloud.PhishingProtection.V1Beta1.dll

Remarks

Service to report phishing URIs.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the PhishingProtectionServiceV1Beta1 service, which is a host of "phishingprotection.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default PhishingProtectionServiceV1Beta1 scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default PhishingProtectionServiceV1Beta1 scopes are:

GrpcClient

public virtual PhishingProtectionServiceV1Beta1.PhishingProtectionServiceV1Beta1Client GrpcClient { get; }

The underlying gRPC PhishingProtectionServiceV1Beta1 client

Property Value
TypeDescription
PhishingProtectionServiceV1Beta1.PhishingProtectionServiceV1Beta1Client

Methods

Create()

public static PhishingProtectionServiceV1Beta1Client Create()

Synchronously creates a PhishingProtectionServiceV1Beta1Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use PhishingProtectionServiceV1Beta1ClientBuilder.

Returns
TypeDescription
PhishingProtectionServiceV1Beta1Client

The created PhishingProtectionServiceV1Beta1Client.

CreateAsync(CancellationToken)

public static Task<PhishingProtectionServiceV1Beta1Client> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))

Asynchronously creates a PhishingProtectionServiceV1Beta1Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use PhishingProtectionServiceV1Beta1ClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<PhishingProtectionServiceV1Beta1Client>

The task representing the created PhishingProtectionServiceV1Beta1Client.

ReportPhishing(ProjectName, String, CallSettings)

public virtual ReportPhishingResponse ReportPhishing(ProjectName parent, string uri, CallSettings callSettings = null)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
parentProjectName

Required. The name of the project for which the report will be created, in the format "projects/{project_number}".

uriString

Required. The URI that is being reported for phishing content to be analyzed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReportPhishingResponse

The RPC response.

Example
// 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);

ReportPhishing(ReportPhishingRequest, CallSettings)

public virtual ReportPhishingResponse ReportPhishing(ReportPhishingRequest request, CallSettings callSettings = null)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
requestReportPhishingRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReportPhishingResponse

The RPC response.

Example
// 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);

ReportPhishing(String, String, CallSettings)

public virtual ReportPhishingResponse ReportPhishing(string parent, string uri, CallSettings callSettings = null)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
parentString

Required. The name of the project for which the report will be created, in the format "projects/{project_number}".

uriString

Required. The URI that is being reported for phishing content to be analyzed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReportPhishingResponse

The RPC response.

Example
// 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);

ReportPhishingAsync(ProjectName, String, CallSettings)

public virtual Task<ReportPhishingResponse> ReportPhishingAsync(ProjectName parent, string uri, CallSettings callSettings = null)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
parentProjectName

Required. The name of the project for which the report will be created, in the format "projects/{project_number}".

uriString

Required. The URI that is being reported for phishing content to be analyzed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ReportPhishingResponse>

A Task containing the RPC response.

Example
// Create client
PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = await PhishingProtectionServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string uri = "";
// Make the request
ReportPhishingResponse response = await phishingProtectionServiceV1Beta1Client.ReportPhishingAsync(parent, uri);

ReportPhishingAsync(ProjectName, String, CancellationToken)

public virtual Task<ReportPhishingResponse> ReportPhishingAsync(ProjectName parent, string uri, CancellationToken cancellationToken)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
parentProjectName

Required. The name of the project for which the report will be created, in the format "projects/{project_number}".

uriString

Required. The URI that is being reported for phishing content to be analyzed.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ReportPhishingResponse>

A Task containing the RPC response.

Example
// Create client
PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = await PhishingProtectionServiceV1Beta1Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string uri = "";
// Make the request
ReportPhishingResponse response = await phishingProtectionServiceV1Beta1Client.ReportPhishingAsync(parent, uri);

ReportPhishingAsync(ReportPhishingRequest, CallSettings)

public virtual Task<ReportPhishingResponse> ReportPhishingAsync(ReportPhishingRequest request, CallSettings callSettings = null)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
requestReportPhishingRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ReportPhishingResponse>

A Task containing the RPC response.

Example
// 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);

ReportPhishingAsync(ReportPhishingRequest, CancellationToken)

public virtual Task<ReportPhishingResponse> ReportPhishingAsync(ReportPhishingRequest request, CancellationToken cancellationToken)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
requestReportPhishingRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ReportPhishingResponse>

A Task containing the RPC response.

Example
// 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);

ReportPhishingAsync(String, String, CallSettings)

public virtual Task<ReportPhishingResponse> ReportPhishingAsync(string parent, string uri, CallSettings callSettings = null)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
parentString

Required. The name of the project for which the report will be created, in the format "projects/{project_number}".

uriString

Required. The URI that is being reported for phishing content to be analyzed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ReportPhishingResponse>

A Task containing the RPC response.

Example
// 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);

ReportPhishingAsync(String, String, CancellationToken)

public virtual Task<ReportPhishingResponse> ReportPhishingAsync(string parent, string uri, CancellationToken cancellationToken)

Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.

Parameters
NameDescription
parentString

Required. The name of the project for which the report will be created, in the format "projects/{project_number}".

uriString

Required. The URI that is being reported for phishing content to be analyzed.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ReportPhishingResponse>

A Task containing the RPC response.

Example
// 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);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.