Class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/securitycenter_v1p1alpha1/classes.rb,
generated/google/apis/securitycenter_v1p1alpha1/representations.rb,
generated/google/apis/securitycenter_v1p1alpha1/representations.rb
Overview
User specified security marks that are attached to the parent Cloud Security Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud SCC organization -- they can be modified and viewed by all users who have proper permissions on the organization.
Instance Attribute Summary collapse
-
#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) ⇒ GoogleCloudSecuritycenterV1p1beta1SecurityMarks
constructor
A new instance of GoogleCloudSecuritycenterV1p1beta1SecurityMarks.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1p1beta1SecurityMarks
Returns a new instance of GoogleCloudSecuritycenterV1p1beta1SecurityMarks.
446 447 448 |
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 446 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
434 435 436 |
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 434 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
Examples:
"organizations/organization_id
/assets/asset_id
/securityMarks"
"organizations/organization_id
/sources/source_id
/findings/finding_id
/
securityMarks".
Corresponds to the JSON property name
444 445 446 |
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 444 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
451 452 453 454 |
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 451 def update!(**args) @marks = args[:marks] if args.key?(:marks) @name = args[:name] if args.key?(:name) end |