class FoldersAssets extends Resource (View source)

The "assets" collection of methods.

Typical usage is:

 $securitycenterService = new Google\Service\SecurityCommandCenter(...);
 $assets = $securitycenterService->folders_assets;

Methods

group(string $parent, GroupAssetsRequest $postBody, array $optParams = [])

Filters an organization's assets and groups them by their specified properties. (assets.group)

listFoldersAssets(string $parent, array $optParams = [])

Lists an organization's assets. (assets.listFoldersAssets)

updateSecurityMarks(string $name, SecurityMarks $postBody, array $optParams = [])

Updates security marks. (assets.updateSecurityMarks)

Details

GroupAssetsResponse group(string $parent, GroupAssetsRequest $postBody, array $optParams = [])

Filters an organization's assets and groups them by their specified properties. (assets.group)

Parameters

string $parent

Required. The name of the parent to group the assets by. Its format is organizations/[organization_id], folders/[folder_id], or projects/[project_id].

GroupAssetsRequest $postBody
array $optParams

Optional parameters.

Return Value

GroupAssetsResponse

Exceptions

Exception

ListAssetsResponse listFoldersAssets(string $parent, array $optParams = [])

Lists an organization's assets. (assets.listFoldersAssets)

Parameters

string $parent

Required. The name of the parent resource that contains the assets. The value that you can specify on parent depends on the method in which you specify parent. You can specify one of the following values: organizations/[organization_id], folders/[folder_id], or projects/[project_id].

array $optParams

Optional parameters.

Return Value

ListAssetsResponse

Exceptions

Exception

SecurityMarks updateSecurityMarks(string $name, SecurityMarks $postBody, array $optParams = [])

Updates security marks. (assets.updateSecurityMarks)

Parameters

string $name

The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" " organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/sec urityMarks".

SecurityMarks $postBody
array $optParams

Optional parameters.

Return Value

SecurityMarks

Exceptions

Exception