Class: Google::Apis::WorkloadmanagerV1::Rule
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::Rule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
Message represent a rule
Instance Attribute Summary collapse
-
#description ⇒ String
descrite rule in plain language Corresponds to the JSON property
description. -
#display_name ⇒ String
the name display in UI Corresponds to the JSON property
displayName. -
#error_message ⇒ String
the message template for rule Corresponds to the JSON property
errorMessage. -
#name ⇒ String
rule name Corresponds to the JSON property
name. -
#primary_category ⇒ String
the primary category Corresponds to the JSON property
primaryCategory. -
#remediation ⇒ String
the remediation for the rule Corresponds to the JSON property
remediation. -
#revision_id ⇒ String
Output only.
-
#secondary_category ⇒ String
the secondary category Corresponds to the JSON property
secondaryCategory. -
#severity ⇒ String
the severity of the rule Corresponds to the JSON property
severity. -
#tags ⇒ Array<String>
List of user-defined tags Corresponds to the JSON property
tags. -
#uri ⇒ String
the docuement url for the rule Corresponds to the JSON property
uri.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Rule
constructor
A new instance of Rule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Rule
Returns a new instance of Rule.
1188 1189 1190 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1188 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
descrite rule in plain language
Corresponds to the JSON property description
1136 1137 1138 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1136 def description @description end |
#display_name ⇒ String
the name display in UI
Corresponds to the JSON property displayName
1141 1142 1143 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1141 def display_name @display_name end |
#error_message ⇒ String
the message template for rule
Corresponds to the JSON property errorMessage
1146 1147 1148 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1146 def @error_message end |
#name ⇒ String
rule name
Corresponds to the JSON property name
1151 1152 1153 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1151 def name @name end |
#primary_category ⇒ String
the primary category
Corresponds to the JSON property primaryCategory
1156 1157 1158 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1156 def primary_category @primary_category end |
#remediation ⇒ String
the remediation for the rule
Corresponds to the JSON property remediation
1161 1162 1163 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1161 def remediation @remediation end |
#revision_id ⇒ String
Output only. the version of the rule
Corresponds to the JSON property revisionId
1166 1167 1168 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1166 def revision_id @revision_id end |
#secondary_category ⇒ String
the secondary category
Corresponds to the JSON property secondaryCategory
1171 1172 1173 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1171 def secondary_category @secondary_category end |
#severity ⇒ String
the severity of the rule
Corresponds to the JSON property severity
1176 1177 1178 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1176 def severity @severity end |
#tags ⇒ Array<String>
List of user-defined tags
Corresponds to the JSON property tags
1181 1182 1183 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1181 def @tags end |
#uri ⇒ String
the docuement url for the rule
Corresponds to the JSON property uri
1186 1187 1188 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1186 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1193 def update!(**args) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @error_message = args[:error_message] if args.key?(:error_message) @name = args[:name] if args.key?(:name) @primary_category = args[:primary_category] if args.key?(:primary_category) @remediation = args[:remediation] if args.key?(:remediation) @revision_id = args[:revision_id] if args.key?(:revision_id) @secondary_category = args[:secondary_category] if args.key?(:secondary_category) @severity = args[:severity] if args.key?(:severity) @tags = args[:tags] if args.key?(:tags) @uri = args[:uri] if args.key?(:uri) end |