Reference documentation and code samples for the Google Cloud Config V1 Client class DeploymentUnit.
A DeploymentUnit is a container for a deployment and its dependencies.
An existing deployment can be provided directly in the unit, or the unit
can act as a placeholder to define the DAG, with the deployment specs
supplied in a provisionDeploymentRequest.
Generated from protobuf message google.cloud.config.v1.DeploymentUnit
Namespace
Google \ Cloud \ Config \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ id |
string
The id of the deployment unit. Must be unique within the deployment group. |
↳ deployment |
string
Optional. The name of the deployment to be provisioned. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. |
↳ dependencies |
string[]
Required. The IDs of the deployment units within the deployment group that this unit depends on. |
getId
The id of the deployment unit. Must be unique within the deployment group.
| Returns | |
|---|---|
| Type | Description |
string |
|
setId
The id of the deployment unit. Must be unique within the deployment group.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDeployment
Optional. The name of the deployment to be provisioned.
Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasDeployment
clearDeployment
setDeployment
Optional. The name of the deployment to be provisioned.
Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDependencies
Required. The IDs of the deployment units within the deployment group that this unit depends on.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setDependencies
Required. The IDs of the deployment units within the deployment group that this unit depends on.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|