Reference documentation and code samples for the Secret Manager V1 Client class ManagedRotationStatus.
Represents the status of a managed rotation.
This is applicable only to Typed Secrets. It indicates whether the rotation is active and any errors that may have occurred during the asynchronous managed rotation.
Generated from protobuf message google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
Namespace
Google \ Cloud \ SecretManager \ V1 \ RotationMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ state |
int
Output only. Indicates whether the Managed Rotation is active or not. |
↳ error |
Google\Rpc\Status
Output only. Displays customer-facing issues that occurred during an asynchronous managed rotation. For example, if there are some permission errors. |
getState
Output only. Indicates whether the Managed Rotation is active or not.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. Indicates whether the Managed Rotation is active or not.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getError
Output only. Displays customer-facing issues that occurred during an asynchronous managed rotation. For example, if there are some permission errors.
| Returns | |
|---|---|
| Type | Description |
Google\Rpc\Status|null |
|
hasError
clearError
setError
Output only. Displays customer-facing issues that occurred during an asynchronous managed rotation. For example, if there are some permission errors.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Rpc\Status
|
| Returns | |
|---|---|
| Type | Description |
$this |
|