# Google Cloud Security Command Center v1p1beta1 API - Class SecurityCenterClient (3.0.0-beta06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient)
- [3.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/3.0.0-beta05/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient)
- [2.0.0-beta07](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/2.0.0-beta07/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient)

    public abstract class SecurityCenterClient

Reference documentation and code samples for the Google Cloud Security Command Center v1p1beta1 API class SecurityCenterClient.

SecurityCenter client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SecurityCenterClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[SecurityCenterClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClientImpl)

## Namespace

[Google.Cloud.SecurityCenter.V1P1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1)

## Assembly

Google.Cloud.SecurityCenter.V1P1Beta1.dll

## Remarks

V1p1Beta1 APIs for Security Center service.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default SecurityCenter scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default SecurityCenter scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### GrpcClient

    public virtual SecurityCenter.SecurityCenterClient GrpcClient { get; }

The underlying gRPC SecurityCenter client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenter.SecurityCenterClient` |   |

### RunAssetDiscoveryOperationsClient

    public virtual OperationsClient RunAssetDiscoveryOperationsClient { get; }

The long-running operations client for `RunAssetDiscovery`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static SecurityCenterClient Create()

Synchronously creates a [SecurityCenterClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [SecurityCenterClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient` | The created [SecurityCenterClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient). |

### CreateAsync(CancellationToken)

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

Asynchronously creates a [SecurityCenterClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [SecurityCenterClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient` | The task representing the created [SecurityCenterClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient). |

### CreateFinding(CreateFindingRequest, CallSettings)

    public virtual Finding CreateFinding(CreateFindingRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateFindingRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    CreateFindingRequest request = new CreateFindingRequest
    {
        ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
        FindingId = "",
        Finding = new Finding(),
    };
    // Make the request
    Finding response = securityCenterClient.CreateFinding(request);

### CreateFinding(SourceName, Finding, string, CallSettings)

    public virtual Finding CreateFinding(SourceName parent, Finding finding, string findingId, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    Finding finding = new Finding();
    string findingId = "";
    // Make the request
    Finding response = securityCenterClient.CreateFinding(parent, finding, findingId);

### CreateFinding(SourceName, string, Finding, CallSettings)

    public virtual Finding CreateFinding(SourceName parent, string findingId, Finding finding, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    string findingId = "";
    Finding finding = new Finding();
    // Make the request
    Finding response = securityCenterClient.CreateFinding(parent, findingId, finding);

### CreateFinding(string, Finding, string, CallSettings)

    public virtual Finding CreateFinding(string parent, Finding finding, string findingId, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    Finding finding = new Finding();
    string findingId = "";
    // Make the request
    Finding response = securityCenterClient.CreateFinding(parent, finding, findingId);

### CreateFinding(string, string, Finding, CallSettings)

    public virtual Finding CreateFinding(string parent, string findingId, Finding finding, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    string findingId = "";
    Finding finding = new Finding();
    // Make the request
    Finding response = securityCenterClient.CreateFinding(parent, findingId, finding);

### CreateFindingAsync(CreateFindingRequest, CallSettings)

    public virtual Task<Finding> CreateFindingAsync(CreateFindingRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateFindingRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    CreateFindingRequest request = new CreateFindingRequest
    {
        ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
        FindingId = "",
        Finding = new Finding(),
    };
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(request);

### CreateFindingAsync(CreateFindingRequest, CancellationToken)

    public virtual Task<Finding> CreateFindingAsync(CreateFindingRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateFindingRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    CreateFindingRequest request = new CreateFindingRequest
    {
        ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
        FindingId = "",
        Finding = new Finding(),
    };
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(request);

### CreateFindingAsync(SourceName, Finding, string, CallSettings)

    public virtual Task<Finding> CreateFindingAsync(SourceName parent, Finding finding, string findingId, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    Finding finding = new Finding();
    string findingId = "";
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(parent, finding, findingId);

### CreateFindingAsync(SourceName, Finding, string, CancellationToken)

    public virtual Task<Finding> CreateFindingAsync(SourceName parent, Finding finding, string findingId, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    Finding finding = new Finding();
    string findingId = "";
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(parent, finding, findingId);

### CreateFindingAsync(SourceName, string, Finding, CallSettings)

    public virtual Task<Finding> CreateFindingAsync(SourceName parent, string findingId, Finding finding, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    string findingId = "";
    Finding finding = new Finding();
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding);

### CreateFindingAsync(SourceName, string, Finding, CancellationToken)

    public virtual Task<Finding> CreateFindingAsync(SourceName parent, string findingId, Finding finding, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    string findingId = "";
    Finding finding = new Finding();
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding);

### CreateFindingAsync(string, Finding, string, CallSettings)

    public virtual Task<Finding> CreateFindingAsync(string parent, Finding finding, string findingId, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    Finding finding = new Finding();
    string findingId = "";
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(parent, finding, findingId);

### CreateFindingAsync(string, Finding, string, CancellationToken)

    public virtual Task<Finding> CreateFindingAsync(string parent, Finding finding, string findingId, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    Finding finding = new Finding();
    string findingId = "";
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(parent, finding, findingId);

### CreateFindingAsync(string, string, Finding, CallSettings)

    public virtual Task<Finding> CreateFindingAsync(string parent, string findingId, Finding finding, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    string findingId = "";
    Finding finding = new Finding();
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding);

### CreateFindingAsync(string, string, Finding, CancellationToken)

    public virtual Task<Finding> CreateFindingAsync(string parent, string findingId, Finding finding, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new finding's parent. Its format should be "organizations/\[organization_id\]/sources/\[source_id\]". |
| `findingId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    string findingId = "";
    Finding finding = new Finding();
    // Make the request
    Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding);

### CreateNotificationConfig(OrganizationName, NotificationConfig, CallSettings)

    public virtual NotificationConfig CreateNotificationConfig(OrganizationName parent, NotificationConfig notificationConfig, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig);

### CreateNotificationConfig(OrganizationName, string, NotificationConfig, CallSettings)

    public virtual NotificationConfig CreateNotificationConfig(OrganizationName parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `configId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only. |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    string configId = "";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig);

### CreateNotificationConfig(CreateNotificationConfigRequest, CallSettings)

    public virtual NotificationConfig CreateNotificationConfig(CreateNotificationConfigRequest request, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        ConfigId = "",
        NotificationConfig = new NotificationConfig(),
    };
    // Make the request
    NotificationConfig response = securityCenterClient.CreateNotificationConfig(request);

### CreateNotificationConfig(string, NotificationConfig, CallSettings)

    public virtual NotificationConfig CreateNotificationConfig(string parent, NotificationConfig notificationConfig, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig);

### CreateNotificationConfig(string, string, NotificationConfig, CallSettings)

    public virtual NotificationConfig CreateNotificationConfig(string parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `configId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only. |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    string configId = "";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig);

### CreateNotificationConfigAsync(OrganizationName, NotificationConfig, CallSettings)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationName parent, NotificationConfig notificationConfig, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);

### CreateNotificationConfigAsync(OrganizationName, NotificationConfig, CancellationToken)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationName parent, NotificationConfig notificationConfig, CancellationToken cancellationToken)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);

### CreateNotificationConfigAsync(OrganizationName, string, NotificationConfig, CallSettings)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationName parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `configId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only. |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    string configId = "";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);

### CreateNotificationConfigAsync(OrganizationName, string, NotificationConfig, CancellationToken)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationName parent, string configId, NotificationConfig notificationConfig, CancellationToken cancellationToken)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `configId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only. |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    string configId = "";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);

### CreateNotificationConfigAsync(CreateNotificationConfigRequest, CallSettings)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(CreateNotificationConfigRequest request, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        ConfigId = "",
        NotificationConfig = new NotificationConfig(),
    };
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(request);

### CreateNotificationConfigAsync(CreateNotificationConfigRequest, CancellationToken)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(CreateNotificationConfigRequest request, CancellationToken cancellationToken)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        ConfigId = "",
        NotificationConfig = new NotificationConfig(),
    };
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(request);

### CreateNotificationConfigAsync(string, NotificationConfig, CallSettings)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, NotificationConfig notificationConfig, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);

### CreateNotificationConfigAsync(string, NotificationConfig, CancellationToken)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, NotificationConfig notificationConfig, CancellationToken cancellationToken)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);

### CreateNotificationConfigAsync(string, string, NotificationConfig, CallSettings)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `configId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only. |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    string configId = "";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);

### CreateNotificationConfigAsync(string, string, NotificationConfig, CancellationToken)

    public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, string configId, NotificationConfig notificationConfig, CancellationToken cancellationToken)

Creates a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new notification config's parent. Its format is "organizations/\[organization_id\]". |
| `configId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only. |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    string configId = "";
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);

### CreateSource(OrganizationName, Source, CallSettings)

    public virtual Source CreateSource(OrganizationName parent, Source source, CallSettings callSettings = null)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new source's parent. Its format should be "organizations/\[organization_id\]". |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    Source source = new Source();
    // Make the request
    Source response = securityCenterClient.CreateSource(parent, source);

### CreateSource(CreateSourceRequest, CallSettings)

    public virtual Source CreateSource(CreateSourceRequest request, CallSettings callSettings = null)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateSourceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    CreateSourceRequest request = new CreateSourceRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        Source = new Source(),
    };
    // Make the request
    Source response = securityCenterClient.CreateSource(request);

### CreateSource(string, Source, CallSettings)

    public virtual Source CreateSource(string parent, Source source, CallSettings callSettings = null)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new source's parent. Its format should be "organizations/\[organization_id\]". |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    Source source = new Source();
    // Make the request
    Source response = securityCenterClient.CreateSource(parent, source);

### CreateSourceAsync(OrganizationName, Source, CallSettings)

    public virtual Task<Source> CreateSourceAsync(OrganizationName parent, Source source, CallSettings callSettings = null)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new source's parent. Its format should be "organizations/\[organization_id\]". |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    Source source = new Source();
    // Make the request
    Source response = await securityCenterClient.CreateSourceAsync(parent, source);

### CreateSourceAsync(OrganizationName, Source, CancellationToken)

    public virtual Task<Source> CreateSourceAsync(OrganizationName parent, Source source, CancellationToken cancellationToken)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the new source's parent. Its format should be "organizations/\[organization_id\]". |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    Source source = new Source();
    // Make the request
    Source response = await securityCenterClient.CreateSourceAsync(parent, source);

### CreateSourceAsync(CreateSourceRequest, CallSettings)

    public virtual Task<Source> CreateSourceAsync(CreateSourceRequest request, CallSettings callSettings = null)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateSourceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    CreateSourceRequest request = new CreateSourceRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        Source = new Source(),
    };
    // Make the request
    Source response = await securityCenterClient.CreateSourceAsync(request);

### CreateSourceAsync(CreateSourceRequest, CancellationToken)

    public virtual Task<Source> CreateSourceAsync(CreateSourceRequest request, CancellationToken cancellationToken)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.CreateSourceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    CreateSourceRequest request = new CreateSourceRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        Source = new Source(),
    };
    // Make the request
    Source response = await securityCenterClient.CreateSourceAsync(request);

### CreateSourceAsync(string, Source, CallSettings)

    public virtual Task<Source> CreateSourceAsync(string parent, Source source, CallSettings callSettings = null)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new source's parent. Its format should be "organizations/\[organization_id\]". |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    Source source = new Source();
    // Make the request
    Source response = await securityCenterClient.CreateSourceAsync(parent, source);

### CreateSourceAsync(string, Source, CancellationToken)

    public virtual Task<Source> CreateSourceAsync(string parent, Source source, CancellationToken cancellationToken)

Creates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the new source's parent. Its format should be "organizations/\[organization_id\]". |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    Source source = new Source();
    // Make the request
    Source response = await securityCenterClient.CreateSourceAsync(parent, source);

### DeleteNotificationConfig(DeleteNotificationConfigRequest, CallSettings)

    public virtual void DeleteNotificationConfig(DeleteNotificationConfigRequest request, CallSettings callSettings = null)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.DeleteNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
    {
        NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
    };
    // Make the request
    securityCenterClient.DeleteNotificationConfig(request);

### DeleteNotificationConfig(NotificationConfigName, CallSettings)

    public virtual void DeleteNotificationConfig(NotificationConfigName name, CallSettings callSettings = null)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfigName` Required. Name of the notification config to delete. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
    // Make the request
    securityCenterClient.DeleteNotificationConfig(name);

### DeleteNotificationConfig(string, CallSettings)

    public virtual void DeleteNotificationConfig(string name, CallSettings callSettings = null)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the notification config to delete. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
    // Make the request
    securityCenterClient.DeleteNotificationConfig(name);

### DeleteNotificationConfigAsync(DeleteNotificationConfigRequest, CallSettings)

    public virtual Task DeleteNotificationConfigAsync(DeleteNotificationConfigRequest request, CallSettings callSettings = null)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.DeleteNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
    {
        NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
    };
    // Make the request
    await securityCenterClient.DeleteNotificationConfigAsync(request);

### DeleteNotificationConfigAsync(DeleteNotificationConfigRequest, CancellationToken)

    public virtual Task DeleteNotificationConfigAsync(DeleteNotificationConfigRequest request, CancellationToken cancellationToken)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.DeleteNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
    {
        NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
    };
    // Make the request
    await securityCenterClient.DeleteNotificationConfigAsync(request);

### DeleteNotificationConfigAsync(NotificationConfigName, CallSettings)

    public virtual Task DeleteNotificationConfigAsync(NotificationConfigName name, CallSettings callSettings = null)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfigName` Required. Name of the notification config to delete. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
    // Make the request
    await securityCenterClient.DeleteNotificationConfigAsync(name);

### DeleteNotificationConfigAsync(NotificationConfigName, CancellationToken)

    public virtual Task DeleteNotificationConfigAsync(NotificationConfigName name, CancellationToken cancellationToken)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfigName` Required. Name of the notification config to delete. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
    // Make the request
    await securityCenterClient.DeleteNotificationConfigAsync(name);

### DeleteNotificationConfigAsync(string, CallSettings)

    public virtual Task DeleteNotificationConfigAsync(string name, CallSettings callSettings = null)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the notification config to delete. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
    // Make the request
    await securityCenterClient.DeleteNotificationConfigAsync(name);

### DeleteNotificationConfigAsync(string, CancellationToken)

    public virtual Task DeleteNotificationConfigAsync(string name, CancellationToken cancellationToken)

Deletes a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the notification config to delete. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
    // Make the request
    await securityCenterClient.DeleteNotificationConfigAsync(name);

### GetIamPolicy(IResourceName, CallSettings)

    public virtual Policy GetIamPolicy(IResourceName resource, CallSettings callSettings = null)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = securityCenterClient.GetIamPolicy(resource);

### GetIamPolicy(GetIamPolicyRequest, CallSettings)

    public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = securityCenterClient.GetIamPolicy(request);

### GetIamPolicy(string, CallSettings)

    public virtual Policy GetIamPolicy(string resource, CallSettings callSettings = null)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = securityCenterClient.GetIamPolicy(resource);

### GetIamPolicyAsync(IResourceName, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CallSettings callSettings = null)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = await securityCenterClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(IResourceName, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CancellationToken cancellationToken)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = await securityCenterClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = await securityCenterClient.GetIamPolicyAsync(request);

### GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = await securityCenterClient.GetIamPolicyAsync(request);

### GetIamPolicyAsync(string, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(string resource, CallSettings callSettings = null)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = await securityCenterClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(string, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(string resource, CancellationToken cancellationToken)

Gets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = await securityCenterClient.GetIamPolicyAsync(resource);

### GetNotificationConfig(GetNotificationConfigRequest, CallSettings)

    public virtual NotificationConfig GetNotificationConfig(GetNotificationConfigRequest request, CallSettings callSettings = null)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    GetNotificationConfigRequest request = new GetNotificationConfigRequest
    {
        NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
    };
    // Make the request
    NotificationConfig response = securityCenterClient.GetNotificationConfig(request);

### GetNotificationConfig(NotificationConfigName, CallSettings)

    public virtual NotificationConfig GetNotificationConfig(NotificationConfigName name, CallSettings callSettings = null)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfigName` Required. Name of the notification config to get. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
    // Make the request
    NotificationConfig response = securityCenterClient.GetNotificationConfig(name);

### GetNotificationConfig(string, CallSettings)

    public virtual NotificationConfig GetNotificationConfig(string name, CallSettings callSettings = null)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the notification config to get. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
    // Make the request
    NotificationConfig response = securityCenterClient.GetNotificationConfig(name);

### GetNotificationConfigAsync(GetNotificationConfigRequest, CallSettings)

    public virtual Task<NotificationConfig> GetNotificationConfigAsync(GetNotificationConfigRequest request, CallSettings callSettings = null)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GetNotificationConfigRequest request = new GetNotificationConfigRequest
    {
        NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
    };
    // Make the request
    NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(request);

### GetNotificationConfigAsync(GetNotificationConfigRequest, CancellationToken)

    public virtual Task<NotificationConfig> GetNotificationConfigAsync(GetNotificationConfigRequest request, CancellationToken cancellationToken)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GetNotificationConfigRequest request = new GetNotificationConfigRequest
    {
        NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
    };
    // Make the request
    NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(request);

### GetNotificationConfigAsync(NotificationConfigName, CallSettings)

    public virtual Task<NotificationConfig> GetNotificationConfigAsync(NotificationConfigName name, CallSettings callSettings = null)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfigName` Required. Name of the notification config to get. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
    // Make the request
    NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);

### GetNotificationConfigAsync(NotificationConfigName, CancellationToken)

    public virtual Task<NotificationConfig> GetNotificationConfigAsync(NotificationConfigName name, CancellationToken cancellationToken)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfigName` Required. Name of the notification config to get. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
    // Make the request
    NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);

### GetNotificationConfigAsync(string, CallSettings)

    public virtual Task<NotificationConfig> GetNotificationConfigAsync(string name, CallSettings callSettings = null)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the notification config to get. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
    // Make the request
    NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);

### GetNotificationConfigAsync(string, CancellationToken)

    public virtual Task<NotificationConfig> GetNotificationConfigAsync(string name, CancellationToken cancellationToken)

Gets a notification config.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the notification config to get. Its format is "organizations/\[organization_id\]/notificationConfigs/\[config_id\]". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
    // Make the request
    NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);

### GetOrganizationSettings(GetOrganizationSettingsRequest, CallSettings)

    public virtual OrganizationSettings GetOrganizationSettings(GetOrganizationSettingsRequest request, CallSettings callSettings = null)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetOrganizationSettingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest
    {
        OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    OrganizationSettings response = securityCenterClient.GetOrganizationSettings(request);

### GetOrganizationSettings(OrganizationSettingsName, CallSettings)

    public virtual OrganizationSettings GetOrganizationSettings(OrganizationSettingsName name, CallSettings callSettings = null)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettingsName` Required. Name of the organization to get organization settings for. Its format is "organizations/\[organization_id\]/organizationSettings". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]");
    // Make the request
    OrganizationSettings response = securityCenterClient.GetOrganizationSettings(name);

### GetOrganizationSettings(string, CallSettings)

    public virtual OrganizationSettings GetOrganizationSettings(string name, CallSettings callSettings = null)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization to get organization settings for. Its format is "organizations/\[organization_id\]/organizationSettings". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/organizationSettings";
    // Make the request
    OrganizationSettings response = securityCenterClient.GetOrganizationSettings(name);

### GetOrganizationSettingsAsync(GetOrganizationSettingsRequest, CallSettings)

    public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(GetOrganizationSettingsRequest request, CallSettings callSettings = null)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetOrganizationSettingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest
    {
        OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(request);

### GetOrganizationSettingsAsync(GetOrganizationSettingsRequest, CancellationToken)

    public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(GetOrganizationSettingsRequest request, CancellationToken cancellationToken)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetOrganizationSettingsRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest
    {
        OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(request);

### GetOrganizationSettingsAsync(OrganizationSettingsName, CallSettings)

    public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(OrganizationSettingsName name, CallSettings callSettings = null)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettingsName` Required. Name of the organization to get organization settings for. Its format is "organizations/\[organization_id\]/organizationSettings". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]");
    // Make the request
    OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name);

### GetOrganizationSettingsAsync(OrganizationSettingsName, CancellationToken)

    public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(OrganizationSettingsName name, CancellationToken cancellationToken)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettingsName` Required. Name of the organization to get organization settings for. Its format is "organizations/\[organization_id\]/organizationSettings". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]");
    // Make the request
    OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name);

### GetOrganizationSettingsAsync(string, CallSettings)

    public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(string name, CallSettings callSettings = null)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization to get organization settings for. Its format is "organizations/\[organization_id\]/organizationSettings". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/organizationSettings";
    // Make the request
    OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name);

### GetOrganizationSettingsAsync(string, CancellationToken)

    public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(string name, CancellationToken cancellationToken)

Gets the settings for an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization to get organization settings for. Its format is "organizations/\[organization_id\]/organizationSettings". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/organizationSettings";
    // Make the request
    OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name);

### GetSource(GetSourceRequest, CallSettings)

    public virtual Source GetSource(GetSourceRequest request, CallSettings callSettings = null)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetSourceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    GetSourceRequest request = new GetSourceRequest
    {
        SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
    };
    // Make the request
    Source response = securityCenterClient.GetSource(request);

### GetSource(SourceName, CallSettings)

    public virtual Source GetSource(SourceName name, CallSettings callSettings = null)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Relative resource name of the source. Its format is "organizations/\[organization_id\]/source/\[source_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    // Make the request
    Source response = securityCenterClient.GetSource(name);

### GetSource(string, CallSettings)

    public virtual Source GetSource(string name, CallSettings callSettings = null)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Relative resource name of the source. Its format is "organizations/\[organization_id\]/source/\[source_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    // Make the request
    Source response = securityCenterClient.GetSource(name);

### GetSourceAsync(GetSourceRequest, CallSettings)

    public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CallSettings callSettings = null)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetSourceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GetSourceRequest request = new GetSourceRequest
    {
        SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
    };
    // Make the request
    Source response = await securityCenterClient.GetSourceAsync(request);

### GetSourceAsync(GetSourceRequest, CancellationToken)

    public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GetSourceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GetSourceRequest request = new GetSourceRequest
    {
        SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
    };
    // Make the request
    Source response = await securityCenterClient.GetSourceAsync(request);

### GetSourceAsync(SourceName, CallSettings)

    public virtual Task<Source> GetSourceAsync(SourceName name, CallSettings callSettings = null)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Relative resource name of the source. Its format is "organizations/\[organization_id\]/source/\[source_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    // Make the request
    Source response = await securityCenterClient.GetSourceAsync(name);

### GetSourceAsync(SourceName, CancellationToken)

    public virtual Task<Source> GetSourceAsync(SourceName name, CancellationToken cancellationToken)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Relative resource name of the source. Its format is "organizations/\[organization_id\]/source/\[source_id\]". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    // Make the request
    Source response = await securityCenterClient.GetSourceAsync(name);

### GetSourceAsync(string, CallSettings)

    public virtual Task<Source> GetSourceAsync(string name, CallSettings callSettings = null)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Relative resource name of the source. Its format is "organizations/\[organization_id\]/source/\[source_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    // Make the request
    Source response = await securityCenterClient.GetSourceAsync(name);

### GetSourceAsync(string, CancellationToken)

    public virtual Task<Source> GetSourceAsync(string name, CancellationToken cancellationToken)

Gets a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Relative resource name of the source. Its format is "organizations/\[organization_id\]/source/\[source_id\]". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    // Make the request
    Source response = await securityCenterClient.GetSourceAsync(name);

### GroupAssets(GroupAssetsRequest, CallSettings)

    public virtual PagedEnumerable<GroupAssetsResponse, GroupResult> GroupAssets(GroupAssetsRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupAssetsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult` | A pageable sequence of [GroupResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    GroupAssetsRequest request = new GroupAssetsRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        Filter = "",
        GroupBy = "",
        CompareDuration = new Duration(),
        ReadTime = new Timestamp(),
    };
    // Make the request
    PagedEnumerable<GroupAssetsResponse, GroupResult> response = securityCenterClient.GroupAssets(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (GroupResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (GroupAssetsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (GroupResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<GroupResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (GroupResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### GroupAssetsAsync(GroupAssetsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<GroupAssetsResponse, GroupResult> GroupAssetsAsync(GroupAssetsRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupAssetsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult` | A pageable asynchronous sequence of [GroupResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GroupAssetsRequest request = new GroupAssetsRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        Filter = "",
        GroupBy = "",
        CompareDuration = new Duration(),
        ReadTime = new Timestamp(),
    };
    // Make the request
    PagedAsyncEnumerable<GroupAssetsResponse, GroupResult> response = securityCenterClient.GroupAssetsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((GroupResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((GroupAssetsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (GroupResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<GroupResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (GroupResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### GroupFindings(GroupFindingsRequest, CallSettings)

    public virtual PagedEnumerable<GroupFindingsResponse, GroupResult> GroupFindings(GroupFindingsRequest request, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupFindingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult` | A pageable sequence of [GroupResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    GroupFindingsRequest request = new GroupFindingsRequest
    {
        ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
        Filter = "",
        GroupBy = "",
        ReadTime = new Timestamp(),
        CompareDuration = new Duration(),
    };
    // Make the request
    PagedEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindings(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (GroupResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (GroupFindingsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (GroupResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<GroupResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (GroupResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### GroupFindings(SourceName, string, string, int?, CallSettings)

    public virtual PagedEnumerable<GroupFindingsResponse, GroupResult> GroupFindings(SourceName parent, string groupBy, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Name of the source to groupBy. Its format is "organizations/\[organization_id\]/sources/\[source_id\]", folders/\[folder_id\]/sources/\[source_id\], or projects/\[project_id\]/sources/\[source_id\]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/- |
| `groupBy` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Expression that defines what assets fields to use for grouping (including `state_change`). The string value should follow SQL syntax: comma separated list of fields. For example: "parent,resource_name". The following fields are supported: - resource_name - category - state - parent - severity The following fields are supported when compare_duration is set: - state_change |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult` | A pageable sequence of [GroupResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    string groupBy = "";
    // Make the request
    PagedEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindings(parent, groupBy);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (GroupResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (GroupFindingsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (GroupResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<GroupResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (GroupResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### GroupFindings(string, string, string, int?, CallSettings)

    public virtual PagedEnumerable<GroupFindingsResponse, GroupResult> GroupFindings(string parent, string groupBy, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the source to groupBy. Its format is "organizations/\[organization_id\]/sources/\[source_id\]", folders/\[folder_id\]/sources/\[source_id\], or projects/\[project_id\]/sources/\[source_id\]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/- |
| `groupBy` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Expression that defines what assets fields to use for grouping (including `state_change`). The string value should follow SQL syntax: comma separated list of fields. For example: "parent,resource_name". The following fields are supported: - resource_name - category - state - parent - severity The following fields are supported when compare_duration is set: - state_change |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult` | A pageable sequence of [GroupResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    string groupBy = "";
    // Make the request
    PagedEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindings(parent, groupBy);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (GroupResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (GroupFindingsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (GroupResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<GroupResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (GroupResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### GroupFindingsAsync(GroupFindingsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> GroupFindingsAsync(GroupFindingsRequest request, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupFindingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult` | A pageable asynchronous sequence of [GroupResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    GroupFindingsRequest request = new GroupFindingsRequest
    {
        ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
        Filter = "",
        GroupBy = "",
        ReadTime = new Timestamp(),
        CompareDuration = new Duration(),
    };
    // Make the request
    PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindingsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((GroupResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((GroupFindingsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (GroupResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<GroupResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (GroupResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### GroupFindingsAsync(SourceName, string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> GroupFindingsAsync(SourceName parent, string groupBy, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Name of the source to groupBy. Its format is "organizations/\[organization_id\]/sources/\[source_id\]", folders/\[folder_id\]/sources/\[source_id\], or projects/\[project_id\]/sources/\[source_id\]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/- |
| `groupBy` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Expression that defines what assets fields to use for grouping (including `state_change`). The string value should follow SQL syntax: comma separated list of fields. For example: "parent,resource_name". The following fields are supported: - resource_name - category - state - parent - severity The following fields are supported when compare_duration is set: - state_change |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult` | A pageable asynchronous sequence of [GroupResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    string groupBy = "";
    // Make the request
    PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindingsAsync(parent, groupBy);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((GroupResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((GroupFindingsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (GroupResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<GroupResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (GroupResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### GroupFindingsAsync(string, string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> GroupFindingsAsync(string parent, string groupBy, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the source to groupBy. Its format is "organizations/\[organization_id\]/sources/\[source_id\]", folders/\[folder_id\]/sources/\[source_id\], or projects/\[project_id\]/sources/\[source_id\]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/- |
| `groupBy` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Expression that defines what assets fields to use for grouping (including `state_change`). The string value should follow SQL syntax: comma separated list of fields. For example: "parent,resource_name". The following fields are supported: - resource_name - category - state - parent - severity The following fields are supported when compare_duration is set: - state_change |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult` | A pageable asynchronous sequence of [GroupResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.GroupResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    string groupBy = "";
    // Make the request
    PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindingsAsync(parent, groupBy);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((GroupResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((GroupFindingsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (GroupResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<GroupResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (GroupResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssets(FolderName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssets(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Name of the organization assets should belong to. Its format is "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    // Make the request
    PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssets(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (ListAssetsResponse.Types.ListAssetsResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListAssetsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssets(OrganizationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssets(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Name of the organization assets should belong to. Its format is "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssets(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (ListAssetsResponse.Types.ListAssetsResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListAssetsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssets(ProjectName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssets(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Name of the organization assets should belong to. Its format is "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssets(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (ListAssetsResponse.Types.ListAssetsResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListAssetsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssets(ListAssetsRequest, CallSettings)

    public virtual PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssets(ListAssetsRequest request, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    ListAssetsRequest request = new ListAssetsRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        Filter = "",
        OrderBy = "",
        ReadTime = new Timestamp(),
        CompareDuration = new Duration(),
        FieldMask = new FieldMask(),
    };
    // Make the request
    PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssets(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (ListAssetsResponse.Types.ListAssetsResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListAssetsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssets(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization assets should belong to. Its format is "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssets(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (ListAssetsResponse.Types.ListAssetsResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListAssetsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssetsAsync(FolderName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssetsAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Name of the organization assets should belong to. Its format is "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable asynchronous sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    // Make the request
    PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssetsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ListAssetsResponse.Types.ListAssetsResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssetsAsync(OrganizationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssetsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Name of the organization assets should belong to. Its format is "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable asynchronous sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssetsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ListAssetsResponse.Types.ListAssetsResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssetsAsync(ProjectName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssetsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Name of the organization assets should belong to. Its format is "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable asynchronous sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssetsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ListAssetsResponse.Types.ListAssetsResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssetsAsync(ListAssetsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssetsAsync(ListAssetsRequest request, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable asynchronous sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    ListAssetsRequest request = new ListAssetsRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
        Filter = "",
        OrderBy = "",
        ReadTime = new Timestamp(),
        CompareDuration = new Duration(),
        FieldMask = new FieldMask(),
    };
    // Make the request
    PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssetsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ListAssetsResponse.Types.ListAssetsResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAssetsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists an organization's assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization assets should belong to. Its format is "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult` | A pageable asynchronous sequence of [ListAssetsResponse.Types.ListAssetsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListAssetsResponse.Types.ListAssetsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssetsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ListAssetsResponse.Types.ListAssetsResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFindings(ListFindingsRequest, CallSettings)

    public virtual PagedEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> ListFindings(ListFindingsRequest request, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult` | A pageable sequence of [ListFindingsResponse.Types.ListFindingsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    ListFindingsRequest request = new ListFindingsRequest
    {
        ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
        Filter = "",
        OrderBy = "",
        ReadTime = new Timestamp(),
        CompareDuration = new Duration(),
        FieldMask = new FieldMask(),
    };
    // Make the request
    PagedEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> response = securityCenterClient.ListFindings(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (ListFindingsResponse.Types.ListFindingsResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListFindingsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListFindingsResponse.Types.ListFindingsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListFindingsResponse.Types.ListFindingsResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListFindingsResponse.Types.ListFindingsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFindings(SourceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> ListFindings(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Name of the source the findings belong to. Its format is "organizations/\[organization_id\]/sources/\[source_id\], folders/\[folder_id\]/sources/\[source_id\], or projects/\[project_id\]/sources/\[source_id\]". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult` | A pageable sequence of [ListFindingsResponse.Types.ListFindingsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    // Make the request
    PagedEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> response = securityCenterClient.ListFindings(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (ListFindingsResponse.Types.ListFindingsResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListFindingsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListFindingsResponse.Types.ListFindingsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListFindingsResponse.Types.ListFindingsResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListFindingsResponse.Types.ListFindingsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFindings(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> ListFindings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the source the findings belong to. Its format is "organizations/\[organization_id\]/sources/\[source_id\], folders/\[folder_id\]/sources/\[source_id\], or projects/\[project_id\]/sources/\[source_id\]". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult` | A pageable sequence of [ListFindingsResponse.Types.ListFindingsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    // Make the request
    PagedEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> response = securityCenterClient.ListFindings(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (ListFindingsResponse.Types.ListFindingsResult item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListFindingsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListFindingsResponse.Types.ListFindingsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListFindingsResponse.Types.ListFindingsResult> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListFindingsResponse.Types.ListFindingsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFindingsAsync(ListFindingsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> ListFindingsAsync(ListFindingsRequest request, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult` | A pageable asynchronous sequence of [ListFindingsResponse.Types.ListFindingsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    ListFindingsRequest request = new ListFindingsRequest
    {
        ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
        Filter = "",
        OrderBy = "",
        ReadTime = new Timestamp(),
        CompareDuration = new Duration(),
        FieldMask = new FieldMask(),
    };
    // Make the request
    PagedAsyncEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> response = securityCenterClient.ListFindingsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ListFindingsResponse.Types.ListFindingsResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListFindingsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListFindingsResponse.Types.ListFindingsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListFindingsResponse.Types.ListFindingsResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListFindingsResponse.Types.ListFindingsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFindingsAsync(SourceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> ListFindingsAsync(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SourceName` Required. Name of the source the findings belong to. Its format is "organizations/\[organization_id\]/sources/\[source_id\], folders/\[folder_id\]/sources/\[source_id\], or projects/\[project_id\]/sources/\[source_id\]". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult` | A pageable asynchronous sequence of [ListFindingsResponse.Types.ListFindingsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
    // Make the request
    PagedAsyncEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> response = securityCenterClient.ListFindingsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ListFindingsResponse.Types.ListFindingsResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListFindingsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListFindingsResponse.Types.ListFindingsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListFindingsResponse.Types.ListFindingsResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListFindingsResponse.Types.ListFindingsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFindingsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> ListFindingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the source the findings belong to. Its format is "organizations/\[organization_id\]/sources/\[source_id\], folders/\[folder_id\]/sources/\[source_id\], or projects/\[project_id\]/sources/\[source_id\]". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult` | A pageable asynchronous sequence of [ListFindingsResponse.Types.ListFindingsResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListFindingsResponse.Types.ListFindingsResult) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
    // Make the request
    PagedAsyncEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> response = securityCenterClient.ListFindingsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ListFindingsResponse.Types.ListFindingsResult item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListFindingsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (ListFindingsResponse.Types.ListFindingsResult item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<ListFindingsResponse.Types.ListFindingsResult> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (ListFindingsResponse.Types.ListFindingsResult item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListNotificationConfigs(OrganizationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigs(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists notification configs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Name of the organization to list notification configs. Its format is "organizations/\[organization_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListNotificationConfigsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A pageable sequence of [NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigs(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (NotificationConfig item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNotificationConfigsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (NotificationConfig item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<NotificationConfig> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (NotificationConfig item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListNotificationConfigs(ListNotificationConfigsRequest, CallSettings)

    public virtual PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigs(ListNotificationConfigsRequest request, CallSettings callSettings = null)

Lists notification configs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListNotificationConfigsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListNotificationConfigsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A pageable sequence of [NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    ListNotificationConfigsRequest request = new ListNotificationConfigsRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigs(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (NotificationConfig item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNotificationConfigsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (NotificationConfig item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<NotificationConfig> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (NotificationConfig item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListNotificationConfigs(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists notification configs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization to list notification configs. Its format is "organizations/\[organization_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListNotificationConfigsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A pageable sequence of [NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigs(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (NotificationConfig item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListNotificationConfigsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (NotificationConfig item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<NotificationConfig> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (NotificationConfig item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListNotificationConfigsAsync(OrganizationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists notification configs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Name of the organization to list notification configs. Its format is "organizations/\[organization_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListNotificationConfigsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A pageable asynchronous sequence of [NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((NotificationConfig item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNotificationConfigsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (NotificationConfig item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<NotificationConfig> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (NotificationConfig item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListNotificationConfigsAsync(ListNotificationConfigsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigsAsync(ListNotificationConfigsRequest request, CallSettings callSettings = null)

Lists notification configs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListNotificationConfigsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListNotificationConfigsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A pageable asynchronous sequence of [NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    ListNotificationConfigsRequest request = new ListNotificationConfigsRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((NotificationConfig item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNotificationConfigsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (NotificationConfig item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<NotificationConfig> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (NotificationConfig item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListNotificationConfigsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists notification configs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization to list notification configs. Its format is "organizations/\[organization_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListNotificationConfigsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A pageable asynchronous sequence of [NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((NotificationConfig item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListNotificationConfigsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (NotificationConfig item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<NotificationConfig> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (NotificationConfig item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSources(FolderName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Resource name of the parent of sources to list. Its format should be "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    // Make the request
    PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Source item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListSourcesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSources(OrganizationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the parent of sources to list. Its format should be "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Source item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListSourcesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSources(ProjectName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Resource name of the parent of sources to list. Its format should be "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Source item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListSourcesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSources(ListSourcesRequest, CallSettings)

    public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(ListSourcesRequest request, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    ListSourcesRequest request = new ListSourcesRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Source item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListSourcesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSources(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent of sources to list. Its format should be "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Source item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListSourcesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSourcesAsync(FolderName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Resource name of the parent of sources to list. Its format should be "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable asynchronous sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    // Make the request
    PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Source item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSourcesAsync(OrganizationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the parent of sources to list. Its format should be "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable asynchronous sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Source item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSourcesAsync(ProjectName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Resource name of the parent of sources to list. Its format should be "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable asynchronous sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Source item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSourcesAsync(ListSourcesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(ListSourcesRequest request, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable asynchronous sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    ListSourcesRequest request = new ListSourcesRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Source item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSourcesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all sources belonging to an organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent of sources to list. Its format should be "organizations/\[organization_id\], folders/\[folder_id\], or projects/\[project_id\]". |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.ListSourcesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A pageable asynchronous sequence of [Source](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source) resources. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Source item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Source item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Source> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Source item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### PollOnceRunAssetDiscovery(string, CallSettings)

    public virtual Operation<RunAssetDiscoveryResponse, Empty> PollOnceRunAssetDiscovery(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `RunAssetDiscovery`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The result of polling the operation. |

### PollOnceRunAssetDiscoveryAsync(string, CallSettings)

    public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> PollOnceRunAssetDiscoveryAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`RunAssetDiscovery`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | A task representing the result of polling the operation. |

### RunAssetDiscovery(OrganizationName, CallSettings)

    public virtual Operation<RunAssetDiscoveryResponse, Empty> RunAssetDiscovery(OrganizationName parent, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Name of the organization to run asset discovery for. Its format is "organizations/\[organization_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = securityCenterClient.RunAssetDiscovery(parent);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### RunAssetDiscovery(RunAssetDiscoveryRequest, CallSettings)

    public virtual Operation<RunAssetDiscoveryResponse, Empty> RunAssetDiscovery(RunAssetDiscoveryRequest request, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = securityCenterClient.RunAssetDiscovery(request);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### RunAssetDiscovery(string, CallSettings)

    public virtual Operation<RunAssetDiscoveryResponse, Empty> RunAssetDiscovery(string parent, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization to run asset discovery for. Its format is "organizations/\[organization_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = securityCenterClient.RunAssetDiscovery(parent);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### RunAssetDiscoveryAsync(OrganizationName, CallSettings)

    public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(OrganizationName parent, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Name of the organization to run asset discovery for. Its format is "organizations/\[organization_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(parent);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### RunAssetDiscoveryAsync(OrganizationName, CancellationToken)

    public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(OrganizationName parent, CancellationToken cancellationToken)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Name of the organization to run asset discovery for. Its format is "organizations/\[organization_id\]". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(parent);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### RunAssetDiscoveryAsync(RunAssetDiscoveryRequest, CallSettings)

    public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(RunAssetDiscoveryRequest request, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### RunAssetDiscoveryAsync(RunAssetDiscoveryRequest, CancellationToken)

    public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(RunAssetDiscoveryRequest request, CancellationToken cancellationToken)

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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest
    {
        ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    };
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### RunAssetDiscoveryAsync(string, CallSettings)

    public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(string parent, CallSettings callSettings = null)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization to run asset discovery for. Its format is "organizations/\[organization_id\]". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(parent);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### RunAssetDiscoveryAsync(string, CancellationToken)

    public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(string parent, CancellationToken cancellationToken)

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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the organization to run asset discovery for. Its format is "organizations/\[organization_id\]". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]";
    // Make the request
    Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(parent);

    // Poll until the returned long-running operation is complete
    Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    RunAssetDiscoveryResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
    }

### SetFindingState(FindingName, State, Timestamp, CallSettings)

    public virtual Finding SetFindingState(FindingName name, Finding.Types.State state, Timestamp startTime, CallSettings callSettings = null)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.FindingName` Required. The relative resource name of the finding. See: <https://cloud.google.com/apis/design/resource_names#relative_resource_name> Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". |
| `state` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Findinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State` Required. The desired State of the finding. |
| `startTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The time at which the updated state takes effect. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
    Finding.Types.State state = Finding.Types.State.Unspecified;
    Timestamp startTime = new Timestamp();
    // Make the request
    Finding response = securityCenterClient.SetFindingState(name, state, startTime);

### SetFindingState(SetFindingStateRequest, CallSettings)

    public virtual Finding SetFindingState(SetFindingStateRequest request, CallSettings callSettings = null)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SetFindingStateRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SetFindingStateRequest request = new SetFindingStateRequest
    {
        FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
        State = Finding.Types.State.Unspecified,
        StartTime = new Timestamp(),
    };
    // Make the request
    Finding response = securityCenterClient.SetFindingState(request);

### SetFindingState(string, State, Timestamp, CallSettings)

    public virtual Finding SetFindingState(string name, Finding.Types.State state, Timestamp startTime, CallSettings callSettings = null)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The relative resource name of the finding. See: <https://cloud.google.com/apis/design/resource_names#relative_resource_name> Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". |
| `state` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Findinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State` Required. The desired State of the finding. |
| `startTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The time at which the updated state takes effect. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
    Finding.Types.State state = Finding.Types.State.Unspecified;
    Timestamp startTime = new Timestamp();
    // Make the request
    Finding response = securityCenterClient.SetFindingState(name, state, startTime);

### SetFindingStateAsync(FindingName, State, Timestamp, CallSettings)

    public virtual Task<Finding> SetFindingStateAsync(FindingName name, Finding.Types.State state, Timestamp startTime, CallSettings callSettings = null)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.FindingName` Required. The relative resource name of the finding. See: <https://cloud.google.com/apis/design/resource_names#relative_resource_name> Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". |
| `state` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Findinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State` Required. The desired State of the finding. |
| `startTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The time at which the updated state takes effect. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
    Finding.Types.State state = Finding.Types.State.Unspecified;
    Timestamp startTime = new Timestamp();
    // Make the request
    Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime);

### SetFindingStateAsync(FindingName, State, Timestamp, CancellationToken)

    public virtual Task<Finding> SetFindingStateAsync(FindingName name, Finding.Types.State state, Timestamp startTime, CancellationToken cancellationToken)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.FindingName` Required. The relative resource name of the finding. See: <https://cloud.google.com/apis/design/resource_names#relative_resource_name> Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". |
| `state` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Findinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State` Required. The desired State of the finding. |
| `startTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The time at which the updated state takes effect. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
    Finding.Types.State state = Finding.Types.State.Unspecified;
    Timestamp startTime = new Timestamp();
    // Make the request
    Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime);

### SetFindingStateAsync(SetFindingStateRequest, CallSettings)

    public virtual Task<Finding> SetFindingStateAsync(SetFindingStateRequest request, CallSettings callSettings = null)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SetFindingStateRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SetFindingStateRequest request = new SetFindingStateRequest
    {
        FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
        State = Finding.Types.State.Unspecified,
        StartTime = new Timestamp(),
    };
    // Make the request
    Finding response = await securityCenterClient.SetFindingStateAsync(request);

### SetFindingStateAsync(SetFindingStateRequest, CancellationToken)

    public virtual Task<Finding> SetFindingStateAsync(SetFindingStateRequest request, CancellationToken cancellationToken)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SetFindingStateRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SetFindingStateRequest request = new SetFindingStateRequest
    {
        FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
        State = Finding.Types.State.Unspecified,
        StartTime = new Timestamp(),
    };
    // Make the request
    Finding response = await securityCenterClient.SetFindingStateAsync(request);

### SetFindingStateAsync(string, State, Timestamp, CallSettings)

    public virtual Task<Finding> SetFindingStateAsync(string name, Finding.Types.State state, Timestamp startTime, CallSettings callSettings = null)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The relative resource name of the finding. See: <https://cloud.google.com/apis/design/resource_names#relative_resource_name> Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". |
| `state` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Findinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State` Required. The desired State of the finding. |
| `startTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The time at which the updated state takes effect. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
    Finding.Types.State state = Finding.Types.State.Unspecified;
    Timestamp startTime = new Timestamp();
    // Make the request
    Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime);

### SetFindingStateAsync(string, State, Timestamp, CancellationToken)

    public virtual Task<Finding> SetFindingStateAsync(string name, Finding.Types.State state, Timestamp startTime, CancellationToken cancellationToken)

Updates the state of a finding.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The relative resource name of the finding. See: <https://cloud.google.com/apis/design/resource_names#relative_resource_name> Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". |
| `state` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Findinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State` Required. The desired State of the finding. |
| `startTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The time at which the updated state takes effect. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
    Finding.Types.State state = Finding.Types.State.Unspecified;
    Timestamp startTime = new Timestamp();
    // Make the request
    Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime);

### SetIamPolicy(IResourceName, Policy, CallSettings)

    public virtual Policy SetIamPolicy(IResourceName resource, Policy policy, CallSettings callSettings = null)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    Policy policy = new Policy();
    // Make the request
    Policy response = securityCenterClient.SetIamPolicy(resource, policy);

### SetIamPolicy(SetIamPolicyRequest, CallSettings)

    public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = securityCenterClient.SetIamPolicy(request);

### SetIamPolicy(string, Policy, CallSettings)

    public virtual Policy SetIamPolicy(string resource, Policy policy, CallSettings callSettings = null)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    Policy policy = new Policy();
    // Make the request
    Policy response = securityCenterClient.SetIamPolicy(resource, policy);

### SetIamPolicyAsync(IResourceName, Policy, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(IResourceName resource, Policy policy, CallSettings callSettings = null)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    Policy policy = new Policy();
    // Make the request
    Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy);

### SetIamPolicyAsync(IResourceName, Policy, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(IResourceName resource, Policy policy, CancellationToken cancellationToken)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    Policy policy = new Policy();
    // Make the request
    Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy);

### SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = await securityCenterClient.SetIamPolicyAsync(request);

### SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = await securityCenterClient.SetIamPolicyAsync(request);

### SetIamPolicyAsync(string, Policy, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(string resource, Policy policy, CallSettings callSettings = null)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    Policy policy = new Policy();
    // Make the request
    Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy);

### SetIamPolicyAsync(string, Policy, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(string resource, Policy policy, CancellationToken cancellationToken)

Sets the access control policy on the specified Source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    Policy policy = new Policy();
    // Make the request
    Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient#Google_Cloud_SecurityCenter_V1P1Beta1_SecurityCenterClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient#Google_Cloud_SecurityCenter_V1P1Beta1_SecurityCenterClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient#Google_Cloud_SecurityCenter_V1P1Beta1_SecurityCenterClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityCenterClient#Google_Cloud_SecurityCenter_V1P1Beta1_SecurityCenterClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### TestIamPermissions(IResourceName, IEnumerable\<string\>, CallSettings)

    public virtual TestIamPermissionsResponse TestIamPermissions(IResourceName resource, IEnumerable<string> permissions, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(resource, permissions);

### TestIamPermissions(TestIamPermissionsRequest, CallSettings)

    public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    TestIamPermissionsRequest request = new TestIamPermissionsRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Permissions = { "", },
    };
    // Make the request
    TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(request);

### TestIamPermissions(string, IEnumerable\<string\>, CallSettings)

    public virtual TestIamPermissionsResponse TestIamPermissions(string resource, IEnumerable<string> permissions, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(resource, permissions);

### TestIamPermissionsAsync(IResourceName, IEnumerable\<string\>, CallSettings)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(IResourceName resource, IEnumerable<string> permissions, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions);

### TestIamPermissionsAsync(IResourceName, IEnumerable\<string\>, CancellationToken)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(IResourceName resource, IEnumerable<string> permissions, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions);

### TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    TestIamPermissionsRequest request = new TestIamPermissionsRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Permissions = { "", },
    };
    // Make the request
    TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(request);

### TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    TestIamPermissionsRequest request = new TestIamPermissionsRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Permissions = { "", },
    };
    // Make the request
    TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(request);

### TestIamPermissionsAsync(string, IEnumerable\<string\>, CallSettings)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(string resource, IEnumerable<string> permissions, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions);

### TestIamPermissionsAsync(string, IEnumerable\<string\>, CancellationToken)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(string resource, IEnumerable<string> permissions, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions);

### UpdateFinding(Finding, CallSettings)

    public virtual Finding UpdateFinding(Finding finding, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    Finding finding = new Finding();
    // Make the request
    Finding response = securityCenterClient.UpdateFinding(finding);

### UpdateFinding(Finding, FieldMask, CallSettings)

    public virtual Finding UpdateFinding(Finding finding, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using "source_properties.\<property key\>" in the field mask. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    Finding finding = new Finding();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Finding response = securityCenterClient.UpdateFinding(finding, updateMask);

### UpdateFinding(UpdateFindingRequest, CallSettings)

    public virtual Finding UpdateFinding(UpdateFindingRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateFindingRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    UpdateFindingRequest request = new UpdateFindingRequest
    {
        Finding = new Finding(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Finding response = securityCenterClient.UpdateFinding(request);

### UpdateFindingAsync(Finding, CallSettings)

    public virtual Task<Finding> UpdateFindingAsync(Finding finding, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    Finding finding = new Finding();
    // Make the request
    Finding response = await securityCenterClient.UpdateFindingAsync(finding);

### UpdateFindingAsync(Finding, FieldMask, CallSettings)

    public virtual Task<Finding> UpdateFindingAsync(Finding finding, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using "source_properties.\<property key\>" in the field mask. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    Finding finding = new Finding();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Finding response = await securityCenterClient.UpdateFindingAsync(finding, updateMask);

### UpdateFindingAsync(Finding, FieldMask, CancellationToken)

    public virtual Task<Finding> UpdateFindingAsync(Finding finding, FieldMask updateMask, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using "source_properties.\<property key\>" in the field mask. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    Finding finding = new Finding();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Finding response = await securityCenterClient.UpdateFindingAsync(finding, updateMask);

### UpdateFindingAsync(Finding, CancellationToken)

    public virtual Task<Finding> UpdateFindingAsync(Finding finding, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `finding` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    Finding finding = new Finding();
    // Make the request
    Finding response = await securityCenterClient.UpdateFindingAsync(finding);

### UpdateFindingAsync(UpdateFindingRequest, CallSettings)

    public virtual Task<Finding> UpdateFindingAsync(UpdateFindingRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateFindingRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateFindingRequest request = new UpdateFindingRequest
    {
        Finding = new Finding(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Finding response = await securityCenterClient.UpdateFindingAsync(request);

### UpdateFindingAsync(UpdateFindingRequest, CancellationToken)

    public virtual Task<Finding> UpdateFindingAsync(UpdateFindingRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateFindingRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Finding` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateFindingRequest request = new UpdateFindingRequest
    {
        Finding = new Finding(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Finding response = await securityCenterClient.UpdateFindingAsync(request);

### UpdateNotificationConfig(NotificationConfig, CallSettings)

    public virtual NotificationConfig UpdateNotificationConfig(NotificationConfig notificationConfig, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = securityCenterClient.UpdateNotificationConfig(notificationConfig);

### UpdateNotificationConfig(NotificationConfig, FieldMask, CallSettings)

    public virtual NotificationConfig UpdateNotificationConfig(NotificationConfig notificationConfig, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    NotificationConfig notificationConfig = new NotificationConfig();
    FieldMask updateMask = new FieldMask();
    // Make the request
    NotificationConfig response = securityCenterClient.UpdateNotificationConfig(notificationConfig, updateMask);

### UpdateNotificationConfig(UpdateNotificationConfigRequest, CallSettings)

    public virtual NotificationConfig UpdateNotificationConfig(UpdateNotificationConfigRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest
    {
        NotificationConfig = new NotificationConfig(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    NotificationConfig response = securityCenterClient.UpdateNotificationConfig(request);

### UpdateNotificationConfigAsync(NotificationConfig, CallSettings)

    public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(NotificationConfig notificationConfig, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig);

### UpdateNotificationConfigAsync(NotificationConfig, FieldMask, CallSettings)

    public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(NotificationConfig notificationConfig, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    NotificationConfig notificationConfig = new NotificationConfig();
    FieldMask updateMask = new FieldMask();
    // Make the request
    NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig, updateMask);

### UpdateNotificationConfigAsync(NotificationConfig, FieldMask, CancellationToken)

    public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(NotificationConfig notificationConfig, FieldMask updateMask, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    NotificationConfig notificationConfig = new NotificationConfig();
    FieldMask updateMask = new FieldMask();
    // Make the request
    NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig, updateMask);

### UpdateNotificationConfigAsync(NotificationConfig, CancellationToken)

    public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(NotificationConfig notificationConfig, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `notificationConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` Required. The notification config to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    NotificationConfig notificationConfig = new NotificationConfig();
    // Make the request
    NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig);

### UpdateNotificationConfigAsync(UpdateNotificationConfigRequest, CallSettings)

    public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(UpdateNotificationConfigRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest
    {
        NotificationConfig = new NotificationConfig(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(request);

### UpdateNotificationConfigAsync(UpdateNotificationConfigRequest, CancellationToken)

    public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(UpdateNotificationConfigRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateNotificationConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest
    {
        NotificationConfig = new NotificationConfig(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(request);

### UpdateOrganizationSettings(OrganizationSettings, CallSettings)

    public virtual OrganizationSettings UpdateOrganizationSettings(OrganizationSettings organizationSettings, CallSettings callSettings = null)

Updates an organization's settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `organizationSettings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` Required. The organization settings resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    OrganizationSettings organizationSettings = new OrganizationSettings();
    // Make the request
    OrganizationSettings response = securityCenterClient.UpdateOrganizationSettings(organizationSettings);

### UpdateOrganizationSettings(UpdateOrganizationSettingsRequest, CallSettings)

    public virtual OrganizationSettings UpdateOrganizationSettings(UpdateOrganizationSettingsRequest request, CallSettings callSettings = null)

Updates an organization's settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateOrganizationSettingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest
    {
        OrganizationSettings = new OrganizationSettings(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    OrganizationSettings response = securityCenterClient.UpdateOrganizationSettings(request);

### UpdateOrganizationSettingsAsync(OrganizationSettings, CallSettings)

    public virtual Task<OrganizationSettings> UpdateOrganizationSettingsAsync(OrganizationSettings organizationSettings, CallSettings callSettings = null)

Updates an organization's settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `organizationSettings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` Required. The organization settings resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationSettings organizationSettings = new OrganizationSettings();
    // Make the request
    OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(organizationSettings);

### UpdateOrganizationSettingsAsync(OrganizationSettings, CancellationToken)

    public virtual Task<OrganizationSettings> UpdateOrganizationSettingsAsync(OrganizationSettings organizationSettings, CancellationToken cancellationToken)

Updates an organization's settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `organizationSettings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` Required. The organization settings resource to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationSettings organizationSettings = new OrganizationSettings();
    // Make the request
    OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(organizationSettings);

### UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest, CallSettings)

    public virtual Task<OrganizationSettings> UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest request, CallSettings callSettings = null)

Updates an organization's settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateOrganizationSettingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest
    {
        OrganizationSettings = new OrganizationSettings(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(request);

### UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest, CancellationToken)

    public virtual Task<OrganizationSettings> UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest request, CancellationToken cancellationToken)

Updates an organization's settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateOrganizationSettingsRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest
    {
        OrganizationSettings = new OrganizationSettings(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(request);

### UpdateSecurityMarks(SecurityMarks, CallSettings)

    public virtual SecurityMarks UpdateSecurityMarks(SecurityMarks securityMarks, CallSettings callSettings = null)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityMarks` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` Required. The security marks resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SecurityMarks securityMarks = new SecurityMarks();
    // Make the request
    SecurityMarks response = securityCenterClient.UpdateSecurityMarks(securityMarks);

### UpdateSecurityMarks(SecurityMarks, FieldMask, CallSettings)

    public virtual SecurityMarks UpdateSecurityMarks(SecurityMarks securityMarks, FieldMask updateMask, CallSettings callSettings = null)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityMarks` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` Required. The security marks resource to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to "marks", all marks will be replaced. Individual marks can be updated using "marks.\<mark_key\>". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    SecurityMarks securityMarks = new SecurityMarks();
    FieldMask updateMask = new FieldMask();
    // Make the request
    SecurityMarks response = securityCenterClient.UpdateSecurityMarks(securityMarks, updateMask);

### UpdateSecurityMarks(UpdateSecurityMarksRequest, CallSettings)

    public virtual SecurityMarks UpdateSecurityMarks(UpdateSecurityMarksRequest request, CallSettings callSettings = null)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateSecurityMarksRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest
    {
        SecurityMarks = new SecurityMarks(),
        UpdateMask = new FieldMask(),
        StartTime = new Timestamp(),
    };
    // Make the request
    SecurityMarks response = securityCenterClient.UpdateSecurityMarks(request);

### UpdateSecurityMarksAsync(SecurityMarks, CallSettings)

    public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(SecurityMarks securityMarks, CallSettings callSettings = null)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityMarks` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` Required. The security marks resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SecurityMarks securityMarks = new SecurityMarks();
    // Make the request
    SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(securityMarks);

### UpdateSecurityMarksAsync(SecurityMarks, FieldMask, CallSettings)

    public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(SecurityMarks securityMarks, FieldMask updateMask, CallSettings callSettings = null)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityMarks` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` Required. The security marks resource to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to "marks", all marks will be replaced. Individual marks can be updated using "marks.\<mark_key\>". |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SecurityMarks securityMarks = new SecurityMarks();
    FieldMask updateMask = new FieldMask();
    // Make the request
    SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(securityMarks, updateMask);

### UpdateSecurityMarksAsync(SecurityMarks, FieldMask, CancellationToken)

    public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(SecurityMarks securityMarks, FieldMask updateMask, CancellationToken cancellationToken)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityMarks` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` Required. The security marks resource to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to "marks", all marks will be replaced. Individual marks can be updated using "marks.\<mark_key\>". |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SecurityMarks securityMarks = new SecurityMarks();
    FieldMask updateMask = new FieldMask();
    // Make the request
    SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(securityMarks, updateMask);

### UpdateSecurityMarksAsync(SecurityMarks, CancellationToken)

    public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(SecurityMarks securityMarks, CancellationToken cancellationToken)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityMarks` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` Required. The security marks resource to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    SecurityMarks securityMarks = new SecurityMarks();
    // Make the request
    SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(securityMarks);

### UpdateSecurityMarksAsync(UpdateSecurityMarksRequest, CallSettings)

    public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(UpdateSecurityMarksRequest request, CallSettings callSettings = null)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateSecurityMarksRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest
    {
        SecurityMarks = new SecurityMarks(),
        UpdateMask = new FieldMask(),
        StartTime = new Timestamp(),
    };
    // Make the request
    SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(request);

### UpdateSecurityMarksAsync(UpdateSecurityMarksRequest, CancellationToken)

    public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(UpdateSecurityMarksRequest request, CancellationToken cancellationToken)

Updates security marks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateSecurityMarksRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest
    {
        SecurityMarks = new SecurityMarks(),
        UpdateMask = new FieldMask(),
        StartTime = new Timestamp(),
    };
    // Make the request
    SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(request);

### UpdateSource(Source, CallSettings)

    public virtual Source UpdateSource(Source source, CallSettings callSettings = null)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The source resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    Source source = new Source();
    // Make the request
    Source response = securityCenterClient.UpdateSource(source);

### UpdateSource(Source, FieldMask, CallSettings)

    public virtual Source UpdateSource(Source source, FieldMask updateMask, CallSettings callSettings = null)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The source resource to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the source resource. If empty all mutable fields will be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    Source source = new Source();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Source response = securityCenterClient.UpdateSource(source, updateMask);

### UpdateSource(UpdateSourceRequest, CallSettings)

    public virtual Source UpdateSource(UpdateSourceRequest request, CallSettings callSettings = null)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateSourceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | The RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
    // Initialize request argument(s)
    UpdateSourceRequest request = new UpdateSourceRequest
    {
        Source = new Source(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Source response = securityCenterClient.UpdateSource(request);

### UpdateSourceAsync(Source, CallSettings)

    public virtual Task<Source> UpdateSourceAsync(Source source, CallSettings callSettings = null)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The source resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    Source source = new Source();
    // Make the request
    Source response = await securityCenterClient.UpdateSourceAsync(source);

### UpdateSourceAsync(Source, FieldMask, CallSettings)

    public virtual Task<Source> UpdateSourceAsync(Source source, FieldMask updateMask, CallSettings callSettings = null)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The source resource to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the source resource. If empty all mutable fields will be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    Source source = new Source();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Source response = await securityCenterClient.UpdateSourceAsync(source, updateMask);

### UpdateSourceAsync(Source, FieldMask, CancellationToken)

    public virtual Task<Source> UpdateSourceAsync(Source source, FieldMask updateMask, CancellationToken cancellationToken)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The source resource to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The FieldMask to use when updating the source resource. If empty all mutable fields will be updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    Source source = new Source();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Source response = await securityCenterClient.UpdateSourceAsync(source, updateMask);

### UpdateSourceAsync(Source, CancellationToken)

    public virtual Task<Source> UpdateSourceAsync(Source source, CancellationToken cancellationToken)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `source` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` Required. The source resource to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    Source source = new Source();
    // Make the request
    Source response = await securityCenterClient.UpdateSourceAsync(source);

### UpdateSourceAsync(UpdateSourceRequest, CallSettings)

    public virtual Task<Source> UpdateSourceAsync(UpdateSourceRequest request, CallSettings callSettings = null)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateSourceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateSourceRequest request = new UpdateSourceRequest
    {
        Source = new Source(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Source response = await securityCenterClient.UpdateSourceAsync(request);

### UpdateSourceAsync(UpdateSourceRequest, CancellationToken)

    public virtual Task<Source> UpdateSourceAsync(UpdateSourceRequest request, CancellationToken cancellationToken)

Updates a source.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.UpdateSourceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.Source` | A Task containing the RPC response. |

**Example**

    // Create client
    SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
    // Initialize request argument(s)
    UpdateSourceRequest request = new UpdateSourceRequest
    {
        Source = new Source(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Source response = await securityCenterClient.UpdateSourceAsync(request);