Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExposedResource
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExposedResource
- 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
A resource that is exposed as a result of a finding.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Human readable name of the resource that is exposed.
-
#methods_prop ⇒ Array<String>
The ways in which this resource is exposed.
-
#name ⇒ String
Exposed Resource Name e.g.:
organizations/123/attackExposureResults/456/ exposedResources/789Corresponds to the JSON propertyname. -
#resource ⇒ String
The name of the resource that is exposed.
-
#resource_type ⇒ String
The resource type of the exposed resource.
-
#resource_value ⇒ String
How valuable this resource is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1ExposedResource
constructor
A new instance of GoogleCloudSecuritycenterV1ExposedResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1ExposedResource
Returns a new instance of GoogleCloudSecuritycenterV1ExposedResource.
1351 1352 1353 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1351 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Human readable name of the resource that is exposed.
Corresponds to the JSON property displayName
1321 1322 1323 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1321 def display_name @display_name end |
#methods_prop ⇒ Array<String>
The ways in which this resource is exposed. Examples: Read, Write
Corresponds to the JSON property methods
1326 1327 1328 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1326 def methods_prop @methods_prop end |
#name ⇒ String
Exposed Resource Name e.g.: organizations/123/attackExposureResults/456/
exposedResources/789
Corresponds to the JSON property name
1332 1333 1334 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1332 def name @name end |
#resource ⇒ String
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
1338 1339 1340 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1338 def resource @resource end |
#resource_type ⇒ String
The resource type of the exposed resource. See: https://cloud.google.com/asset-
inventory/docs/supported-asset-types
Corresponds to the JSON property resourceType
1344 1345 1346 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1344 def resource_type @resource_type end |
#resource_value ⇒ String
How valuable this resource is.
Corresponds to the JSON property resourceValue
1349 1350 1351 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1349 def resource_value @resource_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1356 1357 1358 1359 1360 1361 1362 1363 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1356 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 |