# Compute Engine v1 API - Class ReservationBlock (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 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.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class ReservationBlock : IMessage<ReservationBlock>, IEquatable<ReservationBlock>, IDeepCloneable<ReservationBlock>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class ReservationBlock.

Represents a reservation block resource.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ReservationBlock

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ReservationBlock](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ReservationBlock), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReservationBlock](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ReservationBlock), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ReservationBlock](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ReservationBlock), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Compute.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)

## Assembly

Google.Cloud.Compute.V1.dll

## Constructors

### ReservationBlock()

    public ReservationBlock()

### ReservationBlock(ReservationBlock)

    public ReservationBlock(ReservationBlock other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ReservationBlock` |

## Properties

### Count

    public int Count { get; set; }

Output only. \[Output Only\] The number of resources that are allocated in this
reservation block.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### CreationTimestamp

    public string CreationTimestamp { get; set; }

Output only. \[Output Only\] Creation timestamp inRFC3339 text format.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### HasCount

    public bool HasCount { get; }

Gets whether the "count" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasCreationTimestamp

    public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasId

    public bool HasId { get; }

Gets whether the "id" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasInUseCount

    public bool HasInUseCount { get; }

Gets whether the "in_use_count" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasInUseHostCount

    public bool HasInUseHostCount { get; }

Gets whether the "in_use_host_count" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasKind

    public bool HasKind { get; }

Gets whether the "kind" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasName

    public bool HasName { get; }

Gets whether the "name" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasReservationSubBlockCount

    public bool HasReservationSubBlockCount { get; }

Gets whether the "reservation_sub_block_count" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasReservationSubBlockInUseCount

    public bool HasReservationSubBlockInUseCount { get; }

Gets whether the "reservation_sub_block_in_use_count" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasSelfLink

    public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasSelfLinkWithId

    public bool HasSelfLinkWithId { get; }

Gets whether the "self_link_with_id" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasStatus

    public bool HasStatus { get; }

Gets whether the "status" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasZone

    public bool HasZone { get; }

Gets whether the "zone" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HealthInfo

    public ReservationBlockHealthInfo HealthInfo { get; set; }

Output only. \[Output Only\] Health information for the reservation block.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ReservationBlockHealthInfo` |   |

### Id

    public ulong Id { get; set; }

Output only. \[Output Only\] The unique identifier for the resource. This identifier is
defined by the server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.uint64` |   |

### InUseCount

    public int InUseCount { get; set; }

Output only. \[Output Only\] The number of instances that are currently in use on this
reservation block.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### InUseHostCount

    public int InUseHostCount { get; set; }

Output only. Number of hosts currently in use. If there is one or more Instances running
on the host, it is considered in use.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### Kind

    public string Kind { get; set; }

Output only. \[Output Only\] Type of the resource. Alwayscompute#reservationBlock for reservation blocks.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Output only. \[Output Only\] The name of this reservation block generated by Google
Compute Engine. The name must be 1-63 characters long, and comply with
RFC1035 @pattern [a-z](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ReservationBlock?:%5B-a-z0-9%5D%7B0,61%7D%5Ba-z0-9%5D)?

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PhysicalTopology

    public ReservationBlockPhysicalTopology PhysicalTopology { get; set; }

Output only. \[Output Only\] The physical topology of the reservation block.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ReservationBlockPhysicalTopology` |   |

### ReservationMaintenance

    public GroupMaintenanceInfo ReservationMaintenance { get; set; }

Output only. \[Output Only\] Maintenance information for this reservation block.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GroupMaintenanceInfo` |   |

### ReservationSubBlockCount

    public int ReservationSubBlockCount { get; set; }

Output only. \[Output Only\] The number of reservation subBlocks associated with this
reservation block.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### ReservationSubBlockInUseCount

    public int ReservationSubBlockInUseCount { get; set; }

Output only. \[Output Only\] The number of in-use reservation subBlocks associated with
this reservation block. If at least one VM is running on a subBlock, it is
considered in-use.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### SelfLink

    public string SelfLink { get; set; }

Output only. \[Output Only\] Server-defined fully-qualified URL for this resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SelfLinkWithId

    public string SelfLinkWithId { get; set; }

Output only. \[Output Only\] Server-defined URL for this resource with the resource id.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Status

    public string Status { get; set; }

Output only. \[Output Only\] Status of the reservation block.
Check the Status enum for the list of possible values.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Zone

    public string Zone { get; set; }

Output only. \[Output Only\] Zone in which the reservation block resides.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |