Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2SecurityMarks
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2SecurityMarks
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Overview
User specified security marks that are attached to the parent Security Command Center resource. Security marks are scoped within a Security Command Center organization -- they can be modified and viewed by all users who have proper permissions on the organization.
Instance Attribute Summary collapse
-
#canonical_name ⇒ String
The canonical name of the marks.
-
#marks ⇒ Hash<String,String>
Mutable user specified security marks belonging to the parent resource.
-
#name ⇒ String
The relative resource name of the SecurityMarks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityMarks
constructor
A new instance of GoogleCloudSecuritycenterV2SecurityMarks.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityMarks
Returns a new instance of GoogleCloudSecuritycenterV2SecurityMarks.
7286 7287 7288 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7286 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_name ⇒ String
The canonical name of the marks. The following list shows some examples: +
organizations/
organization_id/assets/
asset_id/securityMarks
+
organizations/
organization_id/sources/
source_id/findings/
finding_id/
securityMarks
+ organizations/
organization_id/sources/
source_id/
locations/
location/findings/
finding_id/securityMarks
+ folders/
folder_id/assets/
asset_id/securityMarks
+ folders/
folder_id/sources/
source_id/findings/
finding_id/securityMarks
+ folders/
folder_id/sources/
source_id/locations/
location/findings/
finding_id/securityMarks
+
projects/
project_number/assets/
asset_id/securityMarks
+ projects/
project_number/sources/
source_id/findings/
finding_id/securityMarks
+
projects/
project_number/sources/
source_id/locations/
location/findings/
finding_id/securityMarks
Corresponds to the JSON property canonicalName
7265 7266 7267 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7265 def canonical_name @canonical_name end |
#marks ⇒ Hash<String,String>
Mutable user specified security marks belonging to the parent resource.
Constraints are as follows: * Keys and values are treated as case insensitive *
Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
numbers, underscores, or dashes * Values have leading and trailing whitespace
trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
Corresponds to the JSON property marks
7274 7275 7276 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7274 def marks @marks end |
#name ⇒ String
The relative resource name of the SecurityMarks. See: https://cloud.google.com/
apis/design/resource_names#relative_resource_name The following list shows
some examples: + organizations/
organization_id/assets/
asset_id/
securityMarks
+ organizations/
organization_id/sources/
source_id/findings/
finding_id/securityMarks
+ organizations/
organization_id/sources/
source_id/locations/
location/findings/
finding_id/securityMarks
Corresponds to the JSON property name
7284 7285 7286 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7284 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7291 7292 7293 7294 7295 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7291 def update!(**args) @canonical_name = args[:canonical_name] if args.key?(:canonical_name) @marks = args[:marks] if args.key?(:marks) @name = args[:name] if args.key?(:name) end |