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

@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "1.15.44"
18
+ __version__ = "1.15.45"
19
19
 
20
20
  # import apis into sdk package
21
21
  from scc_firewall_manager_sdk.api.ai_assistant_api import AIAssistantApi
@@ -38,6 +38,279 @@ class TransactionsApi:
38
38
  self.api_client = api_client
39
39
 
40
40
 
41
+ @validate_call
42
+ def cancel_transaction(
43
+ self,
44
+ transaction_uid: StrictStr,
45
+ _request_timeout: Union[
46
+ None,
47
+ Annotated[StrictFloat, Field(gt=0)],
48
+ Tuple[
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Annotated[StrictFloat, Field(gt=0)]
51
+ ]
52
+ ] = None,
53
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
54
+ _content_type: Optional[StrictStr] = None,
55
+ _headers: Optional[Dict[StrictStr, Any]] = None,
56
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
+ ) -> CdoTransaction:
58
+ """Cancel Transaction
59
+
60
+ Cancel a running transaction. **Note:**: Only transactions of cancellable types can be cancelled; whether a transaction is cancellable is indicated by the <pre>isCancellable</pre> field in the <pre>CdoTransaction</pre> object.
61
+
62
+ :param transaction_uid: (required)
63
+ :type transaction_uid: str
64
+ :param _request_timeout: timeout setting for this request. If one
65
+ number provided, it will be total request
66
+ timeout. It can also be a pair (tuple) of
67
+ (connection, read) timeouts.
68
+ :type _request_timeout: int, tuple(int, int), optional
69
+ :param _request_auth: set to override the auth_settings for an a single
70
+ request; this effectively ignores the
71
+ authentication in the spec for a single request.
72
+ :type _request_auth: dict, optional
73
+ :param _content_type: force content-type for the request.
74
+ :type _content_type: str, Optional
75
+ :param _headers: set to override the headers for a single
76
+ request; this effectively ignores the headers
77
+ in the spec for a single request.
78
+ :type _headers: dict, optional
79
+ :param _host_index: set to override the host_index for a single
80
+ request; this effectively ignores the host_index
81
+ in the spec for a single request.
82
+ :type _host_index: int, optional
83
+ :return: Returns the result object.
84
+ """ # noqa: E501
85
+
86
+ _param = self._cancel_transaction_serialize(
87
+ transaction_uid=transaction_uid,
88
+ _request_auth=_request_auth,
89
+ _content_type=_content_type,
90
+ _headers=_headers,
91
+ _host_index=_host_index
92
+ )
93
+
94
+ _response_types_map: Dict[str, Optional[str]] = {
95
+ '200': "CdoTransaction",
96
+ '400': "CommonApiError",
97
+ '401': "AuthenticationError",
98
+ '403': "CommonApiError",
99
+ '422': "CommonApiError",
100
+ '500': "CommonApiError",
101
+ }
102
+ response_data = self.api_client.call_api(
103
+ *_param,
104
+ _request_timeout=_request_timeout
105
+ )
106
+ response_data.read()
107
+ return self.api_client.response_deserialize(
108
+ response_data=response_data,
109
+ response_types_map=_response_types_map,
110
+ ).data
111
+
112
+
113
+ @validate_call
114
+ def cancel_transaction_with_http_info(
115
+ self,
116
+ transaction_uid: StrictStr,
117
+ _request_timeout: Union[
118
+ None,
119
+ Annotated[StrictFloat, Field(gt=0)],
120
+ Tuple[
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Annotated[StrictFloat, Field(gt=0)]
123
+ ]
124
+ ] = None,
125
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
126
+ _content_type: Optional[StrictStr] = None,
127
+ _headers: Optional[Dict[StrictStr, Any]] = None,
128
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
129
+ ) -> ApiResponse[CdoTransaction]:
130
+ """Cancel Transaction
131
+
132
+ Cancel a running transaction. **Note:**: Only transactions of cancellable types can be cancelled; whether a transaction is cancellable is indicated by the <pre>isCancellable</pre> field in the <pre>CdoTransaction</pre> object.
133
+
134
+ :param transaction_uid: (required)
135
+ :type transaction_uid: str
136
+ :param _request_timeout: timeout setting for this request. If one
137
+ number provided, it will be total request
138
+ timeout. It can also be a pair (tuple) of
139
+ (connection, read) timeouts.
140
+ :type _request_timeout: int, tuple(int, int), optional
141
+ :param _request_auth: set to override the auth_settings for an a single
142
+ request; this effectively ignores the
143
+ authentication in the spec for a single request.
144
+ :type _request_auth: dict, optional
145
+ :param _content_type: force content-type for the request.
146
+ :type _content_type: str, Optional
147
+ :param _headers: set to override the headers for a single
148
+ request; this effectively ignores the headers
149
+ in the spec for a single request.
150
+ :type _headers: dict, optional
151
+ :param _host_index: set to override the host_index for a single
152
+ request; this effectively ignores the host_index
153
+ in the spec for a single request.
154
+ :type _host_index: int, optional
155
+ :return: Returns the result object.
156
+ """ # noqa: E501
157
+
158
+ _param = self._cancel_transaction_serialize(
159
+ transaction_uid=transaction_uid,
160
+ _request_auth=_request_auth,
161
+ _content_type=_content_type,
162
+ _headers=_headers,
163
+ _host_index=_host_index
164
+ )
165
+
166
+ _response_types_map: Dict[str, Optional[str]] = {
167
+ '200': "CdoTransaction",
168
+ '400': "CommonApiError",
169
+ '401': "AuthenticationError",
170
+ '403': "CommonApiError",
171
+ '422': "CommonApiError",
172
+ '500': "CommonApiError",
173
+ }
174
+ response_data = self.api_client.call_api(
175
+ *_param,
176
+ _request_timeout=_request_timeout
177
+ )
178
+ response_data.read()
179
+ return self.api_client.response_deserialize(
180
+ response_data=response_data,
181
+ response_types_map=_response_types_map,
182
+ )
183
+
184
+
185
+ @validate_call
186
+ def cancel_transaction_without_preload_content(
187
+ self,
188
+ transaction_uid: StrictStr,
189
+ _request_timeout: Union[
190
+ None,
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Tuple[
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Annotated[StrictFloat, Field(gt=0)]
195
+ ]
196
+ ] = None,
197
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
198
+ _content_type: Optional[StrictStr] = None,
199
+ _headers: Optional[Dict[StrictStr, Any]] = None,
200
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
201
+ ) -> RESTResponseType:
202
+ """Cancel Transaction
203
+
204
+ Cancel a running transaction. **Note:**: Only transactions of cancellable types can be cancelled; whether a transaction is cancellable is indicated by the <pre>isCancellable</pre> field in the <pre>CdoTransaction</pre> object.
205
+
206
+ :param transaction_uid: (required)
207
+ :type transaction_uid: str
208
+ :param _request_timeout: timeout setting for this request. If one
209
+ number provided, it will be total request
210
+ timeout. It can also be a pair (tuple) of
211
+ (connection, read) timeouts.
212
+ :type _request_timeout: int, tuple(int, int), optional
213
+ :param _request_auth: set to override the auth_settings for an a single
214
+ request; this effectively ignores the
215
+ authentication in the spec for a single request.
216
+ :type _request_auth: dict, optional
217
+ :param _content_type: force content-type for the request.
218
+ :type _content_type: str, Optional
219
+ :param _headers: set to override the headers for a single
220
+ request; this effectively ignores the headers
221
+ in the spec for a single request.
222
+ :type _headers: dict, optional
223
+ :param _host_index: set to override the host_index for a single
224
+ request; this effectively ignores the host_index
225
+ in the spec for a single request.
226
+ :type _host_index: int, optional
227
+ :return: Returns the result object.
228
+ """ # noqa: E501
229
+
230
+ _param = self._cancel_transaction_serialize(
231
+ transaction_uid=transaction_uid,
232
+ _request_auth=_request_auth,
233
+ _content_type=_content_type,
234
+ _headers=_headers,
235
+ _host_index=_host_index
236
+ )
237
+
238
+ _response_types_map: Dict[str, Optional[str]] = {
239
+ '200': "CdoTransaction",
240
+ '400': "CommonApiError",
241
+ '401': "AuthenticationError",
242
+ '403': "CommonApiError",
243
+ '422': "CommonApiError",
244
+ '500': "CommonApiError",
245
+ }
246
+ response_data = self.api_client.call_api(
247
+ *_param,
248
+ _request_timeout=_request_timeout
249
+ )
250
+ return response_data.response
251
+
252
+
253
+ def _cancel_transaction_serialize(
254
+ self,
255
+ transaction_uid,
256
+ _request_auth,
257
+ _content_type,
258
+ _headers,
259
+ _host_index,
260
+ ) -> RequestSerialized:
261
+
262
+ _host = None
263
+
264
+ _collection_formats: Dict[str, str] = {
265
+ }
266
+
267
+ _path_params: Dict[str, str] = {}
268
+ _query_params: List[Tuple[str, str]] = []
269
+ _header_params: Dict[str, Optional[str]] = _headers or {}
270
+ _form_params: List[Tuple[str, str]] = []
271
+ _files: Dict[str, str] = {}
272
+ _body_params: Optional[bytes] = None
273
+
274
+ # process the path parameters
275
+ if transaction_uid is not None:
276
+ _path_params['transactionUid'] = transaction_uid
277
+ # process the query parameters
278
+ # process the header parameters
279
+ # process the form parameters
280
+ # process the body parameter
281
+
282
+
283
+ # set the HTTP header `Accept`
284
+ _header_params['Accept'] = self.api_client.select_header_accept(
285
+ [
286
+ 'application/json'
287
+ ]
288
+ )
289
+
290
+
291
+ # authentication setting
292
+ _auth_settings: List[str] = [
293
+ 'bearerAuth'
294
+ ]
295
+
296
+ return self.api_client.param_serialize(
297
+ method='POST',
298
+ resource_path='/v1/transactions/{transactionUid}/cancel',
299
+ path_params=_path_params,
300
+ query_params=_query_params,
301
+ header_params=_header_params,
302
+ body=_body_params,
303
+ post_params=_form_params,
304
+ files=_files,
305
+ auth_settings=_auth_settings,
306
+ collection_formats=_collection_formats,
307
+ _host=_host,
308
+ _request_auth=_request_auth
309
+ )
310
+
311
+
312
+
313
+
41
314
  @validate_call
42
315
  def get_transaction(
43
316
  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.44/python'
91
+ self.user_agent = 'OpenAPI-Generator/1.15.45/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.44".\
383
+ "SDK Package Version: 1.15.45".\
384
384
  format(env=sys.platform, pyversion=sys.version)
385
385
 
386
386
  def get_host_settings(self):
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
23
23
  from typing import Any, ClassVar, Dict, List, Optional
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
@@ -28,6 +28,7 @@ class CdoTransaction(BaseModel):
28
28
  """
29
29
  CdoTransaction
30
30
  """ # noqa: E501
31
+ cancellable: Optional[StrictBool] = None
31
32
  cdo_transaction_status: Optional[StrictStr] = Field(default=None, description="The status of the transaction", alias="cdoTransactionStatus")
32
33
  entity_uid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the entity that the transaction is triggered on. This can be empty, for a transaction that is not tied to an entity, such as transactions which refresh RA VPN sessions.", alias="entityUid")
33
34
  entity_url: Optional[StrictStr] = Field(default=None, description="A URL to access the entity that the transaction is triggered on. This can also be empty", alias="entityUrl")
@@ -40,7 +41,7 @@ class CdoTransaction(BaseModel):
40
41
  transaction_polling_url: Optional[StrictStr] = Field(default=None, description="The URL to poll to track the progress of the transaction.", alias="transactionPollingUrl")
41
42
  transaction_type: Optional[StrictStr] = Field(default=None, description="the type of the transaction", alias="transactionType")
42
43
  transaction_uid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the transaction triggered.", alias="transactionUid")
43
- __properties: ClassVar[List[str]] = ["cdoTransactionStatus", "entityUid", "entityUrl", "errorDetails", "errorMessage", "lastUpdatedTime", "submissionTime", "tenantUid", "transactionDetails", "transactionPollingUrl", "transactionType", "transactionUid"]
44
+ __properties: ClassVar[List[str]] = ["cancellable", "cdoTransactionStatus", "entityUid", "entityUrl", "errorDetails", "errorMessage", "lastUpdatedTime", "submissionTime", "tenantUid", "transactionDetails", "transactionPollingUrl", "transactionType", "transactionUid"]
44
45
 
45
46
  @field_validator('cdo_transaction_status')
46
47
  def cdo_transaction_status_validate_enum(cls, value):
@@ -48,8 +49,8 @@ class CdoTransaction(BaseModel):
48
49
  if value is None:
49
50
  return value
50
51
 
51
- if value not in set(['PENDING', 'IN_PROGRESS', 'DONE', 'ERROR']):
52
- raise ValueError("must be one of enum values ('PENDING', 'IN_PROGRESS', 'DONE', 'ERROR')")
52
+ if value not in set(['PENDING', 'IN_PROGRESS', 'CANCELLED', 'DONE', 'ERROR']):
53
+ raise ValueError("must be one of enum values ('PENDING', 'IN_PROGRESS', 'CANCELLED', 'DONE', 'ERROR')")
53
54
  return value
54
55
 
55
56
  @field_validator('transaction_type')
@@ -113,6 +114,7 @@ class CdoTransaction(BaseModel):
113
114
  return cls.model_validate(obj)
114
115
 
115
116
  _obj = cls.model_validate({
117
+ "cancellable": obj.get("cancellable"),
116
118
  "cdoTransactionStatus": obj.get("cdoTransactionStatus"),
117
119
  "entityUid": obj.get("entityUid"),
118
120
  "entityUrl": obj.get("entityUrl"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scc-firewall-manager-sdk
3
- Version: 1.15.44
3
+ Version: 1.15.45
4
4
  Summary: Cisco Security Cloud Control Firewall Manager API
5
5
  Home-page:
6
6
  Author: Cisco Security Cloud Control TAC
@@ -1,7 +1,7 @@
1
- scc_firewall_manager_sdk/__init__.py,sha256=ZeuusHwl51coYajHKWc-_iyMe3sNqN0toBLdiMSQaPk,21822
2
- scc_firewall_manager_sdk/api_client.py,sha256=NXz--ykquLaxnefFiqstZ_rSkQRmgl_t9Ssc7AfXoFA,25920
1
+ scc_firewall_manager_sdk/__init__.py,sha256=ChWFjsHwQN3j-_Iv5vVsHu3NNwHa7BaPNzcqW_EuKjw,21822
2
+ scc_firewall_manager_sdk/api_client.py,sha256=gXnop8JvzDiKU1Jgw_Xg4MnIYxe1YvqHYzMsFazWFwY,25920
3
3
  scc_firewall_manager_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- scc_firewall_manager_sdk/configuration.py,sha256=dofv-J0bitAy9YBhOKrDqCm8nAMqjJ4K3XzPK2PqQqs,15992
4
+ scc_firewall_manager_sdk/configuration.py,sha256=GhE9EZgKTD9lzwSsch4rTXyuredTl9hgzhP3xZuVh00,15992
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
@@ -28,7 +28,7 @@ scc_firewall_manager_sdk/api/object_management_api.py,sha256=cblgyzHCSChesXOt3ST
28
28
  scc_firewall_manager_sdk/api/remote_access_monitoring_api.py,sha256=1uuvntEP_a5bSCIWNuvr7VcLM8pBiRqkvcb77JeHz8Q,86274
29
29
  scc_firewall_manager_sdk/api/search_api.py,sha256=PonVl7RieSVsbCCVQOdqIA7vx2NCH5KPaLJ6XXNcNTQ,22845
30
30
  scc_firewall_manager_sdk/api/tenant_management_api.py,sha256=3PWPuirkaUck1VZex3w4Cg3qO05GF0f7xeiptaAc5zE,55069
31
- scc_firewall_manager_sdk/api/transactions_api.py,sha256=MHHQpikDJuyPAaDcXvLdIWZcpDVFYL8gmk4YkZQbTJE,12470
31
+ scc_firewall_manager_sdk/api/transactions_api.py,sha256=fz0Ko2bAXFpz0SM8psceOlcxq0gXnrnuTEhaX1E0QzA,23402
32
32
  scc_firewall_manager_sdk/api/users_api.py,sha256=MKuyXmxWLSqPBkfA7rUGZ1EO1Ox-Oge7QhhgzSFAVu8,191609
33
33
  scc_firewall_manager_sdk/models/__init__.py,sha256=rxs-B6iCptwAYhJNmGA4ezJo1w9rsdba2sDhGdVYBoY,19332
34
34
  scc_firewall_manager_sdk/models/access_group.py,sha256=9FlXrDT5xhtk-uWuwgMmM-qAGiKZrpfnkphZuogGsHo,4583
@@ -74,7 +74,7 @@ scc_firewall_manager_sdk/models/cdo_cli_result_page.py,sha256=EEzs3R4dw2xL_DmFPg
74
74
  scc_firewall_manager_sdk/models/cdo_region.py,sha256=fwAiLYKyjGj_dDMLs-_8FPoupimXXltZoVElUoI20OQ,2995
75
75
  scc_firewall_manager_sdk/models/cdo_region_list.py,sha256=L3qMHaEdwsOmQ3PVzXs4MpliUwzQOY8It6el0WOGfKc,3059
76
76
  scc_firewall_manager_sdk/models/cdo_token_info.py,sha256=74VNvHxM0f0wVpNSB4fwNFvt_Y-50VuwCPjt2g7Y8b0,4547
77
- scc_firewall_manager_sdk/models/cdo_transaction.py,sha256=LxL-PL90YM-oKP5T-BPnnPQCcP6rgqFXCzQo2p1_3vs,8660
77
+ scc_firewall_manager_sdk/models/cdo_transaction.py,sha256=DG22ltEisBZefzwaBX4oQyHwSI9u9lDLk4NfPTmkUGY,8809
78
78
  scc_firewall_manager_sdk/models/change_request.py,sha256=pvjYq818o6W8Fy2_Rt6qMp7jSOFnCqK9goVIWPxENGY,2939
79
79
  scc_firewall_manager_sdk/models/change_request_create_input.py,sha256=VEEWpKGhmegCbIYkzhctJPjBpDQgzATuN9zbE2DjRTA,2961
80
80
  scc_firewall_manager_sdk/models/change_request_page.py,sha256=8OBeXBlutEbhpLVe1n6hhaVpFzAMX4MPtO8jGLjfS-E,3741
@@ -264,7 +264,7 @@ scc_firewall_manager_sdk/models/vlan_interface_create_input.py,sha256=AKUqPJw5ku
264
264
  scc_firewall_manager_sdk/models/vlan_interface_patch_input.py,sha256=srEFTyQykscNrWsbp8KGEzbmHC07_AU3DXjJ-7Be4zc,6054
265
265
  scc_firewall_manager_sdk/models/ztp_onboarding_input.py,sha256=HAgBTdocZeHGDZP_-9NyRtzP9E7BReGtiOmn4S3J-_g,5326
266
266
  scc_firewall_manager_sdk/models/ztp_onboarding_template_configuration.py,sha256=f9Z62yGFvz4QAQ07Z4bjfHLw2bRg46ccwoLuQ8q30TE,4808
267
- scc_firewall_manager_sdk-1.15.44.dist-info/METADATA,sha256=nNuNl97-E9Zq74zs41tBnU1vFCDVnxHOD58oKb75VFU,595
268
- scc_firewall_manager_sdk-1.15.44.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
269
- scc_firewall_manager_sdk-1.15.44.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
270
- scc_firewall_manager_sdk-1.15.44.dist-info/RECORD,,
267
+ scc_firewall_manager_sdk-1.15.45.dist-info/METADATA,sha256=nvmgvNCXO8wbHmiVIMoMC9PUZMhnCXG4e2cnALxV2QI,595
268
+ scc_firewall_manager_sdk-1.15.45.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
269
+ scc_firewall_manager_sdk-1.15.45.dist-info/top_level.txt,sha256=_g9WfFWGagKs6ULdfhEt8e7RXknpcp9_jA9ubIL4U3I,25
270
+ scc_firewall_manager_sdk-1.15.45.dist-info/RECORD,,