Package io.fabric8.openshift.api.model
Class TagReference
- java.lang.Object
-
- io.fabric8.openshift.api.model.TagReference
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<TagReferenceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TagReference extends Object implements io.fabric8.kubernetes.api.builder.Editable<TagReferenceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TagReference()No args constructor for use in serializationTagReference(Map<String,String> annotations, io.fabric8.kubernetes.api.model.ObjectReference from, Long generation, TagImportPolicy importPolicy, String name, Boolean reference, TagReferencePolicy referencePolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagReferenceBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,String>getAnnotations()Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.io.fabric8.kubernetes.api.model.ObjectReferencegetFrom()TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.LonggetGeneration()generation is a counter that tracks mutations to the spec tag (user intent).TagImportPolicygetImportPolicy()TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.StringgetName()name of the tagBooleangetReference()reference states if the tag will be imported.TagReferencePolicygetReferencePolicy()TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAnnotations(Map<String,String> annotations)Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.voidsetFrom(io.fabric8.kubernetes.api.model.ObjectReference from)TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.voidsetGeneration(Long generation)generation is a counter that tracks mutations to the spec tag (user intent).voidsetImportPolicy(TagImportPolicy importPolicy)TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.voidsetName(String name)name of the tagvoidsetReference(Boolean reference)reference states if the tag will be imported.voidsetReferencePolicy(TagReferencePolicy referencePolicy)TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.TagReferenceBuildertoBuilder()
-
-
-
Constructor Detail
-
TagReference
public TagReference()
No args constructor for use in serialization
-
TagReference
public TagReference(Map<String,String> annotations, io.fabric8.kubernetes.api.model.ObjectReference from, Long generation, TagImportPolicy importPolicy, String name, Boolean reference, TagReferencePolicy referencePolicy)
-
-
Method Detail
-
getAnnotations
public Map<String,String> getAnnotations()
Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.
-
setAnnotations
public void setAnnotations(Map<String,String> annotations)
Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.
-
getFrom
public io.fabric8.kubernetes.api.model.ObjectReference getFrom()
TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
-
setFrom
public void setFrom(io.fabric8.kubernetes.api.model.ObjectReference from)
TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
-
getGeneration
public Long getGeneration()
generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference is changed the generation is set to match the current stream generation (which is incremented every time spec is changed). Other processes in the system like the image importer observe that the generation of spec tag is newer than the generation recorded in the status and use that as a trigger to import the newest remote tag. To trigger a new import, clients may set this value to zero which will reset the generation to the latest stream generation. Legacy clients will send this value as nil which will be merged with the current tag generation.
-
setGeneration
public void setGeneration(Long generation)
generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference is changed the generation is set to match the current stream generation (which is incremented every time spec is changed). Other processes in the system like the image importer observe that the generation of spec tag is newer than the generation recorded in the status and use that as a trigger to import the newest remote tag. To trigger a new import, clients may set this value to zero which will reset the generation to the latest stream generation. Legacy clients will send this value as nil which will be merged with the current tag generation.
-
getImportPolicy
public TagImportPolicy getImportPolicy()
TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
-
setImportPolicy
public void setImportPolicy(TagImportPolicy importPolicy)
TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
-
getName
public String getName()
name of the tag
-
setName
public void setName(String name)
name of the tag
-
getReference
public Boolean getReference()
reference states if the tag will be imported. Default value is false, which means the tag will be imported.
-
setReference
public void setReference(Boolean reference)
reference states if the tag will be imported. Default value is false, which means the tag will be imported.
-
getReferencePolicy
public TagReferencePolicy getReferencePolicy()
TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
-
setReferencePolicy
public void setReferencePolicy(TagReferencePolicy referencePolicy)
TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
-
edit
public TagReferenceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<TagReferenceBuilder>
-
toBuilder
public TagReferenceBuilder toBuilder()
-
-