Reference documentation and code samples for the Google Cloud Workload Manager V1 Client class RuleExecutionResult.
Execution result summary per rule.
Generated from protobuf message google.cloud.workloadmanager.v1.RuleExecutionResult
Namespace
Google \ Cloud \ WorkloadManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ rule |
string
Rule name as plain text like |
↳ state |
int
Output only. The execution status. |
↳ message |
string
Execution message, if any. |
↳ result_count |
int|string
Number of violations. |
↳ scanned_resource_count |
int|string
Number of total scanned resources. |
getRule
Rule name as plain text like sap-hana-configured.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRule
Rule name as plain text like sap-hana-configured.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Output only. The execution status.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. The execution status.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMessage
Execution message, if any.
| Returns | |
|---|---|
| Type | Description |
string |
|
setMessage
Execution message, if any.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResultCount
Number of violations.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setResultCount
Number of violations.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getScannedResourceCount
Number of total scanned resources.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setScannedResourceCount
Number of total scanned resources.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|