Class ObjectMeta
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ObjectMeta
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ObjectMetaBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ObjectMeta extends Object implements io.fabric8.kubernetes.api.builder.Editable<ObjectMetaBuilder>, KubernetesResource
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectMeta()
No args constructor for use in serializationObjectMeta(Map<String,String> annotations, String creationTimestamp, Long deletionGracePeriodSeconds, String deletionTimestamp, List<String> finalizers, String generateName, Long generation, Map<String,String> labels, List<ManagedFieldsEntry> managedFields, String name, String namespace, List<OwnerReference> ownerReferences, String resourceVersion, String selfLink, String uid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectMetaBuilder
edit()
Map<String,Object>
getAdditionalProperties()
Map<String,String>
getAnnotations()
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.String
getCreationTimestamp()
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.Long
getDeletionGracePeriodSeconds()
Number of seconds allowed for this object to gracefully terminate before it will be removed from the system.String
getDeletionTimestamp()
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.List<String>
getFinalizers()
Must be empty before the object is deleted from the registry.String
getGenerateName()
GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided.Long
getGeneration()
A sequence number representing a specific generation of the desired state.Map<String,String>
getLabels()
Map of string keys and values that can be used to organize and categorize (scope and select) objects.List<ManagedFieldsEntry>
getManagedFields()
ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow.String
getName()
Name must be unique within a namespace.String
getNamespace()
Namespace defines the space within which each name must be unique.List<OwnerReference>
getOwnerReferences()
List of objects depended by this object.String
getResourceVersion()
An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed.String
getSelfLink()
Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.String
getUid()
UID is the unique in time and space value for this object.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setAnnotations(Map<String,String> annotations)
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.void
setCreationTimestamp(String creationTimestamp)
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.void
setDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds)
Number of seconds allowed for this object to gracefully terminate before it will be removed from the system.void
setDeletionTimestamp(String deletionTimestamp)
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.void
setFinalizers(List<String> finalizers)
Must be empty before the object is deleted from the registry.void
setGenerateName(String generateName)
GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided.void
setGeneration(Long generation)
A sequence number representing a specific generation of the desired state.void
setLabels(Map<String,String> labels)
Map of string keys and values that can be used to organize and categorize (scope and select) objects.void
setManagedFields(List<ManagedFieldsEntry> managedFields)
ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow.void
setName(String name)
Name must be unique within a namespace.void
setNamespace(String namespace)
Namespace defines the space within which each name must be unique.void
setOwnerReferences(List<OwnerReference> ownerReferences)
List of objects depended by this object.void
setResourceVersion(String resourceVersion)
An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed.void
setSelfLink(String selfLink)
Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.void
setUid(String uid)
UID is the unique in time and space value for this object.ObjectMetaBuilder
toBuilder()
-
-
-
Constructor Detail
-
ObjectMeta
public ObjectMeta()
No args constructor for use in serialization
-
ObjectMeta
public ObjectMeta(Map<String,String> annotations, String creationTimestamp, Long deletionGracePeriodSeconds, String deletionTimestamp, List<String> finalizers, String generateName, Long generation, Map<String,String> labels, List<ManagedFieldsEntry> managedFields, String name, String namespace, List<OwnerReference> ownerReferences, String resourceVersion, String selfLink, String uid)
-
-
Method Detail
-
getAnnotations
public Map<String,String> getAnnotations()
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
-
setAnnotations
public void setAnnotations(Map<String,String> annotations)
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
-
getCreationTimestamp
public String getCreationTimestamp()
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
-
setCreationTimestamp
public void setCreationTimestamp(String creationTimestamp)
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
-
getDeletionGracePeriodSeconds
public Long getDeletionGracePeriodSeconds()
Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.
-
setDeletionGracePeriodSeconds
public void setDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds)
Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.
-
getDeletionTimestamp
public String getDeletionTimestamp()
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
-
setDeletionTimestamp
public void setDeletionTimestamp(String deletionTimestamp)
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
-
getFinalizers
public List<String> getFinalizers()
Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.
-
setFinalizers
public void setFinalizers(List<String> finalizers)
Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.
-
getGenerateName
public String getGenerateName()
GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.If this field is specified and the generated name exists, the server will return a 409.
Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
-
setGenerateName
public void setGenerateName(String generateName)
GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.If this field is specified and the generated name exists, the server will return a 409.
Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
-
getGeneration
public Long getGeneration()
A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.
-
setGeneration
public void setGeneration(Long generation)
A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.
-
getLabels
public Map<String,String> getLabels()
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
-
setLabels
public void setLabels(Map<String,String> labels)
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
-
getManagedFields
public List<ManagedFieldsEntry> getManagedFields()
ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object.
-
setManagedFields
public void setManagedFields(List<ManagedFieldsEntry> managedFields)
ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object.
-
getName
public String getName()
Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
-
setName
public void setName(String name)
Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
-
getNamespace
public String getNamespace()
Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
-
setNamespace
public void setNamespace(String namespace)
Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
-
getOwnerReferences
public List<OwnerReference> getOwnerReferences()
List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.
-
setOwnerReferences
public void setOwnerReferences(List<OwnerReference> ownerReferences)
List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.
-
getResourceVersion
public String getResourceVersion()
An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
-
setResourceVersion
public void setResourceVersion(String resourceVersion)
An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
-
getSelfLink
public String getSelfLink()
Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
-
setSelfLink
public void setSelfLink(String selfLink)
Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
-
getUid
public String getUid()
UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
-
setUid
public void setUid(String uid)
UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
-
edit
public ObjectMetaBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<ObjectMetaBuilder>
-
toBuilder
public ObjectMetaBuilder toBuilder()
-
-