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