# Google Cloud Security Command Center V1 Client - Class Resource (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Resource.

Information related to the Google Cloud resource that is
associated with this finding.

Generated from protobuf message `google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1 \\ ListFindingsResponse \\ ListFindingsResult

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The full resource name of the resource. See: <https://cloud.google.com/apis/design/resource_names#full_resource_name> |
| `↳ display_name` | `string` The human readable name of the resource. |
| `↳ type` | `string` The full resource type of the resource. |
| `↳ project_name` | `string` The full resource name of project that the resource belongs to. |
| `↳ project_display_name` | `string` The project ID that the resource belongs to. |
| `↳ parent_name` | `string` The full resource name of resource's parent. |
| `↳ parent_display_name` | `string` The human readable name of resource's parent. |
| `↳ folders` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Folder>` Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization. |
| `↳ cloud_provider` | `int` Indicates which cloud provider the finding is from. |
| `↳ organization` | `string` Indicates which organization / tenant the finding is for. |
| `↳ service` | `string` The service or resource provider associated with the resource. |
| `↳ location` | `string` The region or location of the service (if applicable). |
| `↳ aws_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AwsMetadata` The AWS metadata associated with the finding. |
| `↳ azure_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata` The Azure metadata associated with the finding. |
| `↳ resource_path` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourcePath` Provides the path to the resource within the resource hierarchy. |
| `↳ resource_path_string` | `string` A string representation of the resource path. For Google Cloud, it has the format of `org/{organization_id}/folder/{folder_id}/folder/{folder_id}/project/{project_id}` where there can be any number of folders. For AWS, it has the format of `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}` where there can be any number of organizational units. For Azure, it has the format of `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}` where there can be any number of management groups. |

### getName

The full resource name of the resource. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The full resource name of the resource. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

The human readable name of the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

The human readable name of the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getType

The full resource type of the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setType

The full resource type of the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProjectName

The full resource name of project that the resource belongs to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProjectName

The full resource name of project that the resource belongs to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProjectDisplayName

The project ID that the resource belongs to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProjectDisplayName

The project ID that the resource belongs to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParentName

The full resource name of resource's parent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParentName

The full resource name of resource's parent.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParentDisplayName

The human readable name of resource's parent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParentDisplayName

The human readable name of resource's parent.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFolders

Contains a Folder message for each folder in the assets ancestry.

The first folder is the deepest nested folder, and the last folder is
the folder directly under the Organization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Folder>` |   |

### setFolders

Contains a Folder message for each folder in the assets ancestry.

The first folder is the deepest nested folder, and the last folder is
the folder directly under the Organization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Folder>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCloudProvider

Indicates which cloud provider the finding is from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CloudProvider](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CloudProvider). |

### setCloudProvider

Indicates which cloud provider the finding is from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CloudProvider](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CloudProvider). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOrganization

Indicates which organization / tenant the finding is for.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setOrganization

Indicates which organization / tenant the finding is for.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getService

The service or resource provider associated with the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setService

The service or resource provider associated with the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLocation

The region or location of the service (if applicable).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLocation

The region or location of the service (if applicable).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAwsMetadata

The AWS metadata associated with the finding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AwsMetadata|null` |   |

### hasAwsMetadata

### setAwsMetadata

The AWS metadata associated with the finding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AwsMetadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAzureMetadata

The Azure metadata associated with the finding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata|null` |   |

### hasAzureMetadata

### setAzureMetadata

The Azure metadata associated with the finding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourcePath

Provides the path to the resource within the resource hierarchy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourcePath|null` |   |

### hasResourcePath

### clearResourcePath

### setResourcePath

Provides the path to the resource within the resource hierarchy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourcePath` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourcePathString

A string representation of the resource path.

For Google Cloud, it has the format of
`org/{organization_id}/folder/{folder_id}/folder/{folder_id}/project/{project_id}`
where there can be any number of folders.
For AWS, it has the format of
`org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
where there can be any number of organizational units.
For Azure, it has the format of
`mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
where there can be any number of management groups.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setResourcePathString

A string representation of the resource path.

For Google Cloud, it has the format of
`org/{organization_id}/folder/{folder_id}/folder/{folder_id}/project/{project_id}`
where there can be any number of folders.
For AWS, it has the format of
`org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
where there can be any number of organizational units.
For Azure, it has the format of
`mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
where there can be any number of management groups.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCloudProviderMetadata

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |