Class: Google::Cloud::SecurityCenter::V2::ResourcePath

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/securitycenter/v2/resource.rb

Overview

Represents the path of resources leading up to the resource this finding is about.

Defined Under Namespace

Modules: ResourcePathNodeType Classes: ResourcePathNode

Instance Attribute Summary collapse

Instance Attribute Details

#nodes::Array<::Google::Cloud::SecurityCenter::V2::ResourcePath::ResourcePathNode>

Returns The list of nodes that make the up resource path, ordered from lowest level to highest level.

Returns:



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
# File 'proto_docs/google/cloud/securitycenter/v2/resource.rb', line 243

class ResourcePath
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A node within the resource path. Each node represents a resource within the
  # resource hierarchy.
  # @!attribute [rw] node_type
  #   @return [::Google::Cloud::SecurityCenter::V2::ResourcePath::ResourcePathNodeType]
  #     The type of resource this node represents.
  # @!attribute [rw] id
  #   @return [::String]
  #     The ID of the resource this node represents.
  # @!attribute [rw] display_name
  #   @return [::String]
  #     The display name of the resource this node represents.
  class ResourcePathNode
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The type of resource the node represents.
  module ResourcePathNodeType
    # Node type is unspecified.
    RESOURCE_PATH_NODE_TYPE_UNSPECIFIED = 0

    # The node represents a Google Cloud organization.
    GCP_ORGANIZATION = 1

    # The node represents a Google Cloud folder.
    GCP_FOLDER = 2

    # The node represents a Google Cloud project.
    GCP_PROJECT = 3

    # The node represents an AWS organization.
    AWS_ORGANIZATION = 4

    # The node represents an AWS organizational unit.
    AWS_ORGANIZATIONAL_UNIT = 5

    # The node represents an AWS account.
    AWS_ACCOUNT = 6

    # The node represents an Azure management group.
    AZURE_MANAGEMENT_GROUP = 7

    # The node represents an Azure subscription.
    AZURE_SUBSCRIPTION = 8

    # The node represents an Azure resource group.
    AZURE_RESOURCE_GROUP = 9
  end
end