hyperstack 1.41.0a0__py3-none-any.whl → 1.42.0a0__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.
@@ -351,7 +351,7 @@ class SnapshotsApi:
351
351
 
352
352
 
353
353
  @validate_call
354
- def delete_snapshot(
354
+ def delete_an_existing_snapshot(
355
355
  self,
356
356
  id: StrictInt,
357
357
  _request_timeout: Union[
@@ -395,7 +395,7 @@ class SnapshotsApi:
395
395
  :return: Returns the result object.
396
396
  """ # noqa: E501
397
397
 
398
- _param = self._delete_snapshot_serialize(
398
+ _param = self._delete_an_existing_snapshot_serialize(
399
399
  id=id,
400
400
  _request_auth=_request_auth,
401
401
  _content_type=_content_type,
@@ -423,7 +423,7 @@ class SnapshotsApi:
423
423
 
424
424
 
425
425
  @validate_call
426
- def delete_snapshot_with_http_info(
426
+ def delete_an_existing_snapshot_with_http_info(
427
427
  self,
428
428
  id: StrictInt,
429
429
  _request_timeout: Union[
@@ -467,7 +467,7 @@ class SnapshotsApi:
467
467
  :return: Returns the result object.
468
468
  """ # noqa: E501
469
469
 
470
- _param = self._delete_snapshot_serialize(
470
+ _param = self._delete_an_existing_snapshot_serialize(
471
471
  id=id,
472
472
  _request_auth=_request_auth,
473
473
  _content_type=_content_type,
@@ -495,7 +495,7 @@ class SnapshotsApi:
495
495
 
496
496
 
497
497
  @validate_call
498
- def delete_snapshot_without_preload_content(
498
+ def delete_an_existing_snapshot_without_preload_content(
499
499
  self,
500
500
  id: StrictInt,
501
501
  _request_timeout: Union[
@@ -539,7 +539,7 @@ class SnapshotsApi:
539
539
  :return: Returns the result object.
540
540
  """ # noqa: E501
541
541
 
542
- _param = self._delete_snapshot_serialize(
542
+ _param = self._delete_an_existing_snapshot_serialize(
543
543
  id=id,
544
544
  _request_auth=_request_auth,
545
545
  _content_type=_content_type,
@@ -562,7 +562,7 @@ class SnapshotsApi:
562
562
  return response_data.response
563
563
 
564
564
 
565
- def _delete_snapshot_serialize(
565
+ def _delete_an_existing_snapshot_serialize(
566
566
  self,
567
567
  id,
568
568
  _request_auth,
@@ -900,9 +900,10 @@ class SnapshotsApi:
900
900
 
901
901
 
902
902
  @validate_call
903
- def get_snapshot(
903
+ def restore_a_snapshot(
904
904
  self,
905
905
  id: StrictInt,
906
+ payload: SnapshotRestoreRequest,
906
907
  _request_timeout: Union[
907
908
  None,
908
909
  Annotated[StrictFloat, Field(gt=0)],
@@ -915,13 +916,15 @@ class SnapshotsApi:
915
916
  _content_type: Optional[StrictStr] = None,
916
917
  _headers: Optional[Dict[StrictStr, Any]] = None,
917
918
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
918
- ) -> SnapshotRetrieve:
919
- """Retrieve a snapshot
919
+ ) -> Instance:
920
+ """Restore a snapshot
920
921
 
921
- Retrieve a snapshot.
922
+ Restore a snapshot.
922
923
 
923
924
  :param id: (required)
924
925
  :type id: int
926
+ :param payload: (required)
927
+ :type payload: SnapshotRestoreRequest
925
928
  :param _request_timeout: timeout setting for this request. If one
926
929
  number provided, it will be total request
927
930
  timeout. It can also be a pair (tuple) of
@@ -944,8 +947,9 @@ class SnapshotsApi:
944
947
  :return: Returns the result object.
945
948
  """ # noqa: E501
946
949
 
947
- _param = self._get_snapshot_serialize(
950
+ _param = self._restore_a_snapshot_serialize(
948
951
  id=id,
952
+ payload=payload,
949
953
  _request_auth=_request_auth,
950
954
  _content_type=_content_type,
951
955
  _headers=_headers,
@@ -953,7 +957,7 @@ class SnapshotsApi:
953
957
  )
954
958
 
955
959
  _response_types_map: Dict[str, Optional[str]] = {
956
- '200': "SnapshotRetrieve",
960
+ '200': "Instance",
957
961
  '400': "ErrorResponseModel",
958
962
  '401': "ErrorResponseModel",
959
963
  '500': None,
@@ -970,9 +974,10 @@ class SnapshotsApi:
970
974
 
971
975
 
972
976
  @validate_call
973
- def get_snapshot_with_http_info(
977
+ def restore_a_snapshot_with_http_info(
974
978
  self,
975
979
  id: StrictInt,
980
+ payload: SnapshotRestoreRequest,
976
981
  _request_timeout: Union[
977
982
  None,
978
983
  Annotated[StrictFloat, Field(gt=0)],
@@ -985,13 +990,15 @@ class SnapshotsApi:
985
990
  _content_type: Optional[StrictStr] = None,
986
991
  _headers: Optional[Dict[StrictStr, Any]] = None,
987
992
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
988
- ) -> ApiResponse[SnapshotRetrieve]:
989
- """Retrieve a snapshot
993
+ ) -> ApiResponse[Instance]:
994
+ """Restore a snapshot
990
995
 
991
- Retrieve a snapshot.
996
+ Restore a snapshot.
992
997
 
993
998
  :param id: (required)
994
999
  :type id: int
1000
+ :param payload: (required)
1001
+ :type payload: SnapshotRestoreRequest
995
1002
  :param _request_timeout: timeout setting for this request. If one
996
1003
  number provided, it will be total request
997
1004
  timeout. It can also be a pair (tuple) of
@@ -1014,8 +1021,9 @@ class SnapshotsApi:
1014
1021
  :return: Returns the result object.
1015
1022
  """ # noqa: E501
1016
1023
 
1017
- _param = self._get_snapshot_serialize(
1024
+ _param = self._restore_a_snapshot_serialize(
1018
1025
  id=id,
1026
+ payload=payload,
1019
1027
  _request_auth=_request_auth,
1020
1028
  _content_type=_content_type,
1021
1029
  _headers=_headers,
@@ -1023,7 +1031,7 @@ class SnapshotsApi:
1023
1031
  )
1024
1032
 
1025
1033
  _response_types_map: Dict[str, Optional[str]] = {
1026
- '200': "SnapshotRetrieve",
1034
+ '200': "Instance",
1027
1035
  '400': "ErrorResponseModel",
1028
1036
  '401': "ErrorResponseModel",
1029
1037
  '500': None,
@@ -1040,9 +1048,10 @@ class SnapshotsApi:
1040
1048
 
1041
1049
 
1042
1050
  @validate_call
1043
- def get_snapshot_without_preload_content(
1051
+ def restore_a_snapshot_without_preload_content(
1044
1052
  self,
1045
1053
  id: StrictInt,
1054
+ payload: SnapshotRestoreRequest,
1046
1055
  _request_timeout: Union[
1047
1056
  None,
1048
1057
  Annotated[StrictFloat, Field(gt=0)],
@@ -1056,12 +1065,14 @@ class SnapshotsApi:
1056
1065
  _headers: Optional[Dict[StrictStr, Any]] = None,
1057
1066
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1058
1067
  ) -> RESTResponseType:
1059
- """Retrieve a snapshot
1068
+ """Restore a snapshot
1060
1069
 
1061
- Retrieve a snapshot.
1070
+ Restore a snapshot.
1062
1071
 
1063
1072
  :param id: (required)
1064
1073
  :type id: int
1074
+ :param payload: (required)
1075
+ :type payload: SnapshotRestoreRequest
1065
1076
  :param _request_timeout: timeout setting for this request. If one
1066
1077
  number provided, it will be total request
1067
1078
  timeout. It can also be a pair (tuple) of
@@ -1084,8 +1095,9 @@ class SnapshotsApi:
1084
1095
  :return: Returns the result object.
1085
1096
  """ # noqa: E501
1086
1097
 
1087
- _param = self._get_snapshot_serialize(
1098
+ _param = self._restore_a_snapshot_serialize(
1088
1099
  id=id,
1100
+ payload=payload,
1089
1101
  _request_auth=_request_auth,
1090
1102
  _content_type=_content_type,
1091
1103
  _headers=_headers,
@@ -1093,7 +1105,7 @@ class SnapshotsApi:
1093
1105
  )
1094
1106
 
1095
1107
  _response_types_map: Dict[str, Optional[str]] = {
1096
- '200': "SnapshotRetrieve",
1108
+ '200': "Instance",
1097
1109
  '400': "ErrorResponseModel",
1098
1110
  '401': "ErrorResponseModel",
1099
1111
  '500': None,
@@ -1105,9 +1117,10 @@ class SnapshotsApi:
1105
1117
  return response_data.response
1106
1118
 
1107
1119
 
1108
- def _get_snapshot_serialize(
1120
+ def _restore_a_snapshot_serialize(
1109
1121
  self,
1110
1122
  id,
1123
+ payload,
1111
1124
  _request_auth,
1112
1125
  _content_type,
1113
1126
  _headers,
@@ -1135,6 +1148,8 @@ class SnapshotsApi:
1135
1148
  # process the header parameters
1136
1149
  # process the form parameters
1137
1150
  # process the body parameter
1151
+ if payload is not None:
1152
+ _body_params = payload
1138
1153
 
1139
1154
 
1140
1155
  # set the HTTP header `Accept`
@@ -1145,6 +1160,19 @@ class SnapshotsApi:
1145
1160
  ]
1146
1161
  )
1147
1162
 
1163
+ # set the HTTP header `Content-Type`
1164
+ if _content_type:
1165
+ _header_params['Content-Type'] = _content_type
1166
+ else:
1167
+ _default_content_type = (
1168
+ self.api_client.select_header_content_type(
1169
+ [
1170
+ 'application/json'
1171
+ ]
1172
+ )
1173
+ )
1174
+ if _default_content_type is not None:
1175
+ _header_params['Content-Type'] = _default_content_type
1148
1176
 
1149
1177
  # authentication setting
1150
1178
  _auth_settings: List[str] = [
@@ -1152,8 +1180,8 @@ class SnapshotsApi:
1152
1180
  ]
1153
1181
 
1154
1182
  return self.api_client.param_serialize(
1155
- method='GET',
1156
- resource_path='/core/snapshots/{id}',
1183
+ method='POST',
1184
+ resource_path='/core/snapshots/{id}/restore',
1157
1185
  path_params=_path_params,
1158
1186
  query_params=_query_params,
1159
1187
  header_params=_header_params,
@@ -1170,11 +1198,9 @@ class SnapshotsApi:
1170
1198
 
1171
1199
 
1172
1200
  @validate_call
1173
- def get_snapshots(
1201
+ def retrieve_an_existing_snapshot(
1174
1202
  self,
1175
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
1176
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
1177
- search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
1203
+ id: StrictInt,
1178
1204
  _request_timeout: Union[
1179
1205
  None,
1180
1206
  Annotated[StrictFloat, Field(gt=0)],
@@ -1187,17 +1213,13 @@ class SnapshotsApi:
1187
1213
  _content_type: Optional[StrictStr] = None,
1188
1214
  _headers: Optional[Dict[StrictStr, Any]] = None,
1189
1215
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1190
- ) -> Snapshots:
1191
- """Retrieve list of snapshots with pagination
1216
+ ) -> SnapshotRetrieve:
1217
+ """Retrieve a snapshot
1192
1218
 
1193
- Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
1219
+ Retrieve a snapshot.
1194
1220
 
1195
- :param page: Page Number
1196
- :type page: str
1197
- :param page_size: Data Per Page
1198
- :type page_size: str
1199
- :param search: Search By Snapshot ID or Name
1200
- :type search: str
1221
+ :param id: (required)
1222
+ :type id: int
1201
1223
  :param _request_timeout: timeout setting for this request. If one
1202
1224
  number provided, it will be total request
1203
1225
  timeout. It can also be a pair (tuple) of
@@ -1220,10 +1242,8 @@ class SnapshotsApi:
1220
1242
  :return: Returns the result object.
1221
1243
  """ # noqa: E501
1222
1244
 
1223
- _param = self._get_snapshots_serialize(
1224
- page=page,
1225
- page_size=page_size,
1226
- search=search,
1245
+ _param = self._retrieve_an_existing_snapshot_serialize(
1246
+ id=id,
1227
1247
  _request_auth=_request_auth,
1228
1248
  _content_type=_content_type,
1229
1249
  _headers=_headers,
@@ -1231,7 +1251,7 @@ class SnapshotsApi:
1231
1251
  )
1232
1252
 
1233
1253
  _response_types_map: Dict[str, Optional[str]] = {
1234
- '200': "Snapshots",
1254
+ '200': "SnapshotRetrieve",
1235
1255
  '400': "ErrorResponseModel",
1236
1256
  '401': "ErrorResponseModel",
1237
1257
  '500': None,
@@ -1248,11 +1268,9 @@ class SnapshotsApi:
1248
1268
 
1249
1269
 
1250
1270
  @validate_call
1251
- def get_snapshots_with_http_info(
1271
+ def retrieve_an_existing_snapshot_with_http_info(
1252
1272
  self,
1253
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
1254
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
1255
- search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
1273
+ id: StrictInt,
1256
1274
  _request_timeout: Union[
1257
1275
  None,
1258
1276
  Annotated[StrictFloat, Field(gt=0)],
@@ -1265,17 +1283,13 @@ class SnapshotsApi:
1265
1283
  _content_type: Optional[StrictStr] = None,
1266
1284
  _headers: Optional[Dict[StrictStr, Any]] = None,
1267
1285
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1268
- ) -> ApiResponse[Snapshots]:
1269
- """Retrieve list of snapshots with pagination
1286
+ ) -> ApiResponse[SnapshotRetrieve]:
1287
+ """Retrieve a snapshot
1270
1288
 
1271
- Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
1289
+ Retrieve a snapshot.
1272
1290
 
1273
- :param page: Page Number
1274
- :type page: str
1275
- :param page_size: Data Per Page
1276
- :type page_size: str
1277
- :param search: Search By Snapshot ID or Name
1278
- :type search: str
1291
+ :param id: (required)
1292
+ :type id: int
1279
1293
  :param _request_timeout: timeout setting for this request. If one
1280
1294
  number provided, it will be total request
1281
1295
  timeout. It can also be a pair (tuple) of
@@ -1298,10 +1312,8 @@ class SnapshotsApi:
1298
1312
  :return: Returns the result object.
1299
1313
  """ # noqa: E501
1300
1314
 
1301
- _param = self._get_snapshots_serialize(
1302
- page=page,
1303
- page_size=page_size,
1304
- search=search,
1315
+ _param = self._retrieve_an_existing_snapshot_serialize(
1316
+ id=id,
1305
1317
  _request_auth=_request_auth,
1306
1318
  _content_type=_content_type,
1307
1319
  _headers=_headers,
@@ -1309,7 +1321,7 @@ class SnapshotsApi:
1309
1321
  )
1310
1322
 
1311
1323
  _response_types_map: Dict[str, Optional[str]] = {
1312
- '200': "Snapshots",
1324
+ '200': "SnapshotRetrieve",
1313
1325
  '400': "ErrorResponseModel",
1314
1326
  '401': "ErrorResponseModel",
1315
1327
  '500': None,
@@ -1326,11 +1338,9 @@ class SnapshotsApi:
1326
1338
 
1327
1339
 
1328
1340
  @validate_call
1329
- def get_snapshots_without_preload_content(
1341
+ def retrieve_an_existing_snapshot_without_preload_content(
1330
1342
  self,
1331
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
1332
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
1333
- search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
1343
+ id: StrictInt,
1334
1344
  _request_timeout: Union[
1335
1345
  None,
1336
1346
  Annotated[StrictFloat, Field(gt=0)],
@@ -1344,16 +1354,12 @@ class SnapshotsApi:
1344
1354
  _headers: Optional[Dict[StrictStr, Any]] = None,
1345
1355
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1346
1356
  ) -> RESTResponseType:
1347
- """Retrieve list of snapshots with pagination
1357
+ """Retrieve a snapshot
1348
1358
 
1349
- Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
1359
+ Retrieve a snapshot.
1350
1360
 
1351
- :param page: Page Number
1352
- :type page: str
1353
- :param page_size: Data Per Page
1354
- :type page_size: str
1355
- :param search: Search By Snapshot ID or Name
1356
- :type search: str
1361
+ :param id: (required)
1362
+ :type id: int
1357
1363
  :param _request_timeout: timeout setting for this request. If one
1358
1364
  number provided, it will be total request
1359
1365
  timeout. It can also be a pair (tuple) of
@@ -1376,10 +1382,8 @@ class SnapshotsApi:
1376
1382
  :return: Returns the result object.
1377
1383
  """ # noqa: E501
1378
1384
 
1379
- _param = self._get_snapshots_serialize(
1380
- page=page,
1381
- page_size=page_size,
1382
- search=search,
1385
+ _param = self._retrieve_an_existing_snapshot_serialize(
1386
+ id=id,
1383
1387
  _request_auth=_request_auth,
1384
1388
  _content_type=_content_type,
1385
1389
  _headers=_headers,
@@ -1387,7 +1391,7 @@ class SnapshotsApi:
1387
1391
  )
1388
1392
 
1389
1393
  _response_types_map: Dict[str, Optional[str]] = {
1390
- '200': "Snapshots",
1394
+ '200': "SnapshotRetrieve",
1391
1395
  '400': "ErrorResponseModel",
1392
1396
  '401': "ErrorResponseModel",
1393
1397
  '500': None,
@@ -1399,11 +1403,9 @@ class SnapshotsApi:
1399
1403
  return response_data.response
1400
1404
 
1401
1405
 
1402
- def _get_snapshots_serialize(
1406
+ def _retrieve_an_existing_snapshot_serialize(
1403
1407
  self,
1404
- page,
1405
- page_size,
1406
- search,
1408
+ id,
1407
1409
  _request_auth,
1408
1410
  _content_type,
1409
1411
  _headers,
@@ -1425,19 +1427,9 @@ class SnapshotsApi:
1425
1427
  _body_params: Optional[bytes] = None
1426
1428
 
1427
1429
  # process the path parameters
1430
+ if id is not None:
1431
+ _path_params['id'] = id
1428
1432
  # process the query parameters
1429
- if page is not None:
1430
-
1431
- _query_params.append(('page', page))
1432
-
1433
- if page_size is not None:
1434
-
1435
- _query_params.append(('pageSize', page_size))
1436
-
1437
- if search is not None:
1438
-
1439
- _query_params.append(('search', search))
1440
-
1441
1433
  # process the header parameters
1442
1434
  # process the form parameters
1443
1435
  # process the body parameter
@@ -1459,7 +1451,7 @@ class SnapshotsApi:
1459
1451
 
1460
1452
  return self.api_client.param_serialize(
1461
1453
  method='GET',
1462
- resource_path='/core/snapshots',
1454
+ resource_path='/core/snapshots/{id}',
1463
1455
  path_params=_path_params,
1464
1456
  query_params=_query_params,
1465
1457
  header_params=_header_params,
@@ -1476,10 +1468,11 @@ class SnapshotsApi:
1476
1468
 
1477
1469
 
1478
1470
  @validate_call
1479
- def post_snapshot_restore(
1471
+ def retrieves_a_list_of_snapshots(
1480
1472
  self,
1481
- id: StrictInt,
1482
- payload: SnapshotRestoreRequest,
1473
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
1474
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
1475
+ search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
1483
1476
  _request_timeout: Union[
1484
1477
  None,
1485
1478
  Annotated[StrictFloat, Field(gt=0)],
@@ -1492,15 +1485,17 @@ class SnapshotsApi:
1492
1485
  _content_type: Optional[StrictStr] = None,
1493
1486
  _headers: Optional[Dict[StrictStr, Any]] = None,
1494
1487
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1495
- ) -> Instance:
1496
- """Restore a snapshot
1488
+ ) -> Snapshots:
1489
+ """Retrieve list of snapshots with pagination
1497
1490
 
1498
- Restore a snapshot.
1491
+ Retrieves a list of snapshots, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
1499
1492
 
1500
- :param id: (required)
1501
- :type id: int
1502
- :param payload: (required)
1503
- :type payload: SnapshotRestoreRequest
1493
+ :param page: Page Number
1494
+ :type page: str
1495
+ :param page_size: Data Per Page
1496
+ :type page_size: str
1497
+ :param search: Search By Snapshot ID or Name
1498
+ :type search: str
1504
1499
  :param _request_timeout: timeout setting for this request. If one
1505
1500
  number provided, it will be total request
1506
1501
  timeout. It can also be a pair (tuple) of
@@ -1523,9 +1518,10 @@ class SnapshotsApi:
1523
1518
  :return: Returns the result object.
1524
1519
  """ # noqa: E501
1525
1520
 
1526
- _param = self._post_snapshot_restore_serialize(
1527
- id=id,
1528
- payload=payload,
1521
+ _param = self._retrieves_a_list_of_snapshots_serialize(
1522
+ page=page,
1523
+ page_size=page_size,
1524
+ search=search,
1529
1525
  _request_auth=_request_auth,
1530
1526
  _content_type=_content_type,
1531
1527
  _headers=_headers,
@@ -1533,7 +1529,7 @@ class SnapshotsApi:
1533
1529
  )
1534
1530
 
1535
1531
  _response_types_map: Dict[str, Optional[str]] = {
1536
- '200': "Instance",
1532
+ '200': "Snapshots",
1537
1533
  '400': "ErrorResponseModel",
1538
1534
  '401': "ErrorResponseModel",
1539
1535
  '500': None,
@@ -1550,10 +1546,11 @@ class SnapshotsApi:
1550
1546
 
1551
1547
 
1552
1548
  @validate_call
1553
- def post_snapshot_restore_with_http_info(
1549
+ def retrieves_a_list_of_snapshots_with_http_info(
1554
1550
  self,
1555
- id: StrictInt,
1556
- payload: SnapshotRestoreRequest,
1551
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
1552
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
1553
+ search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
1557
1554
  _request_timeout: Union[
1558
1555
  None,
1559
1556
  Annotated[StrictFloat, Field(gt=0)],
@@ -1566,15 +1563,17 @@ class SnapshotsApi:
1566
1563
  _content_type: Optional[StrictStr] = None,
1567
1564
  _headers: Optional[Dict[StrictStr, Any]] = None,
1568
1565
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1569
- ) -> ApiResponse[Instance]:
1570
- """Restore a snapshot
1566
+ ) -> ApiResponse[Snapshots]:
1567
+ """Retrieve list of snapshots with pagination
1571
1568
 
1572
- Restore a snapshot.
1569
+ Retrieves a list of snapshots, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
1573
1570
 
1574
- :param id: (required)
1575
- :type id: int
1576
- :param payload: (required)
1577
- :type payload: SnapshotRestoreRequest
1571
+ :param page: Page Number
1572
+ :type page: str
1573
+ :param page_size: Data Per Page
1574
+ :type page_size: str
1575
+ :param search: Search By Snapshot ID or Name
1576
+ :type search: str
1578
1577
  :param _request_timeout: timeout setting for this request. If one
1579
1578
  number provided, it will be total request
1580
1579
  timeout. It can also be a pair (tuple) of
@@ -1597,9 +1596,10 @@ class SnapshotsApi:
1597
1596
  :return: Returns the result object.
1598
1597
  """ # noqa: E501
1599
1598
 
1600
- _param = self._post_snapshot_restore_serialize(
1601
- id=id,
1602
- payload=payload,
1599
+ _param = self._retrieves_a_list_of_snapshots_serialize(
1600
+ page=page,
1601
+ page_size=page_size,
1602
+ search=search,
1603
1603
  _request_auth=_request_auth,
1604
1604
  _content_type=_content_type,
1605
1605
  _headers=_headers,
@@ -1607,7 +1607,7 @@ class SnapshotsApi:
1607
1607
  )
1608
1608
 
1609
1609
  _response_types_map: Dict[str, Optional[str]] = {
1610
- '200': "Instance",
1610
+ '200': "Snapshots",
1611
1611
  '400': "ErrorResponseModel",
1612
1612
  '401': "ErrorResponseModel",
1613
1613
  '500': None,
@@ -1624,10 +1624,11 @@ class SnapshotsApi:
1624
1624
 
1625
1625
 
1626
1626
  @validate_call
1627
- def post_snapshot_restore_without_preload_content(
1627
+ def retrieves_a_list_of_snapshots_without_preload_content(
1628
1628
  self,
1629
- id: StrictInt,
1630
- payload: SnapshotRestoreRequest,
1629
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
1630
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
1631
+ search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
1631
1632
  _request_timeout: Union[
1632
1633
  None,
1633
1634
  Annotated[StrictFloat, Field(gt=0)],
@@ -1641,14 +1642,16 @@ class SnapshotsApi:
1641
1642
  _headers: Optional[Dict[StrictStr, Any]] = None,
1642
1643
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1643
1644
  ) -> RESTResponseType:
1644
- """Restore a snapshot
1645
+ """Retrieve list of snapshots with pagination
1645
1646
 
1646
- Restore a snapshot.
1647
+ Retrieves a list of snapshots, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
1647
1648
 
1648
- :param id: (required)
1649
- :type id: int
1650
- :param payload: (required)
1651
- :type payload: SnapshotRestoreRequest
1649
+ :param page: Page Number
1650
+ :type page: str
1651
+ :param page_size: Data Per Page
1652
+ :type page_size: str
1653
+ :param search: Search By Snapshot ID or Name
1654
+ :type search: str
1652
1655
  :param _request_timeout: timeout setting for this request. If one
1653
1656
  number provided, it will be total request
1654
1657
  timeout. It can also be a pair (tuple) of
@@ -1671,9 +1674,10 @@ class SnapshotsApi:
1671
1674
  :return: Returns the result object.
1672
1675
  """ # noqa: E501
1673
1676
 
1674
- _param = self._post_snapshot_restore_serialize(
1675
- id=id,
1676
- payload=payload,
1677
+ _param = self._retrieves_a_list_of_snapshots_serialize(
1678
+ page=page,
1679
+ page_size=page_size,
1680
+ search=search,
1677
1681
  _request_auth=_request_auth,
1678
1682
  _content_type=_content_type,
1679
1683
  _headers=_headers,
@@ -1681,7 +1685,7 @@ class SnapshotsApi:
1681
1685
  )
1682
1686
 
1683
1687
  _response_types_map: Dict[str, Optional[str]] = {
1684
- '200': "Instance",
1688
+ '200': "Snapshots",
1685
1689
  '400': "ErrorResponseModel",
1686
1690
  '401': "ErrorResponseModel",
1687
1691
  '500': None,
@@ -1693,10 +1697,11 @@ class SnapshotsApi:
1693
1697
  return response_data.response
1694
1698
 
1695
1699
 
1696
- def _post_snapshot_restore_serialize(
1700
+ def _retrieves_a_list_of_snapshots_serialize(
1697
1701
  self,
1698
- id,
1699
- payload,
1702
+ page,
1703
+ page_size,
1704
+ search,
1700
1705
  _request_auth,
1701
1706
  _content_type,
1702
1707
  _headers,
@@ -1718,14 +1723,22 @@ class SnapshotsApi:
1718
1723
  _body_params: Optional[bytes] = None
1719
1724
 
1720
1725
  # process the path parameters
1721
- if id is not None:
1722
- _path_params['id'] = id
1723
1726
  # process the query parameters
1727
+ if page is not None:
1728
+
1729
+ _query_params.append(('page', page))
1730
+
1731
+ if page_size is not None:
1732
+
1733
+ _query_params.append(('pageSize', page_size))
1734
+
1735
+ if search is not None:
1736
+
1737
+ _query_params.append(('search', search))
1738
+
1724
1739
  # process the header parameters
1725
1740
  # process the form parameters
1726
1741
  # process the body parameter
1727
- if payload is not None:
1728
- _body_params = payload
1729
1742
 
1730
1743
 
1731
1744
  # set the HTTP header `Accept`
@@ -1736,19 +1749,6 @@ class SnapshotsApi:
1736
1749
  ]
1737
1750
  )
1738
1751
 
1739
- # set the HTTP header `Content-Type`
1740
- if _content_type:
1741
- _header_params['Content-Type'] = _content_type
1742
- else:
1743
- _default_content_type = (
1744
- self.api_client.select_header_content_type(
1745
- [
1746
- 'application/json'
1747
- ]
1748
- )
1749
- )
1750
- if _default_content_type is not None:
1751
- _header_params['Content-Type'] = _default_content_type
1752
1752
 
1753
1753
  # authentication setting
1754
1754
  _auth_settings: List[str] = [
@@ -1756,8 +1756,8 @@ class SnapshotsApi:
1756
1756
  ]
1757
1757
 
1758
1758
  return self.api_client.param_serialize(
1759
- method='POST',
1760
- resource_path='/core/snapshots/{id}/restore',
1759
+ method='GET',
1760
+ resource_path='/core/snapshots',
1761
1761
  path_params=_path_params,
1762
1762
  query_params=_query_params,
1763
1763
  header_params=_header_params,