class Google::Apis::SecuritycenterV1::SecurityMarks

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.

Attributes

canonical_name[RW]

The canonical name of the marks. Examples: “organizations/`organization_id`/ assets/`asset_id`/securityMarks” “folders/`folder_id`/assets/`asset_id`/ securityMarks” “projects/`project_number`/assets/`asset_id`/securityMarks” “ organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/ securityMarks” “folders/`folder_id`/sources/`source_id`/findings/`finding_id`/ securityMarks” “projects/`project_number`/sources/`source_id`/findings/` finding_id`/securityMarks” Corresponds to the JSON property `canonicalName` @return [String]

marks[RW]

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` @return [Hash<String,String>]

name[RW]

The relative resource name of the SecurityMarks. See: cloud.google.com/ apis/design/resource_names#relative_resource_name Examples: “organizations/` organization_id`/assets/`asset_id`/securityMarks” “organizations/` organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks”. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/securitycenter_v1/classes.rb, line 2135
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/securitycenter_v1/classes.rb, line 2140
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