public abstract class SecurityCenterClient
Reference documentation and code samples for the Google Cloud Security Command Center v1 API class SecurityCenterClient.
SecurityCenter client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.SecurityCenter.V1Assembly
Google.Cloud.SecurityCenter.V1.dll
Remarks
V1 APIs for Security Center service.
Properties
BulkMuteFindingsOperationsClient
public virtual OperationsClient BulkMuteFindingsOperationsClient { get; }
The long-running operations client for BulkMuteFindings
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the SecurityCenter service, which is a host of "securitycenter.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default SecurityCenter scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default SecurityCenter scopes are:
GrpcClient
public virtual SecurityCenter.SecurityCenterClient GrpcClient { get; }
The underlying gRPC SecurityCenter client
Property Value | |
---|---|
Type | Description |
SecurityCenterSecurityCenterClient |
RunAssetDiscoveryOperationsClient
public virtual OperationsClient RunAssetDiscoveryOperationsClient { get; }
The long-running operations client for RunAssetDiscovery
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
BatchCreateResourceValueConfigs(OrganizationName, IEnumerable<CreateResourceValueConfigRequest>, CallSettings)
public virtual BatchCreateResourceValueConfigsResponse BatchCreateResourceValueConfigs(OrganizationName parent, IEnumerable<CreateResourceValueConfigRequest> requests, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchCreateResourceValueConfigsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(parent, requests);
BatchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest, CallSettings)
public virtual BatchCreateResourceValueConfigsResponse BatchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest request, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
request |
BatchCreateResourceValueConfigsRequest 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 |
BatchCreateResourceValueConfigsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CreateResourceValueConfigRequest(),
},
};
// Make the request
BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(request);
BatchCreateResourceValueConfigs(string, IEnumerable<CreateResourceValueConfigRequest>, CallSettings)
public virtual BatchCreateResourceValueConfigsResponse BatchCreateResourceValueConfigs(string parent, IEnumerable<CreateResourceValueConfigRequest> requests, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchCreateResourceValueConfigsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(parent, requests);
BatchCreateResourceValueConfigsAsync(OrganizationName, IEnumerable<CreateResourceValueConfigRequest>, CallSettings)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(OrganizationName parent, IEnumerable<CreateResourceValueConfigRequest> requests, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests);
BatchCreateResourceValueConfigsAsync(OrganizationName, IEnumerable<CreateResourceValueConfigRequest>, CancellationToken)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(OrganizationName parent, IEnumerable<CreateResourceValueConfigRequest> requests, CancellationToken cancellationToken)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests);
BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest, CallSettings)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest request, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
request |
BatchCreateResourceValueConfigsRequest 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 |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CreateResourceValueConfigRequest(),
},
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(request);
BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest, CancellationToken)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest request, CancellationToken cancellationToken)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
request |
BatchCreateResourceValueConfigsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Requests =
{
new CreateResourceValueConfigRequest(),
},
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(request);
BatchCreateResourceValueConfigsAsync(string, IEnumerable<CreateResourceValueConfigRequest>, CallSettings)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(string parent, IEnumerable<CreateResourceValueConfigRequest> requests, CallSettings callSettings = null)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests);
BatchCreateResourceValueConfigsAsync(string, IEnumerable<CreateResourceValueConfigRequest>, CancellationToken)
public virtual Task<BatchCreateResourceValueConfigsResponse> BatchCreateResourceValueConfigsAsync(string parent, IEnumerable<CreateResourceValueConfigRequest> requests, CancellationToken cancellationToken)
Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new ResourceValueConfig's parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field. |
requests |
IEnumerableCreateResourceValueConfigRequest Required. The resource value configs to be created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBatchCreateResourceValueConfigsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
IEnumerable<CreateResourceValueConfigRequest> requests = new CreateResourceValueConfigRequest[]
{
new CreateResourceValueConfigRequest(),
};
// Make the request
BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests);
BulkMuteFindings(IResourceName, CallSettings)
public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(IResourceName parent, CallSettings callSettings = null)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
parent |
IResourceName Required. The parent, at which bulk action needs to be applied. Its format
is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBulkMuteFindingsResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindings(BulkMuteFindingsRequest, CallSettings)
public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(BulkMuteFindingsRequest request, CallSettings callSettings = null)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
request |
BulkMuteFindingsRequest 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 |
OperationBulkMuteFindingsResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Filter = "",
MuteState = BulkMuteFindingsRequest.Types.MuteState.Unspecified,
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(request);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindings(string, CallSettings)
public virtual Operation<BulkMuteFindingsResponse, Empty> BulkMuteFindings(string parent, CallSettings callSettings = null)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, at which bulk action needs to be applied. Its format
is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBulkMuteFindingsResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = securityCenterClient.BulkMuteFindings(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(IResourceName, CallSettings)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(IResourceName parent, CallSettings callSettings = null)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
parent |
IResourceName Required. The parent, at which bulk action needs to be applied. Its format
is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(IResourceName, CancellationToken)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(IResourceName parent, CancellationToken cancellationToken)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
parent |
IResourceName Required. The parent, at which bulk action needs to be applied. Its format
is |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(BulkMuteFindingsRequest, CallSettings)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(BulkMuteFindingsRequest request, CallSettings callSettings = null)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
request |
BulkMuteFindingsRequest 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 |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Filter = "",
MuteState = BulkMuteFindingsRequest.Types.MuteState.Unspecified,
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(BulkMuteFindingsRequest, CancellationToken)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(BulkMuteFindingsRequest request, CancellationToken cancellationToken)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
request |
BulkMuteFindingsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BulkMuteFindingsRequest request = new BulkMuteFindingsRequest
{
ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Filter = "",
MuteState = BulkMuteFindingsRequest.Types.MuteState.Unspecified,
};
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(string, CallSettings)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(string parent, CallSettings callSettings = null)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, at which bulk action needs to be applied. Its format
is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
BulkMuteFindingsAsync(string, CancellationToken)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> BulkMuteFindingsAsync(string parent, CancellationToken cancellationToken)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, at which bulk action needs to be applied. Its format
is |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "a/wildcard/resource";
// Make the request
Operation<BulkMuteFindingsResponse, Empty> response = await securityCenterClient.BulkMuteFindingsAsync(parent);
// Poll until the returned long-running operation is complete
Operation<BulkMuteFindingsResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BulkMuteFindingsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BulkMuteFindingsResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result;
}
Create()
public static SecurityCenterClient Create()
Synchronously creates a SecurityCenterClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecurityCenterClientBuilder.
Returns | |
---|---|
Type | Description |
SecurityCenterClient |
The created SecurityCenterClient. |
CreateAsync(CancellationToken)
public static Task<SecurityCenterClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a SecurityCenterClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SecurityCenterClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskSecurityCenterClient |
The task representing the created SecurityCenterClient. |
CreateBigQueryExport(FolderName, BigQueryExport, string, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(FolderName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExport(OrganizationName, BigQueryExport, string, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(OrganizationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExport(ProjectName, BigQueryExport, string, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(ProjectName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExport(CreateBigQueryExportRequest, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(CreateBigQueryExportRequest request, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
CreateBigQueryExportRequest 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 |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
BigQueryExport = new BigQueryExport(),
BigQueryExportId = "",
};
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(request);
CreateBigQueryExport(string, BigQueryExport, string, CallSettings)
public virtual BigQueryExport CreateBigQueryExport(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(FolderName, BigQueryExport, string, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(FolderName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(FolderName, BigQueryExport, string, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(FolderName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(OrganizationName, BigQueryExport, string, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(OrganizationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(OrganizationName, BigQueryExport, string, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(OrganizationName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(ProjectName, BigQueryExport, string, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(ProjectName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(ProjectName, BigQueryExport, string, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(ProjectName parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(CreateBigQueryExportRequest, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(CreateBigQueryExportRequest request, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
CreateBigQueryExportRequest 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 |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
BigQueryExport = new BigQueryExport(),
BigQueryExportId = "",
};
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(request);
CreateBigQueryExportAsync(CreateBigQueryExportRequest, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(CreateBigQueryExportRequest request, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
CreateBigQueryExportRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateBigQueryExportRequest request = new CreateBigQueryExportRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
BigQueryExport = new BigQueryExport(),
BigQueryExportId = "",
};
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(request);
CreateBigQueryExportAsync(string, BigQueryExport, string, CallSettings)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CallSettings callSettings = null)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateBigQueryExportAsync(string, BigQueryExport, string, CancellationToken)
public virtual Task<BigQueryExport> CreateBigQueryExportAsync(string parent, BigQueryExport bigQueryExport, string bigQueryExportId, CancellationToken cancellationToken)
Creates a BigQuery export.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource of the new BigQuery export. Its
format is |
bigQueryExport |
BigQueryExport Required. The BigQuery export being created. |
bigQueryExportId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
BigQueryExport bigQueryExport = new BigQueryExport();
string bigQueryExportId = "";
// Make the request
BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId);
CreateEventThreatDetectionCustomModule(CreateEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual EventThreatDetectionCustomModule CreateEventThreatDetectionCustomModule(CreateEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
request |
CreateEventThreatDetectionCustomModuleRequest 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 |
EventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateEventThreatDetectionCustomModuleRequest request = new CreateEventThreatDetectionCustomModuleRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(),
};
// Make the request
EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(request);
CreateEventThreatDetectionCustomModule(EventThreatDetectionSettingsName, EventThreatDetectionCustomModule, CallSettings)
public virtual EventThreatDetectionCustomModule CreateEventThreatDetectionCustomModule(EventThreatDetectionSettingsName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule, CallSettings callSettings = null)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. The new custom module's parent. Its format is:
|
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
// Make the request
EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(parent, eventThreatDetectionCustomModule);
CreateEventThreatDetectionCustomModule(string, EventThreatDetectionCustomModule, CallSettings)
public virtual EventThreatDetectionCustomModule CreateEventThreatDetectionCustomModule(string parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule, CallSettings callSettings = null)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The new custom module's parent. Its format is:
|
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
// Make the request
EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(parent, eventThreatDetectionCustomModule);
CreateEventThreatDetectionCustomModuleAsync(CreateEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual Task<EventThreatDetectionCustomModule> CreateEventThreatDetectionCustomModuleAsync(CreateEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
request |
CreateEventThreatDetectionCustomModuleRequest 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 |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateEventThreatDetectionCustomModuleRequest request = new CreateEventThreatDetectionCustomModuleRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(),
};
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(request);
CreateEventThreatDetectionCustomModuleAsync(CreateEventThreatDetectionCustomModuleRequest, CancellationToken)
public virtual Task<EventThreatDetectionCustomModule> CreateEventThreatDetectionCustomModuleAsync(CreateEventThreatDetectionCustomModuleRequest request, CancellationToken cancellationToken)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
request |
CreateEventThreatDetectionCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateEventThreatDetectionCustomModuleRequest request = new CreateEventThreatDetectionCustomModuleRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(),
};
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(request);
CreateEventThreatDetectionCustomModuleAsync(EventThreatDetectionSettingsName, EventThreatDetectionCustomModule, CallSettings)
public virtual Task<EventThreatDetectionCustomModule> CreateEventThreatDetectionCustomModuleAsync(EventThreatDetectionSettingsName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule, CallSettings callSettings = null)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. The new custom module's parent. Its format is:
|
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(parent, eventThreatDetectionCustomModule);
CreateEventThreatDetectionCustomModuleAsync(EventThreatDetectionSettingsName, EventThreatDetectionCustomModule, CancellationToken)
public virtual Task<EventThreatDetectionCustomModule> CreateEventThreatDetectionCustomModuleAsync(EventThreatDetectionSettingsName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule, CancellationToken cancellationToken)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. The new custom module's parent. Its format is:
|
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(parent, eventThreatDetectionCustomModule);
CreateEventThreatDetectionCustomModuleAsync(string, EventThreatDetectionCustomModule, CallSettings)
public virtual Task<EventThreatDetectionCustomModule> CreateEventThreatDetectionCustomModuleAsync(string parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule, CallSettings callSettings = null)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The new custom module's parent. Its format is:
|
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(parent, eventThreatDetectionCustomModule);
CreateEventThreatDetectionCustomModuleAsync(string, EventThreatDetectionCustomModule, CancellationToken)
public virtual Task<EventThreatDetectionCustomModule> CreateEventThreatDetectionCustomModuleAsync(string parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule, CancellationToken cancellationToken)
Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The new custom module's parent. Its format is:
|
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(parent, eventThreatDetectionCustomModule);
CreateFinding(CreateFindingRequest, CallSettings)
public virtual Finding CreateFinding(CreateFindingRequest request, CallSettings callSettings = null)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
CreateFindingRequest 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 |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateFindingRequest request = new CreateFindingRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
FindingId = "",
Finding = new Finding(),
};
// Make the request
Finding response = securityCenterClient.CreateFinding(request);
CreateFinding(SourceName, string, Finding, CallSettings)
public virtual Finding CreateFinding(SourceName parent, string findingId, Finding finding, CallSettings callSettings = null)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
SourceName Required. Resource name of the new finding's parent. Its format should be
|
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
string findingId = "";
Finding finding = new Finding();
// Make the request
Finding response = securityCenterClient.CreateFinding(parent, findingId, finding);
CreateFinding(string, string, Finding, CallSettings)
public virtual Finding CreateFinding(string parent, string findingId, Finding finding, CallSettings callSettings = null)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new finding's parent. Its format should be
|
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
string findingId = "";
Finding finding = new Finding();
// Make the request
Finding response = securityCenterClient.CreateFinding(parent, findingId, finding);
CreateFindingAsync(CreateFindingRequest, CallSettings)
public virtual Task<Finding> CreateFindingAsync(CreateFindingRequest request, CallSettings callSettings = null)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
CreateFindingRequest 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 |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateFindingRequest request = new CreateFindingRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
FindingId = "",
Finding = new Finding(),
};
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(request);
CreateFindingAsync(CreateFindingRequest, CancellationToken)
public virtual Task<Finding> CreateFindingAsync(CreateFindingRequest request, CancellationToken cancellationToken)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
CreateFindingRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateFindingRequest request = new CreateFindingRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
FindingId = "",
Finding = new Finding(),
};
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(request);
CreateFindingAsync(SourceName, string, Finding, CallSettings)
public virtual Task<Finding> CreateFindingAsync(SourceName parent, string findingId, Finding finding, CallSettings callSettings = null)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
SourceName Required. Resource name of the new finding's parent. Its format should be
|
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
string findingId = "";
Finding finding = new Finding();
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding);
CreateFindingAsync(SourceName, string, Finding, CancellationToken)
public virtual Task<Finding> CreateFindingAsync(SourceName parent, string findingId, Finding finding, CancellationToken cancellationToken)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
SourceName Required. Resource name of the new finding's parent. Its format should be
|
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
string findingId = "";
Finding finding = new Finding();
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding);
CreateFindingAsync(string, string, Finding, CallSettings)
public virtual Task<Finding> CreateFindingAsync(string parent, string findingId, Finding finding, CallSettings callSettings = null)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new finding's parent. Its format should be
|
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
string findingId = "";
Finding finding = new Finding();
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding);
CreateFindingAsync(string, string, Finding, CancellationToken)
public virtual Task<Finding> CreateFindingAsync(string parent, string findingId, Finding finding, CancellationToken cancellationToken)
Creates a finding. The corresponding source must exist for finding creation to succeed.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new finding's parent. Its format should be
|
findingId |
string Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
finding |
Finding Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
string findingId = "";
Finding finding = new Finding();
// Make the request
Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding);
CreateMuteConfig(FolderName, MuteConfig, CallSettings)
public virtual MuteConfig CreateMuteConfig(FolderName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);
CreateMuteConfig(FolderName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(FolderName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(LocationName, MuteConfig, CallSettings)
public virtual MuteConfig CreateMuteConfig(LocationName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);
CreateMuteConfig(LocationName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(LocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(OrganizationName, MuteConfig, CallSettings)
public virtual MuteConfig CreateMuteConfig(OrganizationName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);
CreateMuteConfig(OrganizationName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(ProjectName, MuteConfig, CallSettings)
public virtual MuteConfig CreateMuteConfig(ProjectName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);
CreateMuteConfig(ProjectName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(CreateMuteConfigRequest, CallSettings)
public virtual MuteConfig CreateMuteConfig(CreateMuteConfigRequest request, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
request |
CreateMuteConfigRequest 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 |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
MuteConfig = new MuteConfig(),
MuteConfigId = "",
};
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(request);
CreateMuteConfig(FolderLocationName, MuteConfig, CallSettings)
public virtual MuteConfig CreateMuteConfig(FolderLocationName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);
CreateMuteConfig(FolderLocationName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(FolderLocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(OrganizationLocationName, MuteConfig, CallSettings)
public virtual MuteConfig CreateMuteConfig(OrganizationLocationName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);
CreateMuteConfig(OrganizationLocationName, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(OrganizationLocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfig(string, MuteConfig, CallSettings)
public virtual MuteConfig CreateMuteConfig(string parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig);
CreateMuteConfig(string, MuteConfig, string, CallSettings)
public virtual MuteConfig CreateMuteConfig(string parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(FolderName, MuteConfig, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(FolderName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(FolderName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(FolderName, MuteConfig, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderName parent, MuteConfig muteConfig, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(LocationName, MuteConfig, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(LocationName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(LocationName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(LocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(LocationName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(LocationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(LocationName, MuteConfig, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(LocationName parent, MuteConfig muteConfig, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(OrganizationName, MuteConfig, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(OrganizationName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(OrganizationName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(OrganizationName, MuteConfig, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationName parent, MuteConfig muteConfig, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(ProjectName, MuteConfig, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(ProjectName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(ProjectName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(ProjectName, MuteConfig, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(ProjectName parent, MuteConfig muteConfig, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(CreateMuteConfigRequest, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(CreateMuteConfigRequest request, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
request |
CreateMuteConfigRequest 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 |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
MuteConfig = new MuteConfig(),
MuteConfigId = "",
};
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(request);
CreateMuteConfigAsync(CreateMuteConfigRequest, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(CreateMuteConfigRequest request, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
request |
CreateMuteConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateMuteConfigRequest request = new CreateMuteConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
MuteConfig = new MuteConfig(),
MuteConfigId = "",
};
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(request);
CreateMuteConfigAsync(FolderLocationName, MuteConfig, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderLocationName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(FolderLocationName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderLocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(FolderLocationName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderLocationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(FolderLocationName, MuteConfig, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(FolderLocationName parent, MuteConfig muteConfig, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationLocationName parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationLocationName parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationLocationName parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(OrganizationLocationName parent, MuteConfig muteConfig, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(string, MuteConfig, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateMuteConfigAsync(string, MuteConfig, string, CallSettings)
public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, string muteConfigId, CallSettings callSettings = null)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(string, MuteConfig, string, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, string muteConfigId, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
muteConfigId |
string Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
string muteConfigId = "";
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId);
CreateMuteConfigAsync(string, MuteConfig, CancellationToken)
public virtual Task<MuteConfig> CreateMuteConfigAsync(string parent, MuteConfig muteConfig, CancellationToken cancellationToken)
Creates a mute config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new mute configs's parent. Its format is
|
muteConfig |
MuteConfig Required. The mute config being created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
MuteConfig muteConfig = new MuteConfig();
// Make the request
MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig);
CreateNotificationConfig(FolderName, NotificationConfig, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(FolderName parent, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig);
CreateNotificationConfig(FolderName, string, NotificationConfig, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(FolderName parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig);
CreateNotificationConfig(OrganizationName, NotificationConfig, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(OrganizationName parent, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig);
CreateNotificationConfig(OrganizationName, string, NotificationConfig, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(OrganizationName parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig);
CreateNotificationConfig(ProjectName, NotificationConfig, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(ProjectName parent, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig);
CreateNotificationConfig(ProjectName, string, NotificationConfig, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(ProjectName parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig);
CreateNotificationConfig(CreateNotificationConfigRequest, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(CreateNotificationConfigRequest request, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
request |
CreateNotificationConfigRequest 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 |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
ConfigId = "",
NotificationConfig = new NotificationConfig(),
};
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(request);
CreateNotificationConfig(string, NotificationConfig, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(string parent, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig);
CreateNotificationConfig(string, string, NotificationConfig, CallSettings)
public virtual NotificationConfig CreateNotificationConfig(string parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig);
CreateNotificationConfigAsync(FolderName, NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(FolderName parent, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);
CreateNotificationConfigAsync(FolderName, NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(FolderName parent, NotificationConfig notificationConfig, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);
CreateNotificationConfigAsync(FolderName, string, NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(FolderName parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);
CreateNotificationConfigAsync(FolderName, string, NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(FolderName parent, string configId, NotificationConfig notificationConfig, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);
CreateNotificationConfigAsync(OrganizationName, NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationName parent, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);
CreateNotificationConfigAsync(OrganizationName, NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationName parent, NotificationConfig notificationConfig, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);
CreateNotificationConfigAsync(OrganizationName, string, NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationName parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);
CreateNotificationConfigAsync(OrganizationName, string, NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(OrganizationName parent, string configId, NotificationConfig notificationConfig, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);
CreateNotificationConfigAsync(ProjectName, NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(ProjectName parent, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);
CreateNotificationConfigAsync(ProjectName, NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(ProjectName parent, NotificationConfig notificationConfig, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);
CreateNotificationConfigAsync(ProjectName, string, NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(ProjectName parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);
CreateNotificationConfigAsync(ProjectName, string, NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(ProjectName parent, string configId, NotificationConfig notificationConfig, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);
CreateNotificationConfigAsync(CreateNotificationConfigRequest, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(CreateNotificationConfigRequest request, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
request |
CreateNotificationConfigRequest 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 |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
ConfigId = "",
NotificationConfig = new NotificationConfig(),
};
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(request);
CreateNotificationConfigAsync(CreateNotificationConfigRequest, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(CreateNotificationConfigRequest request, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
request |
CreateNotificationConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateNotificationConfigRequest request = new CreateNotificationConfigRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
ConfigId = "",
NotificationConfig = new NotificationConfig(),
};
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(request);
CreateNotificationConfigAsync(string, NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);
CreateNotificationConfigAsync(string, NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, NotificationConfig notificationConfig, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format
is |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig);
CreateNotificationConfigAsync(string, string, NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, string configId, NotificationConfig notificationConfig, CallSettings callSettings = null)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);
CreateNotificationConfigAsync(string, string, NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> CreateNotificationConfigAsync(string parent, string configId, NotificationConfig notificationConfig, CancellationToken cancellationToken)
Creates a notification config.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new notification config's parent. Its format
is |
configId |
string Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
notificationConfig |
NotificationConfig Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
string configId = "";
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig);
CreateSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual SecurityHealthAnalyticsCustomModule CreateSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
request |
CreateSecurityHealthAnalyticsCustomModuleRequest 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 |
SecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(request);
CreateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CallSettings)
public virtual SecurityHealthAnalyticsCustomModule CreateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsSettingsName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CallSettings callSettings = null)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Resource name of the new custom module's parent. Its format is
|
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule);
CreateSecurityHealthAnalyticsCustomModule(string, SecurityHealthAnalyticsCustomModule, CallSettings)
public virtual SecurityHealthAnalyticsCustomModule CreateSecurityHealthAnalyticsCustomModule(string parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CallSettings callSettings = null)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new custom module's parent. Its format is
|
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule);
CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
request |
CreateSecurityHealthAnalyticsCustomModuleRequest 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 |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(request);
CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)
public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
request |
CreateSecurityHealthAnalyticsCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(request);
CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CallSettings)
public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CallSettings callSettings = null)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Resource name of the new custom module's parent. Its format is
|
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule);
CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CancellationToken)
public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CancellationToken cancellationToken)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Resource name of the new custom module's parent. Its format is
|
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule);
CreateSecurityHealthAnalyticsCustomModuleAsync(string, SecurityHealthAnalyticsCustomModule, CallSettings)
public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(string parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CallSettings callSettings = null)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new custom module's parent. Its format is
|
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule);
CreateSecurityHealthAnalyticsCustomModuleAsync(string, SecurityHealthAnalyticsCustomModule, CancellationToken)
public virtual Task<SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModuleAsync(string parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, CancellationToken cancellationToken)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new custom module's parent. Its format is
|
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. SecurityHealthAnalytics custom module to create. The provided name is ignored and reset with provided parent information and server-generated ID. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule);
CreateSource(OrganizationName, Source, CallSettings)
public virtual Source CreateSource(OrganizationName parent, Source source, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new source's parent. Its format should be
|
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Source source = new Source();
// Make the request
Source response = securityCenterClient.CreateSource(parent, source);
CreateSource(CreateSourceRequest, CallSettings)
public virtual Source CreateSource(CreateSourceRequest request, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
request |
CreateSourceRequest 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 |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Source = new Source(),
};
// Make the request
Source response = securityCenterClient.CreateSource(request);
CreateSource(string, Source, CallSettings)
public virtual Source CreateSource(string parent, Source source, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new source's parent. Its format should be
|
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
Source source = new Source();
// Make the request
Source response = securityCenterClient.CreateSource(parent, source);
CreateSourceAsync(OrganizationName, Source, CallSettings)
public virtual Task<Source> CreateSourceAsync(OrganizationName parent, Source source, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new source's parent. Its format should be
|
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Source source = new Source();
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(parent, source);
CreateSourceAsync(OrganizationName, Source, CancellationToken)
public virtual Task<Source> CreateSourceAsync(OrganizationName parent, Source source, CancellationToken cancellationToken)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the new source's parent. Its format should be
|
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Source source = new Source();
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(parent, source);
CreateSourceAsync(CreateSourceRequest, CallSettings)
public virtual Task<Source> CreateSourceAsync(CreateSourceRequest request, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
request |
CreateSourceRequest 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 |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Source = new Source(),
};
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(request);
CreateSourceAsync(CreateSourceRequest, CancellationToken)
public virtual Task<Source> CreateSourceAsync(CreateSourceRequest request, CancellationToken cancellationToken)
Creates a source.
Parameters | |
---|---|
Name | Description |
request |
CreateSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Source = new Source(),
};
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(request);
CreateSourceAsync(string, Source, CallSettings)
public virtual Task<Source> CreateSourceAsync(string parent, Source source, CallSettings callSettings = null)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new source's parent. Its format should be
|
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
Source source = new Source();
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(parent, source);
CreateSourceAsync(string, Source, CancellationToken)
public virtual Task<Source> CreateSourceAsync(string parent, Source source, CancellationToken cancellationToken)
Creates a source.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the new source's parent. Its format should be
|
source |
Source Required. The Source being created, only the display_name and description will be used. All other fields will be ignored. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
Source source = new Source();
// Make the request
Source response = await securityCenterClient.CreateSourceAsync(parent, source);
DeleteBigQueryExport(BigQueryExportName, CallSettings)
public virtual void DeleteBigQueryExport(BigQueryExportName name, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. The name of the BigQuery export to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
securityCenterClient.DeleteBigQueryExport(name);
DeleteBigQueryExport(DeleteBigQueryExportRequest, CallSettings)
public virtual void DeleteBigQueryExport(DeleteBigQueryExportRequest request, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
DeleteBigQueryExportRequest 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
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
securityCenterClient.DeleteBigQueryExport(request);
DeleteBigQueryExport(string, CallSettings)
public virtual void DeleteBigQueryExport(string name, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the BigQuery export to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
securityCenterClient.DeleteBigQueryExport(name);
DeleteBigQueryExportAsync(BigQueryExportName, CallSettings)
public virtual Task DeleteBigQueryExportAsync(BigQueryExportName name, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. The name of the BigQuery export to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);
DeleteBigQueryExportAsync(BigQueryExportName, CancellationToken)
public virtual Task DeleteBigQueryExportAsync(BigQueryExportName name, CancellationToken cancellationToken)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. The name of the BigQuery export to delete. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);
DeleteBigQueryExportAsync(DeleteBigQueryExportRequest, CallSettings)
public virtual Task DeleteBigQueryExportAsync(DeleteBigQueryExportRequest request, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
DeleteBigQueryExportRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(request);
DeleteBigQueryExportAsync(DeleteBigQueryExportRequest, CancellationToken)
public virtual Task DeleteBigQueryExportAsync(DeleteBigQueryExportRequest request, CancellationToken cancellationToken)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
DeleteBigQueryExportRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(request);
DeleteBigQueryExportAsync(string, CallSettings)
public virtual Task DeleteBigQueryExportAsync(string name, CallSettings callSettings = null)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the BigQuery export to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);
DeleteBigQueryExportAsync(string, CancellationToken)
public virtual Task DeleteBigQueryExportAsync(string name, CancellationToken cancellationToken)
Deletes an existing BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the BigQuery export to delete. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
await securityCenterClient.DeleteBigQueryExportAsync(name);
DeleteEventThreatDetectionCustomModule(DeleteEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual void DeleteEventThreatDetectionCustomModule(DeleteEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
request |
DeleteEventThreatDetectionCustomModuleRequest 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
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteEventThreatDetectionCustomModuleRequest request = new DeleteEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
securityCenterClient.DeleteEventThreatDetectionCustomModule(request);
DeleteEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName, CallSettings)
public virtual void DeleteEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName name, CallSettings callSettings = null)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
EventThreatDetectionCustomModuleName Required. Name of the custom module to delete. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
securityCenterClient.DeleteEventThreatDetectionCustomModule(name);
DeleteEventThreatDetectionCustomModule(string, CallSettings)
public virtual void DeleteEventThreatDetectionCustomModule(string name, CallSettings callSettings = null)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to delete. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]";
// Make the request
securityCenterClient.DeleteEventThreatDetectionCustomModule(name);
DeleteEventThreatDetectionCustomModuleAsync(DeleteEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual Task DeleteEventThreatDetectionCustomModuleAsync(DeleteEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
request |
DeleteEventThreatDetectionCustomModuleRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteEventThreatDetectionCustomModuleRequest request = new DeleteEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(request);
DeleteEventThreatDetectionCustomModuleAsync(DeleteEventThreatDetectionCustomModuleRequest, CancellationToken)
public virtual Task DeleteEventThreatDetectionCustomModuleAsync(DeleteEventThreatDetectionCustomModuleRequest request, CancellationToken cancellationToken)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
request |
DeleteEventThreatDetectionCustomModuleRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteEventThreatDetectionCustomModuleRequest request = new DeleteEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(request);
DeleteEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName, CallSettings)
public virtual Task DeleteEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName name, CallSettings callSettings = null)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
EventThreatDetectionCustomModuleName Required. Name of the custom module to delete. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(name);
DeleteEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName, CancellationToken)
public virtual Task DeleteEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName name, CancellationToken cancellationToken)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
EventThreatDetectionCustomModuleName Required. Name of the custom module to delete. Its format is:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(name);
DeleteEventThreatDetectionCustomModuleAsync(string, CallSettings)
public virtual Task DeleteEventThreatDetectionCustomModuleAsync(string name, CallSettings callSettings = null)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to delete. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]";
// Make the request
await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(name);
DeleteEventThreatDetectionCustomModuleAsync(string, CancellationToken)
public virtual Task DeleteEventThreatDetectionCustomModuleAsync(string name, CancellationToken cancellationToken)
Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to delete. Its format is:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]";
// Make the request
await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(name);
DeleteMuteConfig(DeleteMuteConfigRequest, CallSettings)
public virtual void DeleteMuteConfig(DeleteMuteConfigRequest request, CallSettings callSettings = null)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
request |
DeleteMuteConfigRequest 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
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
securityCenterClient.DeleteMuteConfig(request);
DeleteMuteConfig(MuteConfigName, CallSettings)
public virtual void DeleteMuteConfig(MuteConfigName name, CallSettings callSettings = null)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
securityCenterClient.DeleteMuteConfig(name);
DeleteMuteConfig(string, CallSettings)
public virtual void DeleteMuteConfig(string name, CallSettings callSettings = null)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
securityCenterClient.DeleteMuteConfig(name);
DeleteMuteConfigAsync(DeleteMuteConfigRequest, CallSettings)
public virtual Task DeleteMuteConfigAsync(DeleteMuteConfigRequest request, CallSettings callSettings = null)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
request |
DeleteMuteConfigRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(request);
DeleteMuteConfigAsync(DeleteMuteConfigRequest, CancellationToken)
public virtual Task DeleteMuteConfigAsync(DeleteMuteConfigRequest request, CancellationToken cancellationToken)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
request |
DeleteMuteConfigRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteMuteConfigRequest request = new DeleteMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(request);
DeleteMuteConfigAsync(MuteConfigName, CallSettings)
public virtual Task DeleteMuteConfigAsync(MuteConfigName name, CallSettings callSettings = null)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);
DeleteMuteConfigAsync(MuteConfigName, CancellationToken)
public virtual Task DeleteMuteConfigAsync(MuteConfigName name, CancellationToken cancellationToken)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to delete. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);
DeleteMuteConfigAsync(string, CallSettings)
public virtual Task DeleteMuteConfigAsync(string name, CallSettings callSettings = null)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);
DeleteMuteConfigAsync(string, CancellationToken)
public virtual Task DeleteMuteConfigAsync(string name, CancellationToken cancellationToken)
Deletes an existing mute config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to delete. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
await securityCenterClient.DeleteMuteConfigAsync(name);
DeleteNotificationConfig(DeleteNotificationConfigRequest, CallSettings)
public virtual void DeleteNotificationConfig(DeleteNotificationConfigRequest request, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
request |
DeleteNotificationConfigRequest 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
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
securityCenterClient.DeleteNotificationConfig(request);
DeleteNotificationConfig(NotificationConfigName, CallSettings)
public virtual void DeleteNotificationConfig(NotificationConfigName name, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
// Make the request
securityCenterClient.DeleteNotificationConfig(name);
DeleteNotificationConfig(string, CallSettings)
public virtual void DeleteNotificationConfig(string name, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
securityCenterClient.DeleteNotificationConfig(name);
DeleteNotificationConfigAsync(DeleteNotificationConfigRequest, CallSettings)
public virtual Task DeleteNotificationConfigAsync(DeleteNotificationConfigRequest request, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
request |
DeleteNotificationConfigRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(request);
DeleteNotificationConfigAsync(DeleteNotificationConfigRequest, CancellationToken)
public virtual Task DeleteNotificationConfigAsync(DeleteNotificationConfigRequest request, CancellationToken cancellationToken)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
request |
DeleteNotificationConfigRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(request);
DeleteNotificationConfigAsync(NotificationConfigName, CallSettings)
public virtual Task DeleteNotificationConfigAsync(NotificationConfigName name, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(name);
DeleteNotificationConfigAsync(NotificationConfigName, CancellationToken)
public virtual Task DeleteNotificationConfigAsync(NotificationConfigName name, CancellationToken cancellationToken)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to delete. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(name);
DeleteNotificationConfigAsync(string, CallSettings)
public virtual Task DeleteNotificationConfigAsync(string name, CallSettings callSettings = null)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(name);
DeleteNotificationConfigAsync(string, CancellationToken)
public virtual Task DeleteNotificationConfigAsync(string name, CancellationToken cancellationToken)
Deletes a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to delete. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
await securityCenterClient.DeleteNotificationConfigAsync(name);
DeleteResourceValueConfig(DeleteResourceValueConfigRequest, CallSettings)
public virtual void DeleteResourceValueConfig(DeleteResourceValueConfigRequest request, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteResourceValueConfigRequest 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
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
securityCenterClient.DeleteResourceValueConfig(request);
DeleteResourceValueConfig(ResourceValueConfigName, CallSettings)
public virtual void DeleteResourceValueConfig(ResourceValueConfigName name, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the ResourceValueConfig to delete |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
securityCenterClient.DeleteResourceValueConfig(name);
DeleteResourceValueConfig(string, CallSettings)
public virtual void DeleteResourceValueConfig(string name, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ResourceValueConfig to delete |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
securityCenterClient.DeleteResourceValueConfig(name);
DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest, CallSettings)
public virtual Task DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest request, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteResourceValueConfigRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(request);
DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest, CancellationToken)
public virtual Task DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest request, CancellationToken cancellationToken)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteResourceValueConfigRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(request);
DeleteResourceValueConfigAsync(ResourceValueConfigName, CallSettings)
public virtual Task DeleteResourceValueConfigAsync(ResourceValueConfigName name, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the ResourceValueConfig to delete |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(name);
DeleteResourceValueConfigAsync(ResourceValueConfigName, CancellationToken)
public virtual Task DeleteResourceValueConfigAsync(ResourceValueConfigName name, CancellationToken cancellationToken)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the ResourceValueConfig to delete |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(name);
DeleteResourceValueConfigAsync(string, CallSettings)
public virtual Task DeleteResourceValueConfigAsync(string name, CallSettings callSettings = null)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ResourceValueConfig to delete |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(name);
DeleteResourceValueConfigAsync(string, CancellationToken)
public virtual Task DeleteResourceValueConfigAsync(string name, CancellationToken cancellationToken)
Deletes a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the ResourceValueConfig to delete |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
await securityCenterClient.DeleteResourceValueConfigAsync(name);
DeleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual void DeleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
request |
DeleteSecurityHealthAnalyticsCustomModuleRequest 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
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(request);
DeleteSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName, CallSettings)
public virtual void DeleteSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
SecurityHealthAnalyticsCustomModuleName Required. Name of the custom module to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(name);
DeleteSecurityHealthAnalyticsCustomModule(string, CallSettings)
public virtual void DeleteSecurityHealthAnalyticsCustomModule(string name, CallSettings callSettings = null)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(name);
DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
request |
DeleteSecurityHealthAnalyticsCustomModuleRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(request);
DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)
public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
request |
DeleteSecurityHealthAnalyticsCustomModuleRequest 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
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(request);
DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CallSettings)
public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
SecurityHealthAnalyticsCustomModuleName Required. Name of the custom module to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name);
DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CancellationToken)
public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName name, CancellationToken cancellationToken)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
SecurityHealthAnalyticsCustomModuleName Required. Name of the custom module to delete. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name);
DeleteSecurityHealthAnalyticsCustomModuleAsync(string, CallSettings)
public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(string name, CallSettings callSettings = null)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to delete. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name);
DeleteSecurityHealthAnalyticsCustomModuleAsync(string, CancellationToken)
public virtual Task DeleteSecurityHealthAnalyticsCustomModuleAsync(string name, CancellationToken cancellationToken)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to delete. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name);
GetBigQueryExport(BigQueryExportName, CallSettings)
public virtual BigQueryExport GetBigQueryExport(BigQueryExportName name, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. Name of the BigQuery export to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(name);
GetBigQueryExport(GetBigQueryExportRequest, CallSettings)
public virtual BigQueryExport GetBigQueryExport(GetBigQueryExportRequest request, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
GetBigQueryExportRequest 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 |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(request);
GetBigQueryExport(string, CallSettings)
public virtual BigQueryExport GetBigQueryExport(string name, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the BigQuery export to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = securityCenterClient.GetBigQueryExport(name);
GetBigQueryExportAsync(BigQueryExportName, CallSettings)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(BigQueryExportName name, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. Name of the BigQuery export to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);
GetBigQueryExportAsync(BigQueryExportName, CancellationToken)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(BigQueryExportName name, CancellationToken cancellationToken)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
BigQueryExportName Required. Name of the BigQuery export to retrieve. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]");
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);
GetBigQueryExportAsync(GetBigQueryExportRequest, CallSettings)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(GetBigQueryExportRequest request, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
GetBigQueryExportRequest 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 |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(request);
GetBigQueryExportAsync(GetBigQueryExportRequest, CancellationToken)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(GetBigQueryExportRequest request, CancellationToken cancellationToken)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
GetBigQueryExportRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetBigQueryExportRequest request = new GetBigQueryExportRequest
{
BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"),
};
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(request);
GetBigQueryExportAsync(string, CallSettings)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(string name, CallSettings callSettings = null)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the BigQuery export to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);
GetBigQueryExportAsync(string, CancellationToken)
public virtual Task<BigQueryExport> GetBigQueryExportAsync(string name, CancellationToken cancellationToken)
Gets a BigQuery export.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the BigQuery export to retrieve. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]";
// Make the request
BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name);
GetEffectiveEventThreatDetectionCustomModule(EffectiveEventThreatDetectionCustomModuleName, CallSettings)
public virtual EffectiveEventThreatDetectionCustomModule GetEffectiveEventThreatDetectionCustomModule(EffectiveEventThreatDetectionCustomModuleName name, CallSettings callSettings = null)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
name |
EffectiveEventThreatDetectionCustomModuleName Required. The resource name of the effective Event Threat Detection custom module. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EffectiveEventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EffectiveEventThreatDetectionCustomModuleName name = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(name);
GetEffectiveEventThreatDetectionCustomModule(GetEffectiveEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual EffectiveEventThreatDetectionCustomModule GetEffectiveEventThreatDetectionCustomModule(GetEffectiveEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
request |
GetEffectiveEventThreatDetectionCustomModuleRequest 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 |
EffectiveEventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetEffectiveEventThreatDetectionCustomModuleRequest request = new GetEffectiveEventThreatDetectionCustomModuleRequest
{
EffectiveEventThreatDetectionCustomModuleName = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(request);
GetEffectiveEventThreatDetectionCustomModule(string, CallSettings)
public virtual EffectiveEventThreatDetectionCustomModule GetEffectiveEventThreatDetectionCustomModule(string name, CallSettings callSettings = null)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the effective Event Threat Detection custom module. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EffectiveEventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/effectiveCustomModules/[MODULE]";
// Make the request
EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(name);
GetEffectiveEventThreatDetectionCustomModuleAsync(EffectiveEventThreatDetectionCustomModuleName, CallSettings)
public virtual Task<EffectiveEventThreatDetectionCustomModule> GetEffectiveEventThreatDetectionCustomModuleAsync(EffectiveEventThreatDetectionCustomModuleName name, CallSettings callSettings = null)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
name |
EffectiveEventThreatDetectionCustomModuleName Required. The resource name of the effective Event Threat Detection custom module. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEffectiveEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EffectiveEventThreatDetectionCustomModuleName name = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(name);
GetEffectiveEventThreatDetectionCustomModuleAsync(EffectiveEventThreatDetectionCustomModuleName, CancellationToken)
public virtual Task<EffectiveEventThreatDetectionCustomModule> GetEffectiveEventThreatDetectionCustomModuleAsync(EffectiveEventThreatDetectionCustomModuleName name, CancellationToken cancellationToken)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
name |
EffectiveEventThreatDetectionCustomModuleName Required. The resource name of the effective Event Threat Detection custom module. Its format is:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEffectiveEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EffectiveEventThreatDetectionCustomModuleName name = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(name);
GetEffectiveEventThreatDetectionCustomModuleAsync(GetEffectiveEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual Task<EffectiveEventThreatDetectionCustomModule> GetEffectiveEventThreatDetectionCustomModuleAsync(GetEffectiveEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
request |
GetEffectiveEventThreatDetectionCustomModuleRequest 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 |
TaskEffectiveEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetEffectiveEventThreatDetectionCustomModuleRequest request = new GetEffectiveEventThreatDetectionCustomModuleRequest
{
EffectiveEventThreatDetectionCustomModuleName = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(request);
GetEffectiveEventThreatDetectionCustomModuleAsync(GetEffectiveEventThreatDetectionCustomModuleRequest, CancellationToken)
public virtual Task<EffectiveEventThreatDetectionCustomModule> GetEffectiveEventThreatDetectionCustomModuleAsync(GetEffectiveEventThreatDetectionCustomModuleRequest request, CancellationToken cancellationToken)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
request |
GetEffectiveEventThreatDetectionCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEffectiveEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetEffectiveEventThreatDetectionCustomModuleRequest request = new GetEffectiveEventThreatDetectionCustomModuleRequest
{
EffectiveEventThreatDetectionCustomModuleName = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(request);
GetEffectiveEventThreatDetectionCustomModuleAsync(string, CallSettings)
public virtual Task<EffectiveEventThreatDetectionCustomModule> GetEffectiveEventThreatDetectionCustomModuleAsync(string name, CallSettings callSettings = null)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the effective Event Threat Detection custom module. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEffectiveEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/effectiveCustomModules/[MODULE]";
// Make the request
EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(name);
GetEffectiveEventThreatDetectionCustomModuleAsync(string, CancellationToken)
public virtual Task<EffectiveEventThreatDetectionCustomModule> GetEffectiveEventThreatDetectionCustomModuleAsync(string name, CancellationToken cancellationToken)
Gets an effective Event Threat Detection custom module at the given level.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the effective Event Threat Detection custom module. Its format is:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEffectiveEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/effectiveCustomModules/[MODULE]";
// Make the request
EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(name);
GetEffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModuleName, CallSettings)
public virtual EffectiveSecurityHealthAnalyticsCustomModule GetEffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
EffectiveSecurityHealthAnalyticsCustomModuleName Required. Name of the effective custom module to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EffectiveSecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(name);
GetEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual EffectiveSecurityHealthAnalyticsCustomModule GetEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
request |
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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 |
EffectiveSecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
{
EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"),
};
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(request);
GetEffectiveSecurityHealthAnalyticsCustomModule(string, CallSettings)
public virtual EffectiveSecurityHealthAnalyticsCustomModule GetEffectiveSecurityHealthAnalyticsCustomModule(string name, CallSettings callSettings = null)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the effective custom module to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EffectiveSecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]";
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(name);
GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName, CallSettings)
public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
EffectiveSecurityHealthAnalyticsCustomModuleName Required. Name of the effective custom module to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEffectiveSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name);
GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName, CancellationToken)
public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName name, CancellationToken cancellationToken)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
EffectiveSecurityHealthAnalyticsCustomModuleName Required. Name of the effective custom module to get. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEffectiveSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name);
GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
request |
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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 |
TaskEffectiveSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
{
EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"),
};
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(request);
GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)
public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
request |
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEffectiveSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
{
EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"),
};
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(request);
GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string, CallSettings)
public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string name, CallSettings callSettings = null)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the effective custom module to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEffectiveSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]";
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name);
GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string, CancellationToken)
public virtual Task<EffectiveSecurityHealthAnalyticsCustomModule> GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string name, CancellationToken cancellationToken)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the effective custom module to get. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEffectiveSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]";
// Make the request
EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name);
GetEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName, CallSettings)
public virtual EventThreatDetectionCustomModule GetEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName name, CallSettings callSettings = null)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
name |
EventThreatDetectionCustomModuleName Required. Name of the custom module to get. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(name);
GetEventThreatDetectionCustomModule(GetEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual EventThreatDetectionCustomModule GetEventThreatDetectionCustomModule(GetEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
request |
GetEventThreatDetectionCustomModuleRequest 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 |
EventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetEventThreatDetectionCustomModuleRequest request = new GetEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(request);
GetEventThreatDetectionCustomModule(string, CallSettings)
public virtual EventThreatDetectionCustomModule GetEventThreatDetectionCustomModule(string name, CallSettings callSettings = null)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to get. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]";
// Make the request
EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(name);
GetEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName, CallSettings)
public virtual Task<EventThreatDetectionCustomModule> GetEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName name, CallSettings callSettings = null)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
name |
EventThreatDetectionCustomModuleName Required. Name of the custom module to get. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(name);
GetEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName, CancellationToken)
public virtual Task<EventThreatDetectionCustomModule> GetEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName name, CancellationToken cancellationToken)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
name |
EventThreatDetectionCustomModuleName Required. Name of the custom module to get. Its format is:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]");
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(name);
GetEventThreatDetectionCustomModuleAsync(GetEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual Task<EventThreatDetectionCustomModule> GetEventThreatDetectionCustomModuleAsync(GetEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
request |
GetEventThreatDetectionCustomModuleRequest 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 |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetEventThreatDetectionCustomModuleRequest request = new GetEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(request);
GetEventThreatDetectionCustomModuleAsync(GetEventThreatDetectionCustomModuleRequest, CancellationToken)
public virtual Task<EventThreatDetectionCustomModule> GetEventThreatDetectionCustomModuleAsync(GetEventThreatDetectionCustomModuleRequest request, CancellationToken cancellationToken)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
request |
GetEventThreatDetectionCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetEventThreatDetectionCustomModuleRequest request = new GetEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"),
};
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(request);
GetEventThreatDetectionCustomModuleAsync(string, CallSettings)
public virtual Task<EventThreatDetectionCustomModule> GetEventThreatDetectionCustomModuleAsync(string name, CallSettings callSettings = null)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to get. Its format is:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]";
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(name);
GetEventThreatDetectionCustomModuleAsync(string, CancellationToken)
public virtual Task<EventThreatDetectionCustomModule> GetEventThreatDetectionCustomModuleAsync(string name, CancellationToken cancellationToken)
Gets an Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to get. Its format is:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]";
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(name);
GetIamPolicy(IResourceName, CallSettings)
public virtual Policy GetIamPolicy(IResourceName resource, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = securityCenterClient.GetIamPolicy(resource);
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest 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 |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = securityCenterClient.GetIamPolicy(request);
GetIamPolicy(string, CallSettings)
public virtual Policy GetIamPolicy(string resource, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = securityCenterClient.GetIamPolicy(resource);
GetIamPolicyAsync(IResourceName, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(IResourceName, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CancellationToken cancellationToken)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest 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 |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(string, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(string resource, CallSettings callSettings = null)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(string, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(string resource, CancellationToken cancellationToken)
Gets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = await securityCenterClient.GetIamPolicyAsync(resource);
GetMuteConfig(GetMuteConfigRequest, CallSettings)
public virtual MuteConfig GetMuteConfig(GetMuteConfigRequest request, CallSettings callSettings = null)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
request |
GetMuteConfigRequest 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 |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(request);
GetMuteConfig(MuteConfigName, CallSettings)
public virtual MuteConfig GetMuteConfig(MuteConfigName name, CallSettings callSettings = null)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(name);
GetMuteConfig(string, CallSettings)
public virtual MuteConfig GetMuteConfig(string name, CallSettings callSettings = null)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = securityCenterClient.GetMuteConfig(name);
GetMuteConfigAsync(GetMuteConfigRequest, CallSettings)
public virtual Task<MuteConfig> GetMuteConfigAsync(GetMuteConfigRequest request, CallSettings callSettings = null)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
request |
GetMuteConfigRequest 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 |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(request);
GetMuteConfigAsync(GetMuteConfigRequest, CancellationToken)
public virtual Task<MuteConfig> GetMuteConfigAsync(GetMuteConfigRequest request, CancellationToken cancellationToken)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
request |
GetMuteConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetMuteConfigRequest request = new GetMuteConfigRequest
{
MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"),
};
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(request);
GetMuteConfigAsync(MuteConfigName, CallSettings)
public virtual Task<MuteConfig> GetMuteConfigAsync(MuteConfigName name, CallSettings callSettings = null)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);
GetMuteConfigAsync(MuteConfigName, CancellationToken)
public virtual Task<MuteConfig> GetMuteConfigAsync(MuteConfigName name, CancellationToken cancellationToken)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
name |
MuteConfigName Required. Name of the mute config to retrieve. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]");
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);
GetMuteConfigAsync(string, CallSettings)
public virtual Task<MuteConfig> GetMuteConfigAsync(string name, CallSettings callSettings = null)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);
GetMuteConfigAsync(string, CancellationToken)
public virtual Task<MuteConfig> GetMuteConfigAsync(string name, CancellationToken cancellationToken)
Gets a mute config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the mute config to retrieve. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]";
// Make the request
MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name);
GetNotificationConfig(GetNotificationConfigRequest, CallSettings)
public virtual NotificationConfig GetNotificationConfig(GetNotificationConfigRequest request, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
request |
GetNotificationConfigRequest 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 |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetNotificationConfigRequest request = new GetNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
NotificationConfig response = securityCenterClient.GetNotificationConfig(request);
GetNotificationConfig(NotificationConfigName, CallSettings)
public virtual NotificationConfig GetNotificationConfig(NotificationConfigName name, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
// Make the request
NotificationConfig response = securityCenterClient.GetNotificationConfig(name);
GetNotificationConfig(string, CallSettings)
public virtual NotificationConfig GetNotificationConfig(string name, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
NotificationConfig response = securityCenterClient.GetNotificationConfig(name);
GetNotificationConfigAsync(GetNotificationConfigRequest, CallSettings)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(GetNotificationConfigRequest request, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
request |
GetNotificationConfigRequest 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 |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetNotificationConfigRequest request = new GetNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(request);
GetNotificationConfigAsync(GetNotificationConfigRequest, CancellationToken)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(GetNotificationConfigRequest request, CancellationToken cancellationToken)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
request |
GetNotificationConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetNotificationConfigRequest request = new GetNotificationConfigRequest
{
NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"),
};
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(request);
GetNotificationConfigAsync(NotificationConfigName, CallSettings)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(NotificationConfigName name, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);
GetNotificationConfigAsync(NotificationConfigName, CancellationToken)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(NotificationConfigName name, CancellationToken cancellationToken)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
NotificationConfigName Required. Name of the notification config to get. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);
GetNotificationConfigAsync(string, CallSettings)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(string name, CallSettings callSettings = null)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);
GetNotificationConfigAsync(string, CancellationToken)
public virtual Task<NotificationConfig> GetNotificationConfigAsync(string name, CancellationToken cancellationToken)
Gets a notification config.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the notification config to get. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]";
// Make the request
NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name);
GetOrganizationSettings(GetOrganizationSettingsRequest, CallSettings)
public virtual OrganizationSettings GetOrganizationSettings(GetOrganizationSettingsRequest request, CallSettings callSettings = null)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
request |
GetOrganizationSettingsRequest 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 |
OrganizationSettings |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest
{
OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
OrganizationSettings response = securityCenterClient.GetOrganizationSettings(request);
GetOrganizationSettings(OrganizationSettingsName, CallSettings)
public virtual OrganizationSettings GetOrganizationSettings(OrganizationSettingsName name, CallSettings callSettings = null)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
name |
OrganizationSettingsName Required. Name of the organization to get organization settings for. Its
format is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OrganizationSettings |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
OrganizationSettings response = securityCenterClient.GetOrganizationSettings(name);
GetOrganizationSettings(string, CallSettings)
public virtual OrganizationSettings GetOrganizationSettings(string name, CallSettings callSettings = null)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the organization to get organization settings for. Its
format is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OrganizationSettings |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/organizationSettings";
// Make the request
OrganizationSettings response = securityCenterClient.GetOrganizationSettings(name);
GetOrganizationSettingsAsync(GetOrganizationSettingsRequest, CallSettings)
public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(GetOrganizationSettingsRequest request, CallSettings callSettings = null)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
request |
GetOrganizationSettingsRequest 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 |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest
{
OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(request);
GetOrganizationSettingsAsync(GetOrganizationSettingsRequest, CancellationToken)
public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(GetOrganizationSettingsRequest request, CancellationToken cancellationToken)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
request |
GetOrganizationSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest
{
OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(request);
GetOrganizationSettingsAsync(OrganizationSettingsName, CallSettings)
public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(OrganizationSettingsName name, CallSettings callSettings = null)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
name |
OrganizationSettingsName Required. Name of the organization to get organization settings for. Its
format is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name);
GetOrganizationSettingsAsync(OrganizationSettingsName, CancellationToken)
public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(OrganizationSettingsName name, CancellationToken cancellationToken)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
name |
OrganizationSettingsName Required. Name of the organization to get organization settings for. Its
format is |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name);
GetOrganizationSettingsAsync(string, CallSettings)
public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(string name, CallSettings callSettings = null)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the organization to get organization settings for. Its
format is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/organizationSettings";
// Make the request
OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name);
GetOrganizationSettingsAsync(string, CancellationToken)
public virtual Task<OrganizationSettings> GetOrganizationSettingsAsync(string name, CancellationToken cancellationToken)
Gets the settings for an organization.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the organization to get organization settings for. Its
format is |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/organizationSettings";
// Make the request
OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name);
GetResourceValueConfig(GetResourceValueConfigRequest, CallSettings)
public virtual ResourceValueConfig GetResourceValueConfig(GetResourceValueConfigRequest request, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
GetResourceValueConfigRequest 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 |
ResourceValueConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetResourceValueConfigRequest request = new GetResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(request);
GetResourceValueConfig(ResourceValueConfigName, CallSettings)
public virtual ResourceValueConfig GetResourceValueConfig(ResourceValueConfigName name, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the resource value config to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ResourceValueConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(name);
GetResourceValueConfig(string, CallSettings)
public virtual ResourceValueConfig GetResourceValueConfig(string name, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the resource value config to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ResourceValueConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(name);
GetResourceValueConfigAsync(GetResourceValueConfigRequest, CallSettings)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(GetResourceValueConfigRequest request, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
GetResourceValueConfigRequest 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 |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetResourceValueConfigRequest request = new GetResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(request);
GetResourceValueConfigAsync(GetResourceValueConfigRequest, CancellationToken)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(GetResourceValueConfigRequest request, CancellationToken cancellationToken)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
request |
GetResourceValueConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetResourceValueConfigRequest request = new GetResourceValueConfigRequest
{
ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"),
};
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(request);
GetResourceValueConfigAsync(ResourceValueConfigName, CallSettings)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(ResourceValueConfigName name, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the resource value config to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name);
GetResourceValueConfigAsync(ResourceValueConfigName, CancellationToken)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(ResourceValueConfigName name, CancellationToken cancellationToken)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
ResourceValueConfigName Required. Name of the resource value config to retrieve. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name);
GetResourceValueConfigAsync(string, CallSettings)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(string name, CallSettings callSettings = null)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the resource value config to retrieve. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name);
GetResourceValueConfigAsync(string, CancellationToken)
public virtual Task<ResourceValueConfig> GetResourceValueConfigAsync(string name, CancellationToken cancellationToken)
Gets a ResourceValueConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the resource value config to retrieve. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]";
// Make the request
ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name);
GetSecurityHealthAnalyticsCustomModule(GetSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual SecurityHealthAnalyticsCustomModule GetSecurityHealthAnalyticsCustomModule(GetSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
request |
GetSecurityHealthAnalyticsCustomModuleRequest 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 |
SecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetSecurityHealthAnalyticsCustomModuleRequest request = new GetSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(request);
GetSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName, CallSettings)
public virtual SecurityHealthAnalyticsCustomModule GetSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
SecurityHealthAnalyticsCustomModuleName Required. Name of the custom module to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(name);
GetSecurityHealthAnalyticsCustomModule(string, CallSettings)
public virtual SecurityHealthAnalyticsCustomModule GetSecurityHealthAnalyticsCustomModule(string name, CallSettings callSettings = null)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(name);
GetSecurityHealthAnalyticsCustomModuleAsync(GetSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual Task<SecurityHealthAnalyticsCustomModule> GetSecurityHealthAnalyticsCustomModuleAsync(GetSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
request |
GetSecurityHealthAnalyticsCustomModuleRequest 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 |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetSecurityHealthAnalyticsCustomModuleRequest request = new GetSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(request);
GetSecurityHealthAnalyticsCustomModuleAsync(GetSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)
public virtual Task<SecurityHealthAnalyticsCustomModule> GetSecurityHealthAnalyticsCustomModuleAsync(GetSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
request |
GetSecurityHealthAnalyticsCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetSecurityHealthAnalyticsCustomModuleRequest request = new GetSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(request);
GetSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CallSettings)
public virtual Task<SecurityHealthAnalyticsCustomModule> GetSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName name, CallSettings callSettings = null)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
SecurityHealthAnalyticsCustomModuleName Required. Name of the custom module to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(name);
GetSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CancellationToken)
public virtual Task<SecurityHealthAnalyticsCustomModule> GetSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName name, CancellationToken cancellationToken)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
SecurityHealthAnalyticsCustomModuleName Required. Name of the custom module to get. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]");
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(name);
GetSecurityHealthAnalyticsCustomModuleAsync(string, CallSettings)
public virtual Task<SecurityHealthAnalyticsCustomModule> GetSecurityHealthAnalyticsCustomModuleAsync(string name, CallSettings callSettings = null)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to get. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(name);
GetSecurityHealthAnalyticsCustomModuleAsync(string, CancellationToken)
public virtual Task<SecurityHealthAnalyticsCustomModule> GetSecurityHealthAnalyticsCustomModuleAsync(string name, CancellationToken cancellationToken)
Retrieves a SecurityHealthAnalyticsCustomModule.
Parameters | |
---|---|
Name | Description |
name |
string Required. Name of the custom module to get. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]";
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(name);
GetSimulation(GetSimulationRequest, CallSettings)
public virtual Simulation GetSimulation(GetSimulationRequest request, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
request |
GetSimulationRequest 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 |
Simulation |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetSimulationRequest request = new GetSimulationRequest
{
SimulationName = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"),
};
// Make the request
Simulation response = securityCenterClient.GetSimulation(request);
GetSimulation(SimulationName, CallSettings)
public virtual Simulation GetSimulation(SimulationName name, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
name |
SimulationName Required. The organization name or simulation name of this simulation Valid format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Simulation |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SimulationName name = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]");
// Make the request
Simulation response = securityCenterClient.GetSimulation(name);
GetSimulation(string, CallSettings)
public virtual Simulation GetSimulation(string name, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
name |
string Required. The organization name or simulation name of this simulation Valid format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Simulation |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]";
// Make the request
Simulation response = securityCenterClient.GetSimulation(name);
GetSimulationAsync(GetSimulationRequest, CallSettings)
public virtual Task<Simulation> GetSimulationAsync(GetSimulationRequest request, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
request |
GetSimulationRequest 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 |
TaskSimulation |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetSimulationRequest request = new GetSimulationRequest
{
SimulationName = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"),
};
// Make the request
Simulation response = await securityCenterClient.GetSimulationAsync(request);
GetSimulationAsync(GetSimulationRequest, CancellationToken)
public virtual Task<Simulation> GetSimulationAsync(GetSimulationRequest request, CancellationToken cancellationToken)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
request |
GetSimulationRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSimulation |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetSimulationRequest request = new GetSimulationRequest
{
SimulationName = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"),
};
// Make the request
Simulation response = await securityCenterClient.GetSimulationAsync(request);
GetSimulationAsync(SimulationName, CallSettings)
public virtual Task<Simulation> GetSimulationAsync(SimulationName name, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
name |
SimulationName Required. The organization name or simulation name of this simulation Valid format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSimulation |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SimulationName name = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]");
// Make the request
Simulation response = await securityCenterClient.GetSimulationAsync(name);
GetSimulationAsync(SimulationName, CancellationToken)
public virtual Task<Simulation> GetSimulationAsync(SimulationName name, CancellationToken cancellationToken)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
name |
SimulationName Required. The organization name or simulation name of this simulation Valid format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSimulation |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SimulationName name = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]");
// Make the request
Simulation response = await securityCenterClient.GetSimulationAsync(name);
GetSimulationAsync(string, CallSettings)
public virtual Task<Simulation> GetSimulationAsync(string name, CallSettings callSettings = null)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
name |
string Required. The organization name or simulation name of this simulation Valid format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSimulation |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]";
// Make the request
Simulation response = await securityCenterClient.GetSimulationAsync(name);
GetSimulationAsync(string, CancellationToken)
public virtual Task<Simulation> GetSimulationAsync(string name, CancellationToken cancellationToken)
Get the simulation by name or the latest simulation for the given organization.
Parameters | |
---|---|
Name | Description |
name |
string Required. The organization name or simulation name of this simulation Valid format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSimulation |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]";
// Make the request
Simulation response = await securityCenterClient.GetSimulationAsync(name);
GetSource(GetSourceRequest, CallSettings)
public virtual Source GetSource(GetSourceRequest request, CallSettings callSettings = null)
Gets a source.
Parameters | |
---|---|
Name | Description |
request |
GetSourceRequest 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 |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
};
// Make the request
Source response = securityCenterClient.GetSource(request);
GetSource(SourceName, CallSettings)
public virtual Source GetSource(SourceName name, CallSettings callSettings = null)
Gets a source.
Parameters | |
---|---|
Name | Description |
name |
SourceName Required. Relative resource name of the source. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
// Make the request
Source response = securityCenterClient.GetSource(name);
GetSource(string, CallSettings)
public virtual Source GetSource(string name, CallSettings callSettings = null)
Gets a source.
Parameters | |
---|---|
Name | Description |
name |
string Required. Relative resource name of the source. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]";
// Make the request
Source response = securityCenterClient.GetSource(name);
GetSourceAsync(GetSourceRequest, CallSettings)
public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CallSettings callSettings = null)
Gets a source.
Parameters | |
---|---|
Name | Description |
request |
GetSourceRequest 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 |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
};
// Make the request
Source response = await securityCenterClient.GetSourceAsync(request);
GetSourceAsync(GetSourceRequest, CancellationToken)
public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken)
Gets a source.
Parameters | |
---|---|
Name | Description |
request |
GetSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
};
// Make the request
Source response = await securityCenterClient.GetSourceAsync(request);
GetSourceAsync(SourceName, CallSettings)
public virtual Task<Source> GetSourceAsync(SourceName name, CallSettings callSettings = null)
Gets a source.
Parameters | |
---|---|
Name | Description |
name |
SourceName Required. Relative resource name of the source. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
// Make the request
Source response = await securityCenterClient.GetSourceAsync(name);
GetSourceAsync(SourceName, CancellationToken)
public virtual Task<Source> GetSourceAsync(SourceName name, CancellationToken cancellationToken)
Gets a source.
Parameters | |
---|---|
Name | Description |
name |
SourceName Required. Relative resource name of the source. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
// Make the request
Source response = await securityCenterClient.GetSourceAsync(name);
GetSourceAsync(string, CallSettings)
public virtual Task<Source> GetSourceAsync(string name, CallSettings callSettings = null)
Gets a source.
Parameters | |
---|---|
Name | Description |
name |
string Required. Relative resource name of the source. Its format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]";
// Make the request
Source response = await securityCenterClient.GetSourceAsync(name);
GetSourceAsync(string, CancellationToken)
public virtual Task<Source> GetSourceAsync(string name, CancellationToken cancellationToken)
Gets a source.
Parameters | |
---|---|
Name | Description |
name |
string Required. Relative resource name of the source. Its format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]";
// Make the request
Source response = await securityCenterClient.GetSourceAsync(name);
GetValuedResource(GetValuedResourceRequest, CallSettings)
public virtual ValuedResource GetValuedResource(GetValuedResourceRequest request, CallSettings callSettings = null)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
request |
GetValuedResourceRequest 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 |
ValuedResource |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GetValuedResourceRequest request = new GetValuedResourceRequest
{
ValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"),
};
// Make the request
ValuedResource response = securityCenterClient.GetValuedResource(request);
GetValuedResource(ValuedResourceName, CallSettings)
public virtual ValuedResource GetValuedResource(ValuedResourceName name, CallSettings callSettings = null)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
name |
ValuedResourceName Required. The name of this valued resource Valid format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ValuedResource |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ValuedResourceName name = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]");
// Make the request
ValuedResource response = securityCenterClient.GetValuedResource(name);
GetValuedResource(string, CallSettings)
public virtual ValuedResource GetValuedResource(string name, CallSettings callSettings = null)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of this valued resource Valid format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ValuedResource |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]";
// Make the request
ValuedResource response = securityCenterClient.GetValuedResource(name);
GetValuedResourceAsync(GetValuedResourceRequest, CallSettings)
public virtual Task<ValuedResource> GetValuedResourceAsync(GetValuedResourceRequest request, CallSettings callSettings = null)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
request |
GetValuedResourceRequest 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 |
TaskValuedResource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetValuedResourceRequest request = new GetValuedResourceRequest
{
ValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"),
};
// Make the request
ValuedResource response = await securityCenterClient.GetValuedResourceAsync(request);
GetValuedResourceAsync(GetValuedResourceRequest, CancellationToken)
public virtual Task<ValuedResource> GetValuedResourceAsync(GetValuedResourceRequest request, CancellationToken cancellationToken)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
request |
GetValuedResourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskValuedResource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GetValuedResourceRequest request = new GetValuedResourceRequest
{
ValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"),
};
// Make the request
ValuedResource response = await securityCenterClient.GetValuedResourceAsync(request);
GetValuedResourceAsync(ValuedResourceName, CallSettings)
public virtual Task<ValuedResource> GetValuedResourceAsync(ValuedResourceName name, CallSettings callSettings = null)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
name |
ValuedResourceName Required. The name of this valued resource Valid format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskValuedResource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ValuedResourceName name = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]");
// Make the request
ValuedResource response = await securityCenterClient.GetValuedResourceAsync(name);
GetValuedResourceAsync(ValuedResourceName, CancellationToken)
public virtual Task<ValuedResource> GetValuedResourceAsync(ValuedResourceName name, CancellationToken cancellationToken)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
name |
ValuedResourceName Required. The name of this valued resource Valid format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskValuedResource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ValuedResourceName name = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]");
// Make the request
ValuedResource response = await securityCenterClient.GetValuedResourceAsync(name);
GetValuedResourceAsync(string, CallSettings)
public virtual Task<ValuedResource> GetValuedResourceAsync(string name, CallSettings callSettings = null)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of this valued resource Valid format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskValuedResource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]";
// Make the request
ValuedResource response = await securityCenterClient.GetValuedResourceAsync(name);
GetValuedResourceAsync(string, CancellationToken)
public virtual Task<ValuedResource> GetValuedResourceAsync(string name, CancellationToken cancellationToken)
Get the valued resource by name
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of this valued resource Valid format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskValuedResource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]";
// Make the request
ValuedResource response = await securityCenterClient.GetValuedResourceAsync(name);
GroupAssets(GroupAssetsRequest, CallSettings)
[Obsolete]
public virtual PagedEnumerable<GroupAssetsResponse, GroupResult> GroupAssets(GroupAssetsRequest request, CallSettings callSettings = null)
Filters an organization's assets and groups them by their specified properties.
Parameters | |
---|---|
Name | Description |
request |
GroupAssetsRequest 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 |
PagedEnumerableGroupAssetsResponseGroupResult |
A pageable sequence of GroupResult resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GroupAssetsRequest request = new GroupAssetsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Filter = "",
GroupBy = "",
CompareDuration = new Duration(),
ReadTime = new Timestamp(),
};
// Make the request
#pragma warning disable CS0612
PagedEnumerable<GroupAssetsResponse, GroupResult> response = securityCenterClient.GroupAssets(request);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
foreach (GroupResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (GroupAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GroupResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GroupResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GroupResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
GroupAssetsAsync(GroupAssetsRequest, CallSettings)
[Obsolete]
public virtual PagedAsyncEnumerable<GroupAssetsResponse, GroupResult> GroupAssetsAsync(GroupAssetsRequest request, CallSettings callSettings = null)
Filters an organization's assets and groups them by their specified properties.
Parameters | |
---|---|
Name | Description |
request |
GroupAssetsRequest 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 |
PagedAsyncEnumerableGroupAssetsResponseGroupResult |
A pageable asynchronous sequence of GroupResult resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GroupAssetsRequest request = new GroupAssetsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Filter = "",
GroupBy = "",
CompareDuration = new Duration(),
ReadTime = new Timestamp(),
};
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<GroupAssetsResponse, GroupResult> response = securityCenterClient.GroupAssetsAsync(request);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GroupResult item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((GroupAssetsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GroupResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GroupResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GroupResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
GroupFindings(GroupFindingsRequest, CallSettings)
public virtual PagedEnumerable<GroupFindingsResponse, GroupResult> GroupFindings(GroupFindingsRequest request, CallSettings callSettings = null)
Filters an organization or source's findings and groups them by their specified properties.
To group across all sources provide a -
as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings,
/v1/folders/{folder_id}/sources/-/findings,
/v1/projects/{project_id}/sources/-/findings
Parameters | |
---|---|
Name | Description |
request |
GroupFindingsRequest 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 |
PagedEnumerableGroupFindingsResponseGroupResult |
A pageable sequence of GroupResult resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
GroupFindingsRequest request = new GroupFindingsRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
Filter = "",
GroupBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
};
// Make the request
PagedEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindings(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (GroupResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (GroupFindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GroupResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GroupResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GroupResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
GroupFindings(SourceName, string, string, int?, CallSettings)
public virtual PagedEnumerable<GroupFindingsResponse, GroupResult> GroupFindings(SourceName parent, string groupBy, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Filters an organization or source's findings and groups them by their specified properties.
To group across all sources provide a -
as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings,
/v1/folders/{folder_id}/sources/-/findings,
/v1/projects/{project_id}/sources/-/findings
Parameters | |
---|---|
Name | Description |
parent |
SourceName Required. Name of the source to groupBy. Its format is
|
groupBy |
string Required. Expression that defines what assets fields to use for grouping
(including The following fields are supported when compare_duration is set:
|
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 |
PagedEnumerableGroupFindingsResponseGroupResult |
A pageable sequence of GroupResult resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
string groupBy = "";
// Make the request
PagedEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindings(parent, groupBy);
// Iterate over all response items, lazily performing RPCs as required
foreach (GroupResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (GroupFindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GroupResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GroupResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GroupResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
GroupFindings(string, string, string, int?, CallSettings)
public virtual PagedEnumerable<GroupFindingsResponse, GroupResult> GroupFindings(string parent, string groupBy, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Filters an organization or source's findings and groups them by their specified properties.
To group across all sources provide a -
as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings,
/v1/folders/{folder_id}/sources/-/findings,
/v1/projects/{project_id}/sources/-/findings
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the source to groupBy. Its format is
|
groupBy |
string Required. Expression that defines what assets fields to use for grouping
(including The following fields are supported when compare_duration is set:
|
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 |
PagedEnumerableGroupFindingsResponseGroupResult |
A pageable sequence of GroupResult resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
string groupBy = "";
// Make the request
PagedEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindings(parent, groupBy);
// Iterate over all response items, lazily performing RPCs as required
foreach (GroupResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (GroupFindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GroupResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GroupResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GroupResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
GroupFindingsAsync(GroupFindingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> GroupFindingsAsync(GroupFindingsRequest request, CallSettings callSettings = null)
Filters an organization or source's findings and groups them by their specified properties.
To group across all sources provide a -
as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings,
/v1/folders/{folder_id}/sources/-/findings,
/v1/projects/{project_id}/sources/-/findings
Parameters | |
---|---|
Name | Description |
request |
GroupFindingsRequest 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 |
PagedAsyncEnumerableGroupFindingsResponseGroupResult |
A pageable asynchronous sequence of GroupResult resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
GroupFindingsRequest request = new GroupFindingsRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
Filter = "",
GroupBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
};
// Make the request
PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindingsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GroupResult item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((GroupFindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GroupResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GroupResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GroupResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
GroupFindingsAsync(SourceName, string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> GroupFindingsAsync(SourceName parent, string groupBy, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Filters an organization or source's findings and groups them by their specified properties.
To group across all sources provide a -
as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings,
/v1/folders/{folder_id}/sources/-/findings,
/v1/projects/{project_id}/sources/-/findings
Parameters | |
---|---|
Name | Description |
parent |
SourceName Required. Name of the source to groupBy. Its format is
|
groupBy |
string Required. Expression that defines what assets fields to use for grouping
(including The following fields are supported when compare_duration is set:
|
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 |
PagedAsyncEnumerableGroupFindingsResponseGroupResult |
A pageable asynchronous sequence of GroupResult resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]");
string groupBy = "";
// Make the request
PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindingsAsync(parent, groupBy);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GroupResult item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((GroupFindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GroupResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GroupResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GroupResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
GroupFindingsAsync(string, string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> GroupFindingsAsync(string parent, string groupBy, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Filters an organization or source's findings and groups them by their specified properties.
To group across all sources provide a -
as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings,
/v1/folders/{folder_id}/sources/-/findings,
/v1/projects/{project_id}/sources/-/findings
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the source to groupBy. Its format is
|
groupBy |
string Required. Expression that defines what assets fields to use for grouping
(including The following fields are supported when compare_duration is set:
|
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 |
PagedAsyncEnumerableGroupFindingsResponseGroupResult |
A pageable asynchronous sequence of GroupResult resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]";
string groupBy = "";
// Make the request
PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindingsAsync(parent, groupBy);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GroupResult item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((GroupFindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GroupResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GroupResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GroupResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAssets(ListAssetsRequest, CallSettings)
[Obsolete]
public virtual PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssets(ListAssetsRequest request, CallSettings callSettings = null)
Lists an organization's assets.
Parameters | |
---|---|
Name | Description |
request |
ListAssetsRequest 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 |
PagedEnumerableListAssetsResponseListAssetsResponseTypesListAssetsResult |
A pageable sequence of ListAssetsResponse.Types.ListAssetsResult resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListAssetsRequest request = new ListAssetsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Filter = "",
OrderBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
FieldMask = new FieldMask(),
};
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssets(request);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
foreach (ListAssetsResponse.Types.ListAssetsResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAssetsAsync(ListAssetsRequest, CallSettings)
[Obsolete]
public virtual PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> ListAssetsAsync(ListAssetsRequest request, CallSettings callSettings = null)
Lists an organization's assets.
Parameters | |
---|---|
Name | Description |
request |
ListAssetsRequest 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 |
PagedAsyncEnumerableListAssetsResponseListAssetsResponseTypesListAssetsResult |
A pageable asynchronous sequence of ListAssetsResponse.Types.ListAssetsResult resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListAssetsRequest request = new ListAssetsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
Filter = "",
OrderBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
FieldMask = new FieldMask(),
};
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListAssetsResponse, ListAssetsResponse.Types.ListAssetsResult> response = securityCenterClient.ListAssetsAsync(request);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ListAssetsResponse.Types.ListAssetsResult item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ListAssetsResponse.Types.ListAssetsResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ListAssetsResponse.Types.ListAssetsResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ListAssetsResponse.Types.ListAssetsResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAttackPaths(ListAttackPathsRequest, CallSettings)
public virtual PagedEnumerable<ListAttackPathsResponse, AttackPath> ListAttackPaths(ListAttackPathsRequest request, CallSettings callSettings = null)
Lists the attack paths for a set of simulation results or valued resources and filter.
Parameters | |
---|---|
Name | Description |
request |
ListAttackPathsRequest 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 |
PagedEnumerableListAttackPathsResponseAttackPath |
A pageable sequence of AttackPath resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListAttackPathsRequest request = new ListAttackPathsRequest
{
ParentAsValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListAttackPathsResponse, AttackPath> response = securityCenterClient.ListAttackPaths(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AttackPath 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<AttackPath> 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 (AttackPath 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;
ListAttackPaths(ValuedResourceName, string, int?, CallSettings)
public virtual PagedEnumerable<ListAttackPathsResponse, AttackPath> ListAttackPaths(ValuedResourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the attack paths for a set of simulation results or valued resources and filter.
Parameters | |
---|---|
Name | Description |
parent |
ValuedResourceName Required. Name of parent to list attack paths. Valid formats:
|
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 |
PagedEnumerableListAttackPathsResponseAttackPath |
A pageable sequence of AttackPath resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ValuedResourceName parent = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]");
// Make the request
PagedEnumerable<ListAttackPathsResponse, AttackPath> response = securityCenterClient.ListAttackPaths(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AttackPath 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<AttackPath> 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 (AttackPath 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;
ListAttackPaths(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListAttackPathsResponse, AttackPath> ListAttackPaths(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the attack paths for a set of simulation results or valued resources and filter.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list attack paths. Valid formats:
|
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 |
PagedEnumerableListAttackPathsResponseAttackPath |
A pageable sequence of AttackPath resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]";
// Make the request
PagedEnumerable<ListAttackPathsResponse, AttackPath> response = securityCenterClient.ListAttackPaths(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AttackPath 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<AttackPath> 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 (AttackPath 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;
ListAttackPathsAsync(ListAttackPathsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListAttackPathsResponse, AttackPath> ListAttackPathsAsync(ListAttackPathsRequest request, CallSettings callSettings = null)
Lists the attack paths for a set of simulation results or valued resources and filter.
Parameters | |
---|---|
Name | Description |
request |
ListAttackPathsRequest 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 |
PagedAsyncEnumerableListAttackPathsResponseAttackPath |
A pageable asynchronous sequence of AttackPath resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListAttackPathsRequest request = new ListAttackPathsRequest
{
ParentAsValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListAttackPathsResponse, AttackPath> response = securityCenterClient.ListAttackPathsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AttackPath 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<AttackPath> 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 (AttackPath 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;
ListAttackPathsAsync(ValuedResourceName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListAttackPathsResponse, AttackPath> ListAttackPathsAsync(ValuedResourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the attack paths for a set of simulation results or valued resources and filter.
Parameters | |
---|---|
Name | Description |
parent |
ValuedResourceName Required. Name of parent to list attack paths. Valid formats:
|
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 |
PagedAsyncEnumerableListAttackPathsResponseAttackPath |
A pageable asynchronous sequence of AttackPath resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ValuedResourceName parent = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]");
// Make the request
PagedAsyncEnumerable<ListAttackPathsResponse, AttackPath> response = securityCenterClient.ListAttackPathsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AttackPath 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<AttackPath> 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 (AttackPath 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;
ListAttackPathsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListAttackPathsResponse, AttackPath> ListAttackPathsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the attack paths for a set of simulation results or valued resources and filter.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list attack paths. Valid formats:
|
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 |
PagedAsyncEnumerableListAttackPathsResponseAttackPath |
A pageable asynchronous sequence of AttackPath resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]";
// Make the request
PagedAsyncEnumerable<ListAttackPathsResponse, AttackPath> response = securityCenterClient.ListAttackPathsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AttackPath 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<AttackPath> 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 (AttackPath 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;
ListBigQueryExports(FolderName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExports(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The parent, which owns the collection of BigQuery exports. Its
format is |
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 |
PagedEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExports(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExports(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExports(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The parent, which owns the collection of BigQuery exports. Its
format is |
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 |
PagedEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExports(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExports(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExports(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The parent, which owns the collection of BigQuery exports. Its
format is |
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 |
PagedEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExports(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExports(ListBigQueryExportsRequest, CallSettings)
public virtual PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExports(ListBigQueryExportsRequest request, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
request |
ListBigQueryExportsRequest 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 |
PagedEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListBigQueryExportsRequest request = new ListBigQueryExportsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExports(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExports(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExports(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, which owns the collection of BigQuery exports. Its
format is |
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 |
PagedEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExports(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExportsAsync(FolderName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExportsAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The parent, which owns the collection of BigQuery exports. Its
format is |
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 |
PagedAsyncEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable asynchronous sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExportsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExportsAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExportsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The parent, which owns the collection of BigQuery exports. Its
format is |
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 |
PagedAsyncEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable asynchronous sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExportsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExportsAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExportsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The parent, which owns the collection of BigQuery exports. Its
format is |
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 |
PagedAsyncEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable asynchronous sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExportsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExportsAsync(ListBigQueryExportsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExportsAsync(ListBigQueryExportsRequest request, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
request |
ListBigQueryExportsRequest 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 |
PagedAsyncEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable asynchronous sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListBigQueryExportsRequest request = new ListBigQueryExportsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExportsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListBigQueryExportsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> ListBigQueryExportsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, which owns the collection of BigQuery exports. Its
format is |
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 |
PagedAsyncEnumerableListBigQueryExportsResponseBigQueryExport |
A pageable asynchronous sequence of BigQueryExport resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListBigQueryExportsResponse, BigQueryExport> response = securityCenterClient.ListBigQueryExportsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BigQueryExport 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<BigQueryExport> 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 (BigQueryExport 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;
ListDescendantEventThreatDetectionCustomModules(EventThreatDetectionSettingsName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListDescendantEventThreatDetectionCustomModules(EventThreatDetectionSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. Name of the parent to list custom modules under. Its format is:
|
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 |
PagedEnumerableListDescendantEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListDescendantEventThreatDetectionCustomModules(ListDescendantEventThreatDetectionCustomModulesRequest, CallSettings)
public virtual PagedEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListDescendantEventThreatDetectionCustomModules(ListDescendantEventThreatDetectionCustomModulesRequest request, CallSettings callSettings = null)
Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.
Parameters | |
---|---|
Name | Description |
request |
ListDescendantEventThreatDetectionCustomModulesRequest 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 |
PagedEnumerableListDescendantEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListDescendantEventThreatDetectionCustomModulesRequest request = new ListDescendantEventThreatDetectionCustomModulesRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListDescendantEventThreatDetectionCustomModules(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListDescendantEventThreatDetectionCustomModules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the parent to list custom modules under. Its format is:
|
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 |
PagedEnumerableListDescendantEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
// Make the request
PagedEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListDescendantEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListDescendantEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. Name of the parent to list custom modules under. Its format is:
|
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 |
PagedAsyncEnumerableListDescendantEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListDescendantEventThreatDetectionCustomModulesAsync(ListDescendantEventThreatDetectionCustomModulesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListDescendantEventThreatDetectionCustomModulesAsync(ListDescendantEventThreatDetectionCustomModulesRequest request, CallSettings callSettings = null)
Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.
Parameters | |
---|---|
Name | Description |
request |
ListDescendantEventThreatDetectionCustomModulesRequest 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 |
PagedAsyncEnumerableListDescendantEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListDescendantEventThreatDetectionCustomModulesRequest request = new ListDescendantEventThreatDetectionCustomModulesRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListDescendantEventThreatDetectionCustomModulesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListDescendantEventThreatDetectionCustomModulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the parent to list custom modules under. Its format is:
|
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 |
PagedAsyncEnumerableListDescendantEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
// Make the request
PagedAsyncEnumerable<ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListDescendantSecurityHealthAnalyticsCustomModules(ListDescendantSecurityHealthAnalyticsCustomModulesRequest, CallSettings)
public virtual PagedEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListDescendantSecurityHealthAnalyticsCustomModules(ListDescendantSecurityHealthAnalyticsCustomModulesRequest request, CallSettings callSettings = null)
Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.
Parameters | |
---|---|
Name | Description |
request |
ListDescendantSecurityHealthAnalyticsCustomModulesRequest 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 |
PagedEnumerableListDescendantSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = new ListDescendantSecurityHealthAnalyticsCustomModulesRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListDescendantSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListDescendantSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Name of parent to list descendant custom modules. Its format is
|
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 |
PagedEnumerableListDescendantSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListDescendantSecurityHealthAnalyticsCustomModules(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListDescendantSecurityHealthAnalyticsCustomModules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list descendant custom modules. Its format is
|
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 |
PagedEnumerableListDescendantSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
// Make the request
PagedEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListDescendantSecurityHealthAnalyticsCustomModulesAsync(ListDescendantSecurityHealthAnalyticsCustomModulesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListDescendantSecurityHealthAnalyticsCustomModulesAsync(ListDescendantSecurityHealthAnalyticsCustomModulesRequest request, CallSettings callSettings = null)
Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.
Parameters | |
---|---|
Name | Description |
request |
ListDescendantSecurityHealthAnalyticsCustomModulesRequest 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 |
PagedAsyncEnumerableListDescendantSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = new ListDescendantSecurityHealthAnalyticsCustomModulesRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListDescendantSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListDescendantSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Name of parent to list descendant custom modules. Its format is
|
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 |
PagedAsyncEnumerableListDescendantSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListDescendantSecurityHealthAnalyticsCustomModulesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListDescendantSecurityHealthAnalyticsCustomModulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list descendant custom modules. Its format is
|
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 |
PagedAsyncEnumerableListDescendantSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
// Make the request
PagedAsyncEnumerable<ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListEffectiveEventThreatDetectionCustomModules(EventThreatDetectionSettingsName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> ListEffectiveEventThreatDetectionCustomModules(EventThreatDetectionSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. Name of the parent to list custom modules for. Its format is:
|
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 |
PagedEnumerableListEffectiveEventThreatDetectionCustomModulesResponseEffectiveEventThreatDetectionCustomModule |
A pageable sequence of EffectiveEventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveEventThreatDetectionCustomModule 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<EffectiveEventThreatDetectionCustomModule> 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 (EffectiveEventThreatDetectionCustomModule 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;
ListEffectiveEventThreatDetectionCustomModules(ListEffectiveEventThreatDetectionCustomModulesRequest, CallSettings)
public virtual PagedEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> ListEffectiveEventThreatDetectionCustomModules(ListEffectiveEventThreatDetectionCustomModulesRequest request, CallSettings callSettings = null)
Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.
Parameters | |
---|---|
Name | Description |
request |
ListEffectiveEventThreatDetectionCustomModulesRequest 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 |
PagedEnumerableListEffectiveEventThreatDetectionCustomModulesResponseEffectiveEventThreatDetectionCustomModule |
A pageable sequence of EffectiveEventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListEffectiveEventThreatDetectionCustomModulesRequest request = new ListEffectiveEventThreatDetectionCustomModulesRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveEventThreatDetectionCustomModule 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<EffectiveEventThreatDetectionCustomModule> 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 (EffectiveEventThreatDetectionCustomModule 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;
ListEffectiveEventThreatDetectionCustomModules(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> ListEffectiveEventThreatDetectionCustomModules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the parent to list custom modules for. Its format is:
|
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 |
PagedEnumerableListEffectiveEventThreatDetectionCustomModulesResponseEffectiveEventThreatDetectionCustomModule |
A pageable sequence of EffectiveEventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
// Make the request
PagedEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveEventThreatDetectionCustomModule 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<EffectiveEventThreatDetectionCustomModule> 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 (EffectiveEventThreatDetectionCustomModule 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;
ListEffectiveEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> ListEffectiveEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. Name of the parent to list custom modules for. Its format is:
|
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 |
PagedAsyncEnumerableListEffectiveEventThreatDetectionCustomModulesResponseEffectiveEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EffectiveEventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveEventThreatDetectionCustomModule 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<EffectiveEventThreatDetectionCustomModule> 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 (EffectiveEventThreatDetectionCustomModule 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;
ListEffectiveEventThreatDetectionCustomModulesAsync(ListEffectiveEventThreatDetectionCustomModulesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> ListEffectiveEventThreatDetectionCustomModulesAsync(ListEffectiveEventThreatDetectionCustomModulesRequest request, CallSettings callSettings = null)
Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.
Parameters | |
---|---|
Name | Description |
request |
ListEffectiveEventThreatDetectionCustomModulesRequest 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 |
PagedAsyncEnumerableListEffectiveEventThreatDetectionCustomModulesResponseEffectiveEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EffectiveEventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListEffectiveEventThreatDetectionCustomModulesRequest request = new ListEffectiveEventThreatDetectionCustomModulesRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveEventThreatDetectionCustomModule 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<EffectiveEventThreatDetectionCustomModule> 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 (EffectiveEventThreatDetectionCustomModule 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;
ListEffectiveEventThreatDetectionCustomModulesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> ListEffectiveEventThreatDetectionCustomModulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the parent to list custom modules for. Its format is:
|
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 |
PagedAsyncEnumerableListEffectiveEventThreatDetectionCustomModulesResponseEffectiveEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EffectiveEventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
// Make the request
PagedAsyncEnumerable<ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveEventThreatDetectionCustomModule 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<EffectiveEventThreatDetectionCustomModule> 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 (EffectiveEventThreatDetectionCustomModule 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;
ListEffectiveSecurityHealthAnalyticsCustomModules(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, CallSettings)
public virtual PagedEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> ListEffectiveSecurityHealthAnalyticsCustomModules(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request, CallSettings callSettings = null)
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
request |
ListEffectiveSecurityHealthAnalyticsCustomModulesRequest 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 |
PagedEnumerableListEffectiveSecurityHealthAnalyticsCustomModulesResponseEffectiveSecurityHealthAnalyticsCustomModule |
A pageable sequence of EffectiveSecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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<EffectiveSecurityHealthAnalyticsCustomModule> 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 (EffectiveSecurityHealthAnalyticsCustomModule 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;
ListEffectiveSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> ListEffectiveSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Name of parent to list effective custom modules. Its format is
|
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 |
PagedEnumerableListEffectiveSecurityHealthAnalyticsCustomModulesResponseEffectiveSecurityHealthAnalyticsCustomModule |
A pageable sequence of EffectiveSecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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<EffectiveSecurityHealthAnalyticsCustomModule> 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 (EffectiveSecurityHealthAnalyticsCustomModule 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;
ListEffectiveSecurityHealthAnalyticsCustomModules(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> ListEffectiveSecurityHealthAnalyticsCustomModules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list effective custom modules. Its format is
|
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 |
PagedEnumerableListEffectiveSecurityHealthAnalyticsCustomModulesResponseEffectiveSecurityHealthAnalyticsCustomModule |
A pageable sequence of EffectiveSecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
// Make the request
PagedEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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<EffectiveSecurityHealthAnalyticsCustomModule> 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 (EffectiveSecurityHealthAnalyticsCustomModule 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;
ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request, CallSettings callSettings = null)
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
request |
ListEffectiveSecurityHealthAnalyticsCustomModulesRequest 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 |
PagedAsyncEnumerableListEffectiveSecurityHealthAnalyticsCustomModulesResponseEffectiveSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of EffectiveSecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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<EffectiveSecurityHealthAnalyticsCustomModule> 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 (EffectiveSecurityHealthAnalyticsCustomModule 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;
ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Name of parent to list effective custom modules. Its format is
|
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 |
PagedAsyncEnumerableListEffectiveSecurityHealthAnalyticsCustomModulesResponseEffectiveSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of EffectiveSecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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<EffectiveSecurityHealthAnalyticsCustomModule> 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 (EffectiveSecurityHealthAnalyticsCustomModule 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;
ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list effective custom modules. Its format is
|
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 |
PagedAsyncEnumerableListEffectiveSecurityHealthAnalyticsCustomModulesResponseEffectiveSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of EffectiveSecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
// Make the request
PagedAsyncEnumerable<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EffectiveSecurityHealthAnalyticsCustomModule 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<EffectiveSecurityHealthAnalyticsCustomModule> 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 (EffectiveSecurityHealthAnalyticsCustomModule 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;
ListEventThreatDetectionCustomModules(EventThreatDetectionSettingsName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListEventThreatDetectionCustomModules(EventThreatDetectionSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. Name of the parent to list custom modules under. Its format is:
|
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 |
PagedEnumerableListEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListEventThreatDetectionCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListEventThreatDetectionCustomModules(ListEventThreatDetectionCustomModulesRequest, CallSettings)
public virtual PagedEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListEventThreatDetectionCustomModules(ListEventThreatDetectionCustomModulesRequest request, CallSettings callSettings = null)
Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.
Parameters | |
---|---|
Name | Description |
request |
ListEventThreatDetectionCustomModulesRequest 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 |
PagedEnumerableListEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListEventThreatDetectionCustomModulesRequest request = new ListEventThreatDetectionCustomModulesRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListEventThreatDetectionCustomModules(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListEventThreatDetectionCustomModules(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListEventThreatDetectionCustomModules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the parent to list custom modules under. Its format is:
|
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 |
PagedEnumerableListEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
// Make the request
PagedEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListEventThreatDetectionCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.
Parameters | |
---|---|
Name | Description |
parent |
EventThreatDetectionSettingsName Required. Name of the parent to list custom modules under. Its format is:
|
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 |
PagedAsyncEnumerableListEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListEventThreatDetectionCustomModulesAsync(ListEventThreatDetectionCustomModulesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListEventThreatDetectionCustomModulesAsync(ListEventThreatDetectionCustomModulesRequest request, CallSettings callSettings = null)
Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.
Parameters | |
---|---|
Name | Description |
request |
ListEventThreatDetectionCustomModulesRequest 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 |
PagedAsyncEnumerableListEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListEventThreatDetectionCustomModulesRequest request = new ListEventThreatDetectionCustomModulesRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule 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;
ListEventThreatDetectionCustomModulesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> ListEventThreatDetectionCustomModulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the parent to list custom modules under. Its format is:
|
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 |
PagedAsyncEnumerableListEventThreatDetectionCustomModulesResponseEventThreatDetectionCustomModule |
A pageable asynchronous sequence of EventThreatDetectionCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings";
// Make the request
PagedAsyncEnumerable<ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (EventThreatDetectionCustomModule 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<EventThreatDetectionCustomModule> 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 (EventThreatDetectionCustomModule item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFindings(ListFindingsRequest, CallSettings)
public virtual PagedEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> ListFindings(ListFindingsRequest request, CallSettings callSettings = null)
Lists an organization or source's findings.
To list across all sources provide a -
as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings
Parameters | |
---|---|
Name | Description |
request |
ListFindingsRequest 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 |
PagedEnumerableListFindingsResponseListFindingsResponseTypesListFindingsResult |
A pageable sequence of ListFindingsResponse.Types.ListFindingsResult resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListFindingsRequest request = new ListFindingsRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
Filter = "",
OrderBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
FieldMask = new FieldMask(),
};
// Make the request
PagedEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> response = securityCenterClient.ListFindings(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ListFindingsResponse.Types.ListFindingsResult item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ListFindingsResponse.Types.ListFindingsResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ListFindingsResponse.Types.ListFindingsResult> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ListFindingsResponse.Types.ListFindingsResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFindingsAsync(ListFindingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> ListFindingsAsync(ListFindingsRequest request, CallSettings callSettings = null)
Lists an organization or source's findings.
To list across all sources provide a -
as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings
Parameters | |
---|---|
Name | Description |
request |
ListFindingsRequest 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 |
PagedAsyncEnumerableListFindingsResponseListFindingsResponseTypesListFindingsResult |
A pageable asynchronous sequence of ListFindingsResponse.Types.ListFindingsResult resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListFindingsRequest request = new ListFindingsRequest
{
ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"),
Filter = "",
OrderBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
FieldMask = new FieldMask(),
};
// Make the request
PagedAsyncEnumerable<ListFindingsResponse, ListFindingsResponse.Types.ListFindingsResult> response = securityCenterClient.ListFindingsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ListFindingsResponse.Types.ListFindingsResult item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ListFindingsResponse.Types.ListFindingsResult item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ListFindingsResponse.Types.ListFindingsResult> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ListFindingsResponse.Types.ListFindingsResult item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMuteConfigs(FolderName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigs(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedEnumerableListMuteConfigsResponseMuteConfig |
A pageable sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigs(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedEnumerableListMuteConfigsResponseMuteConfig |
A pageable sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigs(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigs(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedEnumerableListMuteConfigsResponseMuteConfig |
A pageable sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigs(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigs(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedEnumerableListMuteConfigsResponseMuteConfig |
A pageable sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigs(FolderLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigs(FolderLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedEnumerableListMuteConfigsResponseMuteConfig |
A pageable sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
// Make the request
PagedEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigs(ListMuteConfigsRequest, CallSettings)
public virtual PagedEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigs(ListMuteConfigsRequest request, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
request |
ListMuteConfigsRequest 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 |
PagedEnumerableListMuteConfigsResponseMuteConfig |
A pageable sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListMuteConfigsRequest request = new ListMuteConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigs(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigs(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedEnumerableListMuteConfigsResponseMuteConfig |
A pageable sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigs(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedEnumerableListMuteConfigsResponseMuteConfig |
A pageable sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigsAsync(FolderName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigsAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedAsyncEnumerableListMuteConfigsResponseMuteConfig |
A pageable asynchronous sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedAsyncEnumerableListMuteConfigsResponseMuteConfig |
A pageable asynchronous sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigsAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedAsyncEnumerableListMuteConfigsResponseMuteConfig |
A pageable asynchronous sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigsAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedAsyncEnumerableListMuteConfigsResponseMuteConfig |
A pageable asynchronous sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigsAsync(FolderLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigsAsync(FolderLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
FolderLocationName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedAsyncEnumerableListMuteConfigsResponseMuteConfig |
A pageable asynchronous sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigsAsync(ListMuteConfigsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigsAsync(ListMuteConfigsRequest request, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
request |
ListMuteConfigsRequest 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 |
PagedAsyncEnumerableListMuteConfigsResponseMuteConfig |
A pageable asynchronous sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListMuteConfigsRequest request = new ListMuteConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigsAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigsAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedAsyncEnumerableListMuteConfigsResponseMuteConfig |
A pageable asynchronous sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig 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;
ListMuteConfigsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> ListMuteConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists mute configs.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, which owns the collection of mute configs. Its format
is |
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 |
PagedAsyncEnumerableListMuteConfigsResponseMuteConfig |
A pageable asynchronous sequence of MuteConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListMuteConfigsResponse, MuteConfig> response = securityCenterClient.ListMuteConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MuteConfig 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<MuteConfig> 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 (MuteConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigs(FolderName, string, int?, CallSettings)
public virtual PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigs(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". |
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 |
PagedEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (NotificationConfig item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNotificationConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigs(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigs(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". |
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 |
PagedEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (NotificationConfig item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNotificationConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigs(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigs(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". |
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 |
PagedEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (NotificationConfig item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNotificationConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigs(ListNotificationConfigsRequest, CallSettings)
public virtual PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigs(ListNotificationConfigsRequest request, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
request |
ListNotificationConfigsRequest 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 |
PagedEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListNotificationConfigsRequest request = new ListNotificationConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (NotificationConfig item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNotificationConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigs(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". |
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 |
PagedEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (NotificationConfig item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNotificationConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigsAsync(FolderName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigsAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". |
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 |
PagedAsyncEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable asynchronous sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NotificationConfig item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNotificationConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigsAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". |
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 |
PagedAsyncEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable asynchronous sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NotificationConfig item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNotificationConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigsAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". |
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 |
PagedAsyncEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable asynchronous sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NotificationConfig item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNotificationConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigsAsync(ListNotificationConfigsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigsAsync(ListNotificationConfigsRequest request, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
request |
ListNotificationConfigsRequest 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 |
PagedAsyncEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable asynchronous sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListNotificationConfigsRequest request = new ListNotificationConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NotificationConfig item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNotificationConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListNotificationConfigsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> ListNotificationConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists notification configs.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". |
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 |
PagedAsyncEnumerableListNotificationConfigsResponseNotificationConfig |
A pageable asynchronous sequence of NotificationConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListNotificationConfigsResponse, NotificationConfig> response = securityCenterClient.ListNotificationConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NotificationConfig item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNotificationConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NotificationConfig item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NotificationConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NotificationConfig item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListResourceValueConfigs(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> ListResourceValueConfigs(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all ResourceValueConfigs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The parent, which owns the collection of resource value configs.
Its format is
|
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 |
PagedEnumerableListResourceValueConfigsResponseResourceValueConfig |
A pageable sequence of ResourceValueConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> response = securityCenterClient.ListResourceValueConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceValueConfig 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<ResourceValueConfig> 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 (ResourceValueConfig 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;
ListResourceValueConfigs(ListResourceValueConfigsRequest, CallSettings)
public virtual PagedEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> ListResourceValueConfigs(ListResourceValueConfigsRequest request, CallSettings callSettings = null)
Lists all ResourceValueConfigs.
Parameters | |
---|---|
Name | Description |
request |
ListResourceValueConfigsRequest 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 |
PagedEnumerableListResourceValueConfigsResponseResourceValueConfig |
A pageable sequence of ResourceValueConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListResourceValueConfigsRequest request = new ListResourceValueConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> response = securityCenterClient.ListResourceValueConfigs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceValueConfig 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<ResourceValueConfig> 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 (ResourceValueConfig 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;
ListResourceValueConfigs(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> ListResourceValueConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all ResourceValueConfigs.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, which owns the collection of resource value configs.
Its format is
|
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 |
PagedEnumerableListResourceValueConfigsResponseResourceValueConfig |
A pageable sequence of ResourceValueConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> response = securityCenterClient.ListResourceValueConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceValueConfig 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<ResourceValueConfig> 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 (ResourceValueConfig 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;
ListResourceValueConfigsAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> ListResourceValueConfigsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all ResourceValueConfigs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. The parent, which owns the collection of resource value configs.
Its format is
|
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 |
PagedAsyncEnumerableListResourceValueConfigsResponseResourceValueConfig |
A pageable asynchronous sequence of ResourceValueConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> response = securityCenterClient.ListResourceValueConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceValueConfig 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<ResourceValueConfig> 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 (ResourceValueConfig 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;
ListResourceValueConfigsAsync(ListResourceValueConfigsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> ListResourceValueConfigsAsync(ListResourceValueConfigsRequest request, CallSettings callSettings = null)
Lists all ResourceValueConfigs.
Parameters | |
---|---|
Name | Description |
request |
ListResourceValueConfigsRequest 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 |
PagedAsyncEnumerableListResourceValueConfigsResponseResourceValueConfig |
A pageable asynchronous sequence of ResourceValueConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListResourceValueConfigsRequest request = new ListResourceValueConfigsRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> response = securityCenterClient.ListResourceValueConfigsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceValueConfig 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<ResourceValueConfig> 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 (ResourceValueConfig 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;
ListResourceValueConfigsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> ListResourceValueConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all ResourceValueConfigs.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent, which owns the collection of resource value configs.
Its format is
|
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 |
PagedAsyncEnumerableListResourceValueConfigsResponseResourceValueConfig |
A pageable asynchronous sequence of ResourceValueConfig resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListResourceValueConfigsResponse, ResourceValueConfig> response = securityCenterClient.ListResourceValueConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ResourceValueConfig 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<ResourceValueConfig> 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 (ResourceValueConfig 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;
ListSecurityHealthAnalyticsCustomModules(ListSecurityHealthAnalyticsCustomModulesRequest, CallSettings)
public virtual PagedEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListSecurityHealthAnalyticsCustomModules(ListSecurityHealthAnalyticsCustomModulesRequest request, CallSettings callSettings = null)
Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
request |
ListSecurityHealthAnalyticsCustomModulesRequest 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 |
PagedEnumerableListSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListSecurityHealthAnalyticsCustomModulesRequest request = new ListSecurityHealthAnalyticsCustomModulesRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Name of parent to list custom modules. Its format is
|
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 |
PagedEnumerableListSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListSecurityHealthAnalyticsCustomModules(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListSecurityHealthAnalyticsCustomModules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list custom modules. Its format is
|
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 |
PagedEnumerableListSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
// Make the request
PagedEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListSecurityHealthAnalyticsCustomModulesAsync(ListSecurityHealthAnalyticsCustomModulesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListSecurityHealthAnalyticsCustomModulesAsync(ListSecurityHealthAnalyticsCustomModulesRequest request, CallSettings callSettings = null)
Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
request |
ListSecurityHealthAnalyticsCustomModulesRequest 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 |
PagedAsyncEnumerableListSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListSecurityHealthAnalyticsCustomModulesRequest request = new ListSecurityHealthAnalyticsCustomModulesRequest
{
ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
parent |
SecurityHealthAnalyticsSettingsName Required. Name of parent to list custom modules. Its format is
|
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 |
PagedAsyncEnumerableListSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule 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;
ListSecurityHealthAnalyticsCustomModulesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> ListSecurityHealthAnalyticsCustomModulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list custom modules. Its format is
|
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 |
PagedAsyncEnumerableListSecurityHealthAnalyticsCustomModulesResponseSecurityHealthAnalyticsCustomModule |
A pageable asynchronous sequence of SecurityHealthAnalyticsCustomModule resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings";
// Make the request
PagedAsyncEnumerable<ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityHealthAnalyticsCustomModule 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<SecurityHealthAnalyticsCustomModule> 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 (SecurityHealthAnalyticsCustomModule item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSources(FolderName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the parent of sources to list. Its format should
be |
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 |
PagedEnumerableListSourcesResponseSource |
A pageable sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSources(OrganizationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the parent of sources to list. Its format should
be |
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 |
PagedEnumerableListSourcesResponseSource |
A pageable sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSources(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the parent of sources to list. Its format should
be |
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 |
PagedEnumerableListSourcesResponseSource |
A pageable sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSources(ListSourcesRequest, CallSettings)
public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(ListSourcesRequest request, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
request |
ListSourcesRequest 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 |
PagedEnumerableListSourcesResponseSource |
A pageable sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListSourcesRequest request = new ListSourcesRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSources(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the parent of sources to list. Its format should
be |
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 |
PagedEnumerableListSourcesResponseSource |
A pageable sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Source item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSourcesAsync(FolderName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
parent |
FolderName Required. Resource name of the parent of sources to list. Its format should
be |
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 |
PagedAsyncEnumerableListSourcesResponseSource |
A pageable asynchronous sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSourcesAsync(OrganizationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Resource name of the parent of sources to list. Its format should
be |
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 |
PagedAsyncEnumerableListSourcesResponseSource |
A pageable asynchronous sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSourcesAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. Resource name of the parent of sources to list. Its format should
be |
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 |
PagedAsyncEnumerableListSourcesResponseSource |
A pageable asynchronous sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSourcesAsync(ListSourcesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(ListSourcesRequest request, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
request |
ListSourcesRequest 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 |
PagedAsyncEnumerableListSourcesResponseSource |
A pageable asynchronous sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListSourcesRequest request = new ListSourcesRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSourcesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all sources belonging to an organization.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Resource name of the parent of sources to list. Its format should
be |
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 |
PagedAsyncEnumerableListSourcesResponseSource |
A pageable asynchronous sequence of Source resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = securityCenterClient.ListSourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Source item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Source> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Source item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListValuedResources(ListValuedResourcesRequest, CallSettings)
public virtual PagedEnumerable<ListValuedResourcesResponse, ValuedResource> ListValuedResources(ListValuedResourcesRequest request, CallSettings callSettings = null)
Lists the valued resources for a set of simulation results and filter.
Parameters | |
---|---|
Name | Description |
request |
ListValuedResourcesRequest 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 |
PagedEnumerableListValuedResourcesResponseValuedResource |
A pageable sequence of ValuedResource resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ListValuedResourcesRequest request = new ListValuedResourcesRequest
{
ParentAsOrganizationSimulationName = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListValuedResourcesResponse, ValuedResource> response = securityCenterClient.ListValuedResources(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ValuedResource 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<ValuedResource> 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 (ValuedResource 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;
ListValuedResources(OrganizationSimulationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListValuedResourcesResponse, ValuedResource> ListValuedResources(OrganizationSimulationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the valued resources for a set of simulation results and filter.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationSimulationName Required. Name of parent to list valued resources. Valid formats:
|
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 |
PagedEnumerableListValuedResourcesResponseValuedResource |
A pageable sequence of ValuedResource resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationSimulationName parent = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]");
// Make the request
PagedEnumerable<ListValuedResourcesResponse, ValuedResource> response = securityCenterClient.ListValuedResources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ValuedResource 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<ValuedResource> 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 (ValuedResource 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;
ListValuedResources(SimulationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListValuedResourcesResponse, ValuedResource> ListValuedResources(SimulationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the valued resources for a set of simulation results and filter.
Parameters | |
---|---|
Name | Description |
parent |
SimulationName Required. Name of parent to list valued resources. Valid formats:
|
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 |
PagedEnumerableListValuedResourcesResponseValuedResource |
A pageable sequence of ValuedResource resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SimulationName parent = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]");
// Make the request
PagedEnumerable<ListValuedResourcesResponse, ValuedResource> response = securityCenterClient.ListValuedResources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ValuedResource 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<ValuedResource> 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 (ValuedResource 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;
ListValuedResources(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListValuedResourcesResponse, ValuedResource> ListValuedResources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the valued resources for a set of simulation results and filter.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list valued resources. Valid formats:
|
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 |
PagedEnumerableListValuedResourcesResponseValuedResource |
A pageable sequence of ValuedResource resources. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]";
// Make the request
PagedEnumerable<ListValuedResourcesResponse, ValuedResource> response = securityCenterClient.ListValuedResources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ValuedResource 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<ValuedResource> 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 (ValuedResource 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;
ListValuedResourcesAsync(ListValuedResourcesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListValuedResourcesResponse, ValuedResource> ListValuedResourcesAsync(ListValuedResourcesRequest request, CallSettings callSettings = null)
Lists the valued resources for a set of simulation results and filter.
Parameters | |
---|---|
Name | Description |
request |
ListValuedResourcesRequest 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 |
PagedAsyncEnumerableListValuedResourcesResponseValuedResource |
A pageable asynchronous sequence of ValuedResource resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ListValuedResourcesRequest request = new ListValuedResourcesRequest
{
ParentAsOrganizationSimulationName = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListValuedResourcesResponse, ValuedResource> response = securityCenterClient.ListValuedResourcesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ValuedResource 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<ValuedResource> 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 (ValuedResource 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;
ListValuedResourcesAsync(OrganizationSimulationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListValuedResourcesResponse, ValuedResource> ListValuedResourcesAsync(OrganizationSimulationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the valued resources for a set of simulation results and filter.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationSimulationName Required. Name of parent to list valued resources. Valid formats:
|
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 |
PagedAsyncEnumerableListValuedResourcesResponseValuedResource |
A pageable asynchronous sequence of ValuedResource resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationSimulationName parent = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]");
// Make the request
PagedAsyncEnumerable<ListValuedResourcesResponse, ValuedResource> response = securityCenterClient.ListValuedResourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ValuedResource 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<ValuedResource> 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 (ValuedResource 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;
ListValuedResourcesAsync(SimulationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListValuedResourcesResponse, ValuedResource> ListValuedResourcesAsync(SimulationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the valued resources for a set of simulation results and filter.
Parameters | |
---|---|
Name | Description |
parent |
SimulationName Required. Name of parent to list valued resources. Valid formats:
|
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 |
PagedAsyncEnumerableListValuedResourcesResponseValuedResource |
A pageable asynchronous sequence of ValuedResource resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SimulationName parent = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]");
// Make the request
PagedAsyncEnumerable<ListValuedResourcesResponse, ValuedResource> response = securityCenterClient.ListValuedResourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ValuedResource 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<ValuedResource> 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 (ValuedResource 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;
ListValuedResourcesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListValuedResourcesResponse, ValuedResource> ListValuedResourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the valued resources for a set of simulation results and filter.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of parent to list valued resources. Valid formats:
|
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 |
PagedAsyncEnumerableListValuedResourcesResponseValuedResource |
A pageable asynchronous sequence of ValuedResource resources. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]";
// Make the request
PagedAsyncEnumerable<ListValuedResourcesResponse, ValuedResource> response = securityCenterClient.ListValuedResourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ValuedResource 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<ValuedResource> 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 (ValuedResource 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;
PollOnceBulkMuteFindings(string, CallSettings)
public virtual Operation<BulkMuteFindingsResponse, Empty> PollOnceBulkMuteFindings(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of BulkMuteFindings
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBulkMuteFindingsResponseEmpty |
The result of polling the operation. |
PollOnceBulkMuteFindingsAsync(string, CallSettings)
public virtual Task<Operation<BulkMuteFindingsResponse, Empty>> PollOnceBulkMuteFindingsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
BulkMuteFindings
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBulkMuteFindingsResponseEmpty |
A task representing the result of polling the operation. |
PollOnceRunAssetDiscovery(string, CallSettings)
[Obsolete]
public virtual Operation<RunAssetDiscoveryResponse, Empty> PollOnceRunAssetDiscovery(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of RunAssetDiscovery
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationRunAssetDiscoveryResponseEmpty |
The result of polling the operation. |
PollOnceRunAssetDiscoveryAsync(string, CallSettings)
[Obsolete]
public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> PollOnceRunAssetDiscoveryAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
RunAssetDiscovery
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationRunAssetDiscoveryResponseEmpty |
A task representing the result of polling the operation. |
RunAssetDiscovery(OrganizationName, CallSettings)
[Obsolete]
public virtual Operation<RunAssetDiscoveryResponse, Empty> RunAssetDiscovery(OrganizationName parent, CallSettings callSettings = null)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Name of the organization to run asset discovery for. Its format
is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationRunAssetDiscoveryResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = securityCenterClient.RunAssetDiscovery(parent);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
RunAssetDiscovery(RunAssetDiscoveryRequest, CallSettings)
[Obsolete]
public virtual Operation<RunAssetDiscoveryResponse, Empty> RunAssetDiscovery(RunAssetDiscoveryRequest request, CallSettings callSettings = null)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
request |
RunAssetDiscoveryRequest 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 |
OperationRunAssetDiscoveryResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = securityCenterClient.RunAssetDiscovery(request);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
RunAssetDiscovery(string, CallSettings)
[Obsolete]
public virtual Operation<RunAssetDiscoveryResponse, Empty> RunAssetDiscovery(string parent, CallSettings callSettings = null)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the organization to run asset discovery for. Its format
is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationRunAssetDiscoveryResponseEmpty |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = securityCenterClient.RunAssetDiscovery(parent);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
RunAssetDiscoveryAsync(OrganizationName, CallSettings)
[Obsolete]
public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(OrganizationName parent, CallSettings callSettings = null)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Name of the organization to run asset discovery for. Its format
is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationRunAssetDiscoveryResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(parent);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
RunAssetDiscoveryAsync(OrganizationName, CancellationToken)
[Obsolete]
public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(OrganizationName parent, CancellationToken cancellationToken)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationName Required. Name of the organization to run asset discovery for. Its format
is |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationRunAssetDiscoveryResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(parent);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
RunAssetDiscoveryAsync(RunAssetDiscoveryRequest, CallSettings)
[Obsolete]
public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(RunAssetDiscoveryRequest request, CallSettings callSettings = null)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
request |
RunAssetDiscoveryRequest 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 |
TaskOperationRunAssetDiscoveryResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(request);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
RunAssetDiscoveryAsync(RunAssetDiscoveryRequest, CancellationToken)
[Obsolete]
public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(RunAssetDiscoveryRequest request, CancellationToken cancellationToken)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
request |
RunAssetDiscoveryRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationRunAssetDiscoveryResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest
{
ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(request);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
RunAssetDiscoveryAsync(string, CallSettings)
[Obsolete]
public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(string parent, CallSettings callSettings = null)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the organization to run asset discovery for. Its format
is |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationRunAssetDiscoveryResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(parent);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
RunAssetDiscoveryAsync(string, CancellationToken)
[Obsolete]
public virtual Task<Operation<RunAssetDiscoveryResponse, Empty>> RunAssetDiscoveryAsync(string parent, CancellationToken cancellationToken)
Runs asset discovery. The discovery is tracked with a long-running operation.
This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
Parameters | |
---|---|
Name | Description |
parent |
string Required. Name of the organization to run asset discovery for. Its format
is |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationRunAssetDiscoveryResponseEmpty |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> response = await securityCenterClient.RunAssetDiscoveryAsync(parent);
#pragma warning restore CS0612
// Poll until the returned long-running operation is complete
Operation<RunAssetDiscoveryResponse, Empty> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RunAssetDiscoveryResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
#pragma warning disable CS0612
Operation<RunAssetDiscoveryResponse, Empty> retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result;
}
SetFindingState(FindingName, State, Timestamp, CallSettings)
public virtual Finding SetFindingState(FindingName name, Finding.Types.State state, Timestamp startTime, CallSettings callSettings = null)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
name |
FindingName Required. The relative resource
name
of the finding. Example:
|
state |
FindingTypesState Required. The desired State of the finding. |
startTime |
Timestamp Required. The time at which the updated state takes effect. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
Finding.Types.State state = Finding.Types.State.Unspecified;
Timestamp startTime = new Timestamp();
// Make the request
Finding response = securityCenterClient.SetFindingState(name, state, startTime);
SetFindingState(SetFindingStateRequest, CallSettings)
public virtual Finding SetFindingState(SetFindingStateRequest request, CallSettings callSettings = null)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
request |
SetFindingStateRequest 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 |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SetFindingStateRequest request = new SetFindingStateRequest
{
FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
State = Finding.Types.State.Unspecified,
StartTime = new Timestamp(),
};
// Make the request
Finding response = securityCenterClient.SetFindingState(request);
SetFindingState(string, State, Timestamp, CallSettings)
public virtual Finding SetFindingState(string name, Finding.Types.State state, Timestamp startTime, CallSettings callSettings = null)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
name |
string Required. The relative resource
name
of the finding. Example:
|
state |
FindingTypesState Required. The desired State of the finding. |
startTime |
Timestamp Required. The time at which the updated state takes effect. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
Finding.Types.State state = Finding.Types.State.Unspecified;
Timestamp startTime = new Timestamp();
// Make the request
Finding response = securityCenterClient.SetFindingState(name, state, startTime);
SetFindingStateAsync(FindingName, State, Timestamp, CallSettings)
public virtual Task<Finding> SetFindingStateAsync(FindingName name, Finding.Types.State state, Timestamp startTime, CallSettings callSettings = null)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
name |
FindingName Required. The relative resource
name
of the finding. Example:
|
state |
FindingTypesState Required. The desired State of the finding. |
startTime |
Timestamp Required. The time at which the updated state takes effect. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
Finding.Types.State state = Finding.Types.State.Unspecified;
Timestamp startTime = new Timestamp();
// Make the request
Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime);
SetFindingStateAsync(FindingName, State, Timestamp, CancellationToken)
public virtual Task<Finding> SetFindingStateAsync(FindingName name, Finding.Types.State state, Timestamp startTime, CancellationToken cancellationToken)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
name |
FindingName Required. The relative resource
name
of the finding. Example:
|
state |
FindingTypesState Required. The desired State of the finding. |
startTime |
Timestamp Required. The time at which the updated state takes effect. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
Finding.Types.State state = Finding.Types.State.Unspecified;
Timestamp startTime = new Timestamp();
// Make the request
Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime);
SetFindingStateAsync(SetFindingStateRequest, CallSettings)
public virtual Task<Finding> SetFindingStateAsync(SetFindingStateRequest request, CallSettings callSettings = null)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
request |
SetFindingStateRequest 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 |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SetFindingStateRequest request = new SetFindingStateRequest
{
FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
State = Finding.Types.State.Unspecified,
StartTime = new Timestamp(),
};
// Make the request
Finding response = await securityCenterClient.SetFindingStateAsync(request);
SetFindingStateAsync(SetFindingStateRequest, CancellationToken)
public virtual Task<Finding> SetFindingStateAsync(SetFindingStateRequest request, CancellationToken cancellationToken)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
request |
SetFindingStateRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SetFindingStateRequest request = new SetFindingStateRequest
{
FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
State = Finding.Types.State.Unspecified,
StartTime = new Timestamp(),
};
// Make the request
Finding response = await securityCenterClient.SetFindingStateAsync(request);
SetFindingStateAsync(string, State, Timestamp, CallSettings)
public virtual Task<Finding> SetFindingStateAsync(string name, Finding.Types.State state, Timestamp startTime, CallSettings callSettings = null)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
name |
string Required. The relative resource
name
of the finding. Example:
|
state |
FindingTypesState Required. The desired State of the finding. |
startTime |
Timestamp Required. The time at which the updated state takes effect. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
Finding.Types.State state = Finding.Types.State.Unspecified;
Timestamp startTime = new Timestamp();
// Make the request
Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime);
SetFindingStateAsync(string, State, Timestamp, CancellationToken)
public virtual Task<Finding> SetFindingStateAsync(string name, Finding.Types.State state, Timestamp startTime, CancellationToken cancellationToken)
Updates the state of a finding.
Parameters | |
---|---|
Name | Description |
name |
string Required. The relative resource
name
of the finding. Example:
|
state |
FindingTypesState Required. The desired State of the finding. |
startTime |
Timestamp Required. The time at which the updated state takes effect. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
Finding.Types.State state = Finding.Types.State.Unspecified;
Timestamp startTime = new Timestamp();
// Make the request
Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime);
SetIamPolicy(IResourceName, Policy, CallSettings)
public virtual Policy SetIamPolicy(IResourceName resource, Policy policy, CallSettings callSettings = null)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
policy |
Policy REQUIRED: The complete policy to be applied to the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
Policy policy = new Policy();
// Make the request
Policy response = securityCenterClient.SetIamPolicy(resource, policy);
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyRequest 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 |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = securityCenterClient.SetIamPolicy(request);
SetIamPolicy(string, Policy, CallSettings)
public virtual Policy SetIamPolicy(string resource, Policy policy, CallSettings callSettings = null)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
policy |
Policy REQUIRED: The complete policy to be applied to the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
Policy policy = new Policy();
// Make the request
Policy response = securityCenterClient.SetIamPolicy(resource, policy);
SetIamPolicyAsync(IResourceName, Policy, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(IResourceName resource, Policy policy, CallSettings callSettings = null)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
policy |
Policy REQUIRED: The complete policy to be applied to the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
Policy policy = new Policy();
// Make the request
Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy);
SetIamPolicyAsync(IResourceName, Policy, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(IResourceName resource, Policy policy, CancellationToken cancellationToken)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
policy |
Policy REQUIRED: The complete policy to be applied to the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
Policy policy = new Policy();
// Make the request
Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy);
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyRequest 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 |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await securityCenterClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await securityCenterClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(string, Policy, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(string resource, Policy policy, CallSettings callSettings = null)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
policy |
Policy REQUIRED: The complete policy to be applied to the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
Policy policy = new Policy();
// Make the request
Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy);
SetIamPolicyAsync(string, Policy, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(string resource, Policy policy, CancellationToken cancellationToken)
Sets the access control policy on the specified Source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
policy |
Policy REQUIRED: The complete policy to be applied to the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
Policy policy = new Policy();
// Make the request
Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy);
SetMute(FindingName, Mute, CallSettings)
public virtual Finding SetMute(FindingName name, Finding.Types.Mute mute, CallSettings callSettings = null)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
name |
FindingName Required. The relative resource
name
of the finding. Example:
|
mute |
FindingTypesMute Required. The desired state of the Mute. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
Finding.Types.Mute mute = Finding.Types.Mute.Unspecified;
// Make the request
Finding response = securityCenterClient.SetMute(name, mute);
SetMute(SetMuteRequest, CallSettings)
public virtual Finding SetMute(SetMuteRequest request, CallSettings callSettings = null)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
request |
SetMuteRequest 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 |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SetMuteRequest request = new SetMuteRequest
{
FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
Mute = Finding.Types.Mute.Unspecified,
};
// Make the request
Finding response = securityCenterClient.SetMute(request);
SetMute(string, Mute, CallSettings)
public virtual Finding SetMute(string name, Finding.Types.Mute mute, CallSettings callSettings = null)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
name |
string Required. The relative resource
name
of the finding. Example:
|
mute |
FindingTypesMute Required. The desired state of the Mute. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
Finding.Types.Mute mute = Finding.Types.Mute.Unspecified;
// Make the request
Finding response = securityCenterClient.SetMute(name, mute);
SetMuteAsync(FindingName, Mute, CallSettings)
public virtual Task<Finding> SetMuteAsync(FindingName name, Finding.Types.Mute mute, CallSettings callSettings = null)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
name |
FindingName Required. The relative resource
name
of the finding. Example:
|
mute |
FindingTypesMute Required. The desired state of the Mute. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
Finding.Types.Mute mute = Finding.Types.Mute.Unspecified;
// Make the request
Finding response = await securityCenterClient.SetMuteAsync(name, mute);
SetMuteAsync(FindingName, Mute, CancellationToken)
public virtual Task<Finding> SetMuteAsync(FindingName name, Finding.Types.Mute mute, CancellationToken cancellationToken)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
name |
FindingName Required. The relative resource
name
of the finding. Example:
|
mute |
FindingTypesMute Required. The desired state of the Mute. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
Finding.Types.Mute mute = Finding.Types.Mute.Unspecified;
// Make the request
Finding response = await securityCenterClient.SetMuteAsync(name, mute);
SetMuteAsync(SetMuteRequest, CallSettings)
public virtual Task<Finding> SetMuteAsync(SetMuteRequest request, CallSettings callSettings = null)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
request |
SetMuteRequest 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 |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SetMuteRequest request = new SetMuteRequest
{
FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
Mute = Finding.Types.Mute.Unspecified,
};
// Make the request
Finding response = await securityCenterClient.SetMuteAsync(request);
SetMuteAsync(SetMuteRequest, CancellationToken)
public virtual Task<Finding> SetMuteAsync(SetMuteRequest request, CancellationToken cancellationToken)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
request |
SetMuteRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SetMuteRequest request = new SetMuteRequest
{
FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"),
Mute = Finding.Types.Mute.Unspecified,
};
// Make the request
Finding response = await securityCenterClient.SetMuteAsync(request);
SetMuteAsync(string, Mute, CallSettings)
public virtual Task<Finding> SetMuteAsync(string name, Finding.Types.Mute mute, CallSettings callSettings = null)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
name |
string Required. The relative resource
name
of the finding. Example:
|
mute |
FindingTypesMute Required. The desired state of the Mute. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
Finding.Types.Mute mute = Finding.Types.Mute.Unspecified;
// Make the request
Finding response = await securityCenterClient.SetMuteAsync(name, mute);
SetMuteAsync(string, Mute, CancellationToken)
public virtual Task<Finding> SetMuteAsync(string name, Finding.Types.Mute mute, CancellationToken cancellationToken)
Updates the mute state of a finding.
Parameters | |
---|---|
Name | Description |
name |
string Required. The relative resource
name
of the finding. Example:
|
mute |
FindingTypesMute Required. The desired state of the Mute. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]";
Finding.Types.Mute mute = Finding.Types.Mute.Unspecified;
// Make the request
Finding response = await securityCenterClient.SetMuteAsync(name, mute);
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.
SimulateSecurityHealthAnalyticsCustomModule(SimulateSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual SimulateSecurityHealthAnalyticsCustomModuleResponse SimulateSecurityHealthAnalyticsCustomModule(SimulateSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
Parameters | |
---|---|
Name | Description |
request |
SimulateSecurityHealthAnalyticsCustomModuleRequest 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 |
SimulateSecurityHealthAnalyticsCustomModuleResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SimulateSecurityHealthAnalyticsCustomModuleRequest request = new SimulateSecurityHealthAnalyticsCustomModuleRequest
{
Parent = "",
CustomConfig = new CustomConfig(),
Resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(),
};
// Make the request
SimulateSecurityHealthAnalyticsCustomModuleResponse response = securityCenterClient.SimulateSecurityHealthAnalyticsCustomModule(request);
SimulateSecurityHealthAnalyticsCustomModule(string, CustomConfig, SimulatedResource, CallSettings)
public virtual SimulateSecurityHealthAnalyticsCustomModuleResponse SimulateSecurityHealthAnalyticsCustomModule(string parent, CustomConfig customConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource, CallSettings callSettings = null)
Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The relative resource name of the organization, project, or
folder. For more information about relative resource names, see Relative
Resource
Name
Example: |
customConfig |
CustomConfig Required. The custom configuration that you need to test. |
resource |
SimulateSecurityHealthAnalyticsCustomModuleRequestTypesSimulatedResource Required. Resource data to simulate custom module against. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SimulateSecurityHealthAnalyticsCustomModuleResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string parent = "";
CustomConfig customConfig = new CustomConfig();
SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource();
// Make the request
SimulateSecurityHealthAnalyticsCustomModuleResponse response = securityCenterClient.SimulateSecurityHealthAnalyticsCustomModule(parent, customConfig, resource);
SimulateSecurityHealthAnalyticsCustomModuleAsync(SimulateSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual Task<SimulateSecurityHealthAnalyticsCustomModuleResponse> SimulateSecurityHealthAnalyticsCustomModuleAsync(SimulateSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
Parameters | |
---|---|
Name | Description |
request |
SimulateSecurityHealthAnalyticsCustomModuleRequest 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 |
TaskSimulateSecurityHealthAnalyticsCustomModuleResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SimulateSecurityHealthAnalyticsCustomModuleRequest request = new SimulateSecurityHealthAnalyticsCustomModuleRequest
{
Parent = "",
CustomConfig = new CustomConfig(),
Resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(),
};
// Make the request
SimulateSecurityHealthAnalyticsCustomModuleResponse response = await securityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync(request);
SimulateSecurityHealthAnalyticsCustomModuleAsync(SimulateSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)
public virtual Task<SimulateSecurityHealthAnalyticsCustomModuleResponse> SimulateSecurityHealthAnalyticsCustomModuleAsync(SimulateSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)
Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
Parameters | |
---|---|
Name | Description |
request |
SimulateSecurityHealthAnalyticsCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSimulateSecurityHealthAnalyticsCustomModuleResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SimulateSecurityHealthAnalyticsCustomModuleRequest request = new SimulateSecurityHealthAnalyticsCustomModuleRequest
{
Parent = "",
CustomConfig = new CustomConfig(),
Resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(),
};
// Make the request
SimulateSecurityHealthAnalyticsCustomModuleResponse response = await securityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync(request);
SimulateSecurityHealthAnalyticsCustomModuleAsync(string, CustomConfig, SimulatedResource, CallSettings)
public virtual Task<SimulateSecurityHealthAnalyticsCustomModuleResponse> SimulateSecurityHealthAnalyticsCustomModuleAsync(string parent, CustomConfig customConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource, CallSettings callSettings = null)
Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The relative resource name of the organization, project, or
folder. For more information about relative resource names, see Relative
Resource
Name
Example: |
customConfig |
CustomConfig Required. The custom configuration that you need to test. |
resource |
SimulateSecurityHealthAnalyticsCustomModuleRequestTypesSimulatedResource Required. Resource data to simulate custom module against. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSimulateSecurityHealthAnalyticsCustomModuleResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
CustomConfig customConfig = new CustomConfig();
SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource();
// Make the request
SimulateSecurityHealthAnalyticsCustomModuleResponse response = await securityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync(parent, customConfig, resource);
SimulateSecurityHealthAnalyticsCustomModuleAsync(string, CustomConfig, SimulatedResource, CancellationToken)
public virtual Task<SimulateSecurityHealthAnalyticsCustomModuleResponse> SimulateSecurityHealthAnalyticsCustomModuleAsync(string parent, CustomConfig customConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource, CancellationToken cancellationToken)
Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The relative resource name of the organization, project, or
folder. For more information about relative resource names, see Relative
Resource
Name
Example: |
customConfig |
CustomConfig Required. The custom configuration that you need to test. |
resource |
SimulateSecurityHealthAnalyticsCustomModuleRequestTypesSimulatedResource Required. Resource data to simulate custom module against. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSimulateSecurityHealthAnalyticsCustomModuleResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
CustomConfig customConfig = new CustomConfig();
SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource();
// Make the request
SimulateSecurityHealthAnalyticsCustomModuleResponse response = await securityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync(parent, customConfig, resource);
TestIamPermissions(IResourceName, IEnumerable<string>, CallSettings)
public virtual TestIamPermissionsResponse TestIamPermissions(IResourceName resource, IEnumerable<string> permissions, CallSettings callSettings = null)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
permissions |
IEnumerablestring The set of permissions to check for the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestIamPermissionsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
IEnumerable<string> permissions = new string[] { "", };
// Make the request
TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(resource, permissions);
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRequest 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 |
TestIamPermissionsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(request);
TestIamPermissions(string, IEnumerable<string>, CallSettings)
public virtual TestIamPermissionsResponse TestIamPermissions(string resource, IEnumerable<string> permissions, CallSettings callSettings = null)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
permissions |
IEnumerablestring The set of permissions to check for the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestIamPermissionsResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
IEnumerable<string> permissions = new string[] { "", };
// Make the request
TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(resource, permissions);
TestIamPermissionsAsync(IResourceName, IEnumerable<string>, CallSettings)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(IResourceName resource, IEnumerable<string> permissions, CallSettings callSettings = null)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
permissions |
IEnumerablestring The set of permissions to check for the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
IEnumerable<string> permissions = new string[] { "", };
// Make the request
TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions);
TestIamPermissionsAsync(IResourceName, IEnumerable<string>, CancellationToken)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(IResourceName resource, IEnumerable<string> permissions, CancellationToken cancellationToken)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
resource |
IResourceName REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
permissions |
IEnumerablestring The set of permissions to check for the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
IEnumerable<string> permissions = new string[] { "", };
// Make the request
TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions);
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRequest 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 |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(string, IEnumerable<string>, CallSettings)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(string resource, IEnumerable<string> permissions, CallSettings callSettings = null)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
permissions |
IEnumerablestring The set of permissions to check for the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
IEnumerable<string> permissions = new string[] { "", };
// Make the request
TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions);
TestIamPermissionsAsync(string, IEnumerable<string>, CancellationToken)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(string resource, IEnumerable<string> permissions, CancellationToken cancellationToken)
Returns the permissions that a caller has on the specified source.
Parameters | |
---|---|
Name | Description |
resource |
string REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
permissions |
IEnumerablestring The set of permissions to check for the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
IEnumerable<string> permissions = new string[] { "", };
// Make the request
TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions);
UpdateBigQueryExport(BigQueryExport, FieldMask, CallSettings)
public virtual BigQueryExport UpdateBigQueryExport(BigQueryExport bigQueryExport, FieldMask updateMask, CallSettings callSettings = null)
Updates a BigQuery export.
Parameters | |
---|---|
Name | Description |
bigQueryExport |
BigQueryExport Required. The BigQuery export being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
BigQueryExport bigQueryExport = new BigQueryExport();
FieldMask updateMask = new FieldMask();
// Make the request
BigQueryExport response = securityCenterClient.UpdateBigQueryExport(bigQueryExport, updateMask);
UpdateBigQueryExport(UpdateBigQueryExportRequest, CallSettings)
public virtual BigQueryExport UpdateBigQueryExport(UpdateBigQueryExportRequest request, CallSettings callSettings = null)
Updates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
UpdateBigQueryExportRequest 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 |
BigQueryExport |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateBigQueryExportRequest request = new UpdateBigQueryExportRequest
{
BigQueryExport = new BigQueryExport(),
UpdateMask = new FieldMask(),
};
// Make the request
BigQueryExport response = securityCenterClient.UpdateBigQueryExport(request);
UpdateBigQueryExportAsync(BigQueryExport, FieldMask, CallSettings)
public virtual Task<BigQueryExport> UpdateBigQueryExportAsync(BigQueryExport bigQueryExport, FieldMask updateMask, CallSettings callSettings = null)
Updates a BigQuery export.
Parameters | |
---|---|
Name | Description |
bigQueryExport |
BigQueryExport Required. The BigQuery export being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExport bigQueryExport = new BigQueryExport();
FieldMask updateMask = new FieldMask();
// Make the request
BigQueryExport response = await securityCenterClient.UpdateBigQueryExportAsync(bigQueryExport, updateMask);
UpdateBigQueryExportAsync(BigQueryExport, FieldMask, CancellationToken)
public virtual Task<BigQueryExport> UpdateBigQueryExportAsync(BigQueryExport bigQueryExport, FieldMask updateMask, CancellationToken cancellationToken)
Updates a BigQuery export.
Parameters | |
---|---|
Name | Description |
bigQueryExport |
BigQueryExport Required. The BigQuery export being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
BigQueryExport bigQueryExport = new BigQueryExport();
FieldMask updateMask = new FieldMask();
// Make the request
BigQueryExport response = await securityCenterClient.UpdateBigQueryExportAsync(bigQueryExport, updateMask);
UpdateBigQueryExportAsync(UpdateBigQueryExportRequest, CallSettings)
public virtual Task<BigQueryExport> UpdateBigQueryExportAsync(UpdateBigQueryExportRequest request, CallSettings callSettings = null)
Updates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
UpdateBigQueryExportRequest 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 |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateBigQueryExportRequest request = new UpdateBigQueryExportRequest
{
BigQueryExport = new BigQueryExport(),
UpdateMask = new FieldMask(),
};
// Make the request
BigQueryExport response = await securityCenterClient.UpdateBigQueryExportAsync(request);
UpdateBigQueryExportAsync(UpdateBigQueryExportRequest, CancellationToken)
public virtual Task<BigQueryExport> UpdateBigQueryExportAsync(UpdateBigQueryExportRequest request, CancellationToken cancellationToken)
Updates a BigQuery export.
Parameters | |
---|---|
Name | Description |
request |
UpdateBigQueryExportRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBigQueryExport |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateBigQueryExportRequest request = new UpdateBigQueryExportRequest
{
BigQueryExport = new BigQueryExport(),
UpdateMask = new FieldMask(),
};
// Make the request
BigQueryExport response = await securityCenterClient.UpdateBigQueryExportAsync(request);
UpdateEventThreatDetectionCustomModule(EventThreatDetectionCustomModule, FieldMask, CallSettings)
public virtual EventThreatDetectionCustomModule UpdateEventThreatDetectionCustomModule(EventThreatDetectionCustomModule eventThreatDetectionCustomModule, FieldMask updateMask, CallSettings callSettings = null)
Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
Parameters | |
---|---|
Name | Description |
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
FieldMask updateMask = new FieldMask();
// Make the request
EventThreatDetectionCustomModule response = securityCenterClient.UpdateEventThreatDetectionCustomModule(eventThreatDetectionCustomModule, updateMask);
UpdateEventThreatDetectionCustomModule(UpdateEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual EventThreatDetectionCustomModule UpdateEventThreatDetectionCustomModule(UpdateEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
Parameters | |
---|---|
Name | Description |
request |
UpdateEventThreatDetectionCustomModuleRequest 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 |
EventThreatDetectionCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateEventThreatDetectionCustomModuleRequest request = new UpdateEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(),
UpdateMask = new FieldMask(),
};
// Make the request
EventThreatDetectionCustomModule response = securityCenterClient.UpdateEventThreatDetectionCustomModule(request);
UpdateEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModule, FieldMask, CallSettings)
public virtual Task<EventThreatDetectionCustomModule> UpdateEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModule eventThreatDetectionCustomModule, FieldMask updateMask, CallSettings callSettings = null)
Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
Parameters | |
---|---|
Name | Description |
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
FieldMask updateMask = new FieldMask();
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.UpdateEventThreatDetectionCustomModuleAsync(eventThreatDetectionCustomModule, updateMask);
UpdateEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModule, FieldMask, CancellationToken)
public virtual Task<EventThreatDetectionCustomModule> UpdateEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModule eventThreatDetectionCustomModule, FieldMask updateMask, CancellationToken cancellationToken)
Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
Parameters | |
---|---|
Name | Description |
eventThreatDetectionCustomModule |
EventThreatDetectionCustomModule Required. The module being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule();
FieldMask updateMask = new FieldMask();
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.UpdateEventThreatDetectionCustomModuleAsync(eventThreatDetectionCustomModule, updateMask);
UpdateEventThreatDetectionCustomModuleAsync(UpdateEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual Task<EventThreatDetectionCustomModule> UpdateEventThreatDetectionCustomModuleAsync(UpdateEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
Parameters | |
---|---|
Name | Description |
request |
UpdateEventThreatDetectionCustomModuleRequest 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 |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateEventThreatDetectionCustomModuleRequest request = new UpdateEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(),
UpdateMask = new FieldMask(),
};
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.UpdateEventThreatDetectionCustomModuleAsync(request);
UpdateEventThreatDetectionCustomModuleAsync(UpdateEventThreatDetectionCustomModuleRequest, CancellationToken)
public virtual Task<EventThreatDetectionCustomModule> UpdateEventThreatDetectionCustomModuleAsync(UpdateEventThreatDetectionCustomModuleRequest request, CancellationToken cancellationToken)
Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
Parameters | |
---|---|
Name | Description |
request |
UpdateEventThreatDetectionCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEventThreatDetectionCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateEventThreatDetectionCustomModuleRequest request = new UpdateEventThreatDetectionCustomModuleRequest
{
EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(),
UpdateMask = new FieldMask(),
};
// Make the request
EventThreatDetectionCustomModule response = await securityCenterClient.UpdateEventThreatDetectionCustomModuleAsync(request);
UpdateExternalSystem(ExternalSystem, FieldMask, CallSettings)
public virtual ExternalSystem UpdateExternalSystem(ExternalSystem externalSystem, FieldMask updateMask, CallSettings callSettings = null)
Updates external system. This is for a given finding.
Parameters | |
---|---|
Name | Description |
externalSystem |
ExternalSystem Required. The external system resource to update. |
updateMask |
FieldMask The FieldMask to use when updating the external system resource. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ExternalSystem |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ExternalSystem externalSystem = new ExternalSystem();
FieldMask updateMask = new FieldMask();
// Make the request
ExternalSystem response = securityCenterClient.UpdateExternalSystem(externalSystem, updateMask);
UpdateExternalSystem(UpdateExternalSystemRequest, CallSettings)
public virtual ExternalSystem UpdateExternalSystem(UpdateExternalSystemRequest request, CallSettings callSettings = null)
Updates external system. This is for a given finding.
Parameters | |
---|---|
Name | Description |
request |
UpdateExternalSystemRequest 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 |
ExternalSystem |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateExternalSystemRequest request = new UpdateExternalSystemRequest
{
ExternalSystem = new ExternalSystem(),
UpdateMask = new FieldMask(),
};
// Make the request
ExternalSystem response = securityCenterClient.UpdateExternalSystem(request);
UpdateExternalSystemAsync(ExternalSystem, FieldMask, CallSettings)
public virtual Task<ExternalSystem> UpdateExternalSystemAsync(ExternalSystem externalSystem, FieldMask updateMask, CallSettings callSettings = null)
Updates external system. This is for a given finding.
Parameters | |
---|---|
Name | Description |
externalSystem |
ExternalSystem Required. The external system resource to update. |
updateMask |
FieldMask The FieldMask to use when updating the external system resource. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskExternalSystem |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ExternalSystem externalSystem = new ExternalSystem();
FieldMask updateMask = new FieldMask();
// Make the request
ExternalSystem response = await securityCenterClient.UpdateExternalSystemAsync(externalSystem, updateMask);
UpdateExternalSystemAsync(ExternalSystem, FieldMask, CancellationToken)
public virtual Task<ExternalSystem> UpdateExternalSystemAsync(ExternalSystem externalSystem, FieldMask updateMask, CancellationToken cancellationToken)
Updates external system. This is for a given finding.
Parameters | |
---|---|
Name | Description |
externalSystem |
ExternalSystem Required. The external system resource to update. |
updateMask |
FieldMask The FieldMask to use when updating the external system resource. If empty all mutable fields will be updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskExternalSystem |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ExternalSystem externalSystem = new ExternalSystem();
FieldMask updateMask = new FieldMask();
// Make the request
ExternalSystem response = await securityCenterClient.UpdateExternalSystemAsync(externalSystem, updateMask);
UpdateExternalSystemAsync(UpdateExternalSystemRequest, CallSettings)
public virtual Task<ExternalSystem> UpdateExternalSystemAsync(UpdateExternalSystemRequest request, CallSettings callSettings = null)
Updates external system. This is for a given finding.
Parameters | |
---|---|
Name | Description |
request |
UpdateExternalSystemRequest 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 |
TaskExternalSystem |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateExternalSystemRequest request = new UpdateExternalSystemRequest
{
ExternalSystem = new ExternalSystem(),
UpdateMask = new FieldMask(),
};
// Make the request
ExternalSystem response = await securityCenterClient.UpdateExternalSystemAsync(request);
UpdateExternalSystemAsync(UpdateExternalSystemRequest, CancellationToken)
public virtual Task<ExternalSystem> UpdateExternalSystemAsync(UpdateExternalSystemRequest request, CancellationToken cancellationToken)
Updates external system. This is for a given finding.
Parameters | |
---|---|
Name | Description |
request |
UpdateExternalSystemRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskExternalSystem |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateExternalSystemRequest request = new UpdateExternalSystemRequest
{
ExternalSystem = new ExternalSystem(),
UpdateMask = new FieldMask(),
};
// Make the request
ExternalSystem response = await securityCenterClient.UpdateExternalSystemAsync(request);
UpdateFinding(Finding, CallSettings)
public virtual Finding UpdateFinding(Finding finding, CallSettings callSettings = null)
Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
Parameters | |
---|---|
Name | Description |
finding |
Finding Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
Finding finding = new Finding();
// Make the request
Finding response = securityCenterClient.UpdateFinding(finding);
UpdateFinding(UpdateFindingRequest, CallSettings)
public virtual Finding UpdateFinding(UpdateFindingRequest request, CallSettings callSettings = null)
Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
UpdateFindingRequest 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 |
Finding |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateFindingRequest request = new UpdateFindingRequest
{
Finding = new Finding(),
UpdateMask = new FieldMask(),
};
// Make the request
Finding response = securityCenterClient.UpdateFinding(request);
UpdateFindingAsync(Finding, CallSettings)
public virtual Task<Finding> UpdateFindingAsync(Finding finding, CallSettings callSettings = null)
Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
Parameters | |
---|---|
Name | Description |
finding |
Finding Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
Finding finding = new Finding();
// Make the request
Finding response = await securityCenterClient.UpdateFindingAsync(finding);
UpdateFindingAsync(Finding, CancellationToken)
public virtual Task<Finding> UpdateFindingAsync(Finding finding, CancellationToken cancellationToken)
Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
Parameters | |
---|---|
Name | Description |
finding |
Finding Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored. In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
Finding finding = new Finding();
// Make the request
Finding response = await securityCenterClient.UpdateFindingAsync(finding);
UpdateFindingAsync(UpdateFindingRequest, CallSettings)
public virtual Task<Finding> UpdateFindingAsync(UpdateFindingRequest request, CallSettings callSettings = null)
Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
UpdateFindingRequest 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 |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateFindingRequest request = new UpdateFindingRequest
{
Finding = new Finding(),
UpdateMask = new FieldMask(),
};
// Make the request
Finding response = await securityCenterClient.UpdateFindingAsync(request);
UpdateFindingAsync(UpdateFindingRequest, CancellationToken)
public virtual Task<Finding> UpdateFindingAsync(UpdateFindingRequest request, CancellationToken cancellationToken)
Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
Parameters | |
---|---|
Name | Description |
request |
UpdateFindingRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFinding |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateFindingRequest request = new UpdateFindingRequest
{
Finding = new Finding(),
UpdateMask = new FieldMask(),
};
// Make the request
Finding response = await securityCenterClient.UpdateFindingAsync(request);
UpdateMuteConfig(MuteConfig, FieldMask, CallSettings)
public virtual MuteConfig UpdateMuteConfig(MuteConfig muteConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates a mute config.
Parameters | |
---|---|
Name | Description |
muteConfig |
MuteConfig Required. The mute config being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
MuteConfig muteConfig = new MuteConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MuteConfig response = securityCenterClient.UpdateMuteConfig(muteConfig, updateMask);
UpdateMuteConfig(UpdateMuteConfigRequest, CallSettings)
public virtual MuteConfig UpdateMuteConfig(UpdateMuteConfigRequest request, CallSettings callSettings = null)
Updates a mute config.
Parameters | |
---|---|
Name | Description |
request |
UpdateMuteConfigRequest 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 |
MuteConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateMuteConfigRequest request = new UpdateMuteConfigRequest
{
MuteConfig = new MuteConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
MuteConfig response = securityCenterClient.UpdateMuteConfig(request);
UpdateMuteConfigAsync(MuteConfig, FieldMask, CallSettings)
public virtual Task<MuteConfig> UpdateMuteConfigAsync(MuteConfig muteConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates a mute config.
Parameters | |
---|---|
Name | Description |
muteConfig |
MuteConfig Required. The mute config being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfig muteConfig = new MuteConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MuteConfig response = await securityCenterClient.UpdateMuteConfigAsync(muteConfig, updateMask);
UpdateMuteConfigAsync(MuteConfig, FieldMask, CancellationToken)
public virtual Task<MuteConfig> UpdateMuteConfigAsync(MuteConfig muteConfig, FieldMask updateMask, CancellationToken cancellationToken)
Updates a mute config.
Parameters | |
---|---|
Name | Description |
muteConfig |
MuteConfig Required. The mute config being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
MuteConfig muteConfig = new MuteConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MuteConfig response = await securityCenterClient.UpdateMuteConfigAsync(muteConfig, updateMask);
UpdateMuteConfigAsync(UpdateMuteConfigRequest, CallSettings)
public virtual Task<MuteConfig> UpdateMuteConfigAsync(UpdateMuteConfigRequest request, CallSettings callSettings = null)
Updates a mute config.
Parameters | |
---|---|
Name | Description |
request |
UpdateMuteConfigRequest 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 |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateMuteConfigRequest request = new UpdateMuteConfigRequest
{
MuteConfig = new MuteConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
MuteConfig response = await securityCenterClient.UpdateMuteConfigAsync(request);
UpdateMuteConfigAsync(UpdateMuteConfigRequest, CancellationToken)
public virtual Task<MuteConfig> UpdateMuteConfigAsync(UpdateMuteConfigRequest request, CancellationToken cancellationToken)
Updates a mute config.
Parameters | |
---|---|
Name | Description |
request |
UpdateMuteConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMuteConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateMuteConfigRequest request = new UpdateMuteConfigRequest
{
MuteConfig = new MuteConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
MuteConfig response = await securityCenterClient.UpdateMuteConfigAsync(request);
UpdateNotificationConfig(NotificationConfig, CallSettings)
public virtual NotificationConfig UpdateNotificationConfig(NotificationConfig notificationConfig, CallSettings callSettings = null)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
notificationConfig |
NotificationConfig Required. The notification config to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = securityCenterClient.UpdateNotificationConfig(notificationConfig);
UpdateNotificationConfig(NotificationConfig, FieldMask, CallSettings)
public virtual NotificationConfig UpdateNotificationConfig(NotificationConfig notificationConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
notificationConfig |
NotificationConfig Required. The notification config to update. |
updateMask |
FieldMask The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
NotificationConfig notificationConfig = new NotificationConfig();
FieldMask updateMask = new FieldMask();
// Make the request
NotificationConfig response = securityCenterClient.UpdateNotificationConfig(notificationConfig, updateMask);
UpdateNotificationConfig(UpdateNotificationConfigRequest, CallSettings)
public virtual NotificationConfig UpdateNotificationConfig(UpdateNotificationConfigRequest request, CallSettings callSettings = null)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
request |
UpdateNotificationConfigRequest 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 |
NotificationConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest
{
NotificationConfig = new NotificationConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
NotificationConfig response = securityCenterClient.UpdateNotificationConfig(request);
UpdateNotificationConfigAsync(NotificationConfig, CallSettings)
public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(NotificationConfig notificationConfig, CallSettings callSettings = null)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
notificationConfig |
NotificationConfig Required. The notification config to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig);
UpdateNotificationConfigAsync(NotificationConfig, FieldMask, CallSettings)
public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(NotificationConfig notificationConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
notificationConfig |
NotificationConfig Required. The notification config to update. |
updateMask |
FieldMask The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfig notificationConfig = new NotificationConfig();
FieldMask updateMask = new FieldMask();
// Make the request
NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig, updateMask);
UpdateNotificationConfigAsync(NotificationConfig, FieldMask, CancellationToken)
public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(NotificationConfig notificationConfig, FieldMask updateMask, CancellationToken cancellationToken)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
notificationConfig |
NotificationConfig Required. The notification config to update. |
updateMask |
FieldMask The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfig notificationConfig = new NotificationConfig();
FieldMask updateMask = new FieldMask();
// Make the request
NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig, updateMask);
UpdateNotificationConfigAsync(NotificationConfig, CancellationToken)
public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(NotificationConfig notificationConfig, CancellationToken cancellationToken)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
notificationConfig |
NotificationConfig Required. The notification config to update. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
NotificationConfig notificationConfig = new NotificationConfig();
// Make the request
NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig);
UpdateNotificationConfigAsync(UpdateNotificationConfigRequest, CallSettings)
public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(UpdateNotificationConfigRequest request, CallSettings callSettings = null)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
request |
UpdateNotificationConfigRequest 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 |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest
{
NotificationConfig = new NotificationConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(request);
UpdateNotificationConfigAsync(UpdateNotificationConfigRequest, CancellationToken)
public virtual Task<NotificationConfig> UpdateNotificationConfigAsync(UpdateNotificationConfigRequest request, CancellationToken cancellationToken)
Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
Parameters | |
---|---|
Name | Description |
request |
UpdateNotificationConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNotificationConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest
{
NotificationConfig = new NotificationConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(request);
UpdateOrganizationSettings(OrganizationSettings, CallSettings)
public virtual OrganizationSettings UpdateOrganizationSettings(OrganizationSettings organizationSettings, CallSettings callSettings = null)
Updates an organization's settings.
Parameters | |
---|---|
Name | Description |
organizationSettings |
OrganizationSettings Required. The organization settings resource to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OrganizationSettings |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
OrganizationSettings organizationSettings = new OrganizationSettings();
// Make the request
OrganizationSettings response = securityCenterClient.UpdateOrganizationSettings(organizationSettings);
UpdateOrganizationSettings(UpdateOrganizationSettingsRequest, CallSettings)
public virtual OrganizationSettings UpdateOrganizationSettings(UpdateOrganizationSettingsRequest request, CallSettings callSettings = null)
Updates an organization's settings.
Parameters | |
---|---|
Name | Description |
request |
UpdateOrganizationSettingsRequest 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 |
OrganizationSettings |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest
{
OrganizationSettings = new OrganizationSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
OrganizationSettings response = securityCenterClient.UpdateOrganizationSettings(request);
UpdateOrganizationSettingsAsync(OrganizationSettings, CallSettings)
public virtual Task<OrganizationSettings> UpdateOrganizationSettingsAsync(OrganizationSettings organizationSettings, CallSettings callSettings = null)
Updates an organization's settings.
Parameters | |
---|---|
Name | Description |
organizationSettings |
OrganizationSettings Required. The organization settings resource to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationSettings organizationSettings = new OrganizationSettings();
// Make the request
OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(organizationSettings);
UpdateOrganizationSettingsAsync(OrganizationSettings, CancellationToken)
public virtual Task<OrganizationSettings> UpdateOrganizationSettingsAsync(OrganizationSettings organizationSettings, CancellationToken cancellationToken)
Updates an organization's settings.
Parameters | |
---|---|
Name | Description |
organizationSettings |
OrganizationSettings Required. The organization settings resource to update. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
OrganizationSettings organizationSettings = new OrganizationSettings();
// Make the request
OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(organizationSettings);
UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest, CallSettings)
public virtual Task<OrganizationSettings> UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest request, CallSettings callSettings = null)
Updates an organization's settings.
Parameters | |
---|---|
Name | Description |
request |
UpdateOrganizationSettingsRequest 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 |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest
{
OrganizationSettings = new OrganizationSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(request);
UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest, CancellationToken)
public virtual Task<OrganizationSettings> UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest request, CancellationToken cancellationToken)
Updates an organization's settings.
Parameters | |
---|---|
Name | Description |
request |
UpdateOrganizationSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOrganizationSettings |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest
{
OrganizationSettings = new OrganizationSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(request);
UpdateResourceValueConfig(ResourceValueConfig, FieldMask, CallSettings)
public virtual ResourceValueConfig UpdateResourceValueConfig(ResourceValueConfig resourceValueConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing ResourceValueConfigs with new rules.
Parameters | |
---|---|
Name | Description |
resourceValueConfig |
ResourceValueConfig Required. The resource value config being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ResourceValueConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ResourceValueConfig resourceValueConfig = new ResourceValueConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ResourceValueConfig response = securityCenterClient.UpdateResourceValueConfig(resourceValueConfig, updateMask);
UpdateResourceValueConfig(UpdateResourceValueConfigRequest, CallSettings)
public virtual ResourceValueConfig UpdateResourceValueConfig(UpdateResourceValueConfigRequest request, CallSettings callSettings = null)
Updates an existing ResourceValueConfigs with new rules.
Parameters | |
---|---|
Name | Description |
request |
UpdateResourceValueConfigRequest 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 |
ResourceValueConfig |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateResourceValueConfigRequest request = new UpdateResourceValueConfigRequest
{
ResourceValueConfig = new ResourceValueConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
ResourceValueConfig response = securityCenterClient.UpdateResourceValueConfig(request);
UpdateResourceValueConfigAsync(ResourceValueConfig, FieldMask, CallSettings)
public virtual Task<ResourceValueConfig> UpdateResourceValueConfigAsync(ResourceValueConfig resourceValueConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing ResourceValueConfigs with new rules.
Parameters | |
---|---|
Name | Description |
resourceValueConfig |
ResourceValueConfig Required. The resource value config being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfig resourceValueConfig = new ResourceValueConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ResourceValueConfig response = await securityCenterClient.UpdateResourceValueConfigAsync(resourceValueConfig, updateMask);
UpdateResourceValueConfigAsync(ResourceValueConfig, FieldMask, CancellationToken)
public virtual Task<ResourceValueConfig> UpdateResourceValueConfigAsync(ResourceValueConfig resourceValueConfig, FieldMask updateMask, CancellationToken cancellationToken)
Updates an existing ResourceValueConfigs with new rules.
Parameters | |
---|---|
Name | Description |
resourceValueConfig |
ResourceValueConfig Required. The resource value config being updated. |
updateMask |
FieldMask The list of fields to be updated. If empty all mutable fields will be updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ResourceValueConfig resourceValueConfig = new ResourceValueConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ResourceValueConfig response = await securityCenterClient.UpdateResourceValueConfigAsync(resourceValueConfig, updateMask);
UpdateResourceValueConfigAsync(UpdateResourceValueConfigRequest, CallSettings)
public virtual Task<ResourceValueConfig> UpdateResourceValueConfigAsync(UpdateResourceValueConfigRequest request, CallSettings callSettings = null)
Updates an existing ResourceValueConfigs with new rules.
Parameters | |
---|---|
Name | Description |
request |
UpdateResourceValueConfigRequest 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 |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateResourceValueConfigRequest request = new UpdateResourceValueConfigRequest
{
ResourceValueConfig = new ResourceValueConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
ResourceValueConfig response = await securityCenterClient.UpdateResourceValueConfigAsync(request);
UpdateResourceValueConfigAsync(UpdateResourceValueConfigRequest, CancellationToken)
public virtual Task<ResourceValueConfig> UpdateResourceValueConfigAsync(UpdateResourceValueConfigRequest request, CancellationToken cancellationToken)
Updates an existing ResourceValueConfigs with new rules.
Parameters | |
---|---|
Name | Description |
request |
UpdateResourceValueConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskResourceValueConfig |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateResourceValueConfigRequest request = new UpdateResourceValueConfigRequest
{
ResourceValueConfig = new ResourceValueConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
ResourceValueConfig response = await securityCenterClient.UpdateResourceValueConfigAsync(request);
UpdateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule, FieldMask, CallSettings)
public virtual SecurityHealthAnalyticsCustomModule UpdateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, FieldMask updateMask, CallSettings callSettings = null)
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
Parameters | |
---|---|
Name | Description |
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. The SecurityHealthAnalytics custom module to update. |
updateMask |
FieldMask The list of fields to be updated. The only fields that can be updated are
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
FieldMask updateMask = new FieldMask();
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.UpdateSecurityHealthAnalyticsCustomModule(securityHealthAnalyticsCustomModule, updateMask);
UpdateSecurityHealthAnalyticsCustomModule(UpdateSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual SecurityHealthAnalyticsCustomModule UpdateSecurityHealthAnalyticsCustomModule(UpdateSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
Parameters | |
---|---|
Name | Description |
request |
UpdateSecurityHealthAnalyticsCustomModuleRequest 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 |
SecurityHealthAnalyticsCustomModule |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateSecurityHealthAnalyticsCustomModuleRequest request = new UpdateSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
UpdateMask = new FieldMask(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = securityCenterClient.UpdateSecurityHealthAnalyticsCustomModule(request);
UpdateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModule, FieldMask, CallSettings)
public virtual Task<SecurityHealthAnalyticsCustomModule> UpdateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, FieldMask updateMask, CallSettings callSettings = null)
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
Parameters | |
---|---|
Name | Description |
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. The SecurityHealthAnalytics custom module to update. |
updateMask |
FieldMask The list of fields to be updated. The only fields that can be updated are
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
FieldMask updateMask = new FieldMask();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync(securityHealthAnalyticsCustomModule, updateMask);
UpdateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModule, FieldMask, CancellationToken)
public virtual Task<SecurityHealthAnalyticsCustomModule> UpdateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, FieldMask updateMask, CancellationToken cancellationToken)
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
Parameters | |
---|---|
Name | Description |
securityHealthAnalyticsCustomModule |
SecurityHealthAnalyticsCustomModule Required. The SecurityHealthAnalytics custom module to update. |
updateMask |
FieldMask The list of fields to be updated. The only fields that can be updated are
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule();
FieldMask updateMask = new FieldMask();
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync(securityHealthAnalyticsCustomModule, updateMask);
UpdateSecurityHealthAnalyticsCustomModuleAsync(UpdateSecurityHealthAnalyticsCustomModuleRequest, CallSettings)
public virtual Task<SecurityHealthAnalyticsCustomModule> UpdateSecurityHealthAnalyticsCustomModuleAsync(UpdateSecurityHealthAnalyticsCustomModuleRequest request, CallSettings callSettings = null)
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
Parameters | |
---|---|
Name | Description |
request |
UpdateSecurityHealthAnalyticsCustomModuleRequest 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 |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityHealthAnalyticsCustomModuleRequest request = new UpdateSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
UpdateMask = new FieldMask(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync(request);
UpdateSecurityHealthAnalyticsCustomModuleAsync(UpdateSecurityHealthAnalyticsCustomModuleRequest, CancellationToken)
public virtual Task<SecurityHealthAnalyticsCustomModule> UpdateSecurityHealthAnalyticsCustomModuleAsync(UpdateSecurityHealthAnalyticsCustomModuleRequest request, CancellationToken cancellationToken)
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
Parameters | |
---|---|
Name | Description |
request |
UpdateSecurityHealthAnalyticsCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityHealthAnalyticsCustomModule |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityHealthAnalyticsCustomModuleRequest request = new UpdateSecurityHealthAnalyticsCustomModuleRequest
{
SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(),
UpdateMask = new FieldMask(),
};
// Make the request
SecurityHealthAnalyticsCustomModule response = await securityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync(request);
UpdateSecurityMarks(SecurityMarks, CallSettings)
public virtual SecurityMarks UpdateSecurityMarks(SecurityMarks securityMarks, CallSettings callSettings = null)
Updates security marks.
Parameters | |
---|---|
Name | Description |
securityMarks |
SecurityMarks Required. The security marks resource to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SecurityMarks |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
SecurityMarks securityMarks = new SecurityMarks();
// Make the request
SecurityMarks response = securityCenterClient.UpdateSecurityMarks(securityMarks);
UpdateSecurityMarks(UpdateSecurityMarksRequest, CallSettings)
public virtual SecurityMarks UpdateSecurityMarks(UpdateSecurityMarksRequest request, CallSettings callSettings = null)
Updates security marks.
Parameters | |
---|---|
Name | Description |
request |
UpdateSecurityMarksRequest 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 |
SecurityMarks |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest
{
SecurityMarks = new SecurityMarks(),
UpdateMask = new FieldMask(),
StartTime = new Timestamp(),
};
// Make the request
SecurityMarks response = securityCenterClient.UpdateSecurityMarks(request);
UpdateSecurityMarksAsync(SecurityMarks, CallSettings)
public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(SecurityMarks securityMarks, CallSettings callSettings = null)
Updates security marks.
Parameters | |
---|---|
Name | Description |
securityMarks |
SecurityMarks Required. The security marks resource to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSecurityMarks |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityMarks securityMarks = new SecurityMarks();
// Make the request
SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(securityMarks);
UpdateSecurityMarksAsync(SecurityMarks, CancellationToken)
public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(SecurityMarks securityMarks, CancellationToken cancellationToken)
Updates security marks.
Parameters | |
---|---|
Name | Description |
securityMarks |
SecurityMarks Required. The security marks resource to update. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityMarks |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
SecurityMarks securityMarks = new SecurityMarks();
// Make the request
SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(securityMarks);
UpdateSecurityMarksAsync(UpdateSecurityMarksRequest, CallSettings)
public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(UpdateSecurityMarksRequest request, CallSettings callSettings = null)
Updates security marks.
Parameters | |
---|---|
Name | Description |
request |
UpdateSecurityMarksRequest 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 |
TaskSecurityMarks |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest
{
SecurityMarks = new SecurityMarks(),
UpdateMask = new FieldMask(),
StartTime = new Timestamp(),
};
// Make the request
SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(request);
UpdateSecurityMarksAsync(UpdateSecurityMarksRequest, CancellationToken)
public virtual Task<SecurityMarks> UpdateSecurityMarksAsync(UpdateSecurityMarksRequest request, CancellationToken cancellationToken)
Updates security marks.
Parameters | |
---|---|
Name | Description |
request |
UpdateSecurityMarksRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSecurityMarks |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest
{
SecurityMarks = new SecurityMarks(),
UpdateMask = new FieldMask(),
StartTime = new Timestamp(),
};
// Make the request
SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(request);
UpdateSource(Source, CallSettings)
public virtual Source UpdateSource(Source source, CallSettings callSettings = null)
Updates a source.
Parameters | |
---|---|
Name | Description |
source |
Source Required. The source resource to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
Source source = new Source();
// Make the request
Source response = securityCenterClient.UpdateSource(source);
UpdateSource(UpdateSourceRequest, CallSettings)
public virtual Source UpdateSource(UpdateSourceRequest request, CallSettings callSettings = null)
Updates a source.
Parameters | |
---|---|
Name | Description |
request |
UpdateSourceRequest 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 |
Source |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
Source = new Source(),
UpdateMask = new FieldMask(),
};
// Make the request
Source response = securityCenterClient.UpdateSource(request);
UpdateSourceAsync(Source, CallSettings)
public virtual Task<Source> UpdateSourceAsync(Source source, CallSettings callSettings = null)
Updates a source.
Parameters | |
---|---|
Name | Description |
source |
Source Required. The source resource to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
Source source = new Source();
// Make the request
Source response = await securityCenterClient.UpdateSourceAsync(source);
UpdateSourceAsync(Source, CancellationToken)
public virtual Task<Source> UpdateSourceAsync(Source source, CancellationToken cancellationToken)
Updates a source.
Parameters | |
---|---|
Name | Description |
source |
Source Required. The source resource to update. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
Source source = new Source();
// Make the request
Source response = await securityCenterClient.UpdateSourceAsync(source);
UpdateSourceAsync(UpdateSourceRequest, CallSettings)
public virtual Task<Source> UpdateSourceAsync(UpdateSourceRequest request, CallSettings callSettings = null)
Updates a source.
Parameters | |
---|---|
Name | Description |
request |
UpdateSourceRequest 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 |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
Source = new Source(),
UpdateMask = new FieldMask(),
};
// Make the request
Source response = await securityCenterClient.UpdateSourceAsync(request);
UpdateSourceAsync(UpdateSourceRequest, CancellationToken)
public virtual Task<Source> UpdateSourceAsync(UpdateSourceRequest request, CancellationToken cancellationToken)
Updates a source.
Parameters | |
---|---|
Name | Description |
request |
UpdateSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSource |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
Source = new Source(),
UpdateMask = new FieldMask(),
};
// Make the request
Source response = await securityCenterClient.UpdateSourceAsync(request);
ValidateEventThreatDetectionCustomModule(ValidateEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual ValidateEventThreatDetectionCustomModuleResponse ValidateEventThreatDetectionCustomModule(ValidateEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Validates the given Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
request |
ValidateEventThreatDetectionCustomModuleRequest 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 |
ValidateEventThreatDetectionCustomModuleResponse |
The RPC response. |
// Create client
SecurityCenterClient securityCenterClient = SecurityCenterClient.Create();
// Initialize request argument(s)
ValidateEventThreatDetectionCustomModuleRequest request = new ValidateEventThreatDetectionCustomModuleRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
RawText = "",
Type = "",
};
// Make the request
ValidateEventThreatDetectionCustomModuleResponse response = securityCenterClient.ValidateEventThreatDetectionCustomModule(request);
ValidateEventThreatDetectionCustomModuleAsync(ValidateEventThreatDetectionCustomModuleRequest, CallSettings)
public virtual Task<ValidateEventThreatDetectionCustomModuleResponse> ValidateEventThreatDetectionCustomModuleAsync(ValidateEventThreatDetectionCustomModuleRequest request, CallSettings callSettings = null)
Validates the given Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
request |
ValidateEventThreatDetectionCustomModuleRequest 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 |
TaskValidateEventThreatDetectionCustomModuleResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ValidateEventThreatDetectionCustomModuleRequest request = new ValidateEventThreatDetectionCustomModuleRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
RawText = "",
Type = "",
};
// Make the request
ValidateEventThreatDetectionCustomModuleResponse response = await securityCenterClient.ValidateEventThreatDetectionCustomModuleAsync(request);
ValidateEventThreatDetectionCustomModuleAsync(ValidateEventThreatDetectionCustomModuleRequest, CancellationToken)
public virtual Task<ValidateEventThreatDetectionCustomModuleResponse> ValidateEventThreatDetectionCustomModuleAsync(ValidateEventThreatDetectionCustomModuleRequest request, CancellationToken cancellationToken)
Validates the given Event Threat Detection custom module.
Parameters | |
---|---|
Name | Description |
request |
ValidateEventThreatDetectionCustomModuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskValidateEventThreatDetectionCustomModuleResponse |
A Task containing the RPC response. |
// Create client
SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync();
// Initialize request argument(s)
ValidateEventThreatDetectionCustomModuleRequest request = new ValidateEventThreatDetectionCustomModuleRequest
{
ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"),
RawText = "",
Type = "",
};
// Make the request
ValidateEventThreatDetectionCustomModuleResponse response = await securityCenterClient.ValidateEventThreatDetectionCustomModuleAsync(request);