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.
1280 1281 1282 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1280 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
descrite rule in plain language
Corresponds to the JSON property description
1228 1229 1230 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1228 def description @description end |
#display_name ⇒ String
the name display in UI
Corresponds to the JSON property displayName
1233 1234 1235 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1233 def display_name @display_name end |
#error_message ⇒ String
the message template for rule
Corresponds to the JSON property errorMessage
1238 1239 1240 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1238 def @error_message end |
#name ⇒ String
rule name
Corresponds to the JSON property name
1243 1244 1245 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1243 def name @name end |
#primary_category ⇒ String
the primary category
Corresponds to the JSON property primaryCategory
1248 1249 1250 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1248 def primary_category @primary_category end |
#remediation ⇒ String
the remediation for the rule
Corresponds to the JSON property remediation
1253 1254 1255 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1253 def remediation @remediation end |
#revision_id ⇒ String
Output only. the version of the rule
Corresponds to the JSON property revisionId
1258 1259 1260 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1258 def revision_id @revision_id end |
#secondary_category ⇒ String
the secondary category
Corresponds to the JSON property secondaryCategory
1263 1264 1265 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1263 def secondary_category @secondary_category end |
#severity ⇒ String
the severity of the rule
Corresponds to the JSON property severity
1268 1269 1270 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1268 def severity @severity end |
#tags ⇒ Array<String>
List of user-defined tags
Corresponds to the JSON property tags
1273 1274 1275 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1273 def @tags end |
#uri ⇒ String
the docuement url for the rule
Corresponds to the JSON property uri
1278 1279 1280 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1278 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1285 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 |