Class SecurityCenter.SecurityCenterBase

[BindServiceMethod(typeof(SecurityCenter), "BindService")]
public abstract class SecurityCenterBase

Base class for server-side implementations of SecurityCenter

Inheritance

Object > SecurityCenter.SecurityCenterBase

Namespace

Google.Cloud.SecurityCenter.V1P1Beta1

Assembly

Google.Cloud.SecurityCenter.V1P1Beta1.dll

Methods

CreateFinding(CreateFindingRequest, ServerCallContext)

public virtual Task<Finding> CreateFinding(CreateFindingRequest request, ServerCallContext context)

Creates a finding. The corresponding source must exist for finding creation to succeed.

Parameters
TypeNameDescription
CreateFindingRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Finding>

The response to send back to the client (wrapped by a task).

CreateNotificationConfig(CreateNotificationConfigRequest, ServerCallContext)

public virtual Task<NotificationConfig> CreateNotificationConfig(CreateNotificationConfigRequest request, ServerCallContext context)

Creates a notification config.

Parameters
TypeNameDescription
CreateNotificationConfigRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<NotificationConfig>

The response to send back to the client (wrapped by a task).

CreateSource(CreateSourceRequest, ServerCallContext)

public virtual Task<Source> CreateSource(CreateSourceRequest request, ServerCallContext context)

Creates a source.

Parameters
TypeNameDescription
CreateSourceRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Source>

The response to send back to the client (wrapped by a task).

DeleteNotificationConfig(DeleteNotificationConfigRequest, ServerCallContext)

public virtual Task<Empty> DeleteNotificationConfig(DeleteNotificationConfigRequest request, ServerCallContext context)

Deletes a notification config.

Parameters
TypeNameDescription
DeleteNotificationConfigRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the access control policy on the specified Source.

Parameters
TypeNameDescription
GetIamPolicyRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

The response to send back to the client (wrapped by a task).

GetNotificationConfig(GetNotificationConfigRequest, ServerCallContext)

public virtual Task<NotificationConfig> GetNotificationConfig(GetNotificationConfigRequest request, ServerCallContext context)

Gets a notification config.

Parameters
TypeNameDescription
GetNotificationConfigRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<NotificationConfig>

The response to send back to the client (wrapped by a task).

GetOrganizationSettings(GetOrganizationSettingsRequest, ServerCallContext)

public virtual Task<OrganizationSettings> GetOrganizationSettings(GetOrganizationSettingsRequest request, ServerCallContext context)

Gets the settings for an organization.

Parameters
TypeNameDescription
GetOrganizationSettingsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<OrganizationSettings>

The response to send back to the client (wrapped by a task).

GetSource(GetSourceRequest, ServerCallContext)

public virtual Task<Source> GetSource(GetSourceRequest request, ServerCallContext context)

Gets a source.

Parameters
TypeNameDescription
GetSourceRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Source>

The response to send back to the client (wrapped by a task).

GroupAssets(GroupAssetsRequest, ServerCallContext)

public virtual Task<GroupAssetsResponse> GroupAssets(GroupAssetsRequest request, ServerCallContext context)

Filters an organization's assets and groups them by their specified properties.

Parameters
TypeNameDescription
GroupAssetsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<GroupAssetsResponse>

The response to send back to the client (wrapped by a task).

GroupFindings(GroupFindingsRequest, ServerCallContext)

public virtual Task<GroupFindingsResponse> GroupFindings(GroupFindingsRequest request, ServerCallContext context)

Filters an organization or source's findings and groups them by their specified properties.

To group across all sources provide a - as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings

Parameters
TypeNameDescription
GroupFindingsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<GroupFindingsResponse>

The response to send back to the client (wrapped by a task).

ListAssets(ListAssetsRequest, ServerCallContext)

public virtual Task<ListAssetsResponse> ListAssets(ListAssetsRequest request, ServerCallContext context)

Lists an organization's assets.

Parameters
TypeNameDescription
ListAssetsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListAssetsResponse>

The response to send back to the client (wrapped by a task).

ListFindings(ListFindingsRequest, ServerCallContext)

public virtual Task<ListFindingsResponse> ListFindings(ListFindingsRequest request, ServerCallContext context)

Lists an organization or source's findings.

To list across all sources provide a - as the source id. Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings

Parameters
TypeNameDescription
ListFindingsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListFindingsResponse>

The response to send back to the client (wrapped by a task).

ListNotificationConfigs(ListNotificationConfigsRequest, ServerCallContext)

public virtual Task<ListNotificationConfigsResponse> ListNotificationConfigs(ListNotificationConfigsRequest request, ServerCallContext context)

Lists notification configs.

Parameters
TypeNameDescription
ListNotificationConfigsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListNotificationConfigsResponse>

The response to send back to the client (wrapped by a task).

ListSources(ListSourcesRequest, ServerCallContext)

public virtual Task<ListSourcesResponse> ListSources(ListSourcesRequest request, ServerCallContext context)

Lists all sources belonging to an organization.

Parameters
TypeNameDescription
ListSourcesRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListSourcesResponse>

The response to send back to the client (wrapped by a task).

RunAssetDiscovery(RunAssetDiscoveryRequest, ServerCallContext)

public virtual Task<Operation> RunAssetDiscovery(RunAssetDiscoveryRequest request, ServerCallContext context)

Runs asset discovery. The discovery is tracked with a long-running operation.

This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.

Parameters
TypeNameDescription
RunAssetDiscoveryRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

SetFindingState(SetFindingStateRequest, ServerCallContext)

public virtual Task<Finding> SetFindingState(SetFindingStateRequest request, ServerCallContext context)

Updates the state of a finding.

Parameters
TypeNameDescription
SetFindingStateRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Finding>

The response to send back to the client (wrapped by a task).

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Sets the access control policy on the specified Source.

Parameters
TypeNameDescription
SetIamPolicyRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

Returns the permissions that a caller has on the specified source.

Parameters
TypeNameDescription
TestIamPermissionsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TestIamPermissionsResponse>

The response to send back to the client (wrapped by a task).

UpdateFinding(UpdateFindingRequest, ServerCallContext)

public virtual Task<Finding> UpdateFinding(UpdateFindingRequest request, ServerCallContext context)

Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.

Parameters
TypeNameDescription
UpdateFindingRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Finding>

The response to send back to the client (wrapped by a task).

UpdateNotificationConfig(UpdateNotificationConfigRequest, ServerCallContext)

public virtual Task<NotificationConfig> UpdateNotificationConfig(UpdateNotificationConfigRequest request, ServerCallContext context)

Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter

Parameters
TypeNameDescription
UpdateNotificationConfigRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<NotificationConfig>

The response to send back to the client (wrapped by a task).

UpdateOrganizationSettings(UpdateOrganizationSettingsRequest, ServerCallContext)

public virtual Task<OrganizationSettings> UpdateOrganizationSettings(UpdateOrganizationSettingsRequest request, ServerCallContext context)

Updates an organization's settings.

Parameters
TypeNameDescription
UpdateOrganizationSettingsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<OrganizationSettings>

The response to send back to the client (wrapped by a task).

UpdateSecurityMarks(UpdateSecurityMarksRequest, ServerCallContext)

public virtual Task<SecurityMarks> UpdateSecurityMarks(UpdateSecurityMarksRequest request, ServerCallContext context)

Updates security marks.

Parameters
TypeNameDescription
UpdateSecurityMarksRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<SecurityMarks>

The response to send back to the client (wrapped by a task).

UpdateSource(UpdateSourceRequest, ServerCallContext)

public virtual Task<Source> UpdateSource(UpdateSourceRequest request, ServerCallContext context)

Updates a source.

Parameters
TypeNameDescription
UpdateSourceRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Source>

The response to send back to the client (wrapped by a task).