Class: Google::Apis::SecuritycenterV1beta2::PathNode

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

Represents one point that an attacker passes through in this exposure path.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PathNode

Returns a new instance of PathNode.



2353
2354
2355
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2353

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#associated_findingsArray<Google::Apis::SecuritycenterV1beta2::AssociatedFinding>

The findings associated with this node in the exposure path. Corresponds to the JSON property associatedFindings



2333
2334
2335
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2333

def associated_findings
  @associated_findings
end

#display_nameString

Human readable name of this resource. Corresponds to the JSON property displayName

Returns:

  • (String)


2338
2339
2340
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2338

def display_name
  @display_name
end

#resourceString

The name of the resource at this point in the exposure path. The format of the name is: https://cloud.google.com/apis/design/resource_names# full_resource_name Corresponds to the JSON property resource

Returns:

  • (String)


2345
2346
2347
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2345

def resource
  @resource
end

#resource_typeString

The resource type of this resource. See: https://cloud.google.com/asset- inventory/docs/supported-asset-types Corresponds to the JSON property resourceType

Returns:

  • (String)


2351
2352
2353
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2351

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2358
2359
2360
2361
2362
2363
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2358

def update!(**args)
  @associated_findings = args[:associated_findings] if args.key?(:associated_findings)
  @display_name = args[:display_name] if args.key?(:display_name)
  @resource = args[:resource] if args.key?(:resource)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
end