from __future__ import absolute_import

import six

from ..base import Model
from ..fields import Field, ReadOnlyField, RequiredField


class ObjectMeta(Model):
    name = RequiredField(six.text_type)
    namespace = Field(six.text_type, "default")
    resourceVersion = ReadOnlyField(six.text_type)
    labels = Field(dict)
    annotations = Field(dict)

from __future__ import absolute_import

import six

from ..base import Model
from ..fields import Field, ReadOnlyField, RequiredField


class ObjectMeta(Model):
    name = Field(six.text_type)
    namespace = Field(six.text_type, "default")
    resourceVersion = ReadOnlyField(six.text_type)
    labels = Field(dict)
    annotations = Field(dict)
    generateName = Field(six.text_type)

Add support for auto-generated names in metadata
Add support for auto-generated names in metadata

  from __future__ import absolute_import
  
  import six
  
  from ..base import Model
  from ..fields import Field, ReadOnlyField, RequiredField
  
  
  class ObjectMeta(Model):
-     name = RequiredField(six.text_type)
+     name = Field(six.text_type)
      namespace = Field(six.text_type, "default")
      resourceVersion = ReadOnlyField(six.text_type)
      labels = Field(dict)
      annotations = Field(dict)
+     generateName = Field(six.text_type)
  
Add support for auto-generated names in metadata
## Code Before:
from __future__ import absolute_import

import six

from ..base import Model
from ..fields import Field, ReadOnlyField, RequiredField


class ObjectMeta(Model):
    name = RequiredField(six.text_type)
    namespace = Field(six.text_type, "default")
    resourceVersion = ReadOnlyField(six.text_type)
    labels = Field(dict)
    annotations = Field(dict)

## Instruction:
Add support for auto-generated names in metadata
## Code After:
from __future__ import absolute_import

import six

from ..base import Model
from ..fields import Field, ReadOnlyField, RequiredField


class ObjectMeta(Model):
    name = Field(six.text_type)
    namespace = Field(six.text_type, "default")
    resourceVersion = ReadOnlyField(six.text_type)
    labels = Field(dict)
    annotations = Field(dict)
    generateName = Field(six.text_type)
