Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Label
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Label
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/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.
7977 7978 7979 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7977 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
7970 7971 7972 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7970 def name @name end |
#value ⇒ String
Corresponds to the JSON property value
7975 7976 7977 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7975 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7982 7983 7984 7985 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7982 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |