fds.sdk.EventsandTranscripts 0.20.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. fds/__init__.py +0 -0
  2. fds/sdk/EventsandTranscripts/__init__.py +28 -0
  3. fds/sdk/EventsandTranscripts/api/__init__.py +3 -0
  4. fds/sdk/EventsandTranscripts/api/calendar_events_api.py +309 -0
  5. fds/sdk/EventsandTranscripts/api/events_audio_api.py +1452 -0
  6. fds/sdk/EventsandTranscripts/api/near_real_time_transcripts_api.py +1190 -0
  7. fds/sdk/EventsandTranscripts/api/transcripts_api.py +1682 -0
  8. fds/sdk/EventsandTranscripts/api_client.py +929 -0
  9. fds/sdk/EventsandTranscripts/apis/__init__.py +20 -0
  10. fds/sdk/EventsandTranscripts/configuration.py +496 -0
  11. fds/sdk/EventsandTranscripts/exceptions.py +160 -0
  12. fds/sdk/EventsandTranscripts/model/__init__.py +5 -0
  13. fds/sdk/EventsandTranscripts/model/company_event_request.py +262 -0
  14. fds/sdk/EventsandTranscripts/model/company_event_request_data.py +294 -0
  15. fds/sdk/EventsandTranscripts/model/company_event_request_data_date_time.py +268 -0
  16. fds/sdk/EventsandTranscripts/model/company_event_request_data_universe.py +274 -0
  17. fds/sdk/EventsandTranscripts/model/company_event_response.py +262 -0
  18. fds/sdk/EventsandTranscripts/model/company_event_response_object.py +322 -0
  19. fds/sdk/EventsandTranscripts/model/error.py +262 -0
  20. fds/sdk/EventsandTranscripts/model/error_example.py +264 -0
  21. fds/sdk/EventsandTranscripts/model/events_audio_daily.py +268 -0
  22. fds/sdk/EventsandTranscripts/model/events_audio_daily_file_name.py +262 -0
  23. fds/sdk/EventsandTranscripts/model/events_audio_daily_file_name_data.py +328 -0
  24. fds/sdk/EventsandTranscripts/model/events_audio_daily_ids.py +262 -0
  25. fds/sdk/EventsandTranscripts/model/events_audio_daily_meta.py +262 -0
  26. fds/sdk/EventsandTranscripts/model/events_audio_daily_meta_pagination.py +260 -0
  27. fds/sdk/EventsandTranscripts/model/events_audio_daily_object.py +328 -0
  28. fds/sdk/EventsandTranscripts/model/events_audio_history.py +262 -0
  29. fds/sdk/EventsandTranscripts/model/events_audio_history_data.py +272 -0
  30. fds/sdk/EventsandTranscripts/model/events_audio_ids_object.py +328 -0
  31. fds/sdk/EventsandTranscripts/model/indexed_nrt.py +266 -0
  32. fds/sdk/EventsandTranscripts/model/nrt_calls.py +268 -0
  33. fds/sdk/EventsandTranscripts/model/nrt_calls_meta.py +262 -0
  34. fds/sdk/EventsandTranscripts/model/nrt_calls_meta_pagination.py +260 -0
  35. fds/sdk/EventsandTranscripts/model/nrt_calls_object.py +314 -0
  36. fds/sdk/EventsandTranscripts/model/nrt_speaker_id_object.py +272 -0
  37. fds/sdk/EventsandTranscripts/model/nrt_speaker_ids.py +268 -0
  38. fds/sdk/EventsandTranscripts/model/nrt_speaker_ids_meta.py +262 -0
  39. fds/sdk/EventsandTranscripts/model/nrt_speaker_ids_meta_pagination.py +260 -0
  40. fds/sdk/EventsandTranscripts/model/response_categories.py +262 -0
  41. fds/sdk/EventsandTranscripts/model/response_categories_object.py +264 -0
  42. fds/sdk/EventsandTranscripts/model/response_time.py +262 -0
  43. fds/sdk/EventsandTranscripts/model/response_time_object.py +256 -0
  44. fds/sdk/EventsandTranscripts/model/transcript_object.py +316 -0
  45. fds/sdk/EventsandTranscripts/model/transcript_object_one.py +320 -0
  46. fds/sdk/EventsandTranscripts/model/transcripts.py +268 -0
  47. fds/sdk/EventsandTranscripts/model/transcripts_meta.py +262 -0
  48. fds/sdk/EventsandTranscripts/model/transcripts_meta_pagination.py +260 -0
  49. fds/sdk/EventsandTranscripts/model/transcripts_one.py +268 -0
  50. fds/sdk/EventsandTranscripts/model/transcripts_one_meta.py +262 -0
  51. fds/sdk/EventsandTranscripts/model/transcripts_one_meta_pagination.py +260 -0
  52. fds/sdk/EventsandTranscripts/model_utils.py +2052 -0
  53. fds/sdk/EventsandTranscripts/models/__init__.py +50 -0
  54. fds/sdk/EventsandTranscripts/rest.py +347 -0
  55. fds/sdk/__init__.py +0 -0
  56. fds.sdk.EventsandTranscripts-0.20.0.dist-info/LICENSE +202 -0
  57. fds.sdk.EventsandTranscripts-0.20.0.dist-info/METADATA +369 -0
  58. fds.sdk.EventsandTranscripts-0.20.0.dist-info/RECORD +60 -0
  59. fds.sdk.EventsandTranscripts-0.20.0.dist-info/WHEEL +5 -0
  60. fds.sdk.EventsandTranscripts-0.20.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,262 @@
1
+ """
2
+ EVENTS AND TRANSCRIPTS API
3
+
4
+ <p>The Calendar Events API provides access to FactSet’s Event Calendar data alongside business logic that allows users to replicate views and functionality consistent with the experience provided by the Workstation. This API provides the ability to pull Event Calendar data based on specific filters.</p> <p>Events Audio API provides access to historical as well as the latest audio recordings of various company events covered by FactSet. The events include, but are not limited to: earnings calls, conferences, and investor days. This API also provides relevant metadata such as timestamps and identifiers around each audio file.</p> <p>The Near Real-time Transcripts API enables access to Near Real-time Transcripts provided by CallStreet to time-sensitive clients. This API also provides the relevant speaker metadata along with their confidence scores. This data caters to quant clients interested in building machine learning models. Clients can leverage this API to perform sentiment analysis through natural language processing or machine learning. It can also be used to complement analysis using FactSet's transcripts service.</p> <p>Transcripts API provides conference call transcripts for companies' publicly held conference calls and a wealth of information regarding upcoming corporate events, such as conference call date and time, phone number and password, type of conference call, and important company investor relations contact information.</p> # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@factset.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from fds.sdk.EventsandTranscripts.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from fds.sdk.EventsandTranscripts.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from fds.sdk.EventsandTranscripts.model.company_event_response_object import CompanyEventResponseObject
35
+ globals()['CompanyEventResponseObject'] = CompanyEventResponseObject
36
+
37
+
38
+ class CompanyEventResponse(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ }
64
+
65
+ validations = {
66
+ }
67
+
68
+ @cached_property
69
+ def additional_properties_type():
70
+ """
71
+ This must be a method because a model may have properties that are
72
+ of type self, this must run after the class is loaded
73
+ """
74
+ lazy_import()
75
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
76
+
77
+ _nullable = False
78
+
79
+ @cached_property
80
+ def openapi_types():
81
+ """
82
+ This must be a method because a model may have properties that are
83
+ of type self, this must run after the class is loaded
84
+
85
+ Returns
86
+ openapi_types (dict): The key is attribute name
87
+ and the value is attribute type.
88
+ """
89
+ lazy_import()
90
+ return {
91
+ 'data': ([CompanyEventResponseObject],), # noqa: E501
92
+ }
93
+
94
+ @cached_property
95
+ def discriminator():
96
+ return None
97
+
98
+
99
+ attribute_map = {
100
+ 'data': 'data', # noqa: E501
101
+ }
102
+
103
+ read_only_vars = {
104
+ }
105
+
106
+ _composed_schemas = {}
107
+
108
+ @classmethod
109
+ @convert_js_args_to_python_args
110
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
+ """CompanyEventResponse - a model defined in OpenAPI
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
144
+ data ([CompanyEventResponseObject]): [optional] # noqa: E501
145
+ """
146
+
147
+ _check_type = kwargs.pop('_check_type', True)
148
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
149
+ _path_to_item = kwargs.pop('_path_to_item', ())
150
+ _configuration = kwargs.pop('_configuration', None)
151
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
152
+
153
+ self = super(OpenApiModel, cls).__new__(cls)
154
+
155
+ if args:
156
+ raise ApiTypeError(
157
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
158
+ args,
159
+ self.__class__.__name__,
160
+ ),
161
+ path_to_item=_path_to_item,
162
+ valid_classes=(self.__class__,),
163
+ )
164
+
165
+ self._data_store = {}
166
+ self._check_type = _check_type
167
+ self._spec_property_naming = _spec_property_naming
168
+ self._path_to_item = _path_to_item
169
+ self._configuration = _configuration
170
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
171
+
172
+ for var_name, var_value in kwargs.items():
173
+ if var_name not in self.attribute_map and \
174
+ self._configuration is not None and \
175
+ self._configuration.discard_unknown_keys and \
176
+ self.additional_properties_type is None:
177
+ # discard variable.
178
+ continue
179
+ setattr(self, var_name, var_value)
180
+ return self
181
+
182
+ required_properties = set([
183
+ '_data_store',
184
+ '_check_type',
185
+ '_spec_property_naming',
186
+ '_path_to_item',
187
+ '_configuration',
188
+ '_visited_composed_classes',
189
+ ])
190
+
191
+ @convert_js_args_to_python_args
192
+ def __init__(self, *args, **kwargs): # noqa: E501
193
+ """CompanyEventResponse - a model defined in OpenAPI
194
+
195
+ Keyword Args:
196
+ _check_type (bool): if True, values for parameters in openapi_types
197
+ will be type checked and a TypeError will be
198
+ raised if the wrong type is input.
199
+ Defaults to True
200
+ _path_to_item (tuple/list): This is a list of keys or values to
201
+ drill down to the model in received_data
202
+ when deserializing a response
203
+ _spec_property_naming (bool): True if the variable names in the input data
204
+ are serialized names, as specified in the OpenAPI document.
205
+ False if the variable names in the input data
206
+ are pythonic names, e.g. snake case (default)
207
+ _configuration (Configuration): the instance to use when
208
+ deserializing a file_type parameter.
209
+ If passed, type conversion is attempted
210
+ If omitted no type conversion is done.
211
+ _visited_composed_classes (tuple): This stores a tuple of
212
+ classes that we have traveled through so that
213
+ if we see that class again we will not use its
214
+ discriminator again.
215
+ When traveling through a discriminator, the
216
+ composed schema that is
217
+ is traveled through is added to this set.
218
+ For example if Animal has a discriminator
219
+ petType and we pass in "Dog", and the class Dog
220
+ allOf includes Animal, we move through Animal
221
+ once using the discriminator, and pick Dog.
222
+ Then in Dog, we will make an instance of the
223
+ Animal class but this time we won't travel
224
+ through its discriminator because we passed in
225
+ _visited_composed_classes = (Animal,)
226
+ data ([CompanyEventResponseObject]): [optional] # noqa: E501
227
+ """
228
+
229
+ _check_type = kwargs.pop('_check_type', True)
230
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
231
+ _path_to_item = kwargs.pop('_path_to_item', ())
232
+ _configuration = kwargs.pop('_configuration', None)
233
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
234
+
235
+ if args:
236
+ raise ApiTypeError(
237
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
238
+ args,
239
+ self.__class__.__name__,
240
+ ),
241
+ path_to_item=_path_to_item,
242
+ valid_classes=(self.__class__,),
243
+ )
244
+
245
+ self._data_store = {}
246
+ self._check_type = _check_type
247
+ self._spec_property_naming = _spec_property_naming
248
+ self._path_to_item = _path_to_item
249
+ self._configuration = _configuration
250
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
251
+
252
+ for var_name, var_value in kwargs.items():
253
+ if var_name not in self.attribute_map and \
254
+ self._configuration is not None and \
255
+ self._configuration.discard_unknown_keys and \
256
+ self.additional_properties_type is None:
257
+ # discard variable.
258
+ continue
259
+ setattr(self, var_name, var_value)
260
+ if var_name in self.read_only_vars:
261
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
262
+ f"class with read only attributes.")
@@ -0,0 +1,322 @@
1
+ """
2
+ EVENTS AND TRANSCRIPTS API
3
+
4
+ <p>The Calendar Events API provides access to FactSet’s Event Calendar data alongside business logic that allows users to replicate views and functionality consistent with the experience provided by the Workstation. This API provides the ability to pull Event Calendar data based on specific filters.</p> <p>Events Audio API provides access to historical as well as the latest audio recordings of various company events covered by FactSet. The events include, but are not limited to: earnings calls, conferences, and investor days. This API also provides relevant metadata such as timestamps and identifiers around each audio file.</p> <p>The Near Real-time Transcripts API enables access to Near Real-time Transcripts provided by CallStreet to time-sensitive clients. This API also provides the relevant speaker metadata along with their confidence scores. This data caters to quant clients interested in building machine learning models. Clients can leverage this API to perform sentiment analysis through natural language processing or machine learning. It can also be used to complement analysis using FactSet's transcripts service.</p> <p>Transcripts API provides conference call transcripts for companies' publicly held conference calls and a wealth of information regarding upcoming corporate events, such as conference call date and time, phone number and password, type of conference call, and important company investor relations contact information.</p> # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@factset.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from fds.sdk.EventsandTranscripts.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from fds.sdk.EventsandTranscripts.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class CompanyEventResponseObject(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ ('event_type',): {
60
+ 'EARNINGS': "Earnings",
61
+ 'SALESREVENUECALL': "SalesRevenueCall",
62
+ 'GUIDANCECALL': "GuidanceCall",
63
+ 'ANALYSTSINVESTORSMEETING': "AnalystsInvestorsMeeting",
64
+ 'SHAREHOLDERSMEETING': "ShareholdersMeeting",
65
+ 'SPECIALSITUATION': "SpecialSituation",
66
+ 'CONFERENCEPRESENTATION': "ConferencePresentation",
67
+ 'CONFIRMEDEARNINGSRELEASE': "ConfirmedEarningsRelease",
68
+ 'SALESREVENUERELEASE': "SalesRevenueRelease",
69
+ 'PROJECTEDEARNINGSRELEASE': "ProjectedEarningsRelease",
70
+ 'SPLIT': "Split",
71
+ 'DIVIDEND': "Dividend",
72
+ },
73
+ }
74
+
75
+ validations = {
76
+ }
77
+
78
+ @cached_property
79
+ def additional_properties_type():
80
+ """
81
+ This must be a method because a model may have properties that are
82
+ of type self, this must run after the class is loaded
83
+ """
84
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
85
+
86
+ _nullable = False
87
+
88
+ @cached_property
89
+ def openapi_types():
90
+ """
91
+ This must be a method because a model may have properties that are
92
+ of type self, this must run after the class is loaded
93
+
94
+ Returns
95
+ openapi_types (dict): The key is attribute name
96
+ and the value is attribute type.
97
+ """
98
+ return {
99
+ 'ticker': (str,), # noqa: E501
100
+ 'company_name': (str,), # noqa: E501
101
+ 'description': (str,), # noqa: E501
102
+ 'event_date_time': (datetime,), # noqa: E501
103
+ 'market_time_code': (str,), # noqa: E501
104
+ 'event_type': (str,), # noqa: E501
105
+ 'event_id': (str,), # noqa: E501
106
+ 'webcast_link': (str,), # noqa: E501
107
+ 'ir_link': (str,), # noqa: E501
108
+ 'fiscal_year': (str,), # noqa: E501
109
+ 'fiscal_period': (str,), # noqa: E501
110
+ 'contact_email': (str,), # noqa: E501
111
+ 'contact_phone': (str,), # noqa: E501
112
+ 'contact_name': (str,), # noqa: E501
113
+ }
114
+
115
+ @cached_property
116
+ def discriminator():
117
+ return None
118
+
119
+
120
+ attribute_map = {
121
+ 'ticker': 'ticker', # noqa: E501
122
+ 'company_name': 'companyName', # noqa: E501
123
+ 'description': 'description', # noqa: E501
124
+ 'event_date_time': 'eventDateTime', # noqa: E501
125
+ 'market_time_code': 'marketTimeCode', # noqa: E501
126
+ 'event_type': 'eventType', # noqa: E501
127
+ 'event_id': 'eventId', # noqa: E501
128
+ 'webcast_link': 'webcastLink', # noqa: E501
129
+ 'ir_link': 'irLink', # noqa: E501
130
+ 'fiscal_year': 'fiscalYear', # noqa: E501
131
+ 'fiscal_period': 'fiscalPeriod', # noqa: E501
132
+ 'contact_email': 'contactEmail', # noqa: E501
133
+ 'contact_phone': 'contactPhone', # noqa: E501
134
+ 'contact_name': 'contactName', # noqa: E501
135
+ }
136
+
137
+ read_only_vars = {
138
+ }
139
+
140
+ _composed_schemas = {}
141
+
142
+ @classmethod
143
+ @convert_js_args_to_python_args
144
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
145
+ """CompanyEventResponseObject - a model defined in OpenAPI
146
+
147
+ Keyword Args:
148
+ _check_type (bool): if True, values for parameters in openapi_types
149
+ will be type checked and a TypeError will be
150
+ raised if the wrong type is input.
151
+ Defaults to True
152
+ _path_to_item (tuple/list): This is a list of keys or values to
153
+ drill down to the model in received_data
154
+ when deserializing a response
155
+ _spec_property_naming (bool): True if the variable names in the input data
156
+ are serialized names, as specified in the OpenAPI document.
157
+ False if the variable names in the input data
158
+ are pythonic names, e.g. snake case (default)
159
+ _configuration (Configuration): the instance to use when
160
+ deserializing a file_type parameter.
161
+ If passed, type conversion is attempted
162
+ If omitted no type conversion is done.
163
+ _visited_composed_classes (tuple): This stores a tuple of
164
+ classes that we have traveled through so that
165
+ if we see that class again we will not use its
166
+ discriminator again.
167
+ When traveling through a discriminator, the
168
+ composed schema that is
169
+ is traveled through is added to this set.
170
+ For example if Animal has a discriminator
171
+ petType and we pass in "Dog", and the class Dog
172
+ allOf includes Animal, we move through Animal
173
+ once using the discriminator, and pick Dog.
174
+ Then in Dog, we will make an instance of the
175
+ Animal class but this time we won't travel
176
+ through its discriminator because we passed in
177
+ _visited_composed_classes = (Animal,)
178
+ ticker (str): Ticker-region identifier for the company hosting the event.. [optional] # noqa: E501
179
+ company_name (str): The official name of the company.. [optional] # noqa: E501
180
+ description (str): Brief description of the event.. [optional] # noqa: E501
181
+ event_date_time (datetime): Event start time as date/time string according to ISO 8601.. [optional] # noqa: E501
182
+ market_time_code (str): Timing code related to opening or closing of market.. [optional] # noqa: E501
183
+ event_type (str): Type/Category of the event based on a predefined list.. [optional] # noqa: E501
184
+ event_id (str): Unique identifier for the event.. [optional] # noqa: E501
185
+ webcast_link (str): Link to the webcast of the event.. [optional] # noqa: E501
186
+ ir_link (str): Link to the ir page of the company.. [optional] # noqa: E501
187
+ fiscal_year (str): The fiscal year of the company to which the event pertains.. [optional] # noqa: E501
188
+ fiscal_period (str): The fiscal period of the company to which the event pertains.. [optional] # noqa: E501
189
+ contact_email (str): Contact email for inquiries related to the event.. [optional] # noqa: E501
190
+ contact_phone (str): Contact phone number for inquiries related to the event.. [optional] # noqa: E501
191
+ contact_name (str): Name of the contact person for queries related to the event.. [optional] # noqa: E501
192
+ """
193
+
194
+ _check_type = kwargs.pop('_check_type', True)
195
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
196
+ _path_to_item = kwargs.pop('_path_to_item', ())
197
+ _configuration = kwargs.pop('_configuration', None)
198
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
199
+
200
+ self = super(OpenApiModel, cls).__new__(cls)
201
+
202
+ if args:
203
+ raise ApiTypeError(
204
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
205
+ args,
206
+ self.__class__.__name__,
207
+ ),
208
+ path_to_item=_path_to_item,
209
+ valid_classes=(self.__class__,),
210
+ )
211
+
212
+ self._data_store = {}
213
+ self._check_type = _check_type
214
+ self._spec_property_naming = _spec_property_naming
215
+ self._path_to_item = _path_to_item
216
+ self._configuration = _configuration
217
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
218
+
219
+ for var_name, var_value in kwargs.items():
220
+ if var_name not in self.attribute_map and \
221
+ self._configuration is not None and \
222
+ self._configuration.discard_unknown_keys and \
223
+ self.additional_properties_type is None:
224
+ # discard variable.
225
+ continue
226
+ setattr(self, var_name, var_value)
227
+ return self
228
+
229
+ required_properties = set([
230
+ '_data_store',
231
+ '_check_type',
232
+ '_spec_property_naming',
233
+ '_path_to_item',
234
+ '_configuration',
235
+ '_visited_composed_classes',
236
+ ])
237
+
238
+ @convert_js_args_to_python_args
239
+ def __init__(self, *args, **kwargs): # noqa: E501
240
+ """CompanyEventResponseObject - a model defined in OpenAPI
241
+
242
+ Keyword Args:
243
+ _check_type (bool): if True, values for parameters in openapi_types
244
+ will be type checked and a TypeError will be
245
+ raised if the wrong type is input.
246
+ Defaults to True
247
+ _path_to_item (tuple/list): This is a list of keys or values to
248
+ drill down to the model in received_data
249
+ when deserializing a response
250
+ _spec_property_naming (bool): True if the variable names in the input data
251
+ are serialized names, as specified in the OpenAPI document.
252
+ False if the variable names in the input data
253
+ are pythonic names, e.g. snake case (default)
254
+ _configuration (Configuration): the instance to use when
255
+ deserializing a file_type parameter.
256
+ If passed, type conversion is attempted
257
+ If omitted no type conversion is done.
258
+ _visited_composed_classes (tuple): This stores a tuple of
259
+ classes that we have traveled through so that
260
+ if we see that class again we will not use its
261
+ discriminator again.
262
+ When traveling through a discriminator, the
263
+ composed schema that is
264
+ is traveled through is added to this set.
265
+ For example if Animal has a discriminator
266
+ petType and we pass in "Dog", and the class Dog
267
+ allOf includes Animal, we move through Animal
268
+ once using the discriminator, and pick Dog.
269
+ Then in Dog, we will make an instance of the
270
+ Animal class but this time we won't travel
271
+ through its discriminator because we passed in
272
+ _visited_composed_classes = (Animal,)
273
+ ticker (str): Ticker-region identifier for the company hosting the event.. [optional] # noqa: E501
274
+ company_name (str): The official name of the company.. [optional] # noqa: E501
275
+ description (str): Brief description of the event.. [optional] # noqa: E501
276
+ event_date_time (datetime): Event start time as date/time string according to ISO 8601.. [optional] # noqa: E501
277
+ market_time_code (str): Timing code related to opening or closing of market.. [optional] # noqa: E501
278
+ event_type (str): Type/Category of the event based on a predefined list.. [optional] # noqa: E501
279
+ event_id (str): Unique identifier for the event.. [optional] # noqa: E501
280
+ webcast_link (str): Link to the webcast of the event.. [optional] # noqa: E501
281
+ ir_link (str): Link to the ir page of the company.. [optional] # noqa: E501
282
+ fiscal_year (str): The fiscal year of the company to which the event pertains.. [optional] # noqa: E501
283
+ fiscal_period (str): The fiscal period of the company to which the event pertains.. [optional] # noqa: E501
284
+ contact_email (str): Contact email for inquiries related to the event.. [optional] # noqa: E501
285
+ contact_phone (str): Contact phone number for inquiries related to the event.. [optional] # noqa: E501
286
+ contact_name (str): Name of the contact person for queries related to the event.. [optional] # noqa: E501
287
+ """
288
+
289
+ _check_type = kwargs.pop('_check_type', True)
290
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
291
+ _path_to_item = kwargs.pop('_path_to_item', ())
292
+ _configuration = kwargs.pop('_configuration', None)
293
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
294
+
295
+ if args:
296
+ raise ApiTypeError(
297
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
298
+ args,
299
+ self.__class__.__name__,
300
+ ),
301
+ path_to_item=_path_to_item,
302
+ valid_classes=(self.__class__,),
303
+ )
304
+
305
+ self._data_store = {}
306
+ self._check_type = _check_type
307
+ self._spec_property_naming = _spec_property_naming
308
+ self._path_to_item = _path_to_item
309
+ self._configuration = _configuration
310
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
311
+
312
+ for var_name, var_value in kwargs.items():
313
+ if var_name not in self.attribute_map and \
314
+ self._configuration is not None and \
315
+ self._configuration.discard_unknown_keys and \
316
+ self.additional_properties_type is None:
317
+ # discard variable.
318
+ continue
319
+ setattr(self, var_name, var_value)
320
+ if var_name in self.read_only_vars:
321
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
322
+ f"class with read only attributes.")