1# coding: utf-8
2"""
3    Kubernetes
4
5    No description provided (generated by Swagger Codegen
6    https://github.com/swagger-api/swagger-codegen)
7
8    OpenAPI spec version: v1.14.4
9
10    Generated by: https://github.com/swagger-api/swagger-codegen.git
11"""
12
13from pprint import pformat
14from six import iteritems
15import re
16
17
18class V1beta1JobTemplateSpec(object):
19  """
20    NOTE: This class is auto generated by the swagger code generator program.
21    Do not edit the class manually.
22    """
23  """
24    Attributes:
25      swagger_types (dict): The key is attribute name and the value is attribute
26        type.
27      attribute_map (dict): The key is attribute name and the value is json key
28        in definition.
29  """
30  swagger_types = {'metadata': 'V1ObjectMeta', 'spec': 'V1JobSpec'}
31
32  attribute_map = {'metadata': 'metadata', 'spec': 'spec'}
33
34  def __init__(self, metadata=None, spec=None):
35    """
36        V1beta1JobTemplateSpec - a model defined in Swagger
37        """
38
39    self._metadata = None
40    self._spec = None
41    self.discriminator = None
42
43    if metadata is not None:
44      self.metadata = metadata
45    if spec is not None:
46      self.spec = spec
47
48  @property
49  def metadata(self):
50    """
51        Gets the metadata of this V1beta1JobTemplateSpec.
52        Standard object's metadata of the jobs created from this template. More
53        info:
54        https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
55
56        :return: The metadata of this V1beta1JobTemplateSpec.
57        :rtype: V1ObjectMeta
58        """
59    return self._metadata
60
61  @metadata.setter
62  def metadata(self, metadata):
63    """
64        Sets the metadata of this V1beta1JobTemplateSpec.
65        Standard object's metadata of the jobs created from this template. More
66        info:
67        https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
68
69        :param metadata: The metadata of this V1beta1JobTemplateSpec.
70        :type: V1ObjectMeta
71        """
72
73    self._metadata = metadata
74
75  @property
76  def spec(self):
77    """
78        Gets the spec of this V1beta1JobTemplateSpec.
79        Specification of the desired behavior of the job. More info:
80        https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
81
82        :return: The spec of this V1beta1JobTemplateSpec.
83        :rtype: V1JobSpec
84        """
85    return self._spec
86
87  @spec.setter
88  def spec(self, spec):
89    """
90        Sets the spec of this V1beta1JobTemplateSpec.
91        Specification of the desired behavior of the job. More info:
92        https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
93
94        :param spec: The spec of this V1beta1JobTemplateSpec.
95        :type: V1JobSpec
96        """
97
98    self._spec = spec
99
100  def to_dict(self):
101    """
102        Returns the model properties as a dict
103        """
104    result = {}
105
106    for attr, _ in iteritems(self.swagger_types):
107      value = getattr(self, attr)
108      if isinstance(value, list):
109        result[attr] = list(
110            map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value))
111      elif hasattr(value, 'to_dict'):
112        result[attr] = value.to_dict()
113      elif isinstance(value, dict):
114        result[attr] = dict(
115            map(
116                lambda item: (item[0], item[1].to_dict())
117                if hasattr(item[1], 'to_dict') else item, value.items()))
118      else:
119        result[attr] = value
120
121    return result
122
123  def to_str(self):
124    """
125        Returns the string representation of the model
126        """
127    return pformat(self.to_dict())
128
129  def __repr__(self):
130    """
131        For `print` and `pprint`
132        """
133    return self.to_str()
134
135  def __eq__(self, other):
136    """
137        Returns true if both objects are equal
138        """
139    if not isinstance(other, V1beta1JobTemplateSpec):
140      return False
141
142    return self.__dict__ == other.__dict__
143
144  def __ne__(self, other):
145    """
146        Returns true if both objects are not equal
147        """
148    return not self == other
149