Class: Google::Cloud::SecurityCenter::V2::Resource
- Inherits:
-
Object
- Object
- Google::Cloud::SecurityCenter::V2::Resource
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/securitycenter/v2/resource.rb
Overview
Information related to the Google Cloud resource.
Instance Attribute Summary collapse
-
#aws_metadata ⇒ ::Google::Cloud::SecurityCenter::V2::AwsMetadata
The AWS metadata associated with the finding.
-
#azure_metadata ⇒ ::Google::Cloud::SecurityCenter::V2::AzureMetadata
The Azure metadata associated with the finding.
-
#cloud_provider ⇒ ::Google::Cloud::SecurityCenter::V2::CloudProvider
Indicates which cloud provider the finding is from.
-
#display_name ⇒ ::String
The human readable name of the resource.
-
#gcp_metadata ⇒ ::Google::Cloud::SecurityCenter::V2::GcpMetadata
The GCP metadata associated with the finding.
-
#location ⇒ ::String
The region or location of the service (if applicable).
-
#name ⇒ ::String
The full resource name of the resource.
-
#resource_path ⇒ ::Google::Cloud::SecurityCenter::V2::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 service or resource provider associated with the resource.
-
#type ⇒ ::String
The full resource type of the resource.
Instance Attribute Details
#aws_metadata ⇒ ::Google::Cloud::SecurityCenter::V2::AwsMetadata
Returns The AWS metadata associated with the finding.
Note: The following fields are mutually exclusive: aws_metadata
, gcp_metadata
, azure_metadata
. If a field in that set is populated, all other fields in the set will automatically be cleared.
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#azure_metadata ⇒ ::Google::Cloud::SecurityCenter::V2::AzureMetadata
Returns The Azure metadata associated with the finding.
Note: The following fields are mutually exclusive: azure_metadata
, gcp_metadata
, aws_metadata
. If a field in that set is populated, all other fields in the set will automatically be cleared.
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#cloud_provider ⇒ ::Google::Cloud::SecurityCenter::V2::CloudProvider
Returns Indicates which cloud provider the finding is from.
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#display_name ⇒ ::String
Returns The human readable name of the resource.
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#gcp_metadata ⇒ ::Google::Cloud::SecurityCenter::V2::GcpMetadata
Returns The GCP metadata associated with the finding.
Note: The following fields are mutually exclusive: gcp_metadata
, aws_metadata
, azure_metadata
. If a field in that set is populated, all other fields in the set will automatically be cleared.
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#location ⇒ ::String
Returns The region or location of the service (if applicable).
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 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.
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#resource_path ⇒ ::Google::Cloud::SecurityCenter::V2::ResourcePath
Returns Provides the path to the resource within the resource hierarchy.
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 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.
74 75 76 77 |
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 74 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |