Class: Google::Apis::WorkloadmanagerV1::Rule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#descriptionString

descrite rule in plain language Corresponds to the JSON property description

Returns:

  • (String)


1136
1137
1138
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1136

def description
  @description
end

#display_nameString

the name display in UI Corresponds to the JSON property displayName

Returns:

  • (String)


1141
1142
1143
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1141

def display_name
  @display_name
end

#error_messageString

the message template for rule Corresponds to the JSON property errorMessage

Returns:

  • (String)


1146
1147
1148
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1146

def error_message
  @error_message
end

#nameString

rule name Corresponds to the JSON property name

Returns:

  • (String)


1151
1152
1153
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1151

def name
  @name
end

#primary_categoryString

the primary category Corresponds to the JSON property primaryCategory

Returns:

  • (String)


1156
1157
1158
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1156

def primary_category
  @primary_category
end

#remediationString

the remediation for the rule Corresponds to the JSON property remediation

Returns:

  • (String)


1161
1162
1163
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1161

def remediation
  @remediation
end

#revision_idString

Output only. the version of the rule Corresponds to the JSON property revisionId

Returns:

  • (String)


1166
1167
1168
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1166

def revision_id
  @revision_id
end

#secondary_categoryString

the secondary category Corresponds to the JSON property secondaryCategory

Returns:

  • (String)


1171
1172
1173
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1171

def secondary_category
  @secondary_category
end

#severityString

the severity of the rule Corresponds to the JSON property severity

Returns:

  • (String)


1176
1177
1178
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1176

def severity
  @severity
end

#tagsArray<String>

List of user-defined tags Corresponds to the JSON property tags

Returns:

  • (Array<String>)


1181
1182
1183
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1181

def tags
  @tags
end

#uriString

the docuement url for the rule Corresponds to the JSON property uri

Returns:

  • (String)


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