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
V1GCEPersistentDiskVolumeSource
Assembly: KubernetesClient.dll
Syntax
public record V1GCEPersistentDiskVolumeSource : IEquatable<V1GCEPersistentDiskVolumeSource>
Constructors
View Source
V1GCEPersistentDiskVolumeSource()
Declaration
public V1GCEPersistentDiskVolumeSource()
View Source
V1GCEPersistentDiskVolumeSource(V1GCEPersistentDiskVolumeSource)
Declaration
protected V1GCEPersistentDiskVolumeSource(V1GCEPersistentDiskVolumeSource original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
FsType
Declaration
[JsonPropertyName("fsType")]
public string FsType { get; set; }
Property Value
View Source
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
View Source
PdName
Declaration
[JsonPropertyName("pdName")]
public string PdName { get; set; }
Property Value
View Source
ReadOnlyProperty
Declaration
[JsonPropertyName("readOnly")]
public bool? ReadOnlyProperty { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1GCEPersistentDiskVolumeSource?)
Declaration
public virtual bool Equals(V1GCEPersistentDiskVolumeSource? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1GCEPersistentDiskVolumeSource?, V1GCEPersistentDiskVolumeSource?)
Declaration
public static bool operator ==(V1GCEPersistentDiskVolumeSource? left, V1GCEPersistentDiskVolumeSource? right)
Parameters
Returns
View Source
operator !=(V1GCEPersistentDiskVolumeSource?, V1GCEPersistentDiskVolumeSource?)
Declaration
public static bool operator !=(V1GCEPersistentDiskVolumeSource? left, V1GCEPersistentDiskVolumeSource? right)
Parameters
Returns
Implements