Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Resource.
Information related to the Google Cloud resource.
Generated from protobuf message google.cloud.securitycenter.v1.Resource
Namespace
Google \ Cloud \ SecurityCenter \ V1Methods
__construct
Constructor.
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
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
string
The full resource name of resource's parent.
↳ parent_display_name
string
The human readable name of resource's parent.
↳ folders
array< Folder
>
Output only. 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 resource resides in.
↳ organization
string
Indicates which organization or tenant in the cloud provider the finding applies to.
↳ service
string
The parent service or product from which the resource is provided, for example, GKE or SNS.
↳ location
string
The region or location of the service (if applicable).
↳ aws_metadata
↳ azure_metadata
↳ resource_path
↳ resource_path_string
string
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.
getName
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string
setName
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
var
string
$this
getDisplayName
The human readable name of the resource.
string
setDisplayName
The human readable name of the resource.
var
string
$this
getType
The full resource type of the resource.
string
setType
The full resource type of the resource.
var
string
$this
getProject
The full resource name of project that the resource belongs to.
string
setProject
The full resource name of project that the resource belongs to.
var
string
$this
getProjectDisplayName
The project ID that the resource belongs to.
string
setProjectDisplayName
The project ID that the resource belongs to.
var
string
$this
getParent
The full resource name of resource's parent.
string
setParent
The full resource name of resource's parent.
var
string
$this
getParentDisplayName
The human readable name of resource's parent.
string
setParentDisplayName
The human readable name of resource's parent.
var
string
$this
getFolders
Output only. 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.
setFolders
Output only. 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.
$this
getCloudProvider
Indicates which cloud provider the resource resides in.
int
setCloudProvider
Indicates which cloud provider the resource resides in.
var
int
$this
getOrganization
Indicates which organization or tenant in the cloud provider the finding applies to.
string
setOrganization
Indicates which organization or tenant in the cloud provider the finding applies to.
var
string
$this
getService
The parent service or product from which the resource is provided, for example, GKE or SNS.
string
setService
The parent service or product from which the resource is provided, for example, GKE or SNS.
var
string
$this
getLocation
The region or location of the service (if applicable).
string
setLocation
The region or location of the service (if applicable).
var
string
$this
getAwsMetadata
The AWS metadata associated with the finding.
hasAwsMetadata
setAwsMetadata
The AWS metadata associated with the finding.
$this
getAzureMetadata
The Azure metadata associated with the finding.
hasAzureMetadata
setAzureMetadata
The Azure metadata associated with the finding.
$this
getResourcePath
Provides the path to the resource within the resource hierarchy.
hasResourcePath
clearResourcePath
setResourcePath
Provides the path to the resource within the resource hierarchy.
$this
getResourcePathString
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.
string
setResourcePathString
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.
var
string
$this
getCloudProviderMetadata
string