Package kubevirt.io

Class V1ContainerDiskSource

java.lang.Object
kubevirt.io.V1ContainerDiskSource

@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1ContainerDiskSource extends Object
Represents a docker image with an embedded disk.
  • Field Details

    • image

      private String image
    • imagePullPolicy

      private String imagePullPolicy
    • imagePullSecret

      private String imagePullSecret
    • path

      private String path
  • Constructor Details

    • V1ContainerDiskSource

      public V1ContainerDiskSource()
  • Method Details

    • image

      public V1ContainerDiskSource image(String image)
    • getImage

      public String getImage()
      Image is the name of the image with the embedded disk.
      Returns:
      image
    • setImage

      public void setImage(String image)
    • imagePullPolicy

      public V1ContainerDiskSource imagePullPolicy(String imagePullPolicy)
    • getImagePullPolicy

      public String getImagePullPolicy()
      Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional
      Returns:
      imagePullPolicy
    • setImagePullPolicy

      public void setImagePullPolicy(String imagePullPolicy)
    • imagePullSecret

      public V1ContainerDiskSource imagePullSecret(String imagePullSecret)
    • getImagePullSecret

      public String getImagePullSecret()
      ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.
      Returns:
      imagePullSecret
    • setImagePullSecret

      public void setImagePullSecret(String imagePullSecret)
    • path

      public V1ContainerDiskSource path(String path)
    • getPath

      public String getPath()
      Path defines the path to disk file in the container
      Returns:
      path
    • setPath

      public void setPath(String path)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).