Reference documentation and code samples for the Google Cloud Workload Manager V1 Client class Rule.
A rule to be evaluated.
Generated from protobuf message google.cloud.workloadmanager.v1.Rule
Namespace
Google \ Cloud \ WorkloadManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Rule name.
↳ revision_id
string
Output only. The version of the rule.
↳ display_name
string
The name display in UI.
↳ description
string
Describe rule in plain language.
↳ severity
string
The severity of the rule.
↳ primary_category
string
The primary category.
↳ secondary_category
string
The secondary category.
↳ error_message
string
The message template for rule.
↳ uri
string
The document url for the rule.
↳ remediation
string
The remediation for the rule.
↳ tags
string[]
List of user-defined tags.
↳ rule_type
int
The type of the rule.
↳ asset_type
string
The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
getName
Rule name.
string
setName
Rule name.
var
string
$this
getRevisionId
Output only. The version of the rule.
string
setRevisionId
Output only. The version of the rule.
var
string
$this
getDisplayName
The name display in UI.
string
setDisplayName
The name display in UI.
var
string
$this
getDescription
Describe rule in plain language.
string
setDescription
Describe rule in plain language.
var
string
$this
getSeverity
The severity of the rule.
string
setSeverity
The severity of the rule.
var
string
$this
getPrimaryCategory
The primary category.
string
setPrimaryCategory
The primary category.
var
string
$this
getSecondaryCategory
The secondary category.
string
setSecondaryCategory
The secondary category.
var
string
$this
getErrorMessage
The message template for rule.
string
setErrorMessage
The message template for rule.
var
string
$this
getUri
The document url for the rule.
string
setUri
The document url for the rule.
var
string
$this
getRemediation
The remediation for the rule.
string
setRemediation
The remediation for the rule.
var
string
$this
getTags
List of user-defined tags.
setTags
List of user-defined tags.
var
string[]
$this
getRuleType
The type of the rule.
setRuleType
The type of the rule.
$this
getAssetType
The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
string
setAssetType
The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
var
string
$this

