Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1ExposedResource

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

Overview

A resource that is exposed as a result of a finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV1ExposedResource

Returns a new instance of GoogleCloudSecuritycenterV1ExposedResource.



1676
1677
1678
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1676

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

Instance Attribute Details

#display_nameString

Human readable name of the resource that is exposed. Corresponds to the JSON property displayName

Returns:

  • (String)


1646
1647
1648
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1646

def display_name
  @display_name
end

#methods_propArray<String>

The ways in which this resource is exposed. Examples: Read, Write Corresponds to the JSON property methods

Returns:

  • (Array<String>)


1651
1652
1653
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1651

def methods_prop
  @methods_prop
end

#nameString

Exposed Resource Name e.g.: organizations/123/attackExposureResults/456/ exposedResources/789 Corresponds to the JSON property name

Returns:

  • (String)


1657
1658
1659
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1657

def name
  @name
end

#resourceString

The name of the resource that is exposed. See: https://cloud.google.com/apis/ design/resource_names#full_resource_name Corresponds to the JSON property resource

Returns:

  • (String)


1663
1664
1665
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1663

def resource
  @resource
end

#resource_typeString

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

Returns:

  • (String)


1669
1670
1671
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1669

def resource_type
  @resource_type
end

#resource_valueString

How valuable this resource is. Corresponds to the JSON property resourceValue

Returns:

  • (String)


1674
1675
1676
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1674

def resource_value
  @resource_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1681
1682
1683
1684
1685
1686
1687
1688
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1681

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