# Google Cloud Dataplex V1 Client - Class InfrastructureSpec (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class InfrastructureSpec.

Configuration for the underlying infrastructure used to run workloads.

Generated from protobuf message `google.cloud.dataplex.v1.Task.InfrastructureSpec`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ Task

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ batch` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.BatchComputeResources` Compute resources needed for a Task when using Dataproc Serverless. |
| `↳ container_image` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.ContainerImageRuntime` Container Image Runtime Configuration. |
| `↳ vpc_network` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.VpcNetwork` Vpc network. |

### getBatch

Compute resources needed for a Task when using Dataproc Serverless.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.BatchComputeResources|null` |   |

### hasBatch

### setBatch

Compute resources needed for a Task when using Dataproc Serverless.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.BatchComputeResources` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContainerImage

Container Image Runtime Configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.ContainerImageRuntime|null` |   |

### hasContainerImage

### setContainerImage

Container Image Runtime Configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.ContainerImageRuntime` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVpcNetwork

Vpc network.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.VpcNetwork|null` |   |

### hasVpcNetwork

### setVpcNetwork

Vpc network.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.InfrastructureSpec.VpcNetwork` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResources

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getRuntime

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getNetwork

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |