# Compute V1 Client - Class RawDisk (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class RawDisk.

The parameters of the raw disk image.

Generated from protobuf message `google.cloud.compute.v1.RawDisk`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ container_type` | `string` The format used to encode and transmit the block device, which should beTAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Check the ContainerType enum for the list of possible values. |
| `↳ sha1_checksum` | `string` \[Deprecated\] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created. |
| `↳ source` | `string` The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored. The following are valid formats: - <https://storage.googleapis.com/bucket_name/image_archive_name> - <https://storage.googleapis.com/bucket_name/folder_name/image_archive_name> - projects/project/locations/location/repositories/repo/packages/package/versions/version_id - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL |

### getContainerType

The format used to encode and transmit the block device, which should beTAR. This is just a container and transmission format and not
a runtime format. Provided by the client when the disk image is created.

Check the ContainerType enum for the list of possible values.

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

### hasContainerType

### clearContainerType

### setContainerType

The format used to encode and transmit the block device, which should beTAR. This is just a container and transmission format and not
a runtime format. Provided by the client when the disk image is created.

Check the ContainerType enum for the list of possible values.

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

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

### getSha1Checksum

\[Deprecated\] This field is deprecated.

An optional SHA1 checksum of the disk image before unpackaging provided
by the client when the disk image is created.

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

### hasSha1Checksum

### clearSha1Checksum

### setSha1Checksum

\[Deprecated\] This field is deprecated.

An optional SHA1 checksum of the disk image before unpackaging provided
by the client when the disk image is created.

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

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

### getSource

The full Google Cloud Storage URL or Artifact Registry path where the raw
disk image archive is stored.

The following are valid formats:

- <https://storage.googleapis.com/bucket_name/image_archive_name>
- <https://storage.googleapis.com/bucket_name/folder_name/image_archive_name>
- projects/project/locations/location/repositories/repo/packages/package/versions/version_id
- projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value In order to create an image, you must provide the full or partial URL of one of the following:
- The rawDisk.source URL
- The sourceDisk URL
- The sourceImage URL
- The sourceSnapshot URL

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

### hasSource

### clearSource

### setSource

The full Google Cloud Storage URL or Artifact Registry path where the raw
disk image archive is stored.

The following are valid formats:

- <https://storage.googleapis.com/bucket_name/image_archive_name>
- <https://storage.googleapis.com/bucket_name/folder_name/image_archive_name>
- projects/project/locations/location/repositories/repo/packages/package/versions/version_id
- projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value In order to create an image, you must provide the full or partial URL of one of the following:
- The rawDisk.source URL
- The sourceDisk URL
- The sourceImage URL
- The sourceSnapshot URL

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

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