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,320 @@
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 TranscriptObjectOne(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
+ ('transcript_type',): {
60
+ 'RAW': "Raw",
61
+ 'CORRECTED': "Corrected",
62
+ },
63
+ ('event_type',): {
64
+ 'EARNINGS': "Earnings",
65
+ 'GUIDANCE': "Guidance",
66
+ 'ANALYSTSSHAREHOLDERSMEETING': "AnalystsShareholdersMeeting",
67
+ 'CONFERENCEPRESENTATION': "ConferencePresentation",
68
+ 'SALESREVENUE': "SalesRevenue",
69
+ 'SPECIALSITUATION': "SpecialSituation",
70
+ },
71
+ }
72
+
73
+ validations = {
74
+ }
75
+
76
+ @cached_property
77
+ def additional_properties_type():
78
+ """
79
+ This must be a method because a model may have properties that are
80
+ of type self, this must run after the class is loaded
81
+ """
82
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
83
+
84
+ _nullable = False
85
+
86
+ @cached_property
87
+ def openapi_types():
88
+ """
89
+ This must be a method because a model may have properties that are
90
+ of type self, this must run after the class is loaded
91
+
92
+ Returns
93
+ openapi_types (dict): The key is attribute name
94
+ and the value is attribute type.
95
+ """
96
+ return {
97
+ 'version_id': (str,), # noqa: E501
98
+ 'primary_ids': ([str],), # noqa: E501
99
+ 'search_id': (str,), # noqa: E501
100
+ 'all_ids': ([str],), # noqa: E501
101
+ 'report_id': (str,), # noqa: E501
102
+ 'event_id': (str,), # noqa: E501
103
+ 'event_date': (date,), # noqa: E501
104
+ 'transcript_type': (str,), # noqa: E501
105
+ 'headline': (str,), # noqa: E501
106
+ 'story_date_time': (datetime,), # noqa: E501
107
+ 'upload_date_time': (datetime,), # noqa: E501
108
+ 'event_type': (str,), # noqa: E501
109
+ 'categories': ([str],), # noqa: E501
110
+ 'transcripts_link': (str,), # noqa: E501
111
+ }
112
+
113
+ @cached_property
114
+ def discriminator():
115
+ return None
116
+
117
+
118
+ attribute_map = {
119
+ 'version_id': 'versionId', # noqa: E501
120
+ 'primary_ids': 'primaryIds', # noqa: E501
121
+ 'search_id': 'searchId', # noqa: E501
122
+ 'all_ids': 'allIds', # noqa: E501
123
+ 'report_id': 'reportId', # noqa: E501
124
+ 'event_id': 'eventId', # noqa: E501
125
+ 'event_date': 'eventDate', # noqa: E501
126
+ 'transcript_type': 'transcriptType', # noqa: E501
127
+ 'headline': 'headline', # noqa: E501
128
+ 'story_date_time': 'storyDateTime', # noqa: E501
129
+ 'upload_date_time': 'uploadDateTime', # noqa: E501
130
+ 'event_type': 'eventType', # noqa: E501
131
+ 'categories': 'categories', # noqa: E501
132
+ 'transcripts_link': 'transcriptsLink', # noqa: E501
133
+ }
134
+
135
+ read_only_vars = {
136
+ }
137
+
138
+ _composed_schemas = {}
139
+
140
+ @classmethod
141
+ @convert_js_args_to_python_args
142
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
143
+ """TranscriptObjectOne - a model defined in OpenAPI
144
+
145
+ Keyword Args:
146
+ _check_type (bool): if True, values for parameters in openapi_types
147
+ will be type checked and a TypeError will be
148
+ raised if the wrong type is input.
149
+ Defaults to True
150
+ _path_to_item (tuple/list): This is a list of keys or values to
151
+ drill down to the model in received_data
152
+ when deserializing a response
153
+ _spec_property_naming (bool): True if the variable names in the input data
154
+ are serialized names, as specified in the OpenAPI document.
155
+ False if the variable names in the input data
156
+ are pythonic names, e.g. snake case (default)
157
+ _configuration (Configuration): the instance to use when
158
+ deserializing a file_type parameter.
159
+ If passed, type conversion is attempted
160
+ If omitted no type conversion is done.
161
+ _visited_composed_classes (tuple): This stores a tuple of
162
+ classes that we have traveled through so that
163
+ if we see that class again we will not use its
164
+ discriminator again.
165
+ When traveling through a discriminator, the
166
+ composed schema that is
167
+ is traveled through is added to this set.
168
+ For example if Animal has a discriminator
169
+ petType and we pass in "Dog", and the class Dog
170
+ allOf includes Animal, we move through Animal
171
+ once using the discriminator, and pick Dog.
172
+ Then in Dog, we will make an instance of the
173
+ Animal class but this time we won't travel
174
+ through its discriminator because we passed in
175
+ _visited_composed_classes = (Animal,)
176
+ version_id (str): Used to distinguish the corrected reports. As such, one `reportId` can have many `versionIds`.. [optional] # noqa: E501
177
+ primary_ids ([str]): Refers to the main companies a particular document pertains to.. [optional] # noqa: E501
178
+ search_id (str): Returns IDs used in the ids parameter. The identifier type is based on what was used in the parameter. [optional] # noqa: E501
179
+ all_ids ([str]): Refers to all companies mentioned in the document. . [optional] # noqa: E501
180
+ report_id (str): This is a unique identifier for a specific transcript (audio or video) returned.. [optional] # noqa: E501
181
+ event_id (str): ID of the conference call.. [optional] # noqa: E501
182
+ event_date (date): The date when the event took place. Formatted as 'YYYY-MM-DD'.. [optional] # noqa: E501
183
+ transcript_type (str): Specifies the type of transcript. . [optional] # noqa: E501
184
+ headline (str): Headline of the story.. [optional] # noqa: E501
185
+ story_date_time (datetime): Refers to either the date and time of the story, when it is available in workstation (in the specified timezone) or the date and time FactSet received it from the vendor.. [optional] # noqa: E501
186
+ upload_date_time (datetime): It is the time when transcript is created (in the specified timezone).. [optional] # noqa: E501
187
+ event_type (str): Specifies the type of event. Choose from the available options. . [optional] # noqa: E501
188
+ categories ([str]): Categories are country, industry, and subject codes. This is a comma-separated list.. [optional] # noqa: E501
189
+ transcripts_link (str): This is a link for downloading the document with an expiration duration of 24 hours.. [optional] # noqa: E501
190
+ """
191
+
192
+ _check_type = kwargs.pop('_check_type', True)
193
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
194
+ _path_to_item = kwargs.pop('_path_to_item', ())
195
+ _configuration = kwargs.pop('_configuration', None)
196
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
197
+
198
+ self = super(OpenApiModel, cls).__new__(cls)
199
+
200
+ if args:
201
+ raise ApiTypeError(
202
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
203
+ args,
204
+ self.__class__.__name__,
205
+ ),
206
+ path_to_item=_path_to_item,
207
+ valid_classes=(self.__class__,),
208
+ )
209
+
210
+ self._data_store = {}
211
+ self._check_type = _check_type
212
+ self._spec_property_naming = _spec_property_naming
213
+ self._path_to_item = _path_to_item
214
+ self._configuration = _configuration
215
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
216
+
217
+ for var_name, var_value in kwargs.items():
218
+ if var_name not in self.attribute_map and \
219
+ self._configuration is not None and \
220
+ self._configuration.discard_unknown_keys and \
221
+ self.additional_properties_type is None:
222
+ # discard variable.
223
+ continue
224
+ setattr(self, var_name, var_value)
225
+ return self
226
+
227
+ required_properties = set([
228
+ '_data_store',
229
+ '_check_type',
230
+ '_spec_property_naming',
231
+ '_path_to_item',
232
+ '_configuration',
233
+ '_visited_composed_classes',
234
+ ])
235
+
236
+ @convert_js_args_to_python_args
237
+ def __init__(self, *args, **kwargs): # noqa: E501
238
+ """TranscriptObjectOne - a model defined in OpenAPI
239
+
240
+ Keyword Args:
241
+ _check_type (bool): if True, values for parameters in openapi_types
242
+ will be type checked and a TypeError will be
243
+ raised if the wrong type is input.
244
+ Defaults to True
245
+ _path_to_item (tuple/list): This is a list of keys or values to
246
+ drill down to the model in received_data
247
+ when deserializing a response
248
+ _spec_property_naming (bool): True if the variable names in the input data
249
+ are serialized names, as specified in the OpenAPI document.
250
+ False if the variable names in the input data
251
+ are pythonic names, e.g. snake case (default)
252
+ _configuration (Configuration): the instance to use when
253
+ deserializing a file_type parameter.
254
+ If passed, type conversion is attempted
255
+ If omitted no type conversion is done.
256
+ _visited_composed_classes (tuple): This stores a tuple of
257
+ classes that we have traveled through so that
258
+ if we see that class again we will not use its
259
+ discriminator again.
260
+ When traveling through a discriminator, the
261
+ composed schema that is
262
+ is traveled through is added to this set.
263
+ For example if Animal has a discriminator
264
+ petType and we pass in "Dog", and the class Dog
265
+ allOf includes Animal, we move through Animal
266
+ once using the discriminator, and pick Dog.
267
+ Then in Dog, we will make an instance of the
268
+ Animal class but this time we won't travel
269
+ through its discriminator because we passed in
270
+ _visited_composed_classes = (Animal,)
271
+ version_id (str): Used to distinguish the corrected reports. As such, one `reportId` can have many `versionIds`.. [optional] # noqa: E501
272
+ primary_ids ([str]): Refers to the main companies a particular document pertains to.. [optional] # noqa: E501
273
+ search_id (str): Returns IDs used in the ids parameter. The identifier type is based on what was used in the parameter. [optional] # noqa: E501
274
+ all_ids ([str]): Refers to all companies mentioned in the document. . [optional] # noqa: E501
275
+ report_id (str): This is a unique identifier for a specific transcript (audio or video) returned.. [optional] # noqa: E501
276
+ event_id (str): ID of the conference call.. [optional] # noqa: E501
277
+ event_date (date): The date when the event took place. Formatted as 'YYYY-MM-DD'.. [optional] # noqa: E501
278
+ transcript_type (str): Specifies the type of transcript. . [optional] # noqa: E501
279
+ headline (str): Headline of the story.. [optional] # noqa: E501
280
+ story_date_time (datetime): Refers to either the date and time of the story, when it is available in workstation (in the specified timezone) or the date and time FactSet received it from the vendor.. [optional] # noqa: E501
281
+ upload_date_time (datetime): It is the time when transcript is created (in the specified timezone).. [optional] # noqa: E501
282
+ event_type (str): Specifies the type of event. Choose from the available options. . [optional] # noqa: E501
283
+ categories ([str]): Categories are country, industry, and subject codes. This is a comma-separated list.. [optional] # noqa: E501
284
+ transcripts_link (str): This is a link for downloading the document with an expiration duration of 24 hours.. [optional] # noqa: E501
285
+ """
286
+
287
+ _check_type = kwargs.pop('_check_type', True)
288
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
289
+ _path_to_item = kwargs.pop('_path_to_item', ())
290
+ _configuration = kwargs.pop('_configuration', None)
291
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
292
+
293
+ if args:
294
+ raise ApiTypeError(
295
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
296
+ args,
297
+ self.__class__.__name__,
298
+ ),
299
+ path_to_item=_path_to_item,
300
+ valid_classes=(self.__class__,),
301
+ )
302
+
303
+ self._data_store = {}
304
+ self._check_type = _check_type
305
+ self._spec_property_naming = _spec_property_naming
306
+ self._path_to_item = _path_to_item
307
+ self._configuration = _configuration
308
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
309
+
310
+ for var_name, var_value in kwargs.items():
311
+ if var_name not in self.attribute_map and \
312
+ self._configuration is not None and \
313
+ self._configuration.discard_unknown_keys and \
314
+ self.additional_properties_type is None:
315
+ # discard variable.
316
+ continue
317
+ setattr(self, var_name, var_value)
318
+ if var_name in self.read_only_vars:
319
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
320
+ f"class with read only attributes.")
@@ -0,0 +1,268 @@
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.transcript_object import TranscriptObject
35
+ from fds.sdk.EventsandTranscripts.model.transcripts_meta import TranscriptsMeta
36
+ globals()['TranscriptObject'] = TranscriptObject
37
+ globals()['TranscriptsMeta'] = TranscriptsMeta
38
+
39
+
40
+ class Transcripts(ModelNormal):
41
+ """NOTE: This class is auto generated by OpenAPI Generator.
42
+ Ref: https://openapi-generator.tech
43
+
44
+ Do not edit the class manually.
45
+
46
+ Attributes:
47
+ allowed_values (dict): The key is the tuple path to the attribute
48
+ and the for var_name this is (var_name,). The value is a dict
49
+ with a capitalized key describing the allowed value and an allowed
50
+ value. These dicts store the allowed enum values.
51
+ attribute_map (dict): The key is attribute name
52
+ and the value is json key in definition.
53
+ discriminator_value_class_map (dict): A dict to go from the discriminator
54
+ variable value to the discriminator class name.
55
+ validations (dict): The key is the tuple path to the attribute
56
+ and the for var_name this is (var_name,). The value is a dict
57
+ that stores validations for max_length, min_length, max_items,
58
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
59
+ inclusive_minimum, and regex.
60
+ additional_properties_type (tuple): A tuple of classes accepted
61
+ as additional properties values.
62
+ """
63
+
64
+ allowed_values = {
65
+ }
66
+
67
+ validations = {
68
+ }
69
+
70
+ @cached_property
71
+ def additional_properties_type():
72
+ """
73
+ This must be a method because a model may have properties that are
74
+ of type self, this must run after the class is loaded
75
+ """
76
+ lazy_import()
77
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
78
+
79
+ _nullable = False
80
+
81
+ @cached_property
82
+ def openapi_types():
83
+ """
84
+ This must be a method because a model may have properties that are
85
+ of type self, this must run after the class is loaded
86
+
87
+ Returns
88
+ openapi_types (dict): The key is attribute name
89
+ and the value is attribute type.
90
+ """
91
+ lazy_import()
92
+ return {
93
+ 'data': ([TranscriptObject],), # noqa: E501
94
+ 'meta': (TranscriptsMeta,), # noqa: E501
95
+ }
96
+
97
+ @cached_property
98
+ def discriminator():
99
+ return None
100
+
101
+
102
+ attribute_map = {
103
+ 'data': 'data', # noqa: E501
104
+ 'meta': 'meta', # noqa: E501
105
+ }
106
+
107
+ read_only_vars = {
108
+ }
109
+
110
+ _composed_schemas = {}
111
+
112
+ @classmethod
113
+ @convert_js_args_to_python_args
114
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
115
+ """Transcripts - a model defined in OpenAPI
116
+
117
+ Keyword Args:
118
+ _check_type (bool): if True, values for parameters in openapi_types
119
+ will be type checked and a TypeError will be
120
+ raised if the wrong type is input.
121
+ Defaults to True
122
+ _path_to_item (tuple/list): This is a list of keys or values to
123
+ drill down to the model in received_data
124
+ when deserializing a response
125
+ _spec_property_naming (bool): True if the variable names in the input data
126
+ are serialized names, as specified in the OpenAPI document.
127
+ False if the variable names in the input data
128
+ are pythonic names, e.g. snake case (default)
129
+ _configuration (Configuration): the instance to use when
130
+ deserializing a file_type parameter.
131
+ If passed, type conversion is attempted
132
+ If omitted no type conversion is done.
133
+ _visited_composed_classes (tuple): This stores a tuple of
134
+ classes that we have traveled through so that
135
+ if we see that class again we will not use its
136
+ discriminator again.
137
+ When traveling through a discriminator, the
138
+ composed schema that is
139
+ is traveled through is added to this set.
140
+ For example if Animal has a discriminator
141
+ petType and we pass in "Dog", and the class Dog
142
+ allOf includes Animal, we move through Animal
143
+ once using the discriminator, and pick Dog.
144
+ Then in Dog, we will make an instance of the
145
+ Animal class but this time we won't travel
146
+ through its discriminator because we passed in
147
+ _visited_composed_classes = (Animal,)
148
+ data ([TranscriptObject]): Collection of data elements.. [optional] # noqa: E501
149
+ meta (TranscriptsMeta): [optional] # noqa: E501
150
+ """
151
+
152
+ _check_type = kwargs.pop('_check_type', True)
153
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
154
+ _path_to_item = kwargs.pop('_path_to_item', ())
155
+ _configuration = kwargs.pop('_configuration', None)
156
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
157
+
158
+ self = super(OpenApiModel, cls).__new__(cls)
159
+
160
+ if args:
161
+ raise ApiTypeError(
162
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
163
+ args,
164
+ self.__class__.__name__,
165
+ ),
166
+ path_to_item=_path_to_item,
167
+ valid_classes=(self.__class__,),
168
+ )
169
+
170
+ self._data_store = {}
171
+ self._check_type = _check_type
172
+ self._spec_property_naming = _spec_property_naming
173
+ self._path_to_item = _path_to_item
174
+ self._configuration = _configuration
175
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
+
177
+ for var_name, var_value in kwargs.items():
178
+ if var_name not in self.attribute_map and \
179
+ self._configuration is not None and \
180
+ self._configuration.discard_unknown_keys and \
181
+ self.additional_properties_type is None:
182
+ # discard variable.
183
+ continue
184
+ setattr(self, var_name, var_value)
185
+ return self
186
+
187
+ required_properties = set([
188
+ '_data_store',
189
+ '_check_type',
190
+ '_spec_property_naming',
191
+ '_path_to_item',
192
+ '_configuration',
193
+ '_visited_composed_classes',
194
+ ])
195
+
196
+ @convert_js_args_to_python_args
197
+ def __init__(self, *args, **kwargs): # noqa: E501
198
+ """Transcripts - a model defined in OpenAPI
199
+
200
+ Keyword Args:
201
+ _check_type (bool): if True, values for parameters in openapi_types
202
+ will be type checked and a TypeError will be
203
+ raised if the wrong type is input.
204
+ Defaults to True
205
+ _path_to_item (tuple/list): This is a list of keys or values to
206
+ drill down to the model in received_data
207
+ when deserializing a response
208
+ _spec_property_naming (bool): True if the variable names in the input data
209
+ are serialized names, as specified in the OpenAPI document.
210
+ False if the variable names in the input data
211
+ are pythonic names, e.g. snake case (default)
212
+ _configuration (Configuration): the instance to use when
213
+ deserializing a file_type parameter.
214
+ If passed, type conversion is attempted
215
+ If omitted no type conversion is done.
216
+ _visited_composed_classes (tuple): This stores a tuple of
217
+ classes that we have traveled through so that
218
+ if we see that class again we will not use its
219
+ discriminator again.
220
+ When traveling through a discriminator, the
221
+ composed schema that is
222
+ is traveled through is added to this set.
223
+ For example if Animal has a discriminator
224
+ petType and we pass in "Dog", and the class Dog
225
+ allOf includes Animal, we move through Animal
226
+ once using the discriminator, and pick Dog.
227
+ Then in Dog, we will make an instance of the
228
+ Animal class but this time we won't travel
229
+ through its discriminator because we passed in
230
+ _visited_composed_classes = (Animal,)
231
+ data ([TranscriptObject]): Collection of data elements.. [optional] # noqa: E501
232
+ meta (TranscriptsMeta): [optional] # noqa: E501
233
+ """
234
+
235
+ _check_type = kwargs.pop('_check_type', True)
236
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
237
+ _path_to_item = kwargs.pop('_path_to_item', ())
238
+ _configuration = kwargs.pop('_configuration', None)
239
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
240
+
241
+ if args:
242
+ raise ApiTypeError(
243
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
244
+ args,
245
+ self.__class__.__name__,
246
+ ),
247
+ path_to_item=_path_to_item,
248
+ valid_classes=(self.__class__,),
249
+ )
250
+
251
+ self._data_store = {}
252
+ self._check_type = _check_type
253
+ self._spec_property_naming = _spec_property_naming
254
+ self._path_to_item = _path_to_item
255
+ self._configuration = _configuration
256
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
+
258
+ for var_name, var_value in kwargs.items():
259
+ if var_name not in self.attribute_map and \
260
+ self._configuration is not None and \
261
+ self._configuration.discard_unknown_keys and \
262
+ self.additional_properties_type is None:
263
+ # discard variable.
264
+ continue
265
+ setattr(self, var_name, var_value)
266
+ if var_name in self.read_only_vars:
267
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
268
+ f"class with read only attributes.")