1# coding: utf-8
2# Copyright (c) 2016, 2021, Oracle and/or its affiliates.  All rights reserved.
3# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
5
6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
7from oci.decorators import init_model_state_from_kwargs
8
9
10@init_model_state_from_kwargs
11class ComputeGlobalImageCapabilitySchemaVersionSummary(object):
12    """
13    Summary information for a compute global image capability schema
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new ComputeGlobalImageCapabilitySchemaVersionSummary object with values from keyword arguments.
19        The following keyword arguments are supported (corresponding to the getters/setters of this class):
20
21        :param name:
22            The value to assign to the name property of this ComputeGlobalImageCapabilitySchemaVersionSummary.
23        :type name: str
24
25        :param compute_global_image_capability_schema_id:
26            The value to assign to the compute_global_image_capability_schema_id property of this ComputeGlobalImageCapabilitySchemaVersionSummary.
27        :type compute_global_image_capability_schema_id: str
28
29        :param display_name:
30            The value to assign to the display_name property of this ComputeGlobalImageCapabilitySchemaVersionSummary.
31        :type display_name: str
32
33        :param time_created:
34            The value to assign to the time_created property of this ComputeGlobalImageCapabilitySchemaVersionSummary.
35        :type time_created: datetime
36
37        """
38        self.swagger_types = {
39            'name': 'str',
40            'compute_global_image_capability_schema_id': 'str',
41            'display_name': 'str',
42            'time_created': 'datetime'
43        }
44
45        self.attribute_map = {
46            'name': 'name',
47            'compute_global_image_capability_schema_id': 'computeGlobalImageCapabilitySchemaId',
48            'display_name': 'displayName',
49            'time_created': 'timeCreated'
50        }
51
52        self._name = None
53        self._compute_global_image_capability_schema_id = None
54        self._display_name = None
55        self._time_created = None
56
57    @property
58    def name(self):
59        """
60        **[Required]** Gets the name of this ComputeGlobalImageCapabilitySchemaVersionSummary.
61        The compute global image capability schema version name
62
63
64        :return: The name of this ComputeGlobalImageCapabilitySchemaVersionSummary.
65        :rtype: str
66        """
67        return self._name
68
69    @name.setter
70    def name(self, name):
71        """
72        Sets the name of this ComputeGlobalImageCapabilitySchemaVersionSummary.
73        The compute global image capability schema version name
74
75
76        :param name: The name of this ComputeGlobalImageCapabilitySchemaVersionSummary.
77        :type: str
78        """
79        self._name = name
80
81    @property
82    def compute_global_image_capability_schema_id(self):
83        """
84        **[Required]** Gets the compute_global_image_capability_schema_id of this ComputeGlobalImageCapabilitySchemaVersionSummary.
85        The OCID of the compute global image capability schema
86
87
88        :return: The compute_global_image_capability_schema_id of this ComputeGlobalImageCapabilitySchemaVersionSummary.
89        :rtype: str
90        """
91        return self._compute_global_image_capability_schema_id
92
93    @compute_global_image_capability_schema_id.setter
94    def compute_global_image_capability_schema_id(self, compute_global_image_capability_schema_id):
95        """
96        Sets the compute_global_image_capability_schema_id of this ComputeGlobalImageCapabilitySchemaVersionSummary.
97        The OCID of the compute global image capability schema
98
99
100        :param compute_global_image_capability_schema_id: The compute_global_image_capability_schema_id of this ComputeGlobalImageCapabilitySchemaVersionSummary.
101        :type: str
102        """
103        self._compute_global_image_capability_schema_id = compute_global_image_capability_schema_id
104
105    @property
106    def display_name(self):
107        """
108        Gets the display_name of this ComputeGlobalImageCapabilitySchemaVersionSummary.
109        A user-friendly name. Does not have to be unique, and it's changeable.
110        Avoid entering confidential information.
111
112
113        :return: The display_name of this ComputeGlobalImageCapabilitySchemaVersionSummary.
114        :rtype: str
115        """
116        return self._display_name
117
118    @display_name.setter
119    def display_name(self, display_name):
120        """
121        Sets the display_name of this ComputeGlobalImageCapabilitySchemaVersionSummary.
122        A user-friendly name. Does not have to be unique, and it's changeable.
123        Avoid entering confidential information.
124
125
126        :param display_name: The display_name of this ComputeGlobalImageCapabilitySchemaVersionSummary.
127        :type: str
128        """
129        self._display_name = display_name
130
131    @property
132    def time_created(self):
133        """
134        **[Required]** Gets the time_created of this ComputeGlobalImageCapabilitySchemaVersionSummary.
135        The date and time the compute global image capability schema version was created, in the format defined by `RFC3339`__.
136
137        Example: `2016-08-25T21:10:29.600Z`
138
139        __ https://tools.ietf.org/html/rfc3339
140
141
142        :return: The time_created of this ComputeGlobalImageCapabilitySchemaVersionSummary.
143        :rtype: datetime
144        """
145        return self._time_created
146
147    @time_created.setter
148    def time_created(self, time_created):
149        """
150        Sets the time_created of this ComputeGlobalImageCapabilitySchemaVersionSummary.
151        The date and time the compute global image capability schema version was created, in the format defined by `RFC3339`__.
152
153        Example: `2016-08-25T21:10:29.600Z`
154
155        __ https://tools.ietf.org/html/rfc3339
156
157
158        :param time_created: The time_created of this ComputeGlobalImageCapabilitySchemaVersionSummary.
159        :type: datetime
160        """
161        self._time_created = time_created
162
163    def __repr__(self):
164        return formatted_flat_dict(self)
165
166    def __eq__(self, other):
167        if other is None:
168            return False
169
170        return self.__dict__ == other.__dict__
171
172    def __ne__(self, other):
173        return not self == other
174