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 ReportSummary(object):
12    """
13    The model of a single report.
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new ReportSummary object with values from keyword arguments.
19        The following keyword arguments are supported (corresponding to the getters/setters of this class):
20
21        :param report_type:
22            The value to assign to the report_type property of this ReportSummary.
23        :type report_type: str
24
25        :param date:
26            The value to assign to the date property of this ReportSummary.
27        :type date: datetime
28
29        :param columns:
30            The value to assign to the columns property of this ReportSummary.
31        :type columns: list[str]
32
33        :param content:
34            The value to assign to the content property of this ReportSummary.
35        :type content: str
36
37        """
38        self.swagger_types = {
39            'report_type': 'str',
40            'date': 'datetime',
41            'columns': 'list[str]',
42            'content': 'str'
43        }
44
45        self.attribute_map = {
46            'report_type': 'reportType',
47            'date': 'date',
48            'columns': 'columns',
49            'content': 'content'
50        }
51
52        self._report_type = None
53        self._date = None
54        self._columns = None
55        self._content = None
56
57    @property
58    def report_type(self):
59        """
60        **[Required]** Gets the report_type of this ReportSummary.
61        The type of report.
62
63
64        :return: The report_type of this ReportSummary.
65        :rtype: str
66        """
67        return self._report_type
68
69    @report_type.setter
70    def report_type(self, report_type):
71        """
72        Sets the report_type of this ReportSummary.
73        The type of report.
74
75
76        :param report_type: The report_type of this ReportSummary.
77        :type: str
78        """
79        self._report_type = report_type
80
81    @property
82    def date(self):
83        """
84        **[Required]** Gets the date of this ReportSummary.
85        The date of the report.
86
87
88        :return: The date of this ReportSummary.
89        :rtype: datetime
90        """
91        return self._date
92
93    @date.setter
94    def date(self, date):
95        """
96        Sets the date of this ReportSummary.
97        The date of the report.
98
99
100        :param date: The date of this ReportSummary.
101        :type: datetime
102        """
103        self._date = date
104
105    @property
106    def columns(self):
107        """
108        **[Required]** Gets the columns of this ReportSummary.
109        The columns in the report.
110
111
112        :return: The columns of this ReportSummary.
113        :rtype: list[str]
114        """
115        return self._columns
116
117    @columns.setter
118    def columns(self, columns):
119        """
120        Sets the columns of this ReportSummary.
121        The columns in the report.
122
123
124        :param columns: The columns of this ReportSummary.
125        :type: list[str]
126        """
127        self._columns = columns
128
129    @property
130    def content(self):
131        """
132        **[Required]** Gets the content of this ReportSummary.
133        The contents of the report in comma-separated values (CSV) file format.
134
135
136        :return: The content of this ReportSummary.
137        :rtype: str
138        """
139        return self._content
140
141    @content.setter
142    def content(self, content):
143        """
144        Sets the content of this ReportSummary.
145        The contents of the report in comma-separated values (CSV) file format.
146
147
148        :param content: The content of this ReportSummary.
149        :type: str
150        """
151        self._content = content
152
153    def __repr__(self):
154        return formatted_flat_dict(self)
155
156    def __eq__(self, other):
157        if other is None:
158            return False
159
160        return self.__dict__ == other.__dict__
161
162    def __ne__(self, other):
163        return not self == other
164