scc-firewall-manager-sdk 1.15.209__py3-none-any.whl → 1.15.210__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.
- scc_firewall_manager_sdk/__init__.py +1 -1
- scc_firewall_manager_sdk/api/device_health_aggregations_api.py +13 -13
- scc_firewall_manager_sdk/api/interface_health_aggregations_api.py +344 -0
- scc_firewall_manager_sdk/api_client.py +1 -1
- scc_firewall_manager_sdk/configuration.py +1 -1
- scc_firewall_manager_sdk/models/metric_aggregation_list_item.py +8 -4
- {scc_firewall_manager_sdk-1.15.209.dist-info → scc_firewall_manager_sdk-1.15.210.dist-info}/METADATA +1 -1
- {scc_firewall_manager_sdk-1.15.209.dist-info → scc_firewall_manager_sdk-1.15.210.dist-info}/RECORD +10 -10
- {scc_firewall_manager_sdk-1.15.209.dist-info → scc_firewall_manager_sdk-1.15.210.dist-info}/WHEEL +0 -0
- {scc_firewall_manager_sdk-1.15.209.dist-info → scc_firewall_manager_sdk-1.15.210.dist-info}/top_level.txt +0 -0
|
@@ -44,7 +44,7 @@ class DeviceHealthAggregationsApi:
|
|
|
44
44
|
@validate_call
|
|
45
45
|
def get_device_health_metric_aggregation_list(
|
|
46
46
|
self,
|
|
47
|
-
metric: Annotated[StrictStr, Field(description="The metric for the device health aggregation list.")],
|
|
47
|
+
metric: Annotated[StrictStr, Field(description="The metric for the device health aggregation detailed list.")],
|
|
48
48
|
threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
|
|
49
49
|
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
|
|
50
50
|
managed_tenant_uid: Annotated[Optional[StrictStr], Field(description="A managed tenant UUID to filter list, if applicable.")] = None,
|
|
@@ -62,11 +62,11 @@ class DeviceHealthAggregationsApi:
|
|
|
62
62
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
63
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
64
|
) -> MetricAggregationListResponse:
|
|
65
|
-
"""Get device list for aggregations
|
|
65
|
+
"""Get device detailed list for aggregations
|
|
66
66
|
|
|
67
|
-
Retrieve filtered device list corresponding to aggregation metrics.
|
|
67
|
+
Retrieve filtered device detailed list corresponding to aggregation metrics.
|
|
68
68
|
|
|
69
|
-
:param metric: The metric for the device health aggregation list. (required)
|
|
69
|
+
:param metric: The metric for the device health aggregation detailed list. (required)
|
|
70
70
|
:type metric: str
|
|
71
71
|
:param threshold: The metric threshold (e.g. CRITICAL). (required)
|
|
72
72
|
:type threshold: str
|
|
@@ -132,7 +132,7 @@ class DeviceHealthAggregationsApi:
|
|
|
132
132
|
@validate_call
|
|
133
133
|
def get_device_health_metric_aggregation_list_with_http_info(
|
|
134
134
|
self,
|
|
135
|
-
metric: Annotated[StrictStr, Field(description="The metric for the device health aggregation list.")],
|
|
135
|
+
metric: Annotated[StrictStr, Field(description="The metric for the device health aggregation detailed list.")],
|
|
136
136
|
threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
|
|
137
137
|
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
|
|
138
138
|
managed_tenant_uid: Annotated[Optional[StrictStr], Field(description="A managed tenant UUID to filter list, if applicable.")] = None,
|
|
@@ -150,11 +150,11 @@ class DeviceHealthAggregationsApi:
|
|
|
150
150
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
151
151
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
152
152
|
) -> ApiResponse[MetricAggregationListResponse]:
|
|
153
|
-
"""Get device list for aggregations
|
|
153
|
+
"""Get device detailed list for aggregations
|
|
154
154
|
|
|
155
|
-
Retrieve filtered device list corresponding to aggregation metrics.
|
|
155
|
+
Retrieve filtered device detailed list corresponding to aggregation metrics.
|
|
156
156
|
|
|
157
|
-
:param metric: The metric for the device health aggregation list. (required)
|
|
157
|
+
:param metric: The metric for the device health aggregation detailed list. (required)
|
|
158
158
|
:type metric: str
|
|
159
159
|
:param threshold: The metric threshold (e.g. CRITICAL). (required)
|
|
160
160
|
:type threshold: str
|
|
@@ -220,7 +220,7 @@ class DeviceHealthAggregationsApi:
|
|
|
220
220
|
@validate_call
|
|
221
221
|
def get_device_health_metric_aggregation_list_without_preload_content(
|
|
222
222
|
self,
|
|
223
|
-
metric: Annotated[StrictStr, Field(description="The metric for the device health aggregation list.")],
|
|
223
|
+
metric: Annotated[StrictStr, Field(description="The metric for the device health aggregation detailed list.")],
|
|
224
224
|
threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
|
|
225
225
|
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
|
|
226
226
|
managed_tenant_uid: Annotated[Optional[StrictStr], Field(description="A managed tenant UUID to filter list, if applicable.")] = None,
|
|
@@ -238,11 +238,11 @@ class DeviceHealthAggregationsApi:
|
|
|
238
238
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
239
239
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
240
240
|
) -> RESTResponseType:
|
|
241
|
-
"""Get device list for aggregations
|
|
241
|
+
"""Get device detailed list for aggregations
|
|
242
242
|
|
|
243
|
-
Retrieve filtered device list corresponding to aggregation metrics.
|
|
243
|
+
Retrieve filtered device detailed list corresponding to aggregation metrics.
|
|
244
244
|
|
|
245
|
-
:param metric: The metric for the device health aggregation list. (required)
|
|
245
|
+
:param metric: The metric for the device health aggregation detailed list. (required)
|
|
246
246
|
:type metric: str
|
|
247
247
|
:param threshold: The metric threshold (e.g. CRITICAL). (required)
|
|
248
248
|
:type threshold: str
|
|
@@ -368,7 +368,7 @@ class DeviceHealthAggregationsApi:
|
|
|
368
368
|
|
|
369
369
|
return self.api_client.param_serialize(
|
|
370
370
|
method='GET',
|
|
371
|
-
resource_path='/v1/inventory/devices/health/metrics/aggregations/
|
|
371
|
+
resource_path='/v1/inventory/devices/health/metrics/aggregations/details',
|
|
372
372
|
path_params=_path_params,
|
|
373
373
|
query_params=_query_params,
|
|
374
374
|
header_params=_header_params,
|
|
@@ -21,6 +21,7 @@ from pydantic import Field, StrictStr, field_validator
|
|
|
21
21
|
from typing import Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from scc_firewall_manager_sdk.models.interface_metric_error_aggregation_response import InterfaceMetricErrorAggregationResponse
|
|
24
|
+
from scc_firewall_manager_sdk.models.metric_aggregation_list_response import MetricAggregationListResponse
|
|
24
25
|
from scc_firewall_manager_sdk.models.metric_aggregation_response import MetricAggregationResponse
|
|
25
26
|
|
|
26
27
|
from scc_firewall_manager_sdk.api_client import ApiClient, RequestSerialized
|
|
@@ -41,6 +42,349 @@ class InterfaceHealthAggregationsApi:
|
|
|
41
42
|
self.api_client = api_client
|
|
42
43
|
|
|
43
44
|
|
|
45
|
+
@validate_call
|
|
46
|
+
def get_interface_health_metric_aggregation_list(
|
|
47
|
+
self,
|
|
48
|
+
metric: Annotated[StrictStr, Field(description="The metric for the device interface health aggregation detailed list. (e.g. linkStatus,overruns).")],
|
|
49
|
+
threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
|
|
50
|
+
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
|
|
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,
|
|
53
|
+
_request_timeout: Union[
|
|
54
|
+
None,
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Tuple[
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
59
|
+
]
|
|
60
|
+
] = None,
|
|
61
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_content_type: Optional[StrictStr] = None,
|
|
63
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
64
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
65
|
+
) -> MetricAggregationListResponse:
|
|
66
|
+
"""Get device interface detailed list for aggregations
|
|
67
|
+
|
|
68
|
+
Retrieve filtered device interface detailed list corresponding to aggregation metrics.
|
|
69
|
+
|
|
70
|
+
:param metric: The metric for the device interface health aggregation detailed list. (e.g. linkStatus,overruns). (required)
|
|
71
|
+
:type metric: str
|
|
72
|
+
:param threshold: The metric threshold (e.g. CRITICAL). (required)
|
|
73
|
+
:type threshold: str
|
|
74
|
+
:param aggregation_period: The aggregation period of the metrics returned.
|
|
75
|
+
:type aggregation_period: str
|
|
76
|
+
:param managed_tenant_uid: A managed tenant UUID to filter list, if applicable.
|
|
77
|
+
:type managed_tenant_uid: str
|
|
78
|
+
:param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.
|
|
79
|
+
:type q: str
|
|
80
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
81
|
+
number provided, it will be total request
|
|
82
|
+
timeout. It can also be a pair (tuple) of
|
|
83
|
+
(connection, read) timeouts.
|
|
84
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
85
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
86
|
+
request; this effectively ignores the
|
|
87
|
+
authentication in the spec for a single request.
|
|
88
|
+
:type _request_auth: dict, optional
|
|
89
|
+
:param _content_type: force content-type for the request.
|
|
90
|
+
:type _content_type: str, Optional
|
|
91
|
+
:param _headers: set to override the headers for a single
|
|
92
|
+
request; this effectively ignores the headers
|
|
93
|
+
in the spec for a single request.
|
|
94
|
+
:type _headers: dict, optional
|
|
95
|
+
:param _host_index: set to override the host_index for a single
|
|
96
|
+
request; this effectively ignores the host_index
|
|
97
|
+
in the spec for a single request.
|
|
98
|
+
:type _host_index: int, optional
|
|
99
|
+
:return: Returns the result object.
|
|
100
|
+
""" # noqa: E501
|
|
101
|
+
|
|
102
|
+
_param = self._get_interface_health_metric_aggregation_list_serialize(
|
|
103
|
+
metric=metric,
|
|
104
|
+
threshold=threshold,
|
|
105
|
+
aggregation_period=aggregation_period,
|
|
106
|
+
managed_tenant_uid=managed_tenant_uid,
|
|
107
|
+
q=q,
|
|
108
|
+
_request_auth=_request_auth,
|
|
109
|
+
_content_type=_content_type,
|
|
110
|
+
_headers=_headers,
|
|
111
|
+
_host_index=_host_index
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
115
|
+
'200': "MetricAggregationListResponse",
|
|
116
|
+
'400': "CommonApiError",
|
|
117
|
+
'401': "AuthenticationError",
|
|
118
|
+
'403': "CommonApiError",
|
|
119
|
+
'404': "CommonApiError",
|
|
120
|
+
'500': "CommonApiError",
|
|
121
|
+
}
|
|
122
|
+
response_data = self.api_client.call_api(
|
|
123
|
+
*_param,
|
|
124
|
+
_request_timeout=_request_timeout
|
|
125
|
+
)
|
|
126
|
+
response_data.read()
|
|
127
|
+
return self.api_client.response_deserialize(
|
|
128
|
+
response_data=response_data,
|
|
129
|
+
response_types_map=_response_types_map,
|
|
130
|
+
).data
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
@validate_call
|
|
134
|
+
def get_interface_health_metric_aggregation_list_with_http_info(
|
|
135
|
+
self,
|
|
136
|
+
metric: Annotated[StrictStr, Field(description="The metric for the device interface health aggregation detailed list. (e.g. linkStatus,overruns).")],
|
|
137
|
+
threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
|
|
138
|
+
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
|
|
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,
|
|
141
|
+
_request_timeout: Union[
|
|
142
|
+
None,
|
|
143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
144
|
+
Tuple[
|
|
145
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
146
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
147
|
+
]
|
|
148
|
+
] = None,
|
|
149
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
150
|
+
_content_type: Optional[StrictStr] = None,
|
|
151
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
152
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
153
|
+
) -> ApiResponse[MetricAggregationListResponse]:
|
|
154
|
+
"""Get device interface detailed list for aggregations
|
|
155
|
+
|
|
156
|
+
Retrieve filtered device interface detailed list corresponding to aggregation metrics.
|
|
157
|
+
|
|
158
|
+
:param metric: The metric for the device interface health aggregation detailed list. (e.g. linkStatus,overruns). (required)
|
|
159
|
+
:type metric: str
|
|
160
|
+
:param threshold: The metric threshold (e.g. CRITICAL). (required)
|
|
161
|
+
:type threshold: str
|
|
162
|
+
:param aggregation_period: The aggregation period of the metrics returned.
|
|
163
|
+
:type aggregation_period: str
|
|
164
|
+
:param managed_tenant_uid: A managed tenant UUID to filter list, if applicable.
|
|
165
|
+
:type managed_tenant_uid: str
|
|
166
|
+
:param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.
|
|
167
|
+
:type q: str
|
|
168
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
169
|
+
number provided, it will be total request
|
|
170
|
+
timeout. It can also be a pair (tuple) of
|
|
171
|
+
(connection, read) timeouts.
|
|
172
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
173
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
174
|
+
request; this effectively ignores the
|
|
175
|
+
authentication in the spec for a single request.
|
|
176
|
+
:type _request_auth: dict, optional
|
|
177
|
+
:param _content_type: force content-type for the request.
|
|
178
|
+
:type _content_type: str, Optional
|
|
179
|
+
:param _headers: set to override the headers for a single
|
|
180
|
+
request; this effectively ignores the headers
|
|
181
|
+
in the spec for a single request.
|
|
182
|
+
:type _headers: dict, optional
|
|
183
|
+
:param _host_index: set to override the host_index for a single
|
|
184
|
+
request; this effectively ignores the host_index
|
|
185
|
+
in the spec for a single request.
|
|
186
|
+
:type _host_index: int, optional
|
|
187
|
+
:return: Returns the result object.
|
|
188
|
+
""" # noqa: E501
|
|
189
|
+
|
|
190
|
+
_param = self._get_interface_health_metric_aggregation_list_serialize(
|
|
191
|
+
metric=metric,
|
|
192
|
+
threshold=threshold,
|
|
193
|
+
aggregation_period=aggregation_period,
|
|
194
|
+
managed_tenant_uid=managed_tenant_uid,
|
|
195
|
+
q=q,
|
|
196
|
+
_request_auth=_request_auth,
|
|
197
|
+
_content_type=_content_type,
|
|
198
|
+
_headers=_headers,
|
|
199
|
+
_host_index=_host_index
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
203
|
+
'200': "MetricAggregationListResponse",
|
|
204
|
+
'400': "CommonApiError",
|
|
205
|
+
'401': "AuthenticationError",
|
|
206
|
+
'403': "CommonApiError",
|
|
207
|
+
'404': "CommonApiError",
|
|
208
|
+
'500': "CommonApiError",
|
|
209
|
+
}
|
|
210
|
+
response_data = self.api_client.call_api(
|
|
211
|
+
*_param,
|
|
212
|
+
_request_timeout=_request_timeout
|
|
213
|
+
)
|
|
214
|
+
response_data.read()
|
|
215
|
+
return self.api_client.response_deserialize(
|
|
216
|
+
response_data=response_data,
|
|
217
|
+
response_types_map=_response_types_map,
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
@validate_call
|
|
222
|
+
def get_interface_health_metric_aggregation_list_without_preload_content(
|
|
223
|
+
self,
|
|
224
|
+
metric: Annotated[StrictStr, Field(description="The metric for the device interface health aggregation detailed list. (e.g. linkStatus,overruns).")],
|
|
225
|
+
threshold: Annotated[StrictStr, Field(description="The metric threshold (e.g. CRITICAL).")],
|
|
226
|
+
aggregation_period: Annotated[Optional[StrictStr], Field(description="The aggregation period of the metrics returned.")] = None,
|
|
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,
|
|
229
|
+
_request_timeout: Union[
|
|
230
|
+
None,
|
|
231
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
232
|
+
Tuple[
|
|
233
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
234
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
235
|
+
]
|
|
236
|
+
] = None,
|
|
237
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
238
|
+
_content_type: Optional[StrictStr] = None,
|
|
239
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
240
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
241
|
+
) -> RESTResponseType:
|
|
242
|
+
"""Get device interface detailed list for aggregations
|
|
243
|
+
|
|
244
|
+
Retrieve filtered device interface detailed list corresponding to aggregation metrics.
|
|
245
|
+
|
|
246
|
+
:param metric: The metric for the device interface health aggregation detailed list. (e.g. linkStatus,overruns). (required)
|
|
247
|
+
:type metric: str
|
|
248
|
+
:param threshold: The metric threshold (e.g. CRITICAL). (required)
|
|
249
|
+
:type threshold: str
|
|
250
|
+
:param aggregation_period: The aggregation period of the metrics returned.
|
|
251
|
+
:type aggregation_period: str
|
|
252
|
+
:param managed_tenant_uid: A managed tenant UUID to filter list, if applicable.
|
|
253
|
+
:type managed_tenant_uid: str
|
|
254
|
+
:param q: Lucene-style query filter. Only prefix queries (e.g. field:value*) are supported for filtering.
|
|
255
|
+
:type q: str
|
|
256
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
257
|
+
number provided, it will be total request
|
|
258
|
+
timeout. It can also be a pair (tuple) of
|
|
259
|
+
(connection, read) timeouts.
|
|
260
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
261
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
262
|
+
request; this effectively ignores the
|
|
263
|
+
authentication in the spec for a single request.
|
|
264
|
+
:type _request_auth: dict, optional
|
|
265
|
+
:param _content_type: force content-type for the request.
|
|
266
|
+
:type _content_type: str, Optional
|
|
267
|
+
:param _headers: set to override the headers for a single
|
|
268
|
+
request; this effectively ignores the headers
|
|
269
|
+
in the spec for a single request.
|
|
270
|
+
:type _headers: dict, optional
|
|
271
|
+
:param _host_index: set to override the host_index for a single
|
|
272
|
+
request; this effectively ignores the host_index
|
|
273
|
+
in the spec for a single request.
|
|
274
|
+
:type _host_index: int, optional
|
|
275
|
+
:return: Returns the result object.
|
|
276
|
+
""" # noqa: E501
|
|
277
|
+
|
|
278
|
+
_param = self._get_interface_health_metric_aggregation_list_serialize(
|
|
279
|
+
metric=metric,
|
|
280
|
+
threshold=threshold,
|
|
281
|
+
aggregation_period=aggregation_period,
|
|
282
|
+
managed_tenant_uid=managed_tenant_uid,
|
|
283
|
+
q=q,
|
|
284
|
+
_request_auth=_request_auth,
|
|
285
|
+
_content_type=_content_type,
|
|
286
|
+
_headers=_headers,
|
|
287
|
+
_host_index=_host_index
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
291
|
+
'200': "MetricAggregationListResponse",
|
|
292
|
+
'400': "CommonApiError",
|
|
293
|
+
'401': "AuthenticationError",
|
|
294
|
+
'403': "CommonApiError",
|
|
295
|
+
'404': "CommonApiError",
|
|
296
|
+
'500': "CommonApiError",
|
|
297
|
+
}
|
|
298
|
+
response_data = self.api_client.call_api(
|
|
299
|
+
*_param,
|
|
300
|
+
_request_timeout=_request_timeout
|
|
301
|
+
)
|
|
302
|
+
return response_data.response
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def _get_interface_health_metric_aggregation_list_serialize(
|
|
306
|
+
self,
|
|
307
|
+
metric,
|
|
308
|
+
threshold,
|
|
309
|
+
aggregation_period,
|
|
310
|
+
managed_tenant_uid,
|
|
311
|
+
q,
|
|
312
|
+
_request_auth,
|
|
313
|
+
_content_type,
|
|
314
|
+
_headers,
|
|
315
|
+
_host_index,
|
|
316
|
+
) -> RequestSerialized:
|
|
317
|
+
|
|
318
|
+
_host = None
|
|
319
|
+
|
|
320
|
+
_collection_formats: Dict[str, str] = {
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
_path_params: Dict[str, str] = {}
|
|
324
|
+
_query_params: List[Tuple[str, str]] = []
|
|
325
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
326
|
+
_form_params: List[Tuple[str, str]] = []
|
|
327
|
+
_files: Dict[str, str] = {}
|
|
328
|
+
_body_params: Optional[bytes] = None
|
|
329
|
+
|
|
330
|
+
# process the path parameters
|
|
331
|
+
# process the query parameters
|
|
332
|
+
if metric is not None:
|
|
333
|
+
|
|
334
|
+
_query_params.append(('metric', metric))
|
|
335
|
+
|
|
336
|
+
if threshold is not None:
|
|
337
|
+
|
|
338
|
+
_query_params.append(('threshold', threshold))
|
|
339
|
+
|
|
340
|
+
if aggregation_period is not None:
|
|
341
|
+
|
|
342
|
+
_query_params.append(('aggregationPeriod', aggregation_period))
|
|
343
|
+
|
|
344
|
+
if managed_tenant_uid is not None:
|
|
345
|
+
|
|
346
|
+
_query_params.append(('managedTenantUid', managed_tenant_uid))
|
|
347
|
+
|
|
348
|
+
if q is not None:
|
|
349
|
+
|
|
350
|
+
_query_params.append(('q', q))
|
|
351
|
+
|
|
352
|
+
# process the header parameters
|
|
353
|
+
# process the form parameters
|
|
354
|
+
# process the body parameter
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
# set the HTTP header `Accept`
|
|
358
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
359
|
+
[
|
|
360
|
+
'application/json'
|
|
361
|
+
]
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
# authentication setting
|
|
366
|
+
_auth_settings: List[str] = [
|
|
367
|
+
'bearerAuth'
|
|
368
|
+
]
|
|
369
|
+
|
|
370
|
+
return self.api_client.param_serialize(
|
|
371
|
+
method='GET',
|
|
372
|
+
resource_path='/v1/inventory/devices/health/interfaces/aggregations/details',
|
|
373
|
+
path_params=_path_params,
|
|
374
|
+
query_params=_query_params,
|
|
375
|
+
header_params=_header_params,
|
|
376
|
+
body=_body_params,
|
|
377
|
+
post_params=_form_params,
|
|
378
|
+
files=_files,
|
|
379
|
+
auth_settings=_auth_settings,
|
|
380
|
+
collection_formats=_collection_formats,
|
|
381
|
+
_host=_host,
|
|
382
|
+
_request_auth=_request_auth
|
|
383
|
+
)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
44
388
|
@validate_call
|
|
45
389
|
def get_interface_health_metric_aggregations(
|
|
46
390
|
self,
|
|
@@ -88,7 +88,7 @@ class ApiClient:
|
|
|
88
88
|
self.default_headers[header_name] = header_value
|
|
89
89
|
self.cookie = cookie
|
|
90
90
|
# Set default User-Agent.
|
|
91
|
-
self.user_agent = 'OpenAPI-Generator/1.15.
|
|
91
|
+
self.user_agent = 'OpenAPI-Generator/1.15.210/python'
|
|
92
92
|
self.client_side_validation = configuration.client_side_validation
|
|
93
93
|
|
|
94
94
|
def __enter__(self):
|
|
@@ -380,7 +380,7 @@ class Configuration:
|
|
|
380
380
|
"OS: {env}\n"\
|
|
381
381
|
"Python Version: {pyversion}\n"\
|
|
382
382
|
"Version of the API: 1.15.0\n"\
|
|
383
|
-
"SDK Package Version: 1.15.
|
|
383
|
+
"SDK Package Version: 1.15.210".\
|
|
384
384
|
format(env=sys.platform, pyversion=sys.version)
|
|
385
385
|
|
|
386
386
|
def get_host_settings(self):
|
|
@@ -18,8 +18,8 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field,
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -29,11 +29,13 @@ class MetricAggregationListItem(BaseModel):
|
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
device_name: Optional[StrictStr] = Field(default=None, alias="deviceName")
|
|
31
31
|
device_uid: Optional[StrictStr] = Field(default=None, alias="deviceUid")
|
|
32
|
+
interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName")
|
|
33
|
+
interface_uid: Optional[StrictStr] = Field(default=None, alias="interfaceUid")
|
|
32
34
|
managed_tenant_name: Optional[StrictStr] = Field(default=None, alias="managedTenantName")
|
|
33
35
|
managed_tenant_uid: Optional[StrictStr] = Field(default=None, alias="managedTenantUid")
|
|
34
36
|
metric: Optional[StrictStr] = None
|
|
35
|
-
value: Optional[
|
|
36
|
-
__properties: ClassVar[List[str]] = ["deviceName", "deviceUid", "managedTenantName", "managedTenantUid", "metric", "value"]
|
|
37
|
+
value: Optional[StrictStr] = None
|
|
38
|
+
__properties: ClassVar[List[str]] = ["deviceName", "deviceUid", "interfaceName", "interfaceUid", "managedTenantName", "managedTenantUid", "metric", "value"]
|
|
37
39
|
|
|
38
40
|
model_config = ConfigDict(
|
|
39
41
|
populate_by_name=True,
|
|
@@ -88,6 +90,8 @@ class MetricAggregationListItem(BaseModel):
|
|
|
88
90
|
_obj = cls.model_validate({
|
|
89
91
|
"deviceName": obj.get("deviceName"),
|
|
90
92
|
"deviceUid": obj.get("deviceUid"),
|
|
93
|
+
"interfaceName": obj.get("interfaceName"),
|
|
94
|
+
"interfaceUid": obj.get("interfaceUid"),
|
|
91
95
|
"managedTenantName": obj.get("managedTenantName"),
|
|
92
96
|
"managedTenantUid": obj.get("managedTenantUid"),
|
|
93
97
|
"metric": obj.get("metric"),
|
{scc_firewall_manager_sdk-1.15.209.dist-info → scc_firewall_manager_sdk-1.15.210.dist-info}/RECORD
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
scc_firewall_manager_sdk/__init__.py,sha256=
|
|
2
|
-
scc_firewall_manager_sdk/api_client.py,sha256=
|
|
1
|
+
scc_firewall_manager_sdk/__init__.py,sha256=eJ-6wkrozUTJQVnZkc6DOC2FZkuowj5RsfWH05Gib1o,22698
|
|
2
|
+
scc_firewall_manager_sdk/api_client.py,sha256=uZo2vz149KQN670PSoztTV9n2hmHPMJBjrTZBVZSsXI,25921
|
|
3
3
|
scc_firewall_manager_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
scc_firewall_manager_sdk/configuration.py,sha256=
|
|
4
|
+
scc_firewall_manager_sdk/configuration.py,sha256=zoseMu-W1N2rHzDXCpgXQS_SdEcd0rbBjUqkBeeRfV0,15993
|
|
5
5
|
scc_firewall_manager_sdk/exceptions.py,sha256=u5-7l5MRjP-aS2pNudBzqSw9OI4xVsIvUjw4WCA8LEk,6039
|
|
6
6
|
scc_firewall_manager_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
scc_firewall_manager_sdk/rest.py,sha256=cSeilvAB5y-V_10IdXcZ0kOyv5dYW8jeWVhrD6kUDa0,9309
|
|
@@ -16,10 +16,10 @@ scc_firewall_manager_sdk/api/changelogs_api.py,sha256=6C4ugk1SwLgJfCM-q-_H2gnNoW
|
|
|
16
16
|
scc_firewall_manager_sdk/api/command_line_interface_api.py,sha256=_sUPKdTkBkXNbk5m9iGH1t-eYJbFdzDLjLAuNMWJqYc,110872
|
|
17
17
|
scc_firewall_manager_sdk/api/commands_api.py,sha256=U1cDPCmUAgOPnCOC8KcbcQpLGSwgOBBgHUcKH6JmWK4,33891
|
|
18
18
|
scc_firewall_manager_sdk/api/connectors_api.py,sha256=lw4asxJMtyHTm3sxM6Z7S1O2tbr4ZtbjVrZIalmYagI,59889
|
|
19
|
-
scc_firewall_manager_sdk/api/device_health_aggregations_api.py,sha256=
|
|
19
|
+
scc_firewall_manager_sdk/api/device_health_aggregations_api.py,sha256=r4YyX6_HDWriUOh9dRFmjNzY08rozUatGOjpFzhkyJ4,29025
|
|
20
20
|
scc_firewall_manager_sdk/api/device_health_api.py,sha256=UoxgUo10Am1kga8U0Kxhb6DDw6d7wpXxzGopsvUJ1JI,62283
|
|
21
21
|
scc_firewall_manager_sdk/api/device_upgrades_api.py,sha256=iWb4v4tteX7uoEOncmF34V0n1So7oTPa_tV9AscL9Ck,138718
|
|
22
|
-
scc_firewall_manager_sdk/api/interface_health_aggregations_api.py,sha256=
|
|
22
|
+
scc_firewall_manager_sdk/api/interface_health_aggregations_api.py,sha256=2fxsrkfFpI2zSx3WnviJnP0uuS2XBT8YE_sZ0FcXjk0,40990
|
|
23
23
|
scc_firewall_manager_sdk/api/inventory_api.py,sha256=EJqDZzqBE4w_klxuo84rSYmrmbinGSJEbSbU6Wqs4Gg,444995
|
|
24
24
|
scc_firewall_manager_sdk/api/meta_api.py,sha256=0T4mIpkOc0FyDIvEN5qhRQbKN4CzOM00_sRVY2oG59U,29963
|
|
25
25
|
scc_firewall_manager_sdk/api/msp_device_upgrades_api.py,sha256=VSwHKKpPTYqlAdEOb3wq1ADX8d69siiCIbwPBzgDNNE,16623
|
|
@@ -177,7 +177,7 @@ scc_firewall_manager_sdk/models/meraki_deployment_mode.py,sha256=_bTJMhPEJKTUxLO
|
|
|
177
177
|
scc_firewall_manager_sdk/models/meta.py,sha256=qosi0QYsSVWIBzvb4T0CCStW7-uqSLbA9BWNAv7bE9w,2807
|
|
178
178
|
scc_firewall_manager_sdk/models/metric.py,sha256=4Uneqr033GF08yl-Mr5VOWAigGpfK9gEiysga2SAHoU,3347
|
|
179
179
|
scc_firewall_manager_sdk/models/metric_aggregation_item.py,sha256=TH6tfqIrXL9sYw-uzTw5Fh5Yp0VT42hEgL9SsTnzlZo,3260
|
|
180
|
-
scc_firewall_manager_sdk/models/metric_aggregation_list_item.py,sha256=
|
|
180
|
+
scc_firewall_manager_sdk/models/metric_aggregation_list_item.py,sha256=Tna8n5Ncye996ZGv1o23F3wkPOsajPpB0jXz7r3IE1Y,3650
|
|
181
181
|
scc_firewall_manager_sdk/models/metric_aggregation_list_response.py,sha256=JRmwUtozQTq6MIq3S51nhqRUaxpFTmJCXibfnTkssN8,3133
|
|
182
182
|
scc_firewall_manager_sdk/models/metric_aggregation_response.py,sha256=Lie3Jj3HbGmr_dBEVwo-EDxuZeswm6BSwp0yczlEWnU,3271
|
|
183
183
|
scc_firewall_manager_sdk/models/metrics_item.py,sha256=3GPAqUlfMRNbfaHzgh0ul3cCzfpwz0rHKPYLMjcw2R8,3413
|
|
@@ -273,7 +273,7 @@ scc_firewall_manager_sdk/models/vlan_interface_create_input.py,sha256=AKUqPJw5ku
|
|
|
273
273
|
scc_firewall_manager_sdk/models/vlan_interface_patch_input.py,sha256=srEFTyQykscNrWsbp8KGEzbmHC07_AU3DXjJ-7Be4zc,6054
|
|
274
274
|
scc_firewall_manager_sdk/models/ztp_onboarding_input.py,sha256=HAgBTdocZeHGDZP_-9NyRtzP9E7BReGtiOmn4S3J-_g,5326
|
|
275
275
|
scc_firewall_manager_sdk/models/ztp_onboarding_template_configuration.py,sha256=f9Z62yGFvz4QAQ07Z4bjfHLw2bRg46ccwoLuQ8q30TE,4808
|
|
276
|
-
scc_firewall_manager_sdk-1.15.
|
|
277
|
-
scc_firewall_manager_sdk-1.15.
|
|
278
|
-
scc_firewall_manager_sdk-1.15.
|
|
279
|
-
scc_firewall_manager_sdk-1.15.
|
|
276
|
+
scc_firewall_manager_sdk-1.15.210.dist-info/METADATA,sha256=T7xqHgruQEU3qmeET-cXoRcJLi52b5Fbtoeo6i4OuP8,596
|
|
277
|
+
scc_firewall_manager_sdk-1.15.210.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
278
|
+
scc_firewall_manager_sdk-1.15.210.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
|
|
279
|
+
scc_firewall_manager_sdk-1.15.210.dist-info/RECORD,,
|
{scc_firewall_manager_sdk-1.15.209.dist-info → scc_firewall_manager_sdk-1.15.210.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|