public abstract class SecurityCenterSettingsServiceClient
Reference documentation and code samples for the Google Cloud Security Command Center Settings v1beta1 API class SecurityCenterSettingsServiceClient.
SecurityCenterSettingsService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.SecurityCenter.Settings.V1Beta1Assembly
Google.Cloud.SecurityCenter.Settings.V1Beta1.dll
Remarks
API Overview
The SecurityCenterSettingsService is a sub-api of
securitycenter.googleapis.com
. The service provides methods to manage
Security Center Settings, and Component Settings for GCP organizations,
folders, projects, and clusters.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the SecurityCenterSettingsService service, which is a host of "securitycenter.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default SecurityCenterSettingsService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default SecurityCenterSettingsService scopes are:
GrpcClient
public virtual SecurityCenterSettingsService.SecurityCenterSettingsServiceClient GrpcClient { get; }
The underlying gRPC SecurityCenterSettingsService client
Property Value | |
---|---|
Type | Description |
SecurityCenterSettingsServiceSecurityCenterSettingsServiceClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
BatchCalculateEffectiveSettings(BatchCalculateEffectiveSettingsRequest, CallSettings)
public virtual BatchCalculateEffectiveSettingsResponse BatchCalculateEffectiveSettings(BatchCalculateEffectiveSettingsRequest request, CallSettings callSettings = null)
Gets a list of effective settings.
Parameters | |
---|---|
Name | Description |
request | BatchCalculateEffectiveSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchCalculateEffectiveSettingsResponse | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
BatchCalculateEffectiveSettingsRequest request = new BatchCalculateEffectiveSettingsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CalculateEffectiveSettingsRequest(),
},
};
// Make the request
BatchCalculateEffectiveSettingsResponse response = securityCenterSettingsServiceClient.BatchCalculateEffectiveSettings(request);
BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest, CallSettings)
public virtual Task<BatchCalculateEffectiveSettingsResponse> BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest request, CallSettings callSettings = null)
Gets a list of effective settings.
Parameters | |
---|---|
Name | Description |
request | BatchCalculateEffectiveSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBatchCalculateEffectiveSettingsResponse | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCalculateEffectiveSettingsRequest request = new BatchCalculateEffectiveSettingsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CalculateEffectiveSettingsRequest(),
},
};
// Make the request
BatchCalculateEffectiveSettingsResponse response = await securityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsAsync(request);
BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest, CancellationToken)
public virtual Task<BatchCalculateEffectiveSettingsResponse> BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest request, CancellationToken cancellationToken)
Gets a list of effective settings.
Parameters | |
---|---|
Name | Description |
request | BatchCalculateEffectiveSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBatchCalculateEffectiveSettingsResponse | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCalculateEffectiveSettingsRequest request = new BatchCalculateEffectiveSettingsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CalculateEffectiveSettingsRequest(),
},
};
// Make the request
BatchCalculateEffectiveSettingsResponse response = await securityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsAsync(request);
BatchGetSettings(BatchGetSettingsRequest, CallSettings)
public virtual BatchGetSettingsResponse BatchGetSettings(BatchGetSettingsRequest request, CallSettings callSettings = null)
Gets a list of settings.
Parameters | |
---|---|
Name | Description |
request | BatchGetSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchGetSettingsResponse | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
BatchGetSettingsRequest request = new BatchGetSettingsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Names = { "", },
};
// Make the request
BatchGetSettingsResponse response = securityCenterSettingsServiceClient.BatchGetSettings(request);
BatchGetSettingsAsync(BatchGetSettingsRequest, CallSettings)
public virtual Task<BatchGetSettingsResponse> BatchGetSettingsAsync(BatchGetSettingsRequest request, CallSettings callSettings = null)
Gets a list of settings.
Parameters | |
---|---|
Name | Description |
request | BatchGetSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBatchGetSettingsResponse | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
BatchGetSettingsRequest request = new BatchGetSettingsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Names = { "", },
};
// Make the request
BatchGetSettingsResponse response = await securityCenterSettingsServiceClient.BatchGetSettingsAsync(request);
BatchGetSettingsAsync(BatchGetSettingsRequest, CancellationToken)
public virtual Task<BatchGetSettingsResponse> BatchGetSettingsAsync(BatchGetSettingsRequest request, CancellationToken cancellationToken)
Gets a list of settings.
Parameters | |
---|---|
Name | Description |
request | BatchGetSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBatchGetSettingsResponse | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
BatchGetSettingsRequest request = new BatchGetSettingsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Names = { "", },
};
// Make the request
BatchGetSettingsResponse response = await securityCenterSettingsServiceClient.BatchGetSettingsAsync(request);
CalculateEffectiveComponentSettings(CalculateEffectiveComponentSettingsRequest, CallSettings)
public virtual ComponentSettings CalculateEffectiveComponentSettings(CalculateEffectiveComponentSettingsRequest request, CallSettings callSettings = null)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
request | CalculateEffectiveComponentSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ComponentSettings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
CalculateEffectiveComponentSettingsRequest request = new CalculateEffectiveComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
};
// Make the request
ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(request);
CalculateEffectiveComponentSettings(ComponentSettingsName, CallSettings)
public virtual ComponentSettings CalculateEffectiveComponentSettings(ComponentSettingsName name, CallSettings callSettings = null)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
name | ComponentSettingsName Required. The effective component settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ComponentSettings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]");
// Make the request
ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(name);
CalculateEffectiveComponentSettings(string, CallSettings)
public virtual ComponentSettings CalculateEffectiveComponentSettings(string name, CallSettings callSettings = null)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The effective component settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ComponentSettings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings";
// Make the request
ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(name);
CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest, CallSettings)
public virtual Task<ComponentSettings> CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest request, CallSettings callSettings = null)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
request | CalculateEffectiveComponentSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
CalculateEffectiveComponentSettingsRequest request = new CalculateEffectiveComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
};
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(request);
CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest, CancellationToken)
public virtual Task<ComponentSettings> CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest request, CancellationToken cancellationToken)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
request | CalculateEffectiveComponentSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
CalculateEffectiveComponentSettingsRequest request = new CalculateEffectiveComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
};
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(request);
CalculateEffectiveComponentSettingsAsync(ComponentSettingsName, CallSettings)
public virtual Task<ComponentSettings> CalculateEffectiveComponentSettingsAsync(ComponentSettingsName name, CallSettings callSettings = null)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
name | ComponentSettingsName Required. The effective component settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]");
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(name);
CalculateEffectiveComponentSettingsAsync(ComponentSettingsName, CancellationToken)
public virtual Task<ComponentSettings> CalculateEffectiveComponentSettingsAsync(ComponentSettingsName name, CancellationToken cancellationToken)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
name | ComponentSettingsName Required. The effective component settings to retrieve. Formats:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]");
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(name);
CalculateEffectiveComponentSettingsAsync(string, CallSettings)
public virtual Task<ComponentSettings> CalculateEffectiveComponentSettingsAsync(string name, CallSettings callSettings = null)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The effective component settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings";
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(name);
CalculateEffectiveComponentSettingsAsync(string, CancellationToken)
public virtual Task<ComponentSettings> CalculateEffectiveComponentSettingsAsync(string name, CancellationToken cancellationToken)
Gets the Effective Component Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The effective component settings to retrieve. Formats:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings";
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(name);
CalculateEffectiveSettings(CalculateEffectiveSettingsRequest, CallSettings)
public virtual Settings CalculateEffectiveSettings(CalculateEffectiveSettingsRequest request, CallSettings callSettings = null)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
request | CalculateEffectiveSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Settings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
CalculateEffectiveSettingsRequest request = new CalculateEffectiveSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(request);
CalculateEffectiveSettings(SettingsName, CallSettings)
public virtual Settings CalculateEffectiveSettings(SettingsName name, CallSettings callSettings = null)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
name | SettingsName Required. The name of the effective settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Settings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(name);
CalculateEffectiveSettings(string, CallSettings)
public virtual Settings CalculateEffectiveSettings(string name, CallSettings callSettings = null)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the effective settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Settings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/settings";
// Make the request
Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(name);
CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest, CallSettings)
public virtual Task<Settings> CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest request, CallSettings callSettings = null)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
request | CalculateEffectiveSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
CalculateEffectiveSettingsRequest request = new CalculateEffectiveSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(request);
CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest, CancellationToken)
public virtual Task<Settings> CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest request, CancellationToken cancellationToken)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
request | CalculateEffectiveSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
CalculateEffectiveSettingsRequest request = new CalculateEffectiveSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(request);
CalculateEffectiveSettingsAsync(SettingsName, CallSettings)
public virtual Task<Settings> CalculateEffectiveSettingsAsync(SettingsName name, CallSettings callSettings = null)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
name | SettingsName Required. The name of the effective settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(name);
CalculateEffectiveSettingsAsync(SettingsName, CancellationToken)
public virtual Task<Settings> CalculateEffectiveSettingsAsync(SettingsName name, CancellationToken cancellationToken)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
name | SettingsName Required. The name of the effective settings to retrieve. Formats:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(name);
CalculateEffectiveSettingsAsync(string, CallSettings)
public virtual Task<Settings> CalculateEffectiveSettingsAsync(string name, CallSettings callSettings = null)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the effective settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/settings";
// Make the request
Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(name);
CalculateEffectiveSettingsAsync(string, CancellationToken)
public virtual Task<Settings> CalculateEffectiveSettingsAsync(string name, CancellationToken cancellationToken)
CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:
- Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
- Product defaults can be overridden at org, folder, project, and cluster levels.
- Detectors will be filtered out if they belong to a billing tier the customer has not configured.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the effective settings to retrieve. Formats:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/settings";
// Make the request
Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(name);
Create()
public static SecurityCenterSettingsServiceClient Create()
Synchronously creates a SecurityCenterSettingsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecurityCenterSettingsServiceClientBuilder.
Returns | |
---|---|
Type | Description |
SecurityCenterSettingsServiceClient | The created SecurityCenterSettingsServiceClient. |
CreateAsync(CancellationToken)
public static Task<SecurityCenterSettingsServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a SecurityCenterSettingsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecurityCenterSettingsServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskSecurityCenterSettingsServiceClient | The task representing the created SecurityCenterSettingsServiceClient. |
GetComponentSettings(ComponentSettingsName, CallSettings)
public virtual ComponentSettings GetComponentSettings(ComponentSettingsName name, CallSettings callSettings = null)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
name | ComponentSettingsName Required. The component settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ComponentSettings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]");
// Make the request
ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(name);
GetComponentSettings(GetComponentSettingsRequest, CallSettings)
public virtual ComponentSettings GetComponentSettings(GetComponentSettingsRequest request, CallSettings callSettings = null)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
request | GetComponentSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ComponentSettings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
GetComponentSettingsRequest request = new GetComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
};
// Make the request
ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(request);
GetComponentSettings(string, CallSettings)
public virtual ComponentSettings GetComponentSettings(string name, CallSettings callSettings = null)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The component settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ComponentSettings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings";
// Make the request
ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(name);
GetComponentSettingsAsync(ComponentSettingsName, CallSettings)
public virtual Task<ComponentSettings> GetComponentSettingsAsync(ComponentSettingsName name, CallSettings callSettings = null)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
name | ComponentSettingsName Required. The component settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]");
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(name);
GetComponentSettingsAsync(ComponentSettingsName, CancellationToken)
public virtual Task<ComponentSettings> GetComponentSettingsAsync(ComponentSettingsName name, CancellationToken cancellationToken)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
name | ComponentSettingsName Required. The component settings to retrieve. Formats:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]");
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(name);
GetComponentSettingsAsync(GetComponentSettingsRequest, CallSettings)
public virtual Task<ComponentSettings> GetComponentSettingsAsync(GetComponentSettingsRequest request, CallSettings callSettings = null)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
request | GetComponentSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetComponentSettingsRequest request = new GetComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
};
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(request);
GetComponentSettingsAsync(GetComponentSettingsRequest, CancellationToken)
public virtual Task<ComponentSettings> GetComponentSettingsAsync(GetComponentSettingsRequest request, CancellationToken cancellationToken)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
request | GetComponentSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetComponentSettingsRequest request = new GetComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
};
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(request);
GetComponentSettingsAsync(string, CallSettings)
public virtual Task<ComponentSettings> GetComponentSettingsAsync(string name, CallSettings callSettings = null)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The component settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings";
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(name);
GetComponentSettingsAsync(string, CancellationToken)
public virtual Task<ComponentSettings> GetComponentSettingsAsync(string name, CancellationToken cancellationToken)
Gets the Component Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The component settings to retrieve. Formats:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings";
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(name);
GetServiceAccount(GetServiceAccountRequest, CallSettings)
public virtual ServiceAccount GetServiceAccount(GetServiceAccountRequest request, CallSettings callSettings = null)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
request | GetServiceAccountRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceAccount | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
GetServiceAccountRequest request = new GetServiceAccountRequest
{
ServiceAccountName = ServiceAccountName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(request);
GetServiceAccount(ServiceAccountName, CallSettings)
public virtual ServiceAccount GetServiceAccount(ServiceAccountName name, CallSettings callSettings = null)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
name | ServiceAccountName Required. The relative resource name of the service account resource. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceAccount | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
ServiceAccountName name = ServiceAccountName.FromOrganization("[ORGANIZATION]");
// Make the request
ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(name);
GetServiceAccount(string, CallSettings)
public virtual ServiceAccount GetServiceAccount(string name, CallSettings callSettings = null)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
name | string Required. The relative resource name of the service account resource. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ServiceAccount | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/serviceAccount";
// Make the request
ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(name);
GetServiceAccountAsync(GetServiceAccountRequest, CallSettings)
public virtual Task<ServiceAccount> GetServiceAccountAsync(GetServiceAccountRequest request, CallSettings callSettings = null)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
request | GetServiceAccountRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceAccount | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceAccountRequest request = new GetServiceAccountRequest
{
ServiceAccountName = ServiceAccountName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(request);
GetServiceAccountAsync(GetServiceAccountRequest, CancellationToken)
public virtual Task<ServiceAccount> GetServiceAccountAsync(GetServiceAccountRequest request, CancellationToken cancellationToken)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
request | GetServiceAccountRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceAccount | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceAccountRequest request = new GetServiceAccountRequest
{
ServiceAccountName = ServiceAccountName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(request);
GetServiceAccountAsync(ServiceAccountName, CallSettings)
public virtual Task<ServiceAccount> GetServiceAccountAsync(ServiceAccountName name, CallSettings callSettings = null)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
name | ServiceAccountName Required. The relative resource name of the service account resource. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceAccount | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceAccountName name = ServiceAccountName.FromOrganization("[ORGANIZATION]");
// Make the request
ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(name);
GetServiceAccountAsync(ServiceAccountName, CancellationToken)
public virtual Task<ServiceAccount> GetServiceAccountAsync(ServiceAccountName name, CancellationToken cancellationToken)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
name | ServiceAccountName Required. The relative resource name of the service account resource. Format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceAccount | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceAccountName name = ServiceAccountName.FromOrganization("[ORGANIZATION]");
// Make the request
ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(name);
GetServiceAccountAsync(string, CallSettings)
public virtual Task<ServiceAccount> GetServiceAccountAsync(string name, CallSettings callSettings = null)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
name | string Required. The relative resource name of the service account resource. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskServiceAccount | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/serviceAccount";
// Make the request
ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(name);
GetServiceAccountAsync(string, CancellationToken)
public virtual Task<ServiceAccount> GetServiceAccountAsync(string name, CancellationToken cancellationToken)
Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.
Parameters | |
---|---|
Name | Description |
name | string Required. The relative resource name of the service account resource. Format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskServiceAccount | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/serviceAccount";
// Make the request
ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(name);
GetSettings(GetSettingsRequest, CallSettings)
public virtual Settings GetSettings(GetSettingsRequest request, CallSettings callSettings = null)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
request | GetSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Settings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
Settings response = securityCenterSettingsServiceClient.GetSettings(request);
GetSettings(SettingsName, CallSettings)
public virtual Settings GetSettings(SettingsName name, CallSettings callSettings = null)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
name | SettingsName Required. The name of the settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Settings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
Settings response = securityCenterSettingsServiceClient.GetSettings(name);
GetSettings(string, CallSettings)
public virtual Settings GetSettings(string name, CallSettings callSettings = null)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Settings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/settings";
// Make the request
Settings response = securityCenterSettingsServiceClient.GetSettings(name);
GetSettingsAsync(GetSettingsRequest, CallSettings)
public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CallSettings callSettings = null)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
request | GetSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(request);
GetSettingsAsync(GetSettingsRequest, CancellationToken)
public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CancellationToken cancellationToken)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
request | GetSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(request);
GetSettingsAsync(SettingsName, CallSettings)
public virtual Task<Settings> GetSettingsAsync(SettingsName name, CallSettings callSettings = null)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
name | SettingsName Required. The name of the settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(name);
GetSettingsAsync(SettingsName, CancellationToken)
public virtual Task<Settings> GetSettingsAsync(SettingsName name, CancellationToken cancellationToken)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
name | SettingsName Required. The name of the settings to retrieve. Formats:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(name);
GetSettingsAsync(string, CallSettings)
public virtual Task<Settings> GetSettingsAsync(string name, CallSettings callSettings = null)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the settings to retrieve. Formats:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/settings";
// Make the request
Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(name);
GetSettingsAsync(string, CancellationToken)
public virtual Task<Settings> GetSettingsAsync(string name, CancellationToken cancellationToken)
Gets the Settings.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the settings to retrieve. Formats:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/settings";
// Make the request
Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(name);
ListComponents(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListComponentsResponse, string> ListComponents(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an unordered list of available SCC components.
Parameters | |
---|---|
Name | Description |
parent | OrganizationName Required. The parent, which owns this collection of components. Format:
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListComponentsResponsestring | A pageable sequence of string resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListComponentsResponse, string> response = securityCenterSettingsServiceClient.ListComponents(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (string item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListComponentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListComponents(ListComponentsRequest, CallSettings)
public virtual PagedEnumerable<ListComponentsResponse, string> ListComponents(ListComponentsRequest request, CallSettings callSettings = null)
Retrieves an unordered list of available SCC components.
Parameters | |
---|---|
Name | Description |
request | ListComponentsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListComponentsResponsestring | A pageable sequence of string resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
ListComponentsRequest request = new ListComponentsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListComponentsResponse, string> response = securityCenterSettingsServiceClient.ListComponents(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (string item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListComponentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListComponents(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListComponentsResponse, string> ListComponents(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an unordered list of available SCC components.
Parameters | |
---|---|
Name | Description |
parent | string Required. The parent, which owns this collection of components. Format:
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListComponentsResponsestring | A pageable sequence of string resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListComponentsResponse, string> response = securityCenterSettingsServiceClient.ListComponents(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (string item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListComponentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListComponentsAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListComponentsResponse, string> ListComponentsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an unordered list of available SCC components.
Parameters | |
---|---|
Name | Description |
parent | OrganizationName Required. The parent, which owns this collection of components. Format:
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListComponentsResponsestring | A pageable asynchronous sequence of string resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListComponentsResponse, string> response = securityCenterSettingsServiceClient.ListComponentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListComponentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListComponentsAsync(ListComponentsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListComponentsResponse, string> ListComponentsAsync(ListComponentsRequest request, CallSettings callSettings = null)
Retrieves an unordered list of available SCC components.
Parameters | |
---|---|
Name | Description |
request | ListComponentsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListComponentsResponsestring | A pageable asynchronous sequence of string resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ListComponentsRequest request = new ListComponentsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListComponentsResponse, string> response = securityCenterSettingsServiceClient.ListComponentsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListComponentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListComponentsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListComponentsResponse, string> ListComponentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an unordered list of available SCC components.
Parameters | |
---|---|
Name | Description |
parent | string Required. The parent, which owns this collection of components. Format:
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListComponentsResponsestring | A pageable asynchronous sequence of string resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListComponentsResponse, string> response = securityCenterSettingsServiceClient.ListComponentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListComponentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDetectors(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDetectorsResponse, Detector> ListDetectors(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an unordered list of available detectors.
Parameters | |
---|---|
Name | Description |
parent | OrganizationName Required. The parent, which owns this collection of detectors. Format:
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDetectorsResponseDetector | A pageable sequence of Detector resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListDetectorsResponse, Detector> response = securityCenterSettingsServiceClient.ListDetectors(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Detector item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDetectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Detector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Detector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Detector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDetectors(ListDetectorsRequest, CallSettings)
public virtual PagedEnumerable<ListDetectorsResponse, Detector> ListDetectors(ListDetectorsRequest request, CallSettings callSettings = null)
Retrieves an unordered list of available detectors.
Parameters | |
---|---|
Name | Description |
request | ListDetectorsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDetectorsResponseDetector | A pageable sequence of Detector resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
ListDetectorsRequest request = new ListDetectorsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListDetectorsResponse, Detector> response = securityCenterSettingsServiceClient.ListDetectors(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Detector item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDetectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Detector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Detector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Detector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDetectors(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDetectorsResponse, Detector> ListDetectors(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an unordered list of available detectors.
Parameters | |
---|---|
Name | Description |
parent | string Required. The parent, which owns this collection of detectors. Format:
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDetectorsResponseDetector | A pageable sequence of Detector resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListDetectorsResponse, Detector> response = securityCenterSettingsServiceClient.ListDetectors(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Detector item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDetectorsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Detector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Detector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Detector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDetectorsAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDetectorsResponse, Detector> ListDetectorsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an unordered list of available detectors.
Parameters | |
---|---|
Name | Description |
parent | OrganizationName Required. The parent, which owns this collection of detectors. Format:
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDetectorsResponseDetector | A pageable asynchronous sequence of Detector resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListDetectorsResponse, Detector> response = securityCenterSettingsServiceClient.ListDetectorsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Detector item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDetectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Detector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Detector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Detector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDetectorsAsync(ListDetectorsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDetectorsResponse, Detector> ListDetectorsAsync(ListDetectorsRequest request, CallSettings callSettings = null)
Retrieves an unordered list of available detectors.
Parameters | |
---|---|
Name | Description |
request | ListDetectorsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDetectorsResponseDetector | A pageable asynchronous sequence of Detector resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ListDetectorsRequest request = new ListDetectorsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListDetectorsResponse, Detector> response = securityCenterSettingsServiceClient.ListDetectorsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Detector item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDetectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Detector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Detector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Detector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDetectorsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDetectorsResponse, Detector> ListDetectorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an unordered list of available detectors.
Parameters | |
---|---|
Name | Description |
parent | string Required. The parent, which owns this collection of detectors. Format:
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDetectorsResponseDetector | A pageable asynchronous sequence of Detector resources. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListDetectorsResponse, Detector> response = securityCenterSettingsServiceClient.ListDetectorsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Detector item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDetectorsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Detector item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Detector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Detector item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ResetComponentSettings(ResetComponentSettingsRequest, CallSettings)
public virtual void ResetComponentSettings(ResetComponentSettingsRequest request, CallSettings callSettings = null)
Reset the organization, folder or project's component settings and return the settings to the default. Settings are present at the organization, folder and project levels. Using Reset for a folder or project will remove the override that was set and result in the organization-level settings being used.
Parameters | |
---|---|
Name | Description |
request | ResetComponentSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
ResetComponentSettingsRequest request = new ResetComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
Etag = "",
};
// Make the request
securityCenterSettingsServiceClient.ResetComponentSettings(request);
ResetComponentSettingsAsync(ResetComponentSettingsRequest, CallSettings)
public virtual Task ResetComponentSettingsAsync(ResetComponentSettingsRequest request, CallSettings callSettings = null)
Reset the organization, folder or project's component settings and return the settings to the default. Settings are present at the organization, folder and project levels. Using Reset for a folder or project will remove the override that was set and result in the organization-level settings being used.
Parameters | |
---|---|
Name | Description |
request | ResetComponentSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ResetComponentSettingsRequest request = new ResetComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
Etag = "",
};
// Make the request
await securityCenterSettingsServiceClient.ResetComponentSettingsAsync(request);
ResetComponentSettingsAsync(ResetComponentSettingsRequest, CancellationToken)
public virtual Task ResetComponentSettingsAsync(ResetComponentSettingsRequest request, CancellationToken cancellationToken)
Reset the organization, folder or project's component settings and return the settings to the default. Settings are present at the organization, folder and project levels. Using Reset for a folder or project will remove the override that was set and result in the organization-level settings being used.
Parameters | |
---|---|
Name | Description |
request | ResetComponentSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ResetComponentSettingsRequest request = new ResetComponentSettingsRequest
{
ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"),
Etag = "",
};
// Make the request
await securityCenterSettingsServiceClient.ResetComponentSettingsAsync(request);
ResetSettings(ResetSettingsRequest, CallSettings)
public virtual void ResetSettings(ResetSettingsRequest request, CallSettings callSettings = null)
Reset the organization, folder or project's settings and return the settings of just that resource to the default.
Settings are present at the organization, folder, project, and cluster levels. Using Reset on a sub-organization level will remove that resource's override and result in the parent's settings being used (eg: if Reset on a cluster, project settings will be used).
Using Reset on organization will remove the override that was set and result in default settings being used.
Parameters | |
---|---|
Name | Description |
request | ResetSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
ResetSettingsRequest request = new ResetSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
Etag = "",
};
// Make the request
securityCenterSettingsServiceClient.ResetSettings(request);
ResetSettingsAsync(ResetSettingsRequest, CallSettings)
public virtual Task ResetSettingsAsync(ResetSettingsRequest request, CallSettings callSettings = null)
Reset the organization, folder or project's settings and return the settings of just that resource to the default.
Settings are present at the organization, folder, project, and cluster levels. Using Reset on a sub-organization level will remove that resource's override and result in the parent's settings being used (eg: if Reset on a cluster, project settings will be used).
Using Reset on organization will remove the override that was set and result in default settings being used.
Parameters | |
---|---|
Name | Description |
request | ResetSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ResetSettingsRequest request = new ResetSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
Etag = "",
};
// Make the request
await securityCenterSettingsServiceClient.ResetSettingsAsync(request);
ResetSettingsAsync(ResetSettingsRequest, CancellationToken)
public virtual Task ResetSettingsAsync(ResetSettingsRequest request, CancellationToken cancellationToken)
Reset the organization, folder or project's settings and return the settings of just that resource to the default.
Settings are present at the organization, folder, project, and cluster levels. Using Reset on a sub-organization level will remove that resource's override and result in the parent's settings being used (eg: if Reset on a cluster, project settings will be used).
Using Reset on organization will remove the override that was set and result in default settings being used.
Parameters | |
---|---|
Name | Description |
request | ResetSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ResetSettingsRequest request = new ResetSettingsRequest
{
SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"),
Etag = "",
};
// Make the request
await securityCenterSettingsServiceClient.ResetSettingsAsync(request);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateComponentSettings(ComponentSettings, FieldMask, CallSettings)
public virtual ComponentSettings UpdateComponentSettings(ComponentSettings componentSettings, FieldMask updateMask, CallSettings callSettings = null)
Updates the Component Settings.
Parameters | |
---|---|
Name | Description |
componentSettings | ComponentSettings Required. The component settings to update. The component settings'
|
updateMask | FieldMask The list of fields to be updated on the component settings resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ComponentSettings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
ComponentSettings componentSettings = new ComponentSettings();
FieldMask updateMask = new FieldMask();
// Make the request
ComponentSettings response = securityCenterSettingsServiceClient.UpdateComponentSettings(componentSettings, updateMask);
UpdateComponentSettings(UpdateComponentSettingsRequest, CallSettings)
public virtual ComponentSettings UpdateComponentSettings(UpdateComponentSettingsRequest request, CallSettings callSettings = null)
Updates the Component Settings.
Parameters | |
---|---|
Name | Description |
request | UpdateComponentSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ComponentSettings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
UpdateComponentSettingsRequest request = new UpdateComponentSettingsRequest
{
ComponentSettings = new ComponentSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
ComponentSettings response = securityCenterSettingsServiceClient.UpdateComponentSettings(request);
UpdateComponentSettingsAsync(ComponentSettings, FieldMask, CallSettings)
public virtual Task<ComponentSettings> UpdateComponentSettingsAsync(ComponentSettings componentSettings, FieldMask updateMask, CallSettings callSettings = null)
Updates the Component Settings.
Parameters | |
---|---|
Name | Description |
componentSettings | ComponentSettings Required. The component settings to update. The component settings'
|
updateMask | FieldMask The list of fields to be updated on the component settings resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ComponentSettings componentSettings = new ComponentSettings();
FieldMask updateMask = new FieldMask();
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.UpdateComponentSettingsAsync(componentSettings, updateMask);
UpdateComponentSettingsAsync(ComponentSettings, FieldMask, CancellationToken)
public virtual Task<ComponentSettings> UpdateComponentSettingsAsync(ComponentSettings componentSettings, FieldMask updateMask, CancellationToken cancellationToken)
Updates the Component Settings.
Parameters | |
---|---|
Name | Description |
componentSettings | ComponentSettings Required. The component settings to update. The component settings'
|
updateMask | FieldMask The list of fields to be updated on the component settings resource. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
ComponentSettings componentSettings = new ComponentSettings();
FieldMask updateMask = new FieldMask();
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.UpdateComponentSettingsAsync(componentSettings, updateMask);
UpdateComponentSettingsAsync(UpdateComponentSettingsRequest, CallSettings)
public virtual Task<ComponentSettings> UpdateComponentSettingsAsync(UpdateComponentSettingsRequest request, CallSettings callSettings = null)
Updates the Component Settings.
Parameters | |
---|---|
Name | Description |
request | UpdateComponentSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateComponentSettingsRequest request = new UpdateComponentSettingsRequest
{
ComponentSettings = new ComponentSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.UpdateComponentSettingsAsync(request);
UpdateComponentSettingsAsync(UpdateComponentSettingsRequest, CancellationToken)
public virtual Task<ComponentSettings> UpdateComponentSettingsAsync(UpdateComponentSettingsRequest request, CancellationToken cancellationToken)
Updates the Component Settings.
Parameters | |
---|---|
Name | Description |
request | UpdateComponentSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComponentSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateComponentSettingsRequest request = new UpdateComponentSettingsRequest
{
ComponentSettings = new ComponentSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
ComponentSettings response = await securityCenterSettingsServiceClient.UpdateComponentSettingsAsync(request);
UpdateSettings(Settings, FieldMask, CallSettings)
public virtual Settings UpdateSettings(Settings settings, FieldMask updateMask, CallSettings callSettings = null)
Updates the Settings.
Parameters | |
---|---|
Name | Description |
settings | Settings Required. The settings to update. The settings'
|
updateMask | FieldMask The list of fields to be updated on the settings. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Settings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = securityCenterSettingsServiceClient.UpdateSettings(settings, updateMask);
UpdateSettings(UpdateSettingsRequest, CallSettings)
public virtual Settings UpdateSettings(UpdateSettingsRequest request, CallSettings callSettings = null)
Updates the Settings.
Parameters | |
---|---|
Name | Description |
request | UpdateSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Settings | The RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
Settings = new Settings(),
UpdateMask = new FieldMask(),
};
// Make the request
Settings response = securityCenterSettingsServiceClient.UpdateSettings(request);
UpdateSettingsAsync(Settings, FieldMask, CallSettings)
public virtual Task<Settings> UpdateSettingsAsync(Settings settings, FieldMask updateMask, CallSettings callSettings = null)
Updates the Settings.
Parameters | |
---|---|
Name | Description |
settings | Settings Required. The settings to update. The settings'
|
updateMask | FieldMask The list of fields to be updated on the settings. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = await securityCenterSettingsServiceClient.UpdateSettingsAsync(settings, updateMask);
UpdateSettingsAsync(Settings, FieldMask, CancellationToken)
public virtual Task<Settings> UpdateSettingsAsync(Settings settings, FieldMask updateMask, CancellationToken cancellationToken)
Updates the Settings.
Parameters | |
---|---|
Name | Description |
settings | Settings Required. The settings to update. The settings'
|
updateMask | FieldMask The list of fields to be updated on the settings. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = await securityCenterSettingsServiceClient.UpdateSettingsAsync(settings, updateMask);
UpdateSettingsAsync(UpdateSettingsRequest, CallSettings)
public virtual Task<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CallSettings callSettings = null)
Updates the Settings.
Parameters | |
---|---|
Name | Description |
request | UpdateSettingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
Settings = new Settings(),
UpdateMask = new FieldMask(),
};
// Make the request
Settings response = await securityCenterSettingsServiceClient.UpdateSettingsAsync(request);
UpdateSettingsAsync(UpdateSettingsRequest, CancellationToken)
public virtual Task<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CancellationToken cancellationToken)
Updates the Settings.
Parameters | |
---|---|
Name | Description |
request | UpdateSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSettings | A Task containing the RPC response. |
// Create client
SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
Settings = new Settings(),
UpdateMask = new FieldMask(),
};
// Make the request
Settings response = await securityCenterSettingsServiceClient.UpdateSettingsAsync(request);