All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.core.v1.AzureDiskVolumeSource Maven / Gradle / Ivy

There is a newer version: 1.30.4
Show newest version
package io.k8s.api.core.v1;

import java.lang.Boolean;
import java.lang.String;

/**
 * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
 */
public class AzureDiskVolumeSource {
  public String cachingMode;

  public String diskName;

  public String diskURI;

  public String fsType;

  public String kind;

  public Boolean readOnly;

  /**
   * cachingMode is the Host Caching mode: None, Read Only, Read Write.
   */
  public AzureDiskVolumeSource cachingMode(String cachingMode) {
    this.cachingMode = cachingMode;
    return this;
  }

  /**
   * diskName is the Name of the data disk in the blob storage
   */
  public AzureDiskVolumeSource diskName(String diskName) {
    this.diskName = diskName;
    return this;
  }

  /**
   * diskURI is the URI of data disk in the blob storage
   */
  public AzureDiskVolumeSource diskURI(String diskURI) {
    this.diskURI = diskURI;
    return this;
  }

  /**
   * fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
   */
  public AzureDiskVolumeSource fsType(String fsType) {
    this.fsType = fsType;
    return this;
  }

  /**
   * kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
   */
  public AzureDiskVolumeSource kind(String kind) {
    this.kind = kind;
    return this;
  }

  /**
   * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
   */
  public AzureDiskVolumeSource readOnly(Boolean readOnly) {
    this.readOnly = readOnly;
    return this;
  }

  public static AzureDiskVolumeSource azureDiskVolumeSource() {
    return new AzureDiskVolumeSource();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy