Workload Manager v1 API - Class Rule (1.0.0-beta01)

public sealed class Rule : IMessage<Rule>, IEquatable<Rule>, IDeepCloneable<Rule>, IBufferMessage, IMessage

Reference documentation and code samples for the Workload Manager v1 API class Rule.

A rule to be evaluated.

Inheritance

object > Rule

Namespace

Google.Cloud.WorkloadManager.V1

Assembly

Google.Cloud.WorkloadManager.V1.dll

Constructors

Rule()

public Rule()

Rule(Rule)

public Rule(Rule other)
Parameter
Name Description
other Rule

Properties

AssetType

public string AssetType { get; set; }

The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.

Property Value
Type Description
string

Description

public string Description { get; set; }

Describe rule in plain language.

Property Value
Type Description
string

DisplayName

public string DisplayName { get; set; }

The name display in UI.

Property Value
Type Description
string

ErrorMessage

public string ErrorMessage { get; set; }

The message template for rule.

Property Value
Type Description
string

Name

public string Name { get; set; }

Rule name.

Property Value
Type Description
string

PrimaryCategory

public string PrimaryCategory { get; set; }

The primary category.

Property Value
Type Description
string

Remediation

public string Remediation { get; set; }

The remediation for the rule.

Property Value
Type Description
string

RevisionId

public string RevisionId { get; set; }

Output only. The version of the rule.

Property Value
Type Description
string

RuleName

public RuleName RuleName { get; set; }

RuleName-typed view over the Name resource name property.

Property Value
Type Description
RuleName

RuleType

public Rule.Types.RuleType RuleType { get; set; }

The type of the rule.

Property Value
Type Description
RuleTypesRuleType

SecondaryCategory

public string SecondaryCategory { get; set; }

The secondary category.

Property Value
Type Description
string

Severity

public string Severity { get; set; }

The severity of the rule.

Property Value
Type Description
string

Tags

public RepeatedField<string> Tags { get; }

List of user-defined tags.

Property Value
Type Description
RepeatedFieldstring

Uri

public string Uri { get; set; }

The document url for the rule.

Property Value
Type Description
string