Class: Google::Apis::SecuritycenterV1beta1::SecurityMarks

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/securitycenter_v1beta1/classes.rb,
generated/google/apis/securitycenter_v1beta1/representations.rb,
generated/google/apis/securitycenter_v1beta1/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityMarks

Returns a new instance of SecurityMarks.



1731
1732
1733
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1731

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

Instance Attribute Details

#marksHash<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

Returns:

  • (Hash<String,String>)


1721
1722
1723
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1721

def marks
  @marks
end

#nameString

The relative resource name of the SecurityMarks. See: https://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

Returns:

  • (String)


1729
1730
1731
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1729

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1736
1737
1738
1739
# File 'generated/google/apis/securitycenter_v1beta1/classes.rb', line 1736

def update!(**args)
  @marks = args[:marks] if args.key?(:marks)
  @name = args[:name] if args.key?(:name)
end