Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [SecurityCenter] added cloud provider field to list findings response #7481

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified SecurityCenter/metadata/V2/AttackPath.php
Binary file not shown.
54 changes: 54 additions & 0 deletions SecurityCenter/metadata/V2/CloudArmor.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified SecurityCenter/metadata/V2/Finding.php
Binary file not shown.
30 changes: 30 additions & 0 deletions SecurityCenter/metadata/V2/Folder.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified SecurityCenter/metadata/V2/MitreAttack.php
Binary file not shown.
33 changes: 33 additions & 0 deletions SecurityCenter/metadata/V2/Notebook.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified SecurityCenter/metadata/V2/Resource.php
Binary file not shown.
Binary file modified SecurityCenter/metadata/V2/ResourceValueConfig.php
Binary file not shown.
Binary file modified SecurityCenter/metadata/V2/SecuritycenterService.php
Binary file not shown.
10 changes: 6 additions & 4 deletions SecurityCenter/metadata/V2/Simulation.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified SecurityCenter/metadata/V2/ValuedResource.php
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
* @param string $formattedParent Resource name of the new ResourceValueConfig's parent.
* The parent field in the CreateResourceValueConfigRequest
* messages must either be empty or match this field. Please see
* {@see SecurityCenterClient::organizationName()} for help formatting this field.
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
* @param string $formattedRequestsParent Resource name of the new ResourceValueConfig's parent. Please see
* {@see SecurityCenterClient::organizationName()} for help formatting this field.
* @param string $requestsResourceValueConfigTagValuesElement Tag values combined with AND to check against.
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
* @param string $requestsResourceValueConfigTagValuesElement Tag values combined with <code>AND</code> to check against.
* Values in the form "tagValues/123"
* E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
* Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
* https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
*/
function batch_create_resource_value_configs_sample(
Expand Down Expand Up @@ -86,8 +86,11 @@ function batch_create_resource_value_configs_sample(
*/
function callSample(): void
{
$formattedParent = SecurityCenterClient::organizationName('[ORGANIZATION]');
$formattedRequestsParent = SecurityCenterClient::organizationName('[ORGANIZATION]');
$formattedParent = SecurityCenterClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]');
$formattedRequestsParent = SecurityCenterClient::organizationLocationName(
'[ORGANIZATION]',
'[LOCATION]'
);
$requestsResourceValueConfigTagValuesElement = '[TAG_VALUES]';

batch_create_resource_value_configs_sample(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@
* @param string $groupBy Expression that defines what assets fields to use for grouping.
* The string value should follow SQL syntax: comma separated list of fields.
* For example: "parent,resource_name".
*
* The following fields are supported:
*
* * resource_name
* * category
* * state
* * parent
* * severity
*/
function group_findings_sample(string $formattedParent, string $groupBy): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* "organizations/{organization}/simulations/{simulation}"
* "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
* "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
* Please see {@see SecurityCenterClient::valuedResourceName()} for help formatting this field.
* Please see {@see SecurityCenterClient::organizationValuedResourceName()} for help formatting this field.
*/
function list_attack_paths_sample(string $formattedParent): void
{
Expand Down Expand Up @@ -76,8 +76,9 @@ function list_attack_paths_sample(string $formattedParent): void
*/
function callSample(): void
{
$formattedParent = SecurityCenterClient::valuedResourceName(
$formattedParent = SecurityCenterClient::organizationValuedResourceName(
'[ORGANIZATION]',
'[LOCATION]',
'[SIMULATION]',
'[VALUED_RESOURCE]'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @param string $formattedParent The parent, which owns the collection of resource value configs.
* Its format is
* "organizations/[organization_id]"
* Please see {@see SecurityCenterClient::organizationName()} for help formatting this field.
* Please see {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
*/
function list_resource_value_configs_sample(string $formattedParent): void
{
Expand Down Expand Up @@ -71,7 +71,7 @@ function list_resource_value_configs_sample(string $formattedParent): void
*/
function callSample(): void
{
$formattedParent = SecurityCenterClient::organizationName('[ORGANIZATION]');
$formattedParent = SecurityCenterClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]');

list_resource_value_configs_sample($formattedParent);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
/**
* Updates an existing ResourceValueConfigs with new rules.
*
* @param string $resourceValueConfigTagValuesElement Tag values combined with AND to check against.
* @param string $resourceValueConfigTagValuesElement Tag values combined with <code>AND</code> to check against.
* Values in the form "tagValues/123"
* E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
* Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
* https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
*/
function update_resource_value_config_sample(string $resourceValueConfigTagValuesElement): void
Expand Down
84 changes: 84 additions & 0 deletions SecurityCenter/src/V2/AdaptiveProtection.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading