Skip to content

Commit

Permalink
feat: Add load balancer, log entry, org policy, database.version, exf…
Browse files Browse the repository at this point in the history
…iltration.total_exfiltrated_bytes, file.disk_path, indicator.signature_type, and kubernetes.objects to finding's list of attributes (#7087)

PiperOrigin-RevId: 609614842
Source-Link: googleapis/googleapis@d2c86cf
Source-Link: googleapis/googleapis-gen@612923b
Copy-Tag: eyJwIjoiU2VjdXJpdHlDZW50ZXIvLk93bEJvdC55YW1sIiwiaCI6IjYxMjkyM2JhYzRhYmVhODVlMWQ3NTYxMjRhY2VmOTkxMjMzM2Q3NTAifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Feb 23, 2024
1 parent ee748dd commit 81e472f
Show file tree
Hide file tree
Showing 28 changed files with 1,670 additions and 131 deletions.
7 changes: 4 additions & 3 deletions SecurityCenter/metadata/V1/Database.php

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

7 changes: 4 additions & 3 deletions SecurityCenter/metadata/V1/Exfiltration.php

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

10 changes: 7 additions & 3 deletions SecurityCenter/metadata/V1/File.php

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

Binary file modified SecurityCenter/metadata/V1/Finding.php
Binary file not shown.
Binary file modified SecurityCenter/metadata/V1/Indicator.php
Binary file not shown.
Binary file modified SecurityCenter/metadata/V1/Kubernetes.php
Binary file not shown.
29 changes: 29 additions & 0 deletions SecurityCenter/metadata/V1/LoadBalancer.php

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

Binary file added SecurityCenter/metadata/V1/LogEntry.php
Binary file not shown.
Binary file modified SecurityCenter/metadata/V1/MitreAttack.php
Binary file not shown.
31 changes: 31 additions & 0 deletions SecurityCenter/metadata/V1/OrgPolicy.php

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

72 changes: 72 additions & 0 deletions SecurityCenter/src/V1/Client/SecurityCenterClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,23 @@ public static function folderAssetSecurityMarksName(string $folder, string $asse
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* folder_constraint_name resource.
*
* @param string $folder
* @param string $constraintName
*
* @return string The formatted folder_constraint_name resource.
*/
public static function folderConstraintNameName(string $folder, string $constraintName): string
{
return self::getPathTemplate('folderConstraintName')->render([
'folder' => $folder,
'constraint_name' => $constraintName,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* folder_custom_module resource.
Expand Down Expand Up @@ -597,6 +614,23 @@ public static function organizationAssetSecurityMarksName(string $organization,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* organization_constraint_name resource.
*
* @param string $organization
* @param string $constraintName
*
* @return string The formatted organization_constraint_name resource.
*/
public static function organizationConstraintNameName(string $organization, string $constraintName): string
{
return self::getPathTemplate('organizationConstraintName')->render([
'organization' => $organization,
'constraint_name' => $constraintName,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* organization_custom_module resource.
Expand Down Expand Up @@ -788,6 +822,23 @@ public static function organizationSourceFindingSecurityMarksName(string $organi
]);
}

/**
* Formats a string containing the fully-qualified path to represent a policy
* resource.
*
* @param string $organization
* @param string $constraintName
*
* @return string The formatted policy resource.
*/
public static function policyName(string $organization, string $constraintName): string
{
return self::getPathTemplate('policy')->render([
'organization' => $organization,
'constraint_name' => $constraintName,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a project
* resource.
Expand Down Expand Up @@ -820,6 +871,23 @@ public static function projectAssetSecurityMarksName(string $project, string $as
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_constraint_name resource.
*
* @param string $project
* @param string $constraintName
*
* @return string The formatted project_constraint_name resource.
*/
public static function projectConstraintNameName(string $project, string $constraintName): string
{
return self::getPathTemplate('projectConstraintName')->render([
'project' => $project,
'constraint_name' => $constraintName,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_custom_module resource.
Expand Down Expand Up @@ -1179,6 +1247,7 @@ public static function topicName(string $project, string $topic): string
* - finding: organizations/{organization}/sources/{source}/findings/{finding}
* - folder: folders/{folder}
* - folderAssetSecurityMarks: folders/{folder}/assets/{asset}/securityMarks
* - folderConstraintName: folders/{folder}/policies/{constraint_name}
* - folderCustomModule: folders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}
* - folderEffectiveCustomModule: folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}
* - folderExport: folders/{folder}/bigQueryExports/{export}
Expand All @@ -1193,6 +1262,7 @@ public static function topicName(string $project, string $topic): string
* - notificationConfig: organizations/{organization}/notificationConfigs/{notification_config}
* - organization: organizations/{organization}
* - organizationAssetSecurityMarks: organizations/{organization}/assets/{asset}/securityMarks
* - organizationConstraintName: organizations/{organization}/policies/{constraint_name}
* - organizationCustomModule: organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}
* - organizationEffectiveCustomModule: organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}
* - organizationExport: organizations/{organization}/bigQueryExports/{export}
Expand All @@ -1204,8 +1274,10 @@ public static function topicName(string $project, string $topic): string
* - organizationSourceFinding: organizations/{organization}/sources/{source}/findings/{finding}
* - organizationSourceFindingExternalsystem: organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}
* - organizationSourceFindingSecurityMarks: organizations/{organization}/sources/{source}/findings/{finding}/securityMarks
* - policy: organizations/{organization}/policies/{constraint_name}
* - project: projects/{project}
* - projectAssetSecurityMarks: projects/{project}/assets/{asset}/securityMarks
* - projectConstraintName: projects/{project}/policies/{constraint_name}
* - projectCustomModule: projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}
* - projectDlpJob: projects/{project}/dlpJobs/{dlp_job}
* - projectEffectiveCustomModule: projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}
Expand Down
Loading

0 comments on commit 81e472f

Please sign in to comment.