Class: Google::Cloud::SecurityCenter::V2::Resource

Inherits:
Object
  • Object
show all
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

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.

Returns:

  • (::Google::Cloud::SecurityCenter::V2::AwsMetadata)

    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.

Returns:

  • (::Google::Cloud::SecurityCenter::V2::AzureMetadata)

    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.

Returns:



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.

Returns:

  • (::String)

    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.

Returns:

  • (::Google::Cloud::SecurityCenter::V2::GcpMetadata)

    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).

Returns:

  • (::String)

    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.

Returns:

  • (::String)

    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.

Returns:



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.

Returns:

  • (::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.



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

#service::String

Returns The service or resource provider associated with the resource.

Returns:

  • (::String)

    The service or resource provider associated with 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

#type::String

Returns The full resource type of the resource.

Returns:

  • (::String)

    The full resource type 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