Show / Hide Table of Contents

Class V1GCEPersistentDiskVolumeSource

Represents a Persistent Disk resource in Google Compute Engine.

A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.

Inheritance
object
V1GCEPersistentDiskVolumeSource
Implements
IEquatable<V1GCEPersistentDiskVolumeSource>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1GCEPersistentDiskVolumeSource : IEquatable<V1GCEPersistentDiskVolumeSource>

Constructors

V1GCEPersistentDiskVolumeSource()

Declaration
public V1GCEPersistentDiskVolumeSource()

V1GCEPersistentDiskVolumeSource(V1GCEPersistentDiskVolumeSource)

Declaration
protected V1GCEPersistentDiskVolumeSource(V1GCEPersistentDiskVolumeSource original)
Parameters
Type Name Description
V1GCEPersistentDiskVolumeSource original

Properties

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

FsType

fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Declaration
[JsonPropertyName("fsType")]
public string FsType { get; set; }
Property Value
Type Description
string

Partition

partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Declaration
[JsonPropertyName("partition")]
public int? Partition { get; set; }
Property Value
Type Description
int?

PdName

pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Declaration
[JsonPropertyName("pdName")]
public string PdName { get; set; }
Property Value
Type Description
string

ReadOnlyProperty

readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Declaration
[JsonPropertyName("readOnly")]
public bool? ReadOnlyProperty { get; set; }
Property Value
Type Description
bool?

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1GCEPersistentDiskVolumeSource?)

Declaration
public virtual bool Equals(V1GCEPersistentDiskVolumeSource? other)
Parameters
Type Name Description
V1GCEPersistentDiskVolumeSource other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1GCEPersistentDiskVolumeSource?, V1GCEPersistentDiskVolumeSource?)

Declaration
public static bool operator ==(V1GCEPersistentDiskVolumeSource? left, V1GCEPersistentDiskVolumeSource? right)
Parameters
Type Name Description
V1GCEPersistentDiskVolumeSource left
V1GCEPersistentDiskVolumeSource right
Returns
Type Description
bool

operator !=(V1GCEPersistentDiskVolumeSource?, V1GCEPersistentDiskVolumeSource?)

Declaration
public static bool operator !=(V1GCEPersistentDiskVolumeSource? left, V1GCEPersistentDiskVolumeSource? right)
Parameters
Type Name Description
V1GCEPersistentDiskVolumeSource left
V1GCEPersistentDiskVolumeSource right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX