Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ResourcePathNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2ResourcePathNode

Returns a new instance of GoogleCloudSecuritycenterV2ResourcePathNode.



9402
9403
9404
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9402

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

Instance Attribute Details

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


9390
9391
9392
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9390

def display_name
  @display_name
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


9395
9396
9397
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9395

def id
  @id
end

#node_typeString

Corresponds to the JSON property nodeType

Returns:

  • (String)


9400
9401
9402
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9400

def node_type
  @node_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9407
9408
9409
9410
9411
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9407

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @node_type = args[:node_type] if args.key?(:node_type)
end