# Google Cloud Bare Metal Solution V2 Client - Class ProvisioningConfig (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.6.5 0.5.2 0.4.0 0.3.2 0.2.8 Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class ProvisioningConfig.

A provisioning configuration.

Generated from protobuf message `google.cloud.baremetalsolution.v2.ProvisioningConfig`

## Namespace

Google \\ Cloud \\ BareMetalSolution \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The system-generated name of the provisioning config. This follows the UUID format. |
| `↳ instances` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.InstanceConfig>` Instances to be created. |
| `↳ networks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.NetworkConfig>` Networks to be created. |
| `↳ volumes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.VolumeConfig>` Volumes to be created. |
| `↳ ticket_id` | `string` A generated ticket id to track provisioning request. |
| `↳ handover_service_account` | `string` A service account to enable customers to access instance credentials upon handover. |
| `↳ email` | `string` Email provided to send a confirmation with provisioning config to. Deprecated in favour of email field in request messages. |
| `↳ state` | `int` Output only. State of ProvisioningConfig. |
| `↳ location` | `string` Optional. Location name of this ProvisioningConfig. It is optional only for Intake UI transition period. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Last update timestamp. |
| `↳ cloud_console_uri` | `string` Output only. URI to Cloud Console UI view of this provisioning config. |
| `↳ vpc_sc_enabled` | `bool` If true, VPC SC is enabled for the cluster. |
| `↳ status_message` | `string` Optional status messages associated with the FAILED state. |
| `↳ custom_id` | `string` Optional. The user-defined identifier of the provisioning config. |

### getName

Output only. The system-generated name of the provisioning config. This
follows the UUID format.

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

### setName

Output only. The system-generated name of the provisioning config. This
follows the UUID format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getInstances

Instances to be created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.InstanceConfig>` |   |

### setInstances

Instances to be created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.InstanceConfig>` |

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

### getNetworks

Networks to be created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.NetworkConfig>` |   |

### setNetworks

Networks to be created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.NetworkConfig>` |

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

### getVolumes

Volumes to be created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.VolumeConfig>` |   |

### setVolumes

Volumes to be created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.VolumeConfig>` |

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

### getTicketId

A generated ticket id to track provisioning request.

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

### setTicketId

A generated ticket id to track provisioning request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getHandoverServiceAccount

A service account to enable customers to access instance credentials upon
handover.

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

### setHandoverServiceAccount

A service account to enable customers to access instance credentials upon
handover.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getEmail

Email provided to send a confirmation with provisioning config to.

Deprecated in favour of email field in request messages.

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

### setEmail

Email provided to send a confirmation with provisioning config to.

Deprecated in favour of email field in request messages.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getState

Output only. State of ProvisioningConfig.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.ProvisioningConfig.State). |

### setState

Output only. State of ProvisioningConfig.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.ProvisioningConfig.State). |

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

### getLocation

Optional. Location name of this ProvisioningConfig.

It is optional only for Intake UI transition period.

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

### setLocation

Optional. Location name of this ProvisioningConfig.

It is optional only for Intake UI transition period.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getUpdateTime

Output only. Last update timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Last update timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getCloudConsoleUri

Output only. URI to Cloud Console UI view of this provisioning config.

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

### setCloudConsoleUri

Output only. URI to Cloud Console UI view of this provisioning config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getVpcScEnabled

If true, VPC SC is enabled for the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setVpcScEnabled

If true, VPC SC is enabled for the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getStatusMessage

Optional status messages associated with the FAILED state.

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

### setStatusMessage

Optional status messages associated with the FAILED state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getCustomId

Optional. The user-defined identifier of the provisioning config.

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

### setCustomId

Optional. The user-defined identifier of the provisioning config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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