Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Label
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Label
- 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
Instance Attribute Summary collapse
-
#name ⇒ String
Corresponds to the JSON property
name. -
#value ⇒ String
Corresponds to the JSON property
value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Label
constructor
A new instance of GoogleCloudSecuritycenterV2Label.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Label
Returns a new instance of GoogleCloudSecuritycenterV2Label.
8591 8592 8593 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8591 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
8584 8585 8586 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8584 def name @name end |
#value ⇒ String
Corresponds to the JSON property value
8589 8590 8591 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8589 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8596 8597 8598 8599 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8596 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |