scc-firewall-manager-sdk 1.15.268__py3-none-any.whl → 1.15.385__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.

Potentially problematic release.


This version of scc-firewall-manager-sdk might be problematic. Click here for more details.

Files changed (22) hide show
  1. scc_firewall_manager_sdk/__init__.py +4 -1
  2. scc_firewall_manager_sdk/api/__init__.py +1 -0
  3. scc_firewall_manager_sdk/api/connectors_api.py +0 -301
  4. scc_firewall_manager_sdk/api/device_health_aggregations_api.py +6 -6
  5. scc_firewall_manager_sdk/api/events_api.py +358 -0
  6. scc_firewall_manager_sdk/api/interface_health_aggregations_api.py +6 -6
  7. scc_firewall_manager_sdk/api/msp_device_upgrades_api.py +247 -0
  8. scc_firewall_manager_sdk/api/msp_tenant_management_api.py +29 -0
  9. scc_firewall_manager_sdk/api_client.py +1 -1
  10. scc_firewall_manager_sdk/configuration.py +1 -1
  11. scc_firewall_manager_sdk/models/__init__.py +2 -0
  12. scc_firewall_manager_sdk/models/device_upgrade_status_dto.py +4 -30
  13. scc_firewall_manager_sdk/models/enable_cd_fmc_for_tenant_request.py +88 -0
  14. scc_firewall_manager_sdk/models/msp_managed_device.py +7 -1
  15. scc_firewall_manager_sdk/models/msp_managed_device_distinct_attribute_values.py +5 -1
  16. scc_firewall_manager_sdk/models/msp_upgrade_run_dto.py +6 -4
  17. scc_firewall_manager_sdk/models/msp_upgrade_runs_attribute_values.py +114 -0
  18. scc_firewall_manager_sdk/models/tenant_settings.py +3 -1
  19. {scc_firewall_manager_sdk-1.15.268.dist-info → scc_firewall_manager_sdk-1.15.385.dist-info}/METADATA +1 -1
  20. {scc_firewall_manager_sdk-1.15.268.dist-info → scc_firewall_manager_sdk-1.15.385.dist-info}/RECORD +22 -19
  21. {scc_firewall_manager_sdk-1.15.268.dist-info → scc_firewall_manager_sdk-1.15.385.dist-info}/WHEEL +0 -0
  22. {scc_firewall_manager_sdk-1.15.268.dist-info → scc_firewall_manager_sdk-1.15.385.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,358 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Cisco Security Cloud Control Firewall Manager API
5
+
6
+ Use the documentation to explore the endpoints Security Cloud Control Firewall Manager has to offer
7
+
8
+ The version of the OpenAPI document: 1.15.0
9
+ Contact: cdo.tac@cisco.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from scc_firewall_manager_sdk.models.page import Page
24
+
25
+ from scc_firewall_manager_sdk.api_client import ApiClient, RequestSerialized
26
+ from scc_firewall_manager_sdk.api_response import ApiResponse
27
+ from scc_firewall_manager_sdk.rest import RESTResponseType
28
+
29
+
30
+ class EventsApi:
31
+ """NOTE: This class is auto generated by OpenAPI Generator
32
+ Ref: https://openapi-generator.tech
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ def __init__(self, api_client=None) -> None:
38
+ if api_client is None:
39
+ api_client = ApiClient.get_default()
40
+ self.api_client = api_client
41
+
42
+
43
+ @validate_call
44
+ def get_search_reports(
45
+ self,
46
+ limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
47
+ offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
48
+ q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
49
+ sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> Page:
63
+ """Get event search reports
64
+
65
+ Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
66
+
67
+ :param limit: The number of results to retrieve.
68
+ :type limit: str
69
+ :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
70
+ :type offset: str
71
+ :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
72
+ :type q: str
73
+ :param sort: The fields to sort results by.
74
+ :type sort: List[str]
75
+ :param _request_timeout: timeout setting for this request. If one
76
+ number provided, it will be total request
77
+ timeout. It can also be a pair (tuple) of
78
+ (connection, read) timeouts.
79
+ :type _request_timeout: int, tuple(int, int), optional
80
+ :param _request_auth: set to override the auth_settings for an a single
81
+ request; this effectively ignores the
82
+ authentication in the spec for a single request.
83
+ :type _request_auth: dict, optional
84
+ :param _content_type: force content-type for the request.
85
+ :type _content_type: str, Optional
86
+ :param _headers: set to override the headers for a single
87
+ request; this effectively ignores the headers
88
+ in the spec for a single request.
89
+ :type _headers: dict, optional
90
+ :param _host_index: set to override the host_index for a single
91
+ request; this effectively ignores the host_index
92
+ in the spec for a single request.
93
+ :type _host_index: int, optional
94
+ :return: Returns the result object.
95
+ """ # noqa: E501
96
+
97
+ _param = self._get_search_reports_serialize(
98
+ limit=limit,
99
+ offset=offset,
100
+ q=q,
101
+ sort=sort,
102
+ _request_auth=_request_auth,
103
+ _content_type=_content_type,
104
+ _headers=_headers,
105
+ _host_index=_host_index
106
+ )
107
+
108
+ _response_types_map: Dict[str, Optional[str]] = {
109
+ '200': "Page",
110
+ '401': "AuthenticationError",
111
+ '500': "CommonApiError",
112
+ }
113
+ response_data = self.api_client.call_api(
114
+ *_param,
115
+ _request_timeout=_request_timeout
116
+ )
117
+ response_data.read()
118
+ return self.api_client.response_deserialize(
119
+ response_data=response_data,
120
+ response_types_map=_response_types_map,
121
+ ).data
122
+
123
+
124
+ @validate_call
125
+ def get_search_reports_with_http_info(
126
+ self,
127
+ limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
128
+ offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
129
+ q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
130
+ sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
131
+ _request_timeout: Union[
132
+ None,
133
+ Annotated[StrictFloat, Field(gt=0)],
134
+ Tuple[
135
+ Annotated[StrictFloat, Field(gt=0)],
136
+ Annotated[StrictFloat, Field(gt=0)]
137
+ ]
138
+ ] = None,
139
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
140
+ _content_type: Optional[StrictStr] = None,
141
+ _headers: Optional[Dict[StrictStr, Any]] = None,
142
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
143
+ ) -> ApiResponse[Page]:
144
+ """Get event search reports
145
+
146
+ Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
147
+
148
+ :param limit: The number of results to retrieve.
149
+ :type limit: str
150
+ :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
151
+ :type offset: str
152
+ :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
153
+ :type q: str
154
+ :param sort: The fields to sort results by.
155
+ :type sort: List[str]
156
+ :param _request_timeout: timeout setting for this request. If one
157
+ number provided, it will be total request
158
+ timeout. It can also be a pair (tuple) of
159
+ (connection, read) timeouts.
160
+ :type _request_timeout: int, tuple(int, int), optional
161
+ :param _request_auth: set to override the auth_settings for an a single
162
+ request; this effectively ignores the
163
+ authentication in the spec for a single request.
164
+ :type _request_auth: dict, optional
165
+ :param _content_type: force content-type for the request.
166
+ :type _content_type: str, Optional
167
+ :param _headers: set to override the headers for a single
168
+ request; this effectively ignores the headers
169
+ in the spec for a single request.
170
+ :type _headers: dict, optional
171
+ :param _host_index: set to override the host_index for a single
172
+ request; this effectively ignores the host_index
173
+ in the spec for a single request.
174
+ :type _host_index: int, optional
175
+ :return: Returns the result object.
176
+ """ # noqa: E501
177
+
178
+ _param = self._get_search_reports_serialize(
179
+ limit=limit,
180
+ offset=offset,
181
+ q=q,
182
+ sort=sort,
183
+ _request_auth=_request_auth,
184
+ _content_type=_content_type,
185
+ _headers=_headers,
186
+ _host_index=_host_index
187
+ )
188
+
189
+ _response_types_map: Dict[str, Optional[str]] = {
190
+ '200': "Page",
191
+ '401': "AuthenticationError",
192
+ '500': "CommonApiError",
193
+ }
194
+ response_data = self.api_client.call_api(
195
+ *_param,
196
+ _request_timeout=_request_timeout
197
+ )
198
+ response_data.read()
199
+ return self.api_client.response_deserialize(
200
+ response_data=response_data,
201
+ response_types_map=_response_types_map,
202
+ )
203
+
204
+
205
+ @validate_call
206
+ def get_search_reports_without_preload_content(
207
+ self,
208
+ limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The number of results to retrieve.")] = None,
209
+ offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.")] = None,
210
+ q: Annotated[Optional[StrictStr], Field(description="The query to execute. Use the Lucene Query Syntax to construct your query.")] = None,
211
+ sort: Annotated[Optional[List[StrictStr]], Field(description="The fields to sort results by.")] = None,
212
+ _request_timeout: Union[
213
+ None,
214
+ Annotated[StrictFloat, Field(gt=0)],
215
+ Tuple[
216
+ Annotated[StrictFloat, Field(gt=0)],
217
+ Annotated[StrictFloat, Field(gt=0)]
218
+ ]
219
+ ] = None,
220
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
221
+ _content_type: Optional[StrictStr] = None,
222
+ _headers: Optional[Dict[StrictStr, Any]] = None,
223
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
224
+ ) -> RESTResponseType:
225
+ """Get event search reports
226
+
227
+ Get a list of reports containing the results of event log searches executed using the Report feature in the Event Logging page.
228
+
229
+ :param limit: The number of results to retrieve.
230
+ :type limit: str
231
+ :param offset: The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.
232
+ :type offset: str
233
+ :param q: The query to execute. Use the Lucene Query Syntax to construct your query.
234
+ :type q: str
235
+ :param sort: The fields to sort results by.
236
+ :type sort: List[str]
237
+ :param _request_timeout: timeout setting for this request. If one
238
+ number provided, it will be total request
239
+ timeout. It can also be a pair (tuple) of
240
+ (connection, read) timeouts.
241
+ :type _request_timeout: int, tuple(int, int), optional
242
+ :param _request_auth: set to override the auth_settings for an a single
243
+ request; this effectively ignores the
244
+ authentication in the spec for a single request.
245
+ :type _request_auth: dict, optional
246
+ :param _content_type: force content-type for the request.
247
+ :type _content_type: str, Optional
248
+ :param _headers: set to override the headers for a single
249
+ request; this effectively ignores the headers
250
+ in the spec for a single request.
251
+ :type _headers: dict, optional
252
+ :param _host_index: set to override the host_index for a single
253
+ request; this effectively ignores the host_index
254
+ in the spec for a single request.
255
+ :type _host_index: int, optional
256
+ :return: Returns the result object.
257
+ """ # noqa: E501
258
+
259
+ _param = self._get_search_reports_serialize(
260
+ limit=limit,
261
+ offset=offset,
262
+ q=q,
263
+ sort=sort,
264
+ _request_auth=_request_auth,
265
+ _content_type=_content_type,
266
+ _headers=_headers,
267
+ _host_index=_host_index
268
+ )
269
+
270
+ _response_types_map: Dict[str, Optional[str]] = {
271
+ '200': "Page",
272
+ '401': "AuthenticationError",
273
+ '500': "CommonApiError",
274
+ }
275
+ response_data = self.api_client.call_api(
276
+ *_param,
277
+ _request_timeout=_request_timeout
278
+ )
279
+ return response_data.response
280
+
281
+
282
+ def _get_search_reports_serialize(
283
+ self,
284
+ limit,
285
+ offset,
286
+ q,
287
+ sort,
288
+ _request_auth,
289
+ _content_type,
290
+ _headers,
291
+ _host_index,
292
+ ) -> RequestSerialized:
293
+
294
+ _host = None
295
+
296
+ _collection_formats: Dict[str, str] = {
297
+ 'sort': 'multi',
298
+ }
299
+
300
+ _path_params: Dict[str, str] = {}
301
+ _query_params: List[Tuple[str, str]] = []
302
+ _header_params: Dict[str, Optional[str]] = _headers or {}
303
+ _form_params: List[Tuple[str, str]] = []
304
+ _files: Dict[str, str] = {}
305
+ _body_params: Optional[bytes] = None
306
+
307
+ # process the path parameters
308
+ # process the query parameters
309
+ if limit is not None:
310
+
311
+ _query_params.append(('limit', limit))
312
+
313
+ if offset is not None:
314
+
315
+ _query_params.append(('offset', offset))
316
+
317
+ if q is not None:
318
+
319
+ _query_params.append(('q', q))
320
+
321
+ if sort is not None:
322
+
323
+ _query_params.append(('sort', sort))
324
+
325
+ # process the header parameters
326
+ # process the form parameters
327
+ # process the body parameter
328
+
329
+
330
+ # set the HTTP header `Accept`
331
+ _header_params['Accept'] = self.api_client.select_header_accept(
332
+ [
333
+ 'application/json'
334
+ ]
335
+ )
336
+
337
+
338
+ # authentication setting
339
+ _auth_settings: List[str] = [
340
+ 'bearerAuth'
341
+ ]
342
+
343
+ return self.api_client.param_serialize(
344
+ method='GET',
345
+ resource_path='/v1/events/reports',
346
+ path_params=_path_params,
347
+ query_params=_query_params,
348
+ header_params=_header_params,
349
+ body=_body_params,
350
+ post_params=_form_params,
351
+ files=_files,
352
+ auth_settings=_auth_settings,
353
+ collection_formats=_collection_formats,
354
+ _host=_host,
355
+ _request_auth=_request_auth
356
+ )
357
+
358
+
@@ -49,7 +49,7 @@ class InterfaceHealthAggregationsApi:
49
49
  threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
50
50
  aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
51
51
  managed_tenant_uid: Annotated[Optional[StrictStr], Field(description="A managed tenant UUID to filter list, if applicable.")] = None,
52
- q: Annotated[Optional[StrictStr], Field(description="Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.")] = None,
52
+ q: Annotated[Optional[StrictStr], Field(description="Lucene-style query filter. Only prefix queries (e.g. field:value*) and wildcard queries (e.g. field:*value or field:*value*) are supported for filtering.")] = None,
53
53
  _request_timeout: Union[
54
54
  None,
55
55
  Annotated[StrictFloat, Field(gt=0)],
@@ -75,7 +75,7 @@ class InterfaceHealthAggregationsApi:
75
75
  :type aggregation_period: str
76
76
  :param managed_tenant_uid: A managed tenant UUID to filter list, if applicable.
77
77
  :type managed_tenant_uid: str
78
- :param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.
78
+ :param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) and wildcard queries (e.g. field:*value or field:*value*) are supported for filtering.
79
79
  :type q: str
80
80
  :param _request_timeout: timeout setting for this request. If one
81
81
  number provided, it will be total request
@@ -137,7 +137,7 @@ class InterfaceHealthAggregationsApi:
137
137
  threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
138
138
  aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
139
139
  managed_tenant_uid: Annotated[Optional[StrictStr], Field(description="A managed tenant UUID to filter list, if applicable.")] = None,
140
- q: Annotated[Optional[StrictStr], Field(description="Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.")] = None,
140
+ q: Annotated[Optional[StrictStr], Field(description="Lucene-style query filter. Only prefix queries (e.g. field:value*) and wildcard queries (e.g. field:*value or field:*value*) are supported for filtering.")] = None,
141
141
  _request_timeout: Union[
142
142
  None,
143
143
  Annotated[StrictFloat, Field(gt=0)],
@@ -163,7 +163,7 @@ class InterfaceHealthAggregationsApi:
163
163
  :type aggregation_period: str
164
164
  :param managed_tenant_uid: A managed tenant UUID to filter list, if applicable.
165
165
  :type managed_tenant_uid: str
166
- :param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.
166
+ :param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) and wildcard queries (e.g. field:*value or field:*value*) are supported for filtering.
167
167
  :type q: str
168
168
  :param _request_timeout: timeout setting for this request. If one
169
169
  number provided, it will be total request
@@ -225,7 +225,7 @@ class InterfaceHealthAggregationsApi:
225
225
  threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
226
226
  aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
227
227
  managed_tenant_uid: Annotated[Optional[StrictStr], Field(description="A managed tenant UUID to filter list, if applicable.")] = None,
228
- q: Annotated[Optional[StrictStr], Field(description="Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.")] = None,
228
+ q: Annotated[Optional[StrictStr], Field(description="Lucene-style query filter. Only prefix queries (e.g. field:value*) and wildcard queries (e.g. field:*value or field:*value*) are supported for filtering.")] = None,
229
229
  _request_timeout: Union[
230
230
  None,
231
231
  Annotated[StrictFloat, Field(gt=0)],
@@ -251,7 +251,7 @@ class InterfaceHealthAggregationsApi:
251
251
  :type aggregation_period: str
252
252
  :param managed_tenant_uid: A managed tenant UUID to filter list, if applicable.
253
253
  :type managed_tenant_uid: str
254
- :param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.
254
+ :param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) and wildcard queries (e.g. field:*value or field:*value*) are supported for filtering.
255
255
  :type q: str
256
256
  :param _request_timeout: timeout setting for this request. If one
257
257
  number provided, it will be total request
@@ -24,6 +24,7 @@ from scc_firewall_manager_sdk.models.cdo_transaction import CdoTransaction
24
24
  from scc_firewall_manager_sdk.models.msp_calculate_compatible_upgrade_versions_input import MspCalculateCompatibleUpgradeVersionsInput
25
25
  from scc_firewall_manager_sdk.models.msp_upgrade_run_dto import MspUpgradeRunDto
26
26
  from scc_firewall_manager_sdk.models.msp_upgrade_run_dto_page import MspUpgradeRunDtoPage
27
+ from scc_firewall_manager_sdk.models.msp_upgrade_runs_attribute_values import MspUpgradeRunsAttributeValues
27
28
  from scc_firewall_manager_sdk.models.upgrade_compatibility_info_dto import UpgradeCompatibilityInfoDto
28
29
 
29
30
  from scc_firewall_manager_sdk.api_client import ApiClient, RequestSerialized
@@ -1446,6 +1447,252 @@ class MSPDeviceUpgradesApi:
1446
1447
 
1447
1448
 
1448
1449
 
1450
+ @validate_call
1451
+ def get_msp_upgrade_runs_attribute_values(
1452
+ self,
1453
+ _request_timeout: Union[
1454
+ None,
1455
+ Annotated[StrictFloat, Field(gt=0)],
1456
+ Tuple[
1457
+ Annotated[StrictFloat, Field(gt=0)],
1458
+ Annotated[StrictFloat, Field(gt=0)]
1459
+ ]
1460
+ ] = None,
1461
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1462
+ _content_type: Optional[StrictStr] = None,
1463
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1464
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1465
+ ) -> MspUpgradeRunsAttributeValues:
1466
+ """Get distinct attribute values for MSP upgrade runs
1467
+
1468
+ Get distinct attribute values for fields in the MSP upgrade runs.
1469
+
1470
+ :param _request_timeout: timeout setting for this request. If one
1471
+ number provided, it will be total request
1472
+ timeout. It can also be a pair (tuple) of
1473
+ (connection, read) timeouts.
1474
+ :type _request_timeout: int, tuple(int, int), optional
1475
+ :param _request_auth: set to override the auth_settings for an a single
1476
+ request; this effectively ignores the
1477
+ authentication in the spec for a single request.
1478
+ :type _request_auth: dict, optional
1479
+ :param _content_type: force content-type for the request.
1480
+ :type _content_type: str, Optional
1481
+ :param _headers: set to override the headers for a single
1482
+ request; this effectively ignores the headers
1483
+ in the spec for a single request.
1484
+ :type _headers: dict, optional
1485
+ :param _host_index: set to override the host_index for a single
1486
+ request; this effectively ignores the host_index
1487
+ in the spec for a single request.
1488
+ :type _host_index: int, optional
1489
+ :return: Returns the result object.
1490
+ """ # noqa: E501
1491
+
1492
+ _param = self._get_msp_upgrade_runs_attribute_values_serialize(
1493
+ _request_auth=_request_auth,
1494
+ _content_type=_content_type,
1495
+ _headers=_headers,
1496
+ _host_index=_host_index
1497
+ )
1498
+
1499
+ _response_types_map: Dict[str, Optional[str]] = {
1500
+ '200': "MspUpgradeRunsAttributeValues",
1501
+ '500': "CommonApiError",
1502
+ }
1503
+ response_data = self.api_client.call_api(
1504
+ *_param,
1505
+ _request_timeout=_request_timeout
1506
+ )
1507
+ response_data.read()
1508
+ return self.api_client.response_deserialize(
1509
+ response_data=response_data,
1510
+ response_types_map=_response_types_map,
1511
+ ).data
1512
+
1513
+
1514
+ @validate_call
1515
+ def get_msp_upgrade_runs_attribute_values_with_http_info(
1516
+ self,
1517
+ _request_timeout: Union[
1518
+ None,
1519
+ Annotated[StrictFloat, Field(gt=0)],
1520
+ Tuple[
1521
+ Annotated[StrictFloat, Field(gt=0)],
1522
+ Annotated[StrictFloat, Field(gt=0)]
1523
+ ]
1524
+ ] = None,
1525
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1526
+ _content_type: Optional[StrictStr] = None,
1527
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1528
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1529
+ ) -> ApiResponse[MspUpgradeRunsAttributeValues]:
1530
+ """Get distinct attribute values for MSP upgrade runs
1531
+
1532
+ Get distinct attribute values for fields in the MSP upgrade runs.
1533
+
1534
+ :param _request_timeout: timeout setting for this request. If one
1535
+ number provided, it will be total request
1536
+ timeout. It can also be a pair (tuple) of
1537
+ (connection, read) timeouts.
1538
+ :type _request_timeout: int, tuple(int, int), optional
1539
+ :param _request_auth: set to override the auth_settings for an a single
1540
+ request; this effectively ignores the
1541
+ authentication in the spec for a single request.
1542
+ :type _request_auth: dict, optional
1543
+ :param _content_type: force content-type for the request.
1544
+ :type _content_type: str, Optional
1545
+ :param _headers: set to override the headers for a single
1546
+ request; this effectively ignores the headers
1547
+ in the spec for a single request.
1548
+ :type _headers: dict, optional
1549
+ :param _host_index: set to override the host_index for a single
1550
+ request; this effectively ignores the host_index
1551
+ in the spec for a single request.
1552
+ :type _host_index: int, optional
1553
+ :return: Returns the result object.
1554
+ """ # noqa: E501
1555
+
1556
+ _param = self._get_msp_upgrade_runs_attribute_values_serialize(
1557
+ _request_auth=_request_auth,
1558
+ _content_type=_content_type,
1559
+ _headers=_headers,
1560
+ _host_index=_host_index
1561
+ )
1562
+
1563
+ _response_types_map: Dict[str, Optional[str]] = {
1564
+ '200': "MspUpgradeRunsAttributeValues",
1565
+ '500': "CommonApiError",
1566
+ }
1567
+ response_data = self.api_client.call_api(
1568
+ *_param,
1569
+ _request_timeout=_request_timeout
1570
+ )
1571
+ response_data.read()
1572
+ return self.api_client.response_deserialize(
1573
+ response_data=response_data,
1574
+ response_types_map=_response_types_map,
1575
+ )
1576
+
1577
+
1578
+ @validate_call
1579
+ def get_msp_upgrade_runs_attribute_values_without_preload_content(
1580
+ self,
1581
+ _request_timeout: Union[
1582
+ None,
1583
+ Annotated[StrictFloat, Field(gt=0)],
1584
+ Tuple[
1585
+ Annotated[StrictFloat, Field(gt=0)],
1586
+ Annotated[StrictFloat, Field(gt=0)]
1587
+ ]
1588
+ ] = None,
1589
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1590
+ _content_type: Optional[StrictStr] = None,
1591
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1592
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1593
+ ) -> RESTResponseType:
1594
+ """Get distinct attribute values for MSP upgrade runs
1595
+
1596
+ Get distinct attribute values for fields in the MSP upgrade runs.
1597
+
1598
+ :param _request_timeout: timeout setting for this request. If one
1599
+ number provided, it will be total request
1600
+ timeout. It can also be a pair (tuple) of
1601
+ (connection, read) timeouts.
1602
+ :type _request_timeout: int, tuple(int, int), optional
1603
+ :param _request_auth: set to override the auth_settings for an a single
1604
+ request; this effectively ignores the
1605
+ authentication in the spec for a single request.
1606
+ :type _request_auth: dict, optional
1607
+ :param _content_type: force content-type for the request.
1608
+ :type _content_type: str, Optional
1609
+ :param _headers: set to override the headers for a single
1610
+ request; this effectively ignores the headers
1611
+ in the spec for a single request.
1612
+ :type _headers: dict, optional
1613
+ :param _host_index: set to override the host_index for a single
1614
+ request; this effectively ignores the host_index
1615
+ in the spec for a single request.
1616
+ :type _host_index: int, optional
1617
+ :return: Returns the result object.
1618
+ """ # noqa: E501
1619
+
1620
+ _param = self._get_msp_upgrade_runs_attribute_values_serialize(
1621
+ _request_auth=_request_auth,
1622
+ _content_type=_content_type,
1623
+ _headers=_headers,
1624
+ _host_index=_host_index
1625
+ )
1626
+
1627
+ _response_types_map: Dict[str, Optional[str]] = {
1628
+ '200': "MspUpgradeRunsAttributeValues",
1629
+ '500': "CommonApiError",
1630
+ }
1631
+ response_data = self.api_client.call_api(
1632
+ *_param,
1633
+ _request_timeout=_request_timeout
1634
+ )
1635
+ return response_data.response
1636
+
1637
+
1638
+ def _get_msp_upgrade_runs_attribute_values_serialize(
1639
+ self,
1640
+ _request_auth,
1641
+ _content_type,
1642
+ _headers,
1643
+ _host_index,
1644
+ ) -> RequestSerialized:
1645
+
1646
+ _host = None
1647
+
1648
+ _collection_formats: Dict[str, str] = {
1649
+ }
1650
+
1651
+ _path_params: Dict[str, str] = {}
1652
+ _query_params: List[Tuple[str, str]] = []
1653
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1654
+ _form_params: List[Tuple[str, str]] = []
1655
+ _files: Dict[str, str] = {}
1656
+ _body_params: Optional[bytes] = None
1657
+
1658
+ # process the path parameters
1659
+ # process the query parameters
1660
+ # process the header parameters
1661
+ # process the form parameters
1662
+ # process the body parameter
1663
+
1664
+
1665
+ # set the HTTP header `Accept`
1666
+ _header_params['Accept'] = self.api_client.select_header_accept(
1667
+ [
1668
+ 'application/json'
1669
+ ]
1670
+ )
1671
+
1672
+
1673
+ # authentication setting
1674
+ _auth_settings: List[str] = [
1675
+ 'bearerAuth'
1676
+ ]
1677
+
1678
+ return self.api_client.param_serialize(
1679
+ method='GET',
1680
+ resource_path='/v1/msp/inventory/devices/ftds/upgrades/runs/attribute-values',
1681
+ path_params=_path_params,
1682
+ query_params=_query_params,
1683
+ header_params=_header_params,
1684
+ body=_body_params,
1685
+ post_params=_form_params,
1686
+ files=_files,
1687
+ auth_settings=_auth_settings,
1688
+ collection_formats=_collection_formats,
1689
+ _host=_host,
1690
+ _request_auth=_request_auth
1691
+ )
1692
+
1693
+
1694
+
1695
+
1449
1696
  @validate_call
1450
1697
  def upgrade_msp_managed_ftd_devices(
1451
1698
  self,