Class: Google::Cloud::SecurityCenter::V1::Resource

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

Instance Attribute Details

#aws_metadata::Google::Cloud::SecurityCenter::V1::AwsMetadata

Returns The AWS metadata associated with the finding.

Returns:



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.

Returns:



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.

Returns:



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.

Returns:

  • (::String)

    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.

Returns:

  • (::Array<::Google::Cloud::SecurityCenter::V1::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.



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

Returns:

  • (::String)

    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.

Returns:



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.

Returns:

  • (::String)

    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.

Returns:

  • (::String)

    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.

Returns:

  • (::String)

    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.

Returns:

  • (::String)

    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.

Returns:

  • (::String)

    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.

Returns:



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.

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.



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.

Returns:

  • (::String)

    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

#type::String

Returns The full resource type of the resource.

Returns:

  • (::String)

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