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 java.lang.Object
Represents a docker image with an embedded disk.
-
-
Constructor Summary
Constructors Constructor Description V1ContainerDiskSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getImage()
Image is the name of the image with the embedded disk.java.lang.String
getImagePullPolicy()
Image pull policy.java.lang.String
getImagePullSecret()
ImagePullSecret is the name of the Docker registry secret required to pull the image.java.lang.String
getPath()
Path defines the path to disk file in the containerint
hashCode()
V1ContainerDiskSource
image(java.lang.String image)
V1ContainerDiskSource
imagePullPolicy(java.lang.String imagePullPolicy)
V1ContainerDiskSource
imagePullSecret(java.lang.String imagePullSecret)
V1ContainerDiskSource
path(java.lang.String path)
void
setImage(java.lang.String image)
void
setImagePullPolicy(java.lang.String imagePullPolicy)
void
setImagePullSecret(java.lang.String imagePullSecret)
void
setPath(java.lang.String path)
java.lang.String
toString()
-
-
-
Method Detail
-
image
public V1ContainerDiskSource image(java.lang.String image)
-
getImage
public java.lang.String getImage()
Image is the name of the image with the embedded disk.- Returns:
- image
-
setImage
public void setImage(java.lang.String image)
-
imagePullPolicy
public V1ContainerDiskSource imagePullPolicy(java.lang.String imagePullPolicy)
-
getImagePullPolicy
public java.lang.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(java.lang.String imagePullPolicy)
-
imagePullSecret
public V1ContainerDiskSource imagePullSecret(java.lang.String imagePullSecret)
-
getImagePullSecret
public java.lang.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(java.lang.String imagePullSecret)
-
path
public V1ContainerDiskSource path(java.lang.String path)
-
getPath
public java.lang.String getPath()
Path defines the path to disk file in the container- Returns:
- path
-
setPath
public void setPath(java.lang.String path)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-