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. -
#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.
802 803 804 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 802 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
descrite rule in plain language
Corresponds to the JSON property description
755 756 757 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 755 def description @description end |
#display_name ⇒ String
the name display in UI
Corresponds to the JSON property displayName
760 761 762 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 760 def display_name @display_name end |
#error_message ⇒ String
the message template for rule
Corresponds to the JSON property errorMessage
765 766 767 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 765 def @error_message end |
#name ⇒ String
rule name
Corresponds to the JSON property name
770 771 772 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 770 def name @name end |
#primary_category ⇒ String
the primary category
Corresponds to the JSON property primaryCategory
775 776 777 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 775 def primary_category @primary_category end |
#remediation ⇒ String
the remediation for the rule
Corresponds to the JSON property remediation
780 781 782 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 780 def remediation @remediation end |
#revision_id ⇒ String
Output only. the version of the rule
Corresponds to the JSON property revisionId
785 786 787 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 785 def revision_id @revision_id end |
#secondary_category ⇒ String
the secondary category
Corresponds to the JSON property secondaryCategory
790 791 792 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 790 def secondary_category @secondary_category end |
#severity ⇒ String
the severity of the rule
Corresponds to the JSON property severity
795 796 797 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 795 def severity @severity end |
#uri ⇒ String
the docuement url for the rule
Corresponds to the JSON property uri
800 801 802 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 800 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
807 808 809 810 811 812 813 814 815 816 817 818 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 807 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) @uri = args[:uri] if args.key?(:uri) end |