Google Cloud Security Command Center v1 API - Class SecurityCenterClient (3.12.0)

public abstract class SecurityCenterClient

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

SecurityCenter client wrapper, for convenient use.

Inheritance

object > SecurityCenterClient

Derived Types

Namespace

Google.Cloud.SecurityCenter.V1

Assembly

Google.Cloud.SecurityCenter.V1.dll

Remarks

V1 APIs for Security Center service.

Properties

BulkMuteFindingsOperationsClient

public virtual OperationsClient BulkMuteFindingsOperationsClient { get; }

The long-running operations client for BulkMuteFindings.

Property Value
TypeDescription
OperationsClient

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
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default SecurityCenter scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default SecurityCenter scopes are:

GrpcClient

public virtual SecurityCenter.SecurityCenterClient GrpcClient { get; }

The underlying gRPC SecurityCenter client

Property Value
TypeDescription
SecurityCenterSecurityCenterClient

RunAssetDiscoveryOperationsClient

public virtual OperationsClient RunAssetDiscoveryOperationsClient { get; }

The long-running operations client for RunAssetDiscovery.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

BulkMuteFindings(IResourceName, CallSettings)

public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(IResourceName parent, CallSettings callSettings = null)

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
parentIResourceName

Required. The parent, at which bulk action needs to be applied. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationBulkMuteFindingsResponseEmpty

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(parent);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

BulkMuteFindings(BulkMuteFindingsRequest, CallSettings)

public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(BulkMuteFindingsRequest request, CallSettings callSettings = null)

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
requestBulkMuteFindingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationBulkMuteFindingsResponseEmpty

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
    ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Filter = "",
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(request);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

BulkMuteFindings(string, CallSettings)

public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(string parent, CallSettings callSettings = null)

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
parentstring

Required. The parent, at which bulk action needs to be applied. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationBulkMuteFindingsResponseEmpty

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(parent);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

BulkMuteFindingsAsync(IResourceName, CallSettings)

public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(IResourceName parent, CallSettings callSettings = null)

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
parentIResourceName

Required. The parent, at which bulk action needs to be applied. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationBulkMuteFindingsResponseEmpty

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

BulkMuteFindingsAsync(IResourceName, CancellationToken)

public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(IResourceName parent, CancellationToken cancellationToken)

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
parentIResourceName

Required. The parent, at which bulk action needs to be applied. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationBulkMuteFindingsResponseEmpty

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

BulkMuteFindingsAsync(BulkMuteFindingsRequest, CallSettings)

public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(BulkMuteFindingsRequest request, CallSettings callSettings = null)

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
requestBulkMuteFindingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationBulkMuteFindingsResponseEmpty

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
    ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Filter = "",
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

BulkMuteFindingsAsync(BulkMuteFindingsRequest, CancellationToken)

public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(BulkMuteFindingsRequest request, CancellationToken cancellationToken)

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
requestBulkMuteFindingsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationBulkMuteFindingsResponseEmpty

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
    ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Filter = "",
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

BulkMuteFindingsAsync(string, CallSettings)

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

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
parentstring

Required. The parent, at which bulk action needs to be applied. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationBulkMuteFindingsResponseEmpty

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

BulkMuteFindingsAsync(string, CancellationToken)

public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(string parent, CancellationToken cancellationToken)

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

Parameters
NameDescription
parentstring

Required. The parent, at which bulk action needs to be applied. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationBulkMuteFindingsResponseEmpty

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse 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<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}

Create()

public static SecurityCenterClient Create()

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

Returns
TypeDescription
SecurityCenterClient

The created SecurityCenterClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskSecurityCenterClient

The task representing the created SecurityCenterClient.

CreateBigQueryExport(FolderName, BigQueryExport, string, CallSettings)

public virtual BigQueryExport CreateBigQueryExport(FolderName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
parentFolderName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BigQueryExport

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExport(OrganizationName, BigQueryExport, string, CallSettings)

public virtual BigQueryExport CreateBigQueryExport(OrganizationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
parentOrganizationName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BigQueryExport

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExport(ProjectName, BigQueryExport, string, CallSettings)

public virtual BigQueryExport CreateBigQueryExport(ProjectName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
parentProjectName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BigQueryExport

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExport(CreateBigQueryExportRequest, CallSettings)

public virtual BigQueryExport CreateBigQueryExport(CreateBigQueryExportRequest request, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
requestCreateBigQueryExportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BigQueryExport

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    BigQueryExport = new BigQueryExport(),
    BigQueryExportId = "",
};
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(request);

CreateBigQueryExport(string, BigQueryExport, string, CallSettings)

public virtual BigQueryExport CreateBigQueryExport(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
parentstring

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BigQueryExport

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExportAsync(FolderName, BigQueryExport, string, CallSettings)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(FolderName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
parentFolderName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExportAsync(FolderName, BigQueryExport, string, CancellationToken)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(FolderName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)

Creates a BigQuery export.

Parameters
NameDescription
parentFolderName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExportAsync(OrganizationName, BigQueryExport, string, CallSettings)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(OrganizationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
parentOrganizationName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExportAsync(OrganizationName, BigQueryExport, string, CancellationToken)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(OrganizationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)

Creates a BigQuery export.

Parameters
NameDescription
parentOrganizationName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExportAsync(ProjectName, BigQueryExport, string, CallSettings)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(ProjectName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
parentProjectName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExportAsync(ProjectName, BigQueryExport, string, CancellationToken)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(ProjectName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)

Creates a BigQuery export.

Parameters
NameDescription
parentProjectName

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExportAsync(CreateBigQueryExportRequest, CallSettings)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(CreateBigQueryExportRequest request, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
requestCreateBigQueryExportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    BigQueryExport = new BigQueryExport(),
    BigQueryExportId = "",
};
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(request);

CreateBigQueryExportAsync(CreateBigQueryExportRequest, CancellationToken)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(CreateBigQueryExportRequest request, CancellationToken cancellationToken)

Creates a BigQuery export.

Parameters
NameDescription
requestCreateBigQueryExportRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    BigQueryExport = new BigQueryExport(),
    BigQueryExportId = "",
};
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(request);

CreateBigQueryExportAsync(string, BigQueryExport, string, CallSettings)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)

Creates a BigQuery export.

Parameters
NameDescription
parentstring

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);

CreateBigQueryExportAsync(string, BigQueryExport, string, CancellationToken)

public virtual Task<BigQueryExport> CreateBigQueryExportAsync(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)

Creates a BigQuery export.

Parameters
NameDescription
parentstring

Required. The name of the parent resource of the new BigQuery export. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

bigQueryExportBigQueryExport

Required. The BigQuery export being created.

bigQueryExportIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);

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
NameDescription
requestCreateFindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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, 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
NameDescription
parentSourceName

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

findingIdstring

Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

findingFinding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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, 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
NameDescription
parentstring

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

findingIdstring

Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

findingFinding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateFindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFinding

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
NameDescription
requestCreateFindingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFinding

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, 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
NameDescription
parentSourceName

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

findingIdstring

Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

findingFinding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFinding

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
NameDescription
parentSourceName

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

findingIdstring

Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

findingFinding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFinding

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, 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
NameDescription
parentstring

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

findingIdstring

Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

findingFinding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFinding

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
NameDescription
parentstring

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

findingIdstring

Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.

findingFinding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFinding

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

CreateMuteConfig(FolderName, MuteConfig, CallSettings)

public virtual MuteConfig CreateMuteConfig(FolderName parent, MuteConfig muteConfig, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);

CreateMuteConfig(FolderName, MuteConfig, string, CallSettings)

public virtual MuteConfig CreateMuteConfig(FolderName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);

CreateMuteConfig(OrganizationName, MuteConfig, CallSettings)

public virtual MuteConfig CreateMuteConfig(OrganizationName parent, MuteConfig muteConfig, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);

CreateMuteConfig(OrganizationName, MuteConfig, string, CallSettings)

public virtual MuteConfig CreateMuteConfig(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);

CreateMuteConfig(ProjectName, MuteConfig, CallSettings)

public virtual MuteConfig CreateMuteConfig(ProjectName parent, MuteConfig muteConfig, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);

CreateMuteConfig(ProjectName, MuteConfig, string, CallSettings)

public virtual MuteConfig CreateMuteConfig(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);

CreateMuteConfig(CreateMuteConfigRequest, CallSettings)

public virtual MuteConfig CreateMuteConfig(CreateMuteConfigRequest request, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
requestCreateMuteConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    MuteConfig = new MuteConfig(),
    MuteConfigId = "",
};
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(request);

CreateMuteConfig(string, MuteConfig, CallSettings)

public virtual MuteConfig CreateMuteConfig(string parent, MuteConfig muteConfig, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentstring

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);

CreateMuteConfig(string, MuteConfig, string, CallSettings)

public virtual MuteConfig CreateMuteConfig(string parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentstring

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(FolderName, MuteConfig, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);

CreateMuteConfigAsync(FolderName, MuteConfig, string, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(FolderName, MuteConfig, string, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(FolderName, MuteConfig, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);

CreateMuteConfigAsync(OrganizationName, MuteConfig, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

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

CreateMuteConfigAsync(OrganizationName, MuteConfig, string, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(OrganizationName, MuteConfig, string, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(OrganizationName, MuteConfig, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

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

CreateMuteConfigAsync(ProjectName, MuteConfig, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);

CreateMuteConfigAsync(ProjectName, MuteConfig, string, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(ProjectName, MuteConfig, string, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(ProjectName, MuteConfig, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);

CreateMuteConfigAsync(CreateMuteConfigRequest, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(CreateMuteConfigRequest request, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
requestCreateMuteConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    MuteConfig = new MuteConfig(),
    MuteConfigId = "",
};
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(request);

CreateMuteConfigAsync(CreateMuteConfigRequest, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(CreateMuteConfigRequest request, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
requestCreateMuteConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    MuteConfig = new MuteConfig(),
    MuteConfigId = "",
};
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(request);

CreateMuteConfigAsync(string, MuteConfig, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentstring

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

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

CreateMuteConfigAsync(string, MuteConfig, string, CallSettings)

public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)

Creates a mute config.

Parameters
NameDescription
parentstring

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(string, MuteConfig, string, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
parentstring

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

muteConfigIdstring

Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);

CreateMuteConfigAsync(string, MuteConfig, CancellationToken)

public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, CancellationToken cancellationToken)

Creates a mute config.

Parameters
NameDescription
parentstring

Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

muteConfigMuteConfig

Required. The mute config being created.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

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

CreateNotificationConfig(FolderName, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NotificationConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig);

CreateNotificationConfig(FolderName, string, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NotificationConfig

The RPC response.

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

CreateNotificationConfig(OrganizationName, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentOrganizationName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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(ProjectName, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NotificationConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig);

CreateNotificationConfig(ProjectName, string, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NotificationConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
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
NameDescription
requestCreateNotificationConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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(FolderName, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

A Task containing the RPC response.

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

CreateNotificationConfigAsync(FolderName, NotificationConfig, CancellationToken)

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

Creates a notification config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

A Task containing the RPC response.

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

CreateNotificationConfigAsync(FolderName, string, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

A Task containing the RPC response.

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

CreateNotificationConfigAsync(FolderName, string, NotificationConfig, CancellationToken)

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

Creates a notification config.

Parameters
NameDescription
parentFolderName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

A Task containing the RPC response.

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

CreateNotificationConfigAsync(OrganizationName, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

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
NameDescription
parentOrganizationName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

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
NameDescription
parentOrganizationName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

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
NameDescription
parentOrganizationName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

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(ProjectName, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

A Task containing the RPC response.

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

CreateNotificationConfigAsync(ProjectName, NotificationConfig, CancellationToken)

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

Creates a notification config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

A Task containing the RPC response.

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

CreateNotificationConfigAsync(ProjectName, string, NotificationConfig, CallSettings)

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

Creates a notification config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

A Task containing the RPC response.

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

CreateNotificationConfigAsync(ProjectName, string, NotificationConfig, CancellationToken)

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

Creates a notification config.

Parameters
NameDescription
parentProjectName

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
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
NameDescription
requestCreateNotificationConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

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
NameDescription
requestCreateNotificationConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

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
NameDescription
parentstring

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

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
NameDescription
parentstring

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

notificationConfigNotificationConfig

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

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
NameDescription
parentstring

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNotificationConfig

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
NameDescription
parentstring

Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

configIdstring

Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.

notificationConfigNotificationConfig

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNotificationConfig

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

CreateSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest, CallSettings)

public virtual SecurityHealthAnalyticsCustomModule CreateSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
requestCreateSecurityHealthAnalyticsCustomModuleRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest
{
    ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
    SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(request);

CreateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CallSettings)

public virtual SecurityHealthAnalyticsCustomModule CreateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsSettingsName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CallSettings callSettings = null)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
parentSecurityHealthAnalyticsSettingsName

Required. Resource name of the new custom module's parent. Its format is "organizations/{organization}/securityHealthAnalyticsSettings", "folders/{folder}/securityHealthAnalyticsSettings", or "projects/{project}/securityHealthAnalyticsSettings"

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule);

CreateSecurityHealthAnalyticsCustomModule(string, SecurityHealthAnalyticsCustomModule, CallSettings)

public virtual SecurityHealthAnalyticsCustomModule CreateSecurityHealthAnalyticsCustomModule(string parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CallSettings callSettings = null)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
parentstring

Required. Resource name of the new custom module's parent. Its format is "organizations/{organization}/securityHealthAnalyticsSettings", "folders/{folder}/securityHealthAnalyticsSettings", or "projects/{project}/securityHealthAnalyticsSettings"

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule);

CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest, CallSettings)

public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
requestCreateSecurityHealthAnalyticsCustomModuleRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest
{
    ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
    SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(request);

CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)

public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
requestCreateSecurityHealthAnalyticsCustomModuleRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest
{
    ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
    SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(request);

CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CallSettings)

public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CallSettings callSettings = null)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
parentSecurityHealthAnalyticsSettingsName

Required. Resource name of the new custom module's parent. Its format is "organizations/{organization}/securityHealthAnalyticsSettings", "folders/{folder}/securityHealthAnalyticsSettings", or "projects/{project}/securityHealthAnalyticsSettings"

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule);

CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CancellationToken)

public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CancellationToken cancellationToken)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
parentSecurityHealthAnalyticsSettingsName

Required. Resource name of the new custom module's parent. Its format is "organizations/{organization}/securityHealthAnalyticsSettings", "folders/{folder}/securityHealthAnalyticsSettings", or "projects/{project}/securityHealthAnalyticsSettings"

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule);

CreateSecurityHealthAnalyticsCustomModuleAsync(string, SecurityHealthAnalyticsCustomModule, CallSettings)

public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(string parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CallSettings callSettings = null)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
parentstring

Required. Resource name of the new custom module's parent. Its format is "organizations/{organization}/securityHealthAnalyticsSettings", "folders/{folder}/securityHealthAnalyticsSettings", or "projects/{project}/securityHealthAnalyticsSettings"

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule);

CreateSecurityHealthAnalyticsCustomModuleAsync(string, SecurityHealthAnalyticsCustomModule, CancellationToken)

public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(string parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CancellationToken cancellationToken)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Parameters
NameDescription
parentstring

Required. Resource name of the new custom module's parent. Its format is "organizations/{organization}/securityHealthAnalyticsSettings", "folders/{folder}/securityHealthAnalyticsSettings", or "projects/{project}/securityHealthAnalyticsSettings"

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule);

CreateSource(OrganizationName, Source, CallSettings)

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

Creates a source.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]".

sourceSource

Required. The Source being created, only the display_name and description will be used. All other fields will be ignored.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]".

sourceSource

Required. The Source being created, only the display_name and description will be used. All other fields will be ignored.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentOrganizationName

Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]".

sourceSource

Required. The Source being created, only the display_name and description will be used. All other fields will be ignored.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

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
NameDescription
parentOrganizationName

Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]".

sourceSource

Required. The Source being created, only the display_name and description will be used. All other fields will be ignored.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

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
NameDescription
requestCreateSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

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
NameDescription
requestCreateSourceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

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
NameDescription
parentstring

Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]".

sourceSource

Required. The Source being created, only the display_name and description will be used. All other fields will be ignored.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

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
NameDescription
parentstring

Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]".

sourceSource

Required. The Source being created, only the display_name and description will be used. All other fields will be ignored.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

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

DeleteBigQueryExport(BigQueryExportName, CallSettings)

public virtual void DeleteBigQueryExport(BigQueryExportName name, CallSettings callSettings = null)

Deletes an existing BigQuery export.

Parameters
NameDescription
nameBigQueryExportName

Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
securityCenterClient.DeleteBigQueryExport(name);

DeleteBigQueryExport(DeleteBigQueryExportRequest, CallSettings)

public virtual void DeleteBigQueryExport(DeleteBigQueryExportRequest request, CallSettings callSettings = null)

Deletes an existing BigQuery export.

Parameters
NameDescription
requestDeleteBigQueryExportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
    BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
securityCenterClient.DeleteBigQueryExport(request);

DeleteBigQueryExport(string, CallSettings)

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

Deletes an existing BigQuery export.

Parameters
NameDescription
namestring

Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
securityCenterClient.DeleteBigQueryExport(name);

DeleteBigQueryExportAsync(BigQueryExportName, CallSettings)

public virtual Task DeleteBigQueryExportAsync(BigQueryExportName name, CallSettings callSettings = null)

Deletes an existing BigQuery export.

Parameters
NameDescription
nameBigQueryExportName

Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);

DeleteBigQueryExportAsync(BigQueryExportName, CancellationToken)

public virtual Task DeleteBigQueryExportAsync(BigQueryExportName name, CancellationToken cancellationToken)

Deletes an existing BigQuery export.

Parameters
NameDescription
nameBigQueryExportName

Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);

DeleteBigQueryExportAsync(DeleteBigQueryExportRequest, CallSettings)

public virtual Task DeleteBigQueryExportAsync(DeleteBigQueryExportRequest request, CallSettings callSettings = null)

Deletes an existing BigQuery export.

Parameters
NameDescription
requestDeleteBigQueryExportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
    BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(request);

DeleteBigQueryExportAsync(DeleteBigQueryExportRequest, CancellationToken)

public virtual Task DeleteBigQueryExportAsync(DeleteBigQueryExportRequest request, CancellationToken cancellationToken)

Deletes an existing BigQuery export.

Parameters
NameDescription
requestDeleteBigQueryExportRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
    BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(request);

DeleteBigQueryExportAsync(string, CallSettings)

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

Deletes an existing BigQuery export.

Parameters
NameDescription
namestring

Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);

DeleteBigQueryExportAsync(string, CancellationToken)

public virtual Task DeleteBigQueryExportAsync(string name, CancellationToken cancellationToken)

Deletes an existing BigQuery export.

Parameters
NameDescription
namestring

Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);

DeleteMuteConfig(DeleteMuteConfigRequest, CallSettings)

public virtual void DeleteMuteConfig(DeleteMuteConfigRequest request, CallSettings callSettings = null)

Deletes an existing mute config.

Parameters
NameDescription
requestDeleteMuteConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
    MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
securityCenterClient.DeleteMuteConfig(request);

DeleteMuteConfig(MuteConfigName, CallSettings)

public virtual void DeleteMuteConfig(MuteConfigName name, CallSettings callSettings = null)

Deletes an existing mute config.

Parameters
NameDescription
nameMuteConfigName

Required. Name of the mute config to delete. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
securityCenterClient.DeleteMuteConfig(name);

DeleteMuteConfig(string, CallSettings)

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

Deletes an existing mute config.

Parameters
NameDescription
namestring

Required. Name of the mute config to delete. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
securityCenterClient.DeleteMuteConfig(name);

DeleteMuteConfigAsync(DeleteMuteConfigRequest, CallSettings)

public virtual Task DeleteMuteConfigAsync(DeleteMuteConfigRequest request, CallSettings callSettings = null)

Deletes an existing mute config.

Parameters
NameDescription
requestDeleteMuteConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
    MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(request);

DeleteMuteConfigAsync(DeleteMuteConfigRequest, CancellationToken)

public virtual Task DeleteMuteConfigAsync(DeleteMuteConfigRequest request, CancellationToken cancellationToken)

Deletes an existing mute config.

Parameters
NameDescription
requestDeleteMuteConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
    MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(request);

DeleteMuteConfigAsync(MuteConfigName, CallSettings)

public virtual Task DeleteMuteConfigAsync(MuteConfigName name, CallSettings callSettings = null)

Deletes an existing mute config.

Parameters
NameDescription
nameMuteConfigName

Required. Name of the mute config to delete. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);

DeleteMuteConfigAsync(MuteConfigName, CancellationToken)

public virtual Task DeleteMuteConfigAsync(MuteConfigName name, CancellationToken cancellationToken)

Deletes an existing mute config.

Parameters
NameDescription
nameMuteConfigName

Required. Name of the mute config to delete. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);

DeleteMuteConfigAsync(string, CallSettings)

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

Deletes an existing mute config.

Parameters
NameDescription
namestring

Required. Name of the mute config to delete. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);

DeleteMuteConfigAsync(string, CancellationToken)

public virtual Task DeleteMuteConfigAsync(string name, CancellationToken cancellationToken)

Deletes an existing mute config.

Parameters
NameDescription
namestring

Required. Name of the mute config to delete. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);

DeleteNotificationConfig(DeleteNotificationConfigRequest, CallSettings)

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

Deletes a notification config.

Parameters
NameDescription
requestDeleteNotificationConfigRequest

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

callSettingsCallSettings

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
NameDescription
nameNotificationConfigName

Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]", "folders/[folder_id]/notificationConfigs/[config_id]", or "projects/[project_id]/notificationConfigs/[config_id]".

callSettingsCallSettings

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
NameDescription
namestring

Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]", "folders/[folder_id]/notificationConfigs/[config_id]", or "projects/[project_id]/notificationConfigs/[config_id]".

callSettingsCallSettings

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
NameDescription
requestDeleteNotificationConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

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
NameDescription
requestDeleteNotificationConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameNotificationConfigName

Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]", "folders/[folder_id]/notificationConfigs/[config_id]", or "projects/[project_id]/notificationConfigs/[config_id]".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameNotificationConfigName

Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]", "folders/[folder_id]/notificationConfigs/[config_id]", or "projects/[project_id]/notificationConfigs/[config_id]".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]", "folders/[folder_id]/notificationConfigs/[config_id]", or "projects/[project_id]/notificationConfigs/[config_id]".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]", "folders/[folder_id]/notificationConfigs/[config_id]", or "projects/[project_id]/notificationConfigs/[config_id]".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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);

DeleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest, CallSettings)

public virtual void DeleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
requestDeleteSecurityHealthAnalyticsCustomModuleRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest
{
    SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(request);

DeleteSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName, CallSettings)

public virtual void DeleteSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
nameSecurityHealthAnalyticsCustomModuleName

Required. Name of the custom module to delete. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(name);

DeleteSecurityHealthAnalyticsCustomModule(string, CallSettings)

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

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
namestring

Required. Name of the custom module to delete. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(name);

DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest, CallSettings)

public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
requestDeleteSecurityHealthAnalyticsCustomModuleRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest
{
    SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(request);

DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)

public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
requestDeleteSecurityHealthAnalyticsCustomModuleRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest
{
    SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(request);

DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CallSettings)

public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
nameSecurityHealthAnalyticsCustomModuleName

Required. Name of the custom module to delete. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name);

DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CancellationToken)

public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName name, CancellationToken cancellationToken)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
nameSecurityHealthAnalyticsCustomModuleName

Required. Name of the custom module to delete. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name);

DeleteSecurityHealthAnalyticsCustomModuleAsync(string, CallSettings)

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

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
namestring

Required. Name of the custom module to delete. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name);

DeleteSecurityHealthAnalyticsCustomModuleAsync(string, CancellationToken)

public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(string name, CancellationToken cancellationToken)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Parameters
NameDescription
namestring

Required. Name of the custom module to delete. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name);

GetBigQueryExport(BigQueryExportName, CallSettings)

public virtual BigQueryExport GetBigQueryExport(BigQueryExportName name, CallSettings callSettings = null)

Gets a BigQuery export.

Parameters
NameDescription
nameBigQueryExportName

Required. Name of the BigQuery export to retrieve. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BigQueryExport

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(name);

GetBigQueryExport(GetBigQueryExportRequest, CallSettings)

public virtual BigQueryExport GetBigQueryExport(GetBigQueryExportRequest request, CallSettings callSettings = null)

Gets a BigQuery export.

Parameters
NameDescription
requestGetBigQueryExportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BigQueryExport

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
    BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(request);

GetBigQueryExport(string, CallSettings)

public virtual BigQueryExport GetBigQueryExport(string name, CallSettings callSettings = null)

Gets a BigQuery export.

Parameters
NameDescription
namestring

Required. Name of the BigQuery export to retrieve. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BigQueryExport

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(name);

GetBigQueryExportAsync(BigQueryExportName, CallSettings)

public virtual Task<BigQueryExport> GetBigQueryExportAsync(BigQueryExportName name, CallSettings callSettings = null)

Gets a BigQuery export.

Parameters
NameDescription
nameBigQueryExportName

Required. Name of the BigQuery export to retrieve. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);

GetBigQueryExportAsync(BigQueryExportName, CancellationToken)

public virtual Task<BigQueryExport> GetBigQueryExportAsync(BigQueryExportName name, CancellationToken cancellationToken)

Gets a BigQuery export.

Parameters
NameDescription
nameBigQueryExportName

Required. Name of the BigQuery export to retrieve. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);

GetBigQueryExportAsync(GetBigQueryExportRequest, CallSettings)

public virtual Task<BigQueryExport> GetBigQueryExportAsync(GetBigQueryExportRequest request, CallSettings callSettings = null)

Gets a BigQuery export.

Parameters
NameDescription
requestGetBigQueryExportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
    BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(request);

GetBigQueryExportAsync(GetBigQueryExportRequest, CancellationToken)

public virtual Task<BigQueryExport> GetBigQueryExportAsync(GetBigQueryExportRequest request, CancellationToken cancellationToken)

Gets a BigQuery export.

Parameters
NameDescription
requestGetBigQueryExportRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
    BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(request);

GetBigQueryExportAsync(string, CallSettings)

public virtual Task<BigQueryExport> GetBigQueryExportAsync(string name, CallSettings callSettings = null)

Gets a BigQuery export.

Parameters
NameDescription
namestring

Required. Name of the BigQuery export to retrieve. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);

GetBigQueryExportAsync(string, CancellationToken)

public virtual Task<BigQueryExport> GetBigQueryExportAsync(string name, CancellationToken cancellationToken)

Gets a BigQuery export.

Parameters
NameDescription
namestring

Required. Name of the BigQuery export to retrieve. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBigQueryExport

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);

GetEffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModuleName, CallSettings)

public virtual EffectiveSecurityHealthAnalyticsCustomModule GetEffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
nameEffectiveSecurityHealthAnalyticsCustomModuleName

Required. Name of the effective custom module to get. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
EffectiveSecurityHealthAnalyticsCustomModule

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(name);

GetEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CallSettings)

public virtual EffectiveSecurityHealthAnalyticsCustomModule GetEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
requestGetEffectiveSecurityHealthAnalyticsCustomModuleRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
EffectiveSecurityHealthAnalyticsCustomModule

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
{
    EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"),
};
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(request);

GetEffectiveSecurityHealthAnalyticsCustomModule(string, CallSettings)

public virtual EffectiveSecurityHealthAnalyticsCustomModule GetEffectiveSecurityHealthAnalyticsCustomModule(string name, CallSettings callSettings = null)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
namestring

Required. Name of the effective custom module to get. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
EffectiveSecurityHealthAnalyticsCustomModule

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]";
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(name);

GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName, CallSettings)

public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
nameEffectiveSecurityHealthAnalyticsCustomModuleName

Required. Name of the effective custom module to get. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEffectiveSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name);

GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName, CancellationToken)

public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName name, CancellationToken cancellationToken)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
nameEffectiveSecurityHealthAnalyticsCustomModuleName

Required. Name of the effective custom module to get. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEffectiveSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name);

GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CallSettings)

public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
requestGetEffectiveSecurityHealthAnalyticsCustomModuleRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEffectiveSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
{
    EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"),
};
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(request);

GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)

public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
requestGetEffectiveSecurityHealthAnalyticsCustomModuleRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEffectiveSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
{
    EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"),
};
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(request);

GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string, CallSettings)

public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string name, CallSettings callSettings = null)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
namestring

Required. Name of the effective custom module to get. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEffectiveSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]";
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name);

GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string, CancellationToken)

public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string name, CancellationToken cancellationToken)

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

Parameters
NameDescription
namestring

Required. Name of the effective custom module to get. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEffectiveSecurityHealthAnalyticsCustomModule

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]";
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name);

GetIamPolicy(IResourceName, CallSettings)

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

Gets the access control policy on the specified Source.

Parameters
NameDescription
resourceIResourceName

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

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
NameDescription
requestGetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

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
NameDescription
resourcestring

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

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
NameDescription
resourceIResourceName

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

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
NameDescription
resourceIResourceName

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

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
NameDescription
requestGetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

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
NameDescription
requestGetIamPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

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
NameDescription
resourcestring

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

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
NameDescription
resourcestring

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

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

GetMuteConfig(GetMuteConfigRequest, CallSettings)

public virtual MuteConfig GetMuteConfig(GetMuteConfigRequest request, CallSettings callSettings = null)

Gets a mute config.

Parameters
NameDescription
requestGetMuteConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
    MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(request);

GetMuteConfig(MuteConfigName, CallSettings)

public virtual MuteConfig GetMuteConfig(MuteConfigName name, CallSettings callSettings = null)

Gets a mute config.

Parameters
NameDescription
nameMuteConfigName

Required. Name of the mute config to retrieve. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(name);

GetMuteConfig(string, CallSettings)

public virtual MuteConfig GetMuteConfig(string name, CallSettings callSettings = null)

Gets a mute config.

Parameters
NameDescription
namestring

Required. Name of the mute config to retrieve. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MuteConfig

The RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(name);

GetMuteConfigAsync(GetMuteConfigRequest, CallSettings)

public virtual Task<MuteConfig> GetMuteConfigAsync(GetMuteConfigRequest request, CallSettings callSettings = null)

Gets a mute config.

Parameters
NameDescription
requestGetMuteConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
    MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(request);

GetMuteConfigAsync(GetMuteConfigRequest, CancellationToken)

public virtual Task<MuteConfig> GetMuteConfigAsync(GetMuteConfigRequest request, CancellationToken cancellationToken)

Gets a mute config.

Parameters
NameDescription
requestGetMuteConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
    MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(request);

GetMuteConfigAsync(MuteConfigName, CallSettings)

public virtual Task<MuteConfig> GetMuteConfigAsync(MuteConfigName name, CallSettings callSettings = null)

Gets a mute config.

Parameters
NameDescription
nameMuteConfigName

Required. Name of the mute config to retrieve. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);

GetMuteConfigAsync(MuteConfigName, CancellationToken)

public virtual Task<MuteConfig> GetMuteConfigAsync(MuteConfigName name, CancellationToken cancellationToken)

Gets a mute config.

Parameters
NameDescription
nameMuteConfigName

Required. Name of the mute config to retrieve. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);

GetMuteConfigAsync(string, CallSettings)

public virtual Task<MuteConfig> GetMuteConfigAsync(string name, CallSettings callSettings = null)

Gets a mute config.

Parameters
NameDescription
namestring

Required. Name of the mute config to retrieve. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);

GetMuteConfigAsync(string, CancellationToken)

public virtual Task<MuteConfig> GetMuteConfigAsync(string name, CancellationToken cancellationToken)

Gets a mute config.

Parameters
NameDescription
namestring

Required. Name of the mute config to retrieve. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, or projects/{project}/muteConfigs/{config_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskMuteConfig

A Task containing the RPC response.

Example
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);

GetNotificationConfig(GetNotificationConfigRequest, CallSettings)

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

Gets a notification config.

Parameters
NameDescription
requestGetNotificationConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameNotificationConfigName

Required. Name of the notification config to get. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]", "folders/[folder_id]/notificationConfigs/[config_id]", or "projects/[project_id]/notificationConfigs/[config_id]".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns