Skip to content

Commit

Permalink
feat: Added a new API method UpdateExternalSystem, which enables upda…
Browse files Browse the repository at this point in the history
…ting a finding w/ external system metadata. External systems are a child resource under finding, and are housed on the finding itself, and can also be filtered on in Notifications, the ListFindings and GroupFindings API

PiperOrigin-RevId: 411093163

Source-Link: googleapis/googleapis@be8f988

Source-Link: googleapis/googleapis-gen@186665a
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjEvLk93bEJvdC55YW1sIiwiaCI6IjE4NjY2NWEwZmY2YWNhZjliZjZkNWVmMGNlZjY2M2RkODI4YjQ4YTcifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Nov 19, 2021
1 parent bb10aef commit 1cda659
Show file tree
Hide file tree
Showing 9 changed files with 2,097 additions and 397 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3804,6 +3804,70 @@ public async Task TestIamPermissionsResourceNamesAsync()
// End snippet
}

/// <summary>Snippet for UpdateExternalSystem</summary>
public void UpdateExternalSystemRequestObject()
{
// Snippet: UpdateExternalSystem(UpdateExternalSystemRequest, CallSettings)
// 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);
// End snippet
}

/// <summary>Snippet for UpdateExternalSystemAsync</summary>
public async Task UpdateExternalSystemRequestObjectAsync()
{
// Snippet: UpdateExternalSystemAsync(UpdateExternalSystemRequest, CallSettings)
// Additional: UpdateExternalSystemAsync(UpdateExternalSystemRequest, CancellationToken)
// 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);
// End snippet
}

/// <summary>Snippet for UpdateExternalSystem</summary>
public void UpdateExternalSystem()
{
// Snippet: UpdateExternalSystem(ExternalSystem, FieldMask, CallSettings)
// 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);
// End snippet
}

/// <summary>Snippet for UpdateExternalSystemAsync</summary>
public async Task UpdateExternalSystemAsync()
{
// Snippet: UpdateExternalSystemAsync(ExternalSystem, FieldMask, CallSettings)
// Additional: UpdateExternalSystemAsync(ExternalSystem, FieldMask, CancellationToken)
// 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);
// End snippet
}

/// <summary>Snippet for UpdateFinding</summary>
public void UpdateFindingRequestObject()
{
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 1cda659

Please sign in to comment.