# Class Resource (1.45.0)

1.45.0 (latest) 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.1 1.33.1 1.32.1 1.31.0 1.30.1 1.29.0 1.28.0 1.27.0 1.26.1 1.25.0 1.24.1 1.23.2 1.22.0 1.21.0 1.20.0 1.19.1 1.18.2 1.17.0 1.16.2 1.15.0 1.14.0 1.13.0 1.12.0 1.11.1 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.2 1.4.0 1.3.1 1.2.0 1.1.0 1.0.0 0.7.3 0.6.0 0.5.0 0.4.0 0.3.0

    Resource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Information related to the Google Cloud resource.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name |
| `display_name` | `str` The human readable name of the resource. |
| `type_` | `str` The full resource type of the resource. |
| `cloud_provider` | `https://docs.cloud.google.com/python/docs/reference/securitycenter/latest/google.cloud.securitycenter_v2.types.CloudProvider` Indicates which cloud provider the finding is from. |
| `service` | `str` The service or resource provider associated with the resource. |
| `location` | `str` The region or location of the service (if applicable). |
| `gcp_metadata` | `https://docs.cloud.google.com/python/docs/reference/securitycenter/latest/google.cloud.securitycenter_v2.types.GcpMetadata` The GCP metadata associated with the finding. This field is a member of `oneof`_ `cloud_provider_metadata`. |
| `aws_metadata` | `https://docs.cloud.google.com/python/docs/reference/securitycenter/latest/google.cloud.securitycenter_v2.types.AwsMetadata` The AWS metadata associated with the finding. This field is a member of `oneof`_ `cloud_provider_metadata`. |
| `azure_metadata` | `https://docs.cloud.google.com/python/docs/reference/securitycenter/latest/google.cloud.securitycenter_v2.types.AzureMetadata` The Azure metadata associated with the finding. This field is a member of `oneof`_ `cloud_provider_metadata`. |
| `resource_path` | `https://docs.cloud.google.com/python/docs/reference/securitycenter/latest/google.cloud.securitycenter_v2.types.ResourcePath` Provides the path to the resource within the resource hierarchy. |
| `resource_path_string` | `str` A string representation of the resource path. For Google Cloud, it has the format of `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{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. |