Class: Google::Cloud::SecurityCenter::V1::Resource
- Inherits:
-
Object
- Object
- Google::Cloud::SecurityCenter::V1::Resource
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/securitycenter/v1/resource.rb
Overview
Information related to the Google Cloud resource.
Instance Attribute Summary collapse
-
#aws_metadata ⇒ ::Google::Cloud::SecurityCenter::V1::AwsMetadata
The AWS metadata associated with the finding.
-
#azure_metadata ⇒ ::Google::Cloud::SecurityCenter::V1::AzureMetadata
The Azure metadata associated with the finding.
-
#cloud_provider ⇒ ::Google::Cloud::SecurityCenter::V1::CloudProvider
Indicates which cloud provider the resource resides in.
-
#display_name ⇒ ::String
The human readable name of the resource.
-
#folders ⇒ ::Array<::Google::Cloud::SecurityCenter::V1::Folder>
readonly
Output only.
-
#location ⇒ ::String
The region or location of the service (if applicable).
-
#name ⇒ ::String
The full resource name of the resource.
-
#organization ⇒ ::String
Indicates which organization or tenant in the cloud provider the finding applies to.
-
#parent ⇒ ::String
The full resource name of resource's parent.
-
#parent_display_name ⇒ ::String
The human readable name of resource's parent.
-
#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.
-
#resource_path ⇒ ::Google::Cloud::SecurityCenter::V1::ResourcePath
Provides the path to the resource within the resource hierarchy.
-
#resource_path_string ⇒ ::String
A string representation of the resource path.
-
#service ⇒ ::String
The parent service or product from which the resource is provided, for example, GKE or SNS.
-
#type ⇒ ::String
The full resource type of the resource.
Instance Attribute Details
#aws_metadata ⇒ ::Google::Cloud::SecurityCenter::V1::AwsMetadata
Returns The AWS metadata associated with the finding.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#azure_metadata ⇒ ::Google::Cloud::SecurityCenter::V1::AzureMetadata
Returns The Azure metadata associated with the finding.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#cloud_provider ⇒ ::Google::Cloud::SecurityCenter::V1::CloudProvider
Returns Indicates which cloud provider the resource resides in.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#display_name ⇒ ::String
Returns The human readable name of the resource.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#folders ⇒ ::Array<::Google::Cloud::SecurityCenter::V1::Folder> (readonly)
Returns 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.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#location ⇒ ::String
Returns The region or location of the service (if applicable).
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#organization ⇒ ::String
Returns Indicates which organization or tenant in the cloud provider the finding applies to.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#parent ⇒ ::String
Returns The full resource name of resource's parent.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#parent_display_name ⇒ ::String
Returns The human readable name of resource's parent.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#project ⇒ ::String
Returns The full resource name of project that the resource belongs to.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#project_display_name ⇒ ::String
Returns The project ID that the resource belongs to.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#resource_path ⇒ ::Google::Cloud::SecurityCenter::V1::ResourcePath
Returns Provides the path to the resource within the resource hierarchy.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#resource_path_string ⇒ ::String
Returns 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.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#service ⇒ ::String
Returns The parent service or product from which the resource is provided, for example, GKE or SNS.
87 88 89 90 |
# File 'proto_docs/google/cloud/securitycenter/v1/resource.rb', line 87 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |