ultracart-rest-sdk 4.0.143__py3-none-any.whl → 4.0.144__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.
ultracart/__init__.py CHANGED
@@ -11,7 +11,7 @@
11
11
  """
12
12
 
13
13
 
14
- __version__ = "4.0.143"
14
+ __version__ = "4.0.144"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
ultracart/api_client.py CHANGED
@@ -77,7 +77,7 @@ class ApiClient(object):
77
77
  self.default_headers[header_name] = header_value
78
78
  self.cookie = cookie
79
79
  # Set default User-Agent.
80
- self.user_agent = 'OpenAPI-Generator/4.0.143/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.0.144/python'
81
81
 
82
82
  def __enter__(self):
83
83
  return self
@@ -422,7 +422,7 @@ conf = ultracart.Configuration(
422
422
  "OS: {env}\n"\
423
423
  "Python Version: {pyversion}\n"\
424
424
  "Version of the API: 2.0.0\n"\
425
- "SDK Package Version: 4.0.143".\
425
+ "SDK Package Version: 4.0.144".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -60,6 +60,11 @@ class Experiment(ModelNormal):
60
60
  """
61
61
 
62
62
  allowed_values = {
63
+ ('openai_element_type',): {
64
+ 'HEADLINE': "headline",
65
+ 'TEXT': "text",
66
+ 'TEXTBLOCK': "textblock",
67
+ },
63
68
  ('status',): {
64
69
  'RUNNING': "Running",
65
70
  'ENDED': "Ended",
@@ -103,7 +108,12 @@ class Experiment(ModelNormal):
103
108
  'notes': (str,), # noqa: E501
104
109
  'objective': (str,), # noqa: E501
105
110
  'objective_parameter': (str,), # noqa: E501
111
+ 'openai_current_iteration': (int,), # noqa: E501
112
+ 'openai_element_type': (str,), # noqa: E501
113
+ 'openai_model': (str,), # noqa: E501
114
+ 'openai_total_iterations': (int,), # noqa: E501
106
115
  'optimization_type': (str,), # noqa: E501
116
+ 'p_value': (float,), # noqa: E501
107
117
  'session_count': (int,), # noqa: E501
108
118
  'start_dts': (str,), # noqa: E501
109
119
  'status': (str,), # noqa: E501
@@ -129,7 +139,12 @@ class Experiment(ModelNormal):
129
139
  'notes': 'notes', # noqa: E501
130
140
  'objective': 'objective', # noqa: E501
131
141
  'objective_parameter': 'objective_parameter', # noqa: E501
142
+ 'openai_current_iteration': 'openai_current_iteration', # noqa: E501
143
+ 'openai_element_type': 'openai_element_type', # noqa: E501
144
+ 'openai_model': 'openai_model', # noqa: E501
145
+ 'openai_total_iterations': 'openai_total_iterations', # noqa: E501
132
146
  'optimization_type': 'optimization_type', # noqa: E501
147
+ 'p_value': 'p_value', # noqa: E501
133
148
  'session_count': 'session_count', # noqa: E501
134
149
  'start_dts': 'start_dts', # noqa: E501
135
150
  'status': 'status', # noqa: E501
@@ -190,7 +205,12 @@ class Experiment(ModelNormal):
190
205
  notes (str): Notes about the experiment. [optional] # noqa: E501
191
206
  objective (str): Objective that is being optimized. [optional] # noqa: E501
192
207
  objective_parameter (str): Objective parameter (such as event name) that is being optimized. [optional] # noqa: E501
208
+ openai_current_iteration (int): The current iteration of the OpenAI related experiment. [optional] # noqa: E501
209
+ openai_element_type (str): The type of OpenAI element being experimented on. [optional] # noqa: E501
210
+ openai_model (str): The type of OpenAI model used. [optional] # noqa: E501
211
+ openai_total_iterations (int): The total number of iterations to perform on the experiment. [optional] # noqa: E501
193
212
  optimization_type (str): Type of optimization. [optional] # noqa: E501
213
+ p_value (float): Statistics p-value for the experiment. [optional] # noqa: E501
194
214
  session_count (int): Total number of sessions in the experiment. [optional] # noqa: E501
195
215
  start_dts (str): Start date/time. [optional] # noqa: E501
196
216
  status (str): Status of the experiment. [optional] # noqa: E501
@@ -293,7 +313,12 @@ class Experiment(ModelNormal):
293
313
  notes (str): Notes about the experiment. [optional] # noqa: E501
294
314
  objective (str): Objective that is being optimized. [optional] # noqa: E501
295
315
  objective_parameter (str): Objective parameter (such as event name) that is being optimized. [optional] # noqa: E501
316
+ openai_current_iteration (int): The current iteration of the OpenAI related experiment. [optional] # noqa: E501
317
+ openai_element_type (str): The type of OpenAI element being experimented on. [optional] # noqa: E501
318
+ openai_model (str): The type of OpenAI model used. [optional] # noqa: E501
319
+ openai_total_iterations (int): The total number of iterations to perform on the experiment. [optional] # noqa: E501
296
320
  optimization_type (str): Type of optimization. [optional] # noqa: E501
321
+ p_value (float): Statistics p-value for the experiment. [optional] # noqa: E501
297
322
  session_count (int): Total number of sessions in the experiment. [optional] # noqa: E501
298
323
  start_dts (str): Start date/time. [optional] # noqa: E501
299
324
  status (str): Status of the experiment. [optional] # noqa: E501
@@ -31,8 +31,8 @@ from ultracart.exceptions import ApiAttributeError
31
31
 
32
32
 
33
33
  def lazy_import():
34
- from ultracart.model.report_data_set_summary import ReportDataSetSummary
35
- globals()['ReportDataSetSummary'] = ReportDataSetSummary
34
+ from ultracart.model.report_data_set import ReportDataSet
35
+ globals()['ReportDataSet'] = ReportDataSet
36
36
 
37
37
 
38
38
  class ReportWebsocketEvent(ModelNormal):
@@ -93,7 +93,7 @@ class ReportWebsocketEvent(ModelNormal):
93
93
  lazy_import()
94
94
  return {
95
95
  'event_type': (str,), # noqa: E501
96
- 'query_completion': (ReportDataSetSummary,), # noqa: E501
96
+ 'query_completion': (ReportDataSet,), # noqa: E501
97
97
  }
98
98
 
99
99
  @cached_property
@@ -148,7 +148,7 @@ class ReportWebsocketEvent(ModelNormal):
148
148
  through its discriminator because we passed in
149
149
  _visited_composed_classes = (Animal,)
150
150
  event_type (str): Event type. [optional] # noqa: E501
151
- query_completion (ReportDataSetSummary): [optional] # noqa: E501
151
+ query_completion (ReportDataSet): [optional] # noqa: E501
152
152
  """
153
153
 
154
154
  _check_type = kwargs.pop('_check_type', True)
@@ -235,7 +235,7 @@ class ReportWebsocketEvent(ModelNormal):
235
235
  through its discriminator because we passed in
236
236
  _visited_composed_classes = (Animal,)
237
237
  event_type (str): Event type. [optional] # noqa: E501
238
- query_completion (ReportDataSetSummary): [optional] # noqa: E501
238
+ query_completion (ReportDataSet): [optional] # noqa: E501
239
239
  """
240
240
 
241
241
  _check_type = kwargs.pop('_check_type', True)
@@ -643,7 +643,6 @@ from ultracart.model.report_data_set_query import ReportDataSetQuery
643
643
  from ultracart.model.report_data_set_response import ReportDataSetResponse
644
644
  from ultracart.model.report_data_set_row import ReportDataSetRow
645
645
  from ultracart.model.report_data_set_schema import ReportDataSetSchema
646
- from ultracart.model.report_data_set_summary import ReportDataSetSummary
647
646
  from ultracart.model.report_data_source import ReportDataSource
648
647
  from ultracart.model.report_data_source_schema import ReportDataSourceSchema
649
648
  from ultracart.model.report_execute_queries_request import ReportExecuteQueriesRequest
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.0.143
3
+ Version: 4.0.144
4
4
  Summary: UltraCart Rest API V2
5
5
  Home-page: UNKNOWN
6
6
  Author: UltraCart Support
@@ -1,6 +1,6 @@
1
- ultracart/__init__.py,sha256=Y4j4q36dllBgiaVs5NQxXDlXfIVMBwikJDuMOcikMb4,699
2
- ultracart/api_client.py,sha256=P7C7FpQJxZ8Za0GFFdAJ-0SpP--6JCgyMANrB9JezvI,39072
3
- ultracart/configuration.py,sha256=AUmlDEyrBlFgT38NJwQBzchfozS_nSmIFA7uUR1KciU,17842
1
+ ultracart/__init__.py,sha256=CWmPtJTKVHxpSppBVkkTNyy6vMONG_lX8ZkRLPPciJo,699
2
+ ultracart/api_client.py,sha256=EHB4XaCXHLCvz7YmSoxhkc9pWIpPbyN6zkCH3wft1As,39072
3
+ ultracart/configuration.py,sha256=wXJa426g1pjw07iaZQYF2cq_V_mo7cq1ETL9iMQ0yh0,17842
4
4
  ultracart/exceptions.py,sha256=dwRtrWJsW4H_jKk3B1w2chykcQ7E2FSlhftUByD9e9E,5069
5
5
  ultracart/model_utils.py,sha256=X_RAfA-TlvDKBICnIve7PPVDM34Nl58aV1bqCrVmoTo,82574
6
6
  ultracart/rest.py,sha256=2lM6zwrjGp_SjkddamoKdpk3jFuc8Ow7fKIXRdKNp24,14268
@@ -432,7 +432,7 @@ ultracart/model/email_verify_token_validate_response.py,sha256=0zAGF_ktn7uf2UnyT
432
432
  ultracart/model/email_webhook_editor_values_response.py,sha256=cJxLlTI3t0svVGfBj0khqeDa5q1TQLY1x7fquXSyjmk,13258
433
433
  ultracart/model/error.py,sha256=JvZe3JKS65yFtuqeXf1mQDQfj6q74ZdH8m9Dob3ueS4,12757
434
434
  ultracart/model/error_response.py,sha256=XCD7htmB2tgc5Oc_YlJfeUPJQKoxNryHNjJXRxrk5iI,12455
435
- ultracart/model/experiment.py,sha256=pB0d95ol9uWexkRu55Hyx3rdTwj5jQnz8wSkToR7RBM,16598
435
+ ultracart/model/experiment.py,sha256=AIPQHp6Z8B5IAhtwEW9A9_Z25JvBWsoGRUah2z85ryo,18442
436
436
  ultracart/model/experiment_response.py,sha256=JIIlKKOZrudqE4AqmQwtgpfkd84HipBuqGPDDZsmKVE,12794
437
437
  ultracart/model/experiment_variation.py,sha256=DoXLuHC9hSWid3ww30wyiWSjW0Tl-Pz1CZsdpsNZSdc,18996
438
438
  ultracart/model/experiment_variation_stat.py,sha256=r-mbFTwTNgc2EFxqL6zU_4-qAkt6IJs5Tp6-N_ETATQ,15007
@@ -661,7 +661,6 @@ ultracart/model/report_data_set_query.py,sha256=CnrqntENk2h6jLBqZCzw3gpMFNCDeTlM
661
661
  ultracart/model/report_data_set_response.py,sha256=r5I7k-gJFHf4o8l0NghsKTsIYAF_gsPVYn4NyhSKYto,12816
662
662
  ultracart/model/report_data_set_row.py,sha256=ORs_16AquZ1vmmV6kDFeBZwSTQSJIBZ9P3L5AelC1e0,11664
663
663
  ultracart/model/report_data_set_schema.py,sha256=jX-oQgzwe1zHdOgdcazVyOQhRm_mo0WlTGzOUXkEZp4,12014
664
- ultracart/model/report_data_set_summary.py,sha256=EJXWH8sQjfnwpHzSHhr6FjaIIXB7NDZWyJmYmmmDXkw,13858
665
664
  ultracart/model/report_data_source.py,sha256=3qyvTJTnWHJ6Irxj7TzfW71XS3kG5DQ6M3mvdtK3a9M,12967
666
665
  ultracart/model/report_data_source_schema.py,sha256=XYbYOhwr1Hp9AFSs566BDxZOXPE-ujwiBHwCnKsRsdw,12527
667
666
  ultracart/model/report_execute_queries_request.py,sha256=orZoDqd-kW8h5NjN2kKy1k09INdPFL0dxDEHAkT-7BM,13823
@@ -672,7 +671,7 @@ ultracart/model/report_page_visualization.py,sha256=enrmsGx2SW-BVJ8J3IQGfI1DFV29
672
671
  ultracart/model/report_page_visualization_dimension.py,sha256=GzhG4aZki_nvJerNWhxaTJQhprRELRLxOnUHPSkTkrc,13307
673
672
  ultracart/model/report_page_visualization_metric.py,sha256=nmULuHOVSmLzVHiam5ygONsnvowC2SYBcncxZxpunUk,12445
674
673
  ultracart/model/report_response.py,sha256=d36SynDnxPH02yWtDlOIgZYM4RFKAmWl-8RdagpIbuM,12734
675
- ultracart/model/report_websocket_event.py,sha256=I3uj5wKZCurfXiZ61W6XVImJ_kcsHu4wRsWqnFbNsvI,12072
674
+ ultracart/model/report_websocket_event.py,sha256=CLbIDLGtFZkETxhMhCvhJmkwmeRGWuvRnuDFeKenukQ,12022
676
675
  ultracart/model/reports_response.py,sha256=XQ54OPiUh2d7PVCoQCibW-8rgyJoGYlKJbWKu_zBW8M,12748
677
676
  ultracart/model/response_metadata.py,sha256=2bjaBqN1gQHEq-Gn19LCjDo3uNSmfeOlO5yJ69A8v-4,11847
678
677
  ultracart/model/result_set.py,sha256=TUbiU1FdLHe7lHeVMaZjzeqwgOiwb0NRSOLSMSqhwwI,13143
@@ -793,9 +792,9 @@ ultracart/model/webhook_sample_request.py,sha256=Qvt7FJPvECdYKv5MZztkSSmDxPDTSyt
793
792
  ultracart/model/webhook_sample_request_response.py,sha256=Ni-3WiNhVLt9a7yX_MNdD16NsRehVpJWiTdN_myLRk4,12956
794
793
  ultracart/model/webhooks_response.py,sha256=RVGQ76kc7X0XY5iJdLgnwVr5V50uCoYCGaRtc03FKc4,12763
795
794
  ultracart/model/weight.py,sha256=LTxs6KqiARegRkcShAviWKILAMAdw9KXwI-QgBtpoM0,11726
796
- ultracart/models/__init__.py,sha256=u86v56KbJ9Fa89E8NXtSEWiut9VelEPtmzehL-RA1JY,58258
797
- ultracart_rest_sdk-4.0.143.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
798
- ultracart_rest_sdk-4.0.143.dist-info/METADATA,sha256=QwPo8FFa9Qj0VWvdrLCHEJ7kFWM19os1TdTEI_HpK28,403
799
- ultracart_rest_sdk-4.0.143.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
800
- ultracart_rest_sdk-4.0.143.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
801
- ultracart_rest_sdk-4.0.143.dist-info/RECORD,,
795
+ ultracart/models/__init__.py,sha256=pVJjSpmZMnbR4ei4Gdk6VQ1StQqDa7y0p9rZuH4KrlY,58185
796
+ ultracart_rest_sdk-4.0.144.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
797
+ ultracart_rest_sdk-4.0.144.dist-info/METADATA,sha256=qXDz0_WniQht7yCakF4ezavcH0KjoLbn_Es2Kub8F7M,403
798
+ ultracart_rest_sdk-4.0.144.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
799
+ ultracart_rest_sdk-4.0.144.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
800
+ ultracart_rest_sdk-4.0.144.dist-info/RECORD,,
@@ -1,299 +0,0 @@
1
- """
2
- UltraCart Rest API V2
3
-
4
- UltraCart REST API Version 2 # noqa: E501
5
-
6
- The version of the OpenAPI document: 2.0.0
7
- Contact: support@ultracart.com
8
- Generated by: https://openapi-generator.tech
9
- """
10
-
11
-
12
- import re # noqa: F401
13
- import sys # noqa: F401
14
-
15
- from ultracart.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 ultracart.exceptions import ApiAttributeError
31
-
32
-
33
- def lazy_import():
34
- from ultracart.model.report_data_set_schema import ReportDataSetSchema
35
- globals()['ReportDataSetSchema'] = ReportDataSetSchema
36
-
37
-
38
- class ReportDataSetSummary(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
- ('for_object_type',): {
64
- 'SCHEMA': "schema",
65
- 'FILTER': "filter",
66
- 'VISUALIZATION': "visualization",
67
- },
68
- }
69
-
70
- validations = {
71
- }
72
-
73
- @cached_property
74
- def additional_properties_type():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
- """
79
- lazy_import()
80
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
81
-
82
- _nullable = False
83
-
84
- @cached_property
85
- def openapi_types():
86
- """
87
- This must be a method because a model may have properties that are
88
- of type self, this must run after the class is loaded
89
-
90
- Returns
91
- openapi_types (dict): The key is attribute name
92
- and the value is attribute type.
93
- """
94
- lazy_import()
95
- return {
96
- 'data_set_uuid': (str,), # noqa: E501
97
- 'error_message': (str,), # noqa: E501
98
- 'for_object_id': (str,), # noqa: E501
99
- 'for_object_type': (str,), # noqa: E501
100
- 'max_results': (int,), # noqa: E501
101
- 'schema': ([ReportDataSetSchema],), # noqa: E501
102
- 'user_data': (str,), # noqa: E501
103
- }
104
-
105
- @cached_property
106
- def discriminator():
107
- return None
108
-
109
-
110
- attribute_map = {
111
- 'data_set_uuid': 'data_set_uuid', # noqa: E501
112
- 'error_message': 'error_message', # noqa: E501
113
- 'for_object_id': 'for_object_id', # noqa: E501
114
- 'for_object_type': 'for_object_type', # noqa: E501
115
- 'max_results': 'max_results', # noqa: E501
116
- 'schema': 'schema', # noqa: E501
117
- 'user_data': 'user_data', # noqa: E501
118
- }
119
-
120
- read_only_vars = {
121
- }
122
-
123
- _composed_schemas = {}
124
-
125
- @classmethod
126
- @convert_js_args_to_python_args
127
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
128
- """ReportDataSetSummary - a model defined in OpenAPI
129
-
130
- Keyword Args:
131
- _check_type (bool): if True, values for parameters in openapi_types
132
- will be type checked and a TypeError will be
133
- raised if the wrong type is input.
134
- Defaults to True
135
- _path_to_item (tuple/list): This is a list of keys or values to
136
- drill down to the model in received_data
137
- when deserializing a response
138
- _spec_property_naming (bool): True if the variable names in the input data
139
- are serialized names, as specified in the OpenAPI document.
140
- False if the variable names in the input data
141
- are pythonic names, e.g. snake case (default)
142
- _configuration (Configuration): the instance to use when
143
- deserializing a file_type parameter.
144
- If passed, type conversion is attempted
145
- If omitted no type conversion is done.
146
- _visited_composed_classes (tuple): This stores a tuple of
147
- classes that we have traveled through so that
148
- if we see that class again we will not use its
149
- discriminator again.
150
- When traveling through a discriminator, the
151
- composed schema that is
152
- is traveled through is added to this set.
153
- For example if Animal has a discriminator
154
- petType and we pass in "Dog", and the class Dog
155
- allOf includes Animal, we move through Animal
156
- once using the discriminator, and pick Dog.
157
- Then in Dog, we will make an instance of the
158
- Animal class but this time we won't travel
159
- through its discriminator because we passed in
160
- _visited_composed_classes = (Animal,)
161
- data_set_uuid (str): A unique identifier assigned to the data set that is returned.. [optional] # noqa: E501
162
- error_message (str): Error message if the query failed.. [optional] # noqa: E501
163
- for_object_id (str): An identifier that can be used to help match up the returned data set. [optional] # noqa: E501
164
- for_object_type (str): The type of object this data set is for. [optional] # noqa: E501
165
- max_results (int): The total number of results. [optional] # noqa: E501
166
- schema ([ReportDataSetSchema]): The schema associated with the data set.. [optional] # noqa: E501
167
- user_data (str): Any other data that needs to be returned with the response to help the UI. [optional] # noqa: E501
168
- """
169
-
170
- _check_type = kwargs.pop('_check_type', True)
171
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
172
- _path_to_item = kwargs.pop('_path_to_item', ())
173
- _configuration = kwargs.pop('_configuration', None)
174
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
175
-
176
- self = super(OpenApiModel, cls).__new__(cls)
177
-
178
- if args:
179
- for arg in args:
180
- if isinstance(arg, dict):
181
- kwargs.update(arg)
182
- else:
183
- raise ApiTypeError(
184
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
185
- args,
186
- self.__class__.__name__,
187
- ),
188
- path_to_item=_path_to_item,
189
- valid_classes=(self.__class__,),
190
- )
191
-
192
- self._data_store = {}
193
- self._check_type = _check_type
194
- self._spec_property_naming = _spec_property_naming
195
- self._path_to_item = _path_to_item
196
- self._configuration = _configuration
197
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
198
-
199
- for var_name, var_value in kwargs.items():
200
- if var_name not in self.attribute_map and \
201
- self._configuration is not None and \
202
- self._configuration.discard_unknown_keys and \
203
- self.additional_properties_type is None:
204
- # discard variable.
205
- continue
206
- setattr(self, var_name, var_value)
207
- return self
208
-
209
- required_properties = set([
210
- '_data_store',
211
- '_check_type',
212
- '_spec_property_naming',
213
- '_path_to_item',
214
- '_configuration',
215
- '_visited_composed_classes',
216
- ])
217
-
218
- @convert_js_args_to_python_args
219
- def __init__(self, *args, **kwargs): # noqa: E501
220
- """ReportDataSetSummary - a model defined in OpenAPI
221
-
222
- Keyword Args:
223
- _check_type (bool): if True, values for parameters in openapi_types
224
- will be type checked and a TypeError will be
225
- raised if the wrong type is input.
226
- Defaults to True
227
- _path_to_item (tuple/list): This is a list of keys or values to
228
- drill down to the model in received_data
229
- when deserializing a response
230
- _spec_property_naming (bool): True if the variable names in the input data
231
- are serialized names, as specified in the OpenAPI document.
232
- False if the variable names in the input data
233
- are pythonic names, e.g. snake case (default)
234
- _configuration (Configuration): the instance to use when
235
- deserializing a file_type parameter.
236
- If passed, type conversion is attempted
237
- If omitted no type conversion is done.
238
- _visited_composed_classes (tuple): This stores a tuple of
239
- classes that we have traveled through so that
240
- if we see that class again we will not use its
241
- discriminator again.
242
- When traveling through a discriminator, the
243
- composed schema that is
244
- is traveled through is added to this set.
245
- For example if Animal has a discriminator
246
- petType and we pass in "Dog", and the class Dog
247
- allOf includes Animal, we move through Animal
248
- once using the discriminator, and pick Dog.
249
- Then in Dog, we will make an instance of the
250
- Animal class but this time we won't travel
251
- through its discriminator because we passed in
252
- _visited_composed_classes = (Animal,)
253
- data_set_uuid (str): A unique identifier assigned to the data set that is returned.. [optional] # noqa: E501
254
- error_message (str): Error message if the query failed.. [optional] # noqa: E501
255
- for_object_id (str): An identifier that can be used to help match up the returned data set. [optional] # noqa: E501
256
- for_object_type (str): The type of object this data set is for. [optional] # noqa: E501
257
- max_results (int): The total number of results. [optional] # noqa: E501
258
- schema ([ReportDataSetSchema]): The schema associated with the data set.. [optional] # noqa: E501
259
- user_data (str): Any other data that needs to be returned with the response to help the UI. [optional] # noqa: E501
260
- """
261
-
262
- _check_type = kwargs.pop('_check_type', True)
263
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
264
- _path_to_item = kwargs.pop('_path_to_item', ())
265
- _configuration = kwargs.pop('_configuration', None)
266
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
267
-
268
- if args:
269
- for arg in args:
270
- if isinstance(arg, dict):
271
- kwargs.update(arg)
272
- else:
273
- raise ApiTypeError(
274
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
275
- args,
276
- self.__class__.__name__,
277
- ),
278
- path_to_item=_path_to_item,
279
- valid_classes=(self.__class__,),
280
- )
281
-
282
- self._data_store = {}
283
- self._check_type = _check_type
284
- self._spec_property_naming = _spec_property_naming
285
- self._path_to_item = _path_to_item
286
- self._configuration = _configuration
287
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
288
-
289
- for var_name, var_value in kwargs.items():
290
- if var_name not in self.attribute_map and \
291
- self._configuration is not None and \
292
- self._configuration.discard_unknown_keys and \
293
- self.additional_properties_type is None:
294
- # discard variable.
295
- continue
296
- setattr(self, var_name, var_value)
297
- if var_name in self.read_only_vars:
298
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
299
- f"class with read only attributes.")