Reference documentation and code samples for the Google Cloud Saas Platform Saas Service Mgmt V1 Client class DurationLimits.
DurationLimits defines the time-related constraints for a UnitOperation's execution.
This allows users to control how long an operation can run before being cancelled by the system.
Generated from protobuf message google.cloud.saasplatform.saasservicemgmt.v1.DurationLimits
Namespace
Google \ Cloud \ SaasPlatform \ SaasServiceMgmt \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ unit_operation_timeout |
Google\Protobuf\Duration
Optional. The maximum duration a UnitOperation is allowed to execute in the RUNNING state. - Minimum value: 60 seconds (1 minute) - Maximum value: 604800 seconds (7 days) If this field is not set, or if the provided value falls outside the allowed range, the system will use a default timeout of 10800 seconds (3 hours). Upon exceeding this time limit, the UnitOperation will be best-effort cancelled, and its state will be set to FAILED. |
getUnitOperationTimeout
Optional. The maximum duration a UnitOperation is allowed to execute in the RUNNING state.
- Minimum value: 60 seconds (1 minute)
- Maximum value: 604800 seconds (7 days) If this field is not set, or if the provided value falls outside the allowed range, the system will use a default timeout of 10800 seconds (3 hours). Upon exceeding this time limit, the UnitOperation will be best-effort cancelled, and its state will be set to FAILED.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Duration|null |
|
hasUnitOperationTimeout
clearUnitOperationTimeout
setUnitOperationTimeout
Optional. The maximum duration a UnitOperation is allowed to execute in the RUNNING state.
- Minimum value: 60 seconds (1 minute)
- Maximum value: 604800 seconds (7 days) If this field is not set, or if the provided value falls outside the allowed range, the system will use a default timeout of 10800 seconds (3 hours). Upon exceeding this time limit, the UnitOperation will be best-effort cancelled, and its state will be set to FAILED.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Duration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|