stackit-sqlserverflex 1.0.1__py3-none-any.whl → 1.0.3__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.
Files changed (68) hide show
  1. stackit/sqlserverflex/__init__.py +201 -68
  2. stackit/sqlserverflex/api/default_api.py +509 -115
  3. stackit/sqlserverflex/api_client.py +18 -5
  4. stackit/sqlserverflex/configuration.py +33 -11
  5. stackit/sqlserverflex/exceptions.py +20 -1
  6. stackit/sqlserverflex/models/__init__.py +5 -1
  7. stackit/sqlserverflex/models/acl.py +2 -2
  8. stackit/sqlserverflex/models/backup.py +2 -2
  9. stackit/sqlserverflex/models/backup_list_backups_response_grouped.py +2 -2
  10. stackit/sqlserverflex/models/create_database_payload.py +2 -2
  11. stackit/sqlserverflex/models/create_database_response.py +2 -2
  12. stackit/sqlserverflex/models/create_instance_payload.py +2 -2
  13. stackit/sqlserverflex/models/create_instance_response.py +2 -2
  14. stackit/sqlserverflex/models/create_user_payload.py +2 -2
  15. stackit/sqlserverflex/models/create_user_response.py +2 -2
  16. stackit/sqlserverflex/models/data_point.py +83 -0
  17. stackit/sqlserverflex/models/database.py +2 -2
  18. stackit/sqlserverflex/models/database_documentation_create_database_request_options.py +2 -2
  19. stackit/sqlserverflex/models/database_options.py +2 -2
  20. stackit/sqlserverflex/models/flavor.py +2 -2
  21. stackit/sqlserverflex/models/get_backup_response.py +2 -2
  22. stackit/sqlserverflex/models/get_database_response.py +2 -2
  23. stackit/sqlserverflex/models/get_instance_response.py +2 -2
  24. stackit/sqlserverflex/models/get_user_response.py +2 -2
  25. stackit/sqlserverflex/models/host.py +101 -0
  26. stackit/sqlserverflex/models/host_metric.py +103 -0
  27. stackit/sqlserverflex/models/instance.py +2 -2
  28. stackit/sqlserverflex/models/instance_documentation_acl.py +2 -2
  29. stackit/sqlserverflex/models/instance_documentation_options.py +2 -2
  30. stackit/sqlserverflex/models/instance_documentation_storage.py +2 -2
  31. stackit/sqlserverflex/models/instance_error.py +2 -2
  32. stackit/sqlserverflex/models/instance_flavor_entry.py +2 -2
  33. stackit/sqlserverflex/models/instance_list_instance.py +2 -2
  34. stackit/sqlserverflex/models/instance_list_user.py +2 -2
  35. stackit/sqlserverflex/models/list_backups_response.py +2 -2
  36. stackit/sqlserverflex/models/list_collations_response.py +2 -2
  37. stackit/sqlserverflex/models/list_compatibility_response.py +2 -2
  38. stackit/sqlserverflex/models/list_databases_response.py +2 -2
  39. stackit/sqlserverflex/models/list_flavors_response.py +2 -2
  40. stackit/sqlserverflex/models/list_instances_response.py +2 -2
  41. stackit/sqlserverflex/models/list_metrics_response.py +93 -0
  42. stackit/sqlserverflex/models/list_restore_jobs_response.py +2 -2
  43. stackit/sqlserverflex/models/list_roles_response.py +2 -2
  44. stackit/sqlserverflex/models/list_storages_response.py +2 -2
  45. stackit/sqlserverflex/models/list_users_response.py +2 -2
  46. stackit/sqlserverflex/models/list_versions_response.py +2 -2
  47. stackit/sqlserverflex/models/mssql_database_collation.py +2 -2
  48. stackit/sqlserverflex/models/mssql_database_compatibility.py +2 -2
  49. stackit/sqlserverflex/models/partial_update_instance_payload.py +2 -2
  50. stackit/sqlserverflex/models/reset_user_response.py +2 -2
  51. stackit/sqlserverflex/models/restore_running_restore.py +2 -2
  52. stackit/sqlserverflex/models/single_database.py +2 -2
  53. stackit/sqlserverflex/models/single_user.py +2 -2
  54. stackit/sqlserverflex/models/storage.py +2 -2
  55. stackit/sqlserverflex/models/storage_range.py +2 -2
  56. stackit/sqlserverflex/models/trigger_database_restore_payload.py +2 -2
  57. stackit/sqlserverflex/models/type.py +1 -1
  58. stackit/sqlserverflex/models/update_instance_payload.py +2 -2
  59. stackit/sqlserverflex/models/update_instance_response.py +2 -2
  60. stackit/sqlserverflex/models/user.py +2 -2
  61. stackit/sqlserverflex/models/user_response_user.py +2 -2
  62. stackit/sqlserverflex/rest.py +2 -2
  63. {stackit_sqlserverflex-1.0.1.dist-info → stackit_sqlserverflex-1.0.3.dist-info}/METADATA +1 -1
  64. stackit_sqlserverflex-1.0.3.dist-info/RECORD +70 -0
  65. stackit_sqlserverflex-1.0.1.dist-info/RECORD +0 -66
  66. {stackit_sqlserverflex-1.0.1.dist-info → stackit_sqlserverflex-1.0.3.dist-info}/LICENSE.md +0 -0
  67. {stackit_sqlserverflex-1.0.1.dist-info → stackit_sqlserverflex-1.0.3.dist-info}/NOTICE.txt +0 -0
  68. {stackit_sqlserverflex-1.0.1.dist-info → stackit_sqlserverflex-1.0.3.dist-info}/WHEEL +0 -0
@@ -10,7 +10,7 @@
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from typing import Any, Dict, List, Optional, Tuple, Union
16
16
 
@@ -44,6 +44,7 @@ from stackit.sqlserverflex.models.list_compatibility_response import (
44
44
  from stackit.sqlserverflex.models.list_databases_response import ListDatabasesResponse
45
45
  from stackit.sqlserverflex.models.list_flavors_response import ListFlavorsResponse
46
46
  from stackit.sqlserverflex.models.list_instances_response import ListInstancesResponse
47
+ from stackit.sqlserverflex.models.list_metrics_response import ListMetricsResponse
47
48
  from stackit.sqlserverflex.models.list_restore_jobs_response import (
48
49
  ListRestoreJobsResponse,
49
50
  )
@@ -125,7 +126,7 @@ class DefaultApi:
125
126
  in the spec for a single request.
126
127
  :type _host_index: int, optional
127
128
  :return: Returns the result object.
128
- """ # noqa: E501 docstring might be too long
129
+ """ # noqa: E501
129
130
 
130
131
  _param = self._create_database_serialize(
131
132
  project_id=project_id,
@@ -201,7 +202,7 @@ class DefaultApi:
201
202
  in the spec for a single request.
202
203
  :type _host_index: int, optional
203
204
  :return: Returns the result object.
204
- """ # noqa: E501 docstring might be too long
205
+ """ # noqa: E501
205
206
 
206
207
  _param = self._create_database_serialize(
207
208
  project_id=project_id,
@@ -277,7 +278,7 @@ class DefaultApi:
277
278
  in the spec for a single request.
278
279
  :type _host_index: int, optional
279
280
  :return: Returns the result object.
280
- """ # noqa: E501 docstring might be too long
281
+ """ # noqa: E501
281
282
 
282
283
  _param = self._create_database_serialize(
283
284
  project_id=project_id,
@@ -320,7 +321,7 @@ class DefaultApi:
320
321
  _query_params: List[Tuple[str, str]] = []
321
322
  _header_params: Dict[str, Optional[str]] = _headers or {}
322
323
  _form_params: List[Tuple[str, str]] = []
323
- _files: Dict[str, Union[str, bytes]] = {}
324
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
324
325
  _body_params: Optional[bytes] = None
325
326
 
326
327
  # process the path parameters
@@ -413,7 +414,7 @@ class DefaultApi:
413
414
  in the spec for a single request.
414
415
  :type _host_index: int, optional
415
416
  :return: Returns the result object.
416
- """ # noqa: E501 docstring might be too long
417
+ """ # noqa: E501
417
418
 
418
419
  _param = self._create_instance_serialize(
419
420
  project_id=project_id,
@@ -485,7 +486,7 @@ class DefaultApi:
485
486
  in the spec for a single request.
486
487
  :type _host_index: int, optional
487
488
  :return: Returns the result object.
488
- """ # noqa: E501 docstring might be too long
489
+ """ # noqa: E501
489
490
 
490
491
  _param = self._create_instance_serialize(
491
492
  project_id=project_id,
@@ -557,7 +558,7 @@ class DefaultApi:
557
558
  in the spec for a single request.
558
559
  :type _host_index: int, optional
559
560
  :return: Returns the result object.
560
- """ # noqa: E501 docstring might be too long
561
+ """ # noqa: E501
561
562
 
562
563
  _param = self._create_instance_serialize(
563
564
  project_id=project_id,
@@ -598,7 +599,7 @@ class DefaultApi:
598
599
  _query_params: List[Tuple[str, str]] = []
599
600
  _header_params: Dict[str, Optional[str]] = _headers or {}
600
601
  _form_params: List[Tuple[str, str]] = []
601
- _files: Dict[str, Union[str, bytes]] = {}
602
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
602
603
  _body_params: Optional[bytes] = None
603
604
 
604
605
  # process the path parameters
@@ -697,7 +698,7 @@ class DefaultApi:
697
698
  in the spec for a single request.
698
699
  :type _host_index: int, optional
699
700
  :return: Returns the result object.
700
- """ # noqa: E501 docstring might be too long
701
+ """ # noqa: E501
701
702
 
702
703
  _param = self._create_user_serialize(
703
704
  project_id=project_id,
@@ -778,7 +779,7 @@ class DefaultApi:
778
779
  in the spec for a single request.
779
780
  :type _host_index: int, optional
780
781
  :return: Returns the result object.
781
- """ # noqa: E501 docstring might be too long
782
+ """ # noqa: E501
782
783
 
783
784
  _param = self._create_user_serialize(
784
785
  project_id=project_id,
@@ -859,7 +860,7 @@ class DefaultApi:
859
860
  in the spec for a single request.
860
861
  :type _host_index: int, optional
861
862
  :return: Returns the result object.
862
- """ # noqa: E501 docstring might be too long
863
+ """ # noqa: E501
863
864
 
864
865
  _param = self._create_user_serialize(
865
866
  project_id=project_id,
@@ -902,7 +903,7 @@ class DefaultApi:
902
903
  _query_params: List[Tuple[str, str]] = []
903
904
  _header_params: Dict[str, Optional[str]] = _headers or {}
904
905
  _form_params: List[Tuple[str, str]] = []
905
- _files: Dict[str, Union[str, bytes]] = {}
906
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
906
907
  _body_params: Optional[bytes] = None
907
908
 
908
909
  # process the path parameters
@@ -998,7 +999,7 @@ class DefaultApi:
998
999
  in the spec for a single request.
999
1000
  :type _host_index: int, optional
1000
1001
  :return: Returns the result object.
1001
- """ # noqa: E501 docstring might be too long
1002
+ """ # noqa: E501
1002
1003
 
1003
1004
  _param = self._delete_database_serialize(
1004
1005
  project_id=project_id,
@@ -1074,7 +1075,7 @@ class DefaultApi:
1074
1075
  in the spec for a single request.
1075
1076
  :type _host_index: int, optional
1076
1077
  :return: Returns the result object.
1077
- """ # noqa: E501 docstring might be too long
1078
+ """ # noqa: E501
1078
1079
 
1079
1080
  _param = self._delete_database_serialize(
1080
1081
  project_id=project_id,
@@ -1150,7 +1151,7 @@ class DefaultApi:
1150
1151
  in the spec for a single request.
1151
1152
  :type _host_index: int, optional
1152
1153
  :return: Returns the result object.
1153
- """ # noqa: E501 docstring might be too long
1154
+ """ # noqa: E501
1154
1155
 
1155
1156
  _param = self._delete_database_serialize(
1156
1157
  project_id=project_id,
@@ -1193,7 +1194,7 @@ class DefaultApi:
1193
1194
  _query_params: List[Tuple[str, str]] = []
1194
1195
  _header_params: Dict[str, Optional[str]] = _headers or {}
1195
1196
  _form_params: List[Tuple[str, str]] = []
1196
- _files: Dict[str, Union[str, bytes]] = {}
1197
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1197
1198
  _body_params: Optional[bytes] = None
1198
1199
 
1199
1200
  # process the path parameters
@@ -1278,7 +1279,7 @@ class DefaultApi:
1278
1279
  in the spec for a single request.
1279
1280
  :type _host_index: int, optional
1280
1281
  :return: Returns the result object.
1281
- """ # noqa: E501 docstring might be too long
1282
+ """ # noqa: E501
1282
1283
 
1283
1284
  _param = self._delete_instance_serialize(
1284
1285
  project_id=project_id,
@@ -1350,7 +1351,7 @@ class DefaultApi:
1350
1351
  in the spec for a single request.
1351
1352
  :type _host_index: int, optional
1352
1353
  :return: Returns the result object.
1353
- """ # noqa: E501 docstring might be too long
1354
+ """ # noqa: E501
1354
1355
 
1355
1356
  _param = self._delete_instance_serialize(
1356
1357
  project_id=project_id,
@@ -1422,7 +1423,7 @@ class DefaultApi:
1422
1423
  in the spec for a single request.
1423
1424
  :type _host_index: int, optional
1424
1425
  :return: Returns the result object.
1425
- """ # noqa: E501 docstring might be too long
1426
+ """ # noqa: E501
1426
1427
 
1427
1428
  _param = self._delete_instance_serialize(
1428
1429
  project_id=project_id,
@@ -1463,7 +1464,7 @@ class DefaultApi:
1463
1464
  _query_params: List[Tuple[str, str]] = []
1464
1465
  _header_params: Dict[str, Optional[str]] = _headers or {}
1465
1466
  _form_params: List[Tuple[str, str]] = []
1466
- _files: Dict[str, Union[str, bytes]] = {}
1467
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1467
1468
  _body_params: Optional[bytes] = None
1468
1469
 
1469
1470
  # process the path parameters
@@ -1549,7 +1550,7 @@ class DefaultApi:
1549
1550
  in the spec for a single request.
1550
1551
  :type _host_index: int, optional
1551
1552
  :return: Returns the result object.
1552
- """ # noqa: E501 docstring might be too long
1553
+ """ # noqa: E501
1553
1554
 
1554
1555
  _param = self._delete_user_serialize(
1555
1556
  project_id=project_id,
@@ -1625,7 +1626,7 @@ class DefaultApi:
1625
1626
  in the spec for a single request.
1626
1627
  :type _host_index: int, optional
1627
1628
  :return: Returns the result object.
1628
- """ # noqa: E501 docstring might be too long
1629
+ """ # noqa: E501
1629
1630
 
1630
1631
  _param = self._delete_user_serialize(
1631
1632
  project_id=project_id,
@@ -1701,7 +1702,7 @@ class DefaultApi:
1701
1702
  in the spec for a single request.
1702
1703
  :type _host_index: int, optional
1703
1704
  :return: Returns the result object.
1704
- """ # noqa: E501 docstring might be too long
1705
+ """ # noqa: E501
1705
1706
 
1706
1707
  _param = self._delete_user_serialize(
1707
1708
  project_id=project_id,
@@ -1744,7 +1745,7 @@ class DefaultApi:
1744
1745
  _query_params: List[Tuple[str, str]] = []
1745
1746
  _header_params: Dict[str, Optional[str]] = _headers or {}
1746
1747
  _form_params: List[Tuple[str, str]] = []
1747
- _files: Dict[str, Union[str, bytes]] = {}
1748
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1748
1749
  _body_params: Optional[bytes] = None
1749
1750
 
1750
1751
  # process the path parameters
@@ -1832,7 +1833,7 @@ class DefaultApi:
1832
1833
  in the spec for a single request.
1833
1834
  :type _host_index: int, optional
1834
1835
  :return: Returns the result object.
1835
- """ # noqa: E501 docstring might be too long
1836
+ """ # noqa: E501
1836
1837
 
1837
1838
  _param = self._get_backup_serialize(
1838
1839
  project_id=project_id,
@@ -1908,7 +1909,7 @@ class DefaultApi:
1908
1909
  in the spec for a single request.
1909
1910
  :type _host_index: int, optional
1910
1911
  :return: Returns the result object.
1911
- """ # noqa: E501 docstring might be too long
1912
+ """ # noqa: E501
1912
1913
 
1913
1914
  _param = self._get_backup_serialize(
1914
1915
  project_id=project_id,
@@ -1984,7 +1985,7 @@ class DefaultApi:
1984
1985
  in the spec for a single request.
1985
1986
  :type _host_index: int, optional
1986
1987
  :return: Returns the result object.
1987
- """ # noqa: E501 docstring might be too long
1988
+ """ # noqa: E501
1988
1989
 
1989
1990
  _param = self._get_backup_serialize(
1990
1991
  project_id=project_id,
@@ -2027,7 +2028,7 @@ class DefaultApi:
2027
2028
  _query_params: List[Tuple[str, str]] = []
2028
2029
  _header_params: Dict[str, Optional[str]] = _headers or {}
2029
2030
  _form_params: List[Tuple[str, str]] = []
2030
- _files: Dict[str, Union[str, bytes]] = {}
2031
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2031
2032
  _body_params: Optional[bytes] = None
2032
2033
 
2033
2034
  # process the path parameters
@@ -2115,7 +2116,7 @@ class DefaultApi:
2115
2116
  in the spec for a single request.
2116
2117
  :type _host_index: int, optional
2117
2118
  :return: Returns the result object.
2118
- """ # noqa: E501 docstring might be too long
2119
+ """ # noqa: E501
2119
2120
 
2120
2121
  _param = self._get_database_serialize(
2121
2122
  project_id=project_id,
@@ -2191,7 +2192,7 @@ class DefaultApi:
2191
2192
  in the spec for a single request.
2192
2193
  :type _host_index: int, optional
2193
2194
  :return: Returns the result object.
2194
- """ # noqa: E501 docstring might be too long
2195
+ """ # noqa: E501
2195
2196
 
2196
2197
  _param = self._get_database_serialize(
2197
2198
  project_id=project_id,
@@ -2267,7 +2268,7 @@ class DefaultApi:
2267
2268
  in the spec for a single request.
2268
2269
  :type _host_index: int, optional
2269
2270
  :return: Returns the result object.
2270
- """ # noqa: E501 docstring might be too long
2271
+ """ # noqa: E501
2271
2272
 
2272
2273
  _param = self._get_database_serialize(
2273
2274
  project_id=project_id,
@@ -2310,7 +2311,7 @@ class DefaultApi:
2310
2311
  _query_params: List[Tuple[str, str]] = []
2311
2312
  _header_params: Dict[str, Optional[str]] = _headers or {}
2312
2313
  _form_params: List[Tuple[str, str]] = []
2313
- _files: Dict[str, Union[str, bytes]] = {}
2314
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2314
2315
  _body_params: Optional[bytes] = None
2315
2316
 
2316
2317
  # process the path parameters
@@ -2395,7 +2396,7 @@ class DefaultApi:
2395
2396
  in the spec for a single request.
2396
2397
  :type _host_index: int, optional
2397
2398
  :return: Returns the result object.
2398
- """ # noqa: E501 docstring might be too long
2399
+ """ # noqa: E501
2399
2400
 
2400
2401
  _param = self._get_instance_serialize(
2401
2402
  project_id=project_id,
@@ -2467,7 +2468,7 @@ class DefaultApi:
2467
2468
  in the spec for a single request.
2468
2469
  :type _host_index: int, optional
2469
2470
  :return: Returns the result object.
2470
- """ # noqa: E501 docstring might be too long
2471
+ """ # noqa: E501
2471
2472
 
2472
2473
  _param = self._get_instance_serialize(
2473
2474
  project_id=project_id,
@@ -2539,7 +2540,7 @@ class DefaultApi:
2539
2540
  in the spec for a single request.
2540
2541
  :type _host_index: int, optional
2541
2542
  :return: Returns the result object.
2542
- """ # noqa: E501 docstring might be too long
2543
+ """ # noqa: E501
2543
2544
 
2544
2545
  _param = self._get_instance_serialize(
2545
2546
  project_id=project_id,
@@ -2580,7 +2581,7 @@ class DefaultApi:
2580
2581
  _query_params: List[Tuple[str, str]] = []
2581
2582
  _header_params: Dict[str, Optional[str]] = _headers or {}
2582
2583
  _form_params: List[Tuple[str, str]] = []
2583
- _files: Dict[str, Union[str, bytes]] = {}
2584
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2584
2585
  _body_params: Optional[bytes] = None
2585
2586
 
2586
2587
  # process the path parameters
@@ -2666,7 +2667,7 @@ class DefaultApi:
2666
2667
  in the spec for a single request.
2667
2668
  :type _host_index: int, optional
2668
2669
  :return: Returns the result object.
2669
- """ # noqa: E501 docstring might be too long
2670
+ """ # noqa: E501
2670
2671
 
2671
2672
  _param = self._get_user_serialize(
2672
2673
  project_id=project_id,
@@ -2743,7 +2744,7 @@ class DefaultApi:
2743
2744
  in the spec for a single request.
2744
2745
  :type _host_index: int, optional
2745
2746
  :return: Returns the result object.
2746
- """ # noqa: E501 docstring might be too long
2747
+ """ # noqa: E501
2747
2748
 
2748
2749
  _param = self._get_user_serialize(
2749
2750
  project_id=project_id,
@@ -2820,7 +2821,7 @@ class DefaultApi:
2820
2821
  in the spec for a single request.
2821
2822
  :type _host_index: int, optional
2822
2823
  :return: Returns the result object.
2823
- """ # noqa: E501 docstring might be too long
2824
+ """ # noqa: E501
2824
2825
 
2825
2826
  _param = self._get_user_serialize(
2826
2827
  project_id=project_id,
@@ -2864,7 +2865,7 @@ class DefaultApi:
2864
2865
  _query_params: List[Tuple[str, str]] = []
2865
2866
  _header_params: Dict[str, Optional[str]] = _headers or {}
2866
2867
  _form_params: List[Tuple[str, str]] = []
2867
- _files: Dict[str, Union[str, bytes]] = {}
2868
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2868
2869
  _body_params: Optional[bytes] = None
2869
2870
 
2870
2871
  # process the path parameters
@@ -2949,7 +2950,7 @@ class DefaultApi:
2949
2950
  in the spec for a single request.
2950
2951
  :type _host_index: int, optional
2951
2952
  :return: Returns the result object.
2952
- """ # noqa: E501 docstring might be too long
2953
+ """ # noqa: E501
2953
2954
 
2954
2955
  _param = self._list_backups_serialize(
2955
2956
  project_id=project_id,
@@ -3021,7 +3022,7 @@ class DefaultApi:
3021
3022
  in the spec for a single request.
3022
3023
  :type _host_index: int, optional
3023
3024
  :return: Returns the result object.
3024
- """ # noqa: E501 docstring might be too long
3025
+ """ # noqa: E501
3025
3026
 
3026
3027
  _param = self._list_backups_serialize(
3027
3028
  project_id=project_id,
@@ -3093,7 +3094,7 @@ class DefaultApi:
3093
3094
  in the spec for a single request.
3094
3095
  :type _host_index: int, optional
3095
3096
  :return: Returns the result object.
3096
- """ # noqa: E501 docstring might be too long
3097
+ """ # noqa: E501
3097
3098
 
3098
3099
  _param = self._list_backups_serialize(
3099
3100
  project_id=project_id,
@@ -3134,7 +3135,7 @@ class DefaultApi:
3134
3135
  _query_params: List[Tuple[str, str]] = []
3135
3136
  _header_params: Dict[str, Optional[str]] = _headers or {}
3136
3137
  _form_params: List[Tuple[str, str]] = []
3137
- _files: Dict[str, Union[str, bytes]] = {}
3138
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3138
3139
  _body_params: Optional[bytes] = None
3139
3140
 
3140
3141
  # process the path parameters
@@ -3217,7 +3218,7 @@ class DefaultApi:
3217
3218
  in the spec for a single request.
3218
3219
  :type _host_index: int, optional
3219
3220
  :return: Returns the result object.
3220
- """ # noqa: E501 docstring might be too long
3221
+ """ # noqa: E501
3221
3222
 
3222
3223
  _param = self._list_collations_serialize(
3223
3224
  project_id=project_id,
@@ -3289,7 +3290,7 @@ class DefaultApi:
3289
3290
  in the spec for a single request.
3290
3291
  :type _host_index: int, optional
3291
3292
  :return: Returns the result object.
3292
- """ # noqa: E501 docstring might be too long
3293
+ """ # noqa: E501
3293
3294
 
3294
3295
  _param = self._list_collations_serialize(
3295
3296
  project_id=project_id,
@@ -3361,7 +3362,7 @@ class DefaultApi:
3361
3362
  in the spec for a single request.
3362
3363
  :type _host_index: int, optional
3363
3364
  :return: Returns the result object.
3364
- """ # noqa: E501 docstring might be too long
3365
+ """ # noqa: E501
3365
3366
 
3366
3367
  _param = self._list_collations_serialize(
3367
3368
  project_id=project_id,
@@ -3402,7 +3403,7 @@ class DefaultApi:
3402
3403
  _query_params: List[Tuple[str, str]] = []
3403
3404
  _header_params: Dict[str, Optional[str]] = _headers or {}
3404
3405
  _form_params: List[Tuple[str, str]] = []
3405
- _files: Dict[str, Union[str, bytes]] = {}
3406
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3406
3407
  _body_params: Optional[bytes] = None
3407
3408
 
3408
3409
  # process the path parameters
@@ -3485,7 +3486,7 @@ class DefaultApi:
3485
3486
  in the spec for a single request.
3486
3487
  :type _host_index: int, optional
3487
3488
  :return: Returns the result object.
3488
- """ # noqa: E501 docstring might be too long
3489
+ """ # noqa: E501
3489
3490
 
3490
3491
  _param = self._list_compatibility_serialize(
3491
3492
  project_id=project_id,
@@ -3557,7 +3558,7 @@ class DefaultApi:
3557
3558
  in the spec for a single request.
3558
3559
  :type _host_index: int, optional
3559
3560
  :return: Returns the result object.
3560
- """ # noqa: E501 docstring might be too long
3561
+ """ # noqa: E501
3561
3562
 
3562
3563
  _param = self._list_compatibility_serialize(
3563
3564
  project_id=project_id,
@@ -3629,7 +3630,7 @@ class DefaultApi:
3629
3630
  in the spec for a single request.
3630
3631
  :type _host_index: int, optional
3631
3632
  :return: Returns the result object.
3632
- """ # noqa: E501 docstring might be too long
3633
+ """ # noqa: E501
3633
3634
 
3634
3635
  _param = self._list_compatibility_serialize(
3635
3636
  project_id=project_id,
@@ -3670,7 +3671,7 @@ class DefaultApi:
3670
3671
  _query_params: List[Tuple[str, str]] = []
3671
3672
  _header_params: Dict[str, Optional[str]] = _headers or {}
3672
3673
  _form_params: List[Tuple[str, str]] = []
3673
- _files: Dict[str, Union[str, bytes]] = {}
3674
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3674
3675
  _body_params: Optional[bytes] = None
3675
3676
 
3676
3677
  # process the path parameters
@@ -3753,7 +3754,7 @@ class DefaultApi:
3753
3754
  in the spec for a single request.
3754
3755
  :type _host_index: int, optional
3755
3756
  :return: Returns the result object.
3756
- """ # noqa: E501 docstring might be too long
3757
+ """ # noqa: E501
3757
3758
 
3758
3759
  _param = self._list_databases_serialize(
3759
3760
  project_id=project_id,
@@ -3825,7 +3826,7 @@ class DefaultApi:
3825
3826
  in the spec for a single request.
3826
3827
  :type _host_index: int, optional
3827
3828
  :return: Returns the result object.
3828
- """ # noqa: E501 docstring might be too long
3829
+ """ # noqa: E501
3829
3830
 
3830
3831
  _param = self._list_databases_serialize(
3831
3832
  project_id=project_id,
@@ -3897,7 +3898,7 @@ class DefaultApi:
3897
3898
  in the spec for a single request.
3898
3899
  :type _host_index: int, optional
3899
3900
  :return: Returns the result object.
3900
- """ # noqa: E501 docstring might be too long
3901
+ """ # noqa: E501
3901
3902
 
3902
3903
  _param = self._list_databases_serialize(
3903
3904
  project_id=project_id,
@@ -3938,7 +3939,7 @@ class DefaultApi:
3938
3939
  _query_params: List[Tuple[str, str]] = []
3939
3940
  _header_params: Dict[str, Optional[str]] = _headers or {}
3940
3941
  _form_params: List[Tuple[str, str]] = []
3941
- _files: Dict[str, Union[str, bytes]] = {}
3942
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3942
3943
  _body_params: Optional[bytes] = None
3943
3944
 
3944
3945
  # process the path parameters
@@ -4018,7 +4019,7 @@ class DefaultApi:
4018
4019
  in the spec for a single request.
4019
4020
  :type _host_index: int, optional
4020
4021
  :return: Returns the result object.
4021
- """ # noqa: E501 docstring might be too long
4022
+ """ # noqa: E501
4022
4023
 
4023
4024
  _param = self._list_flavors_serialize(
4024
4025
  project_id=project_id,
@@ -4086,7 +4087,7 @@ class DefaultApi:
4086
4087
  in the spec for a single request.
4087
4088
  :type _host_index: int, optional
4088
4089
  :return: Returns the result object.
4089
- """ # noqa: E501 docstring might be too long
4090
+ """ # noqa: E501
4090
4091
 
4091
4092
  _param = self._list_flavors_serialize(
4092
4093
  project_id=project_id,
@@ -4154,7 +4155,7 @@ class DefaultApi:
4154
4155
  in the spec for a single request.
4155
4156
  :type _host_index: int, optional
4156
4157
  :return: Returns the result object.
4157
- """ # noqa: E501 docstring might be too long
4158
+ """ # noqa: E501
4158
4159
 
4159
4160
  _param = self._list_flavors_serialize(
4160
4161
  project_id=project_id,
@@ -4193,7 +4194,7 @@ class DefaultApi:
4193
4194
  _query_params: List[Tuple[str, str]] = []
4194
4195
  _header_params: Dict[str, Optional[str]] = _headers or {}
4195
4196
  _form_params: List[Tuple[str, str]] = []
4196
- _files: Dict[str, Union[str, bytes]] = {}
4197
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4197
4198
  _body_params: Optional[bytes] = None
4198
4199
 
4199
4200
  # process the path parameters
@@ -4271,7 +4272,7 @@ class DefaultApi:
4271
4272
  in the spec for a single request.
4272
4273
  :type _host_index: int, optional
4273
4274
  :return: Returns the result object.
4274
- """ # noqa: E501 docstring might be too long
4275
+ """ # noqa: E501
4275
4276
 
4276
4277
  _param = self._list_instances_serialize(
4277
4278
  project_id=project_id,
@@ -4339,7 +4340,7 @@ class DefaultApi:
4339
4340
  in the spec for a single request.
4340
4341
  :type _host_index: int, optional
4341
4342
  :return: Returns the result object.
4342
- """ # noqa: E501 docstring might be too long
4343
+ """ # noqa: E501
4343
4344
 
4344
4345
  _param = self._list_instances_serialize(
4345
4346
  project_id=project_id,
@@ -4407,7 +4408,7 @@ class DefaultApi:
4407
4408
  in the spec for a single request.
4408
4409
  :type _host_index: int, optional
4409
4410
  :return: Returns the result object.
4410
- """ # noqa: E501 docstring might be too long
4411
+ """ # noqa: E501
4411
4412
 
4412
4413
  _param = self._list_instances_serialize(
4413
4414
  project_id=project_id,
@@ -4446,7 +4447,7 @@ class DefaultApi:
4446
4447
  _query_params: List[Tuple[str, str]] = []
4447
4448
  _header_params: Dict[str, Optional[str]] = _headers or {}
4448
4449
  _form_params: List[Tuple[str, str]] = []
4449
- _files: Dict[str, Union[str, bytes]] = {}
4450
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4450
4451
  _body_params: Optional[bytes] = None
4451
4452
 
4452
4453
  # process the path parameters
@@ -4481,6 +4482,399 @@ class DefaultApi:
4481
4482
  _request_auth=_request_auth,
4482
4483
  )
4483
4484
 
4485
+ @validate_call
4486
+ def list_metrics(
4487
+ self,
4488
+ project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
4489
+ instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4490
+ metric: Annotated[
4491
+ StrictStr,
4492
+ Field(
4493
+ description="The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'."
4494
+ ),
4495
+ ],
4496
+ granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")],
4497
+ period: Annotated[
4498
+ Optional[StrictStr],
4499
+ Field(
4500
+ description="The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used."
4501
+ ),
4502
+ ] = None,
4503
+ start: Annotated[
4504
+ Optional[StrictStr],
4505
+ Field(
4506
+ description="The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used."
4507
+ ),
4508
+ ] = None,
4509
+ end: Annotated[
4510
+ Optional[StrictStr],
4511
+ Field(
4512
+ description="The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'."
4513
+ ),
4514
+ ] = None,
4515
+ _request_timeout: Union[
4516
+ None,
4517
+ Annotated[StrictFloat, Field(gt=0)],
4518
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
4519
+ ] = None,
4520
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4521
+ _content_type: Optional[StrictStr] = None,
4522
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4523
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4524
+ ) -> ListMetricsResponse:
4525
+ """Get Metric
4526
+
4527
+ Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4528
+
4529
+ :param project_id: The UUID of the project. (required)
4530
+ :type project_id: str
4531
+ :param instance_id: The UUID of the instance. (required)
4532
+ :type instance_id: str
4533
+ :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required)
4534
+ :type metric: str
4535
+ :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
4536
+ :type granularity: str
4537
+ :param period: The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used.
4538
+ :type period: str
4539
+ :param start: The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used.
4540
+ :type start: str
4541
+ :param end: The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'.
4542
+ :type end: str
4543
+ :param _request_timeout: timeout setting for this request. If one
4544
+ number provided, it will be total request
4545
+ timeout. It can also be a pair (tuple) of
4546
+ (connection, read) timeouts.
4547
+ :type _request_timeout: int, tuple(int, int), optional
4548
+ :param _request_auth: set to override the auth_settings for an a single
4549
+ request; this effectively ignores the
4550
+ authentication in the spec for a single request.
4551
+ :type _request_auth: dict, optional
4552
+ :param _content_type: force content-type for the request.
4553
+ :type _content_type: str, Optional
4554
+ :param _headers: set to override the headers for a single
4555
+ request; this effectively ignores the headers
4556
+ in the spec for a single request.
4557
+ :type _headers: dict, optional
4558
+ :param _host_index: set to override the host_index for a single
4559
+ request; this effectively ignores the host_index
4560
+ in the spec for a single request.
4561
+ :type _host_index: int, optional
4562
+ :return: Returns the result object.
4563
+ """ # noqa: E501
4564
+
4565
+ _param = self._list_metrics_serialize(
4566
+ project_id=project_id,
4567
+ instance_id=instance_id,
4568
+ metric=metric,
4569
+ granularity=granularity,
4570
+ period=period,
4571
+ start=start,
4572
+ end=end,
4573
+ _request_auth=_request_auth,
4574
+ _content_type=_content_type,
4575
+ _headers=_headers,
4576
+ _host_index=_host_index,
4577
+ )
4578
+
4579
+ _response_types_map: Dict[str, Optional[str]] = {
4580
+ "200": "ListMetricsResponse",
4581
+ "400": "InstanceError",
4582
+ "405": "InstanceError",
4583
+ "500": "InstanceError",
4584
+ }
4585
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
4586
+ response_data.read()
4587
+ return self.api_client.response_deserialize(
4588
+ response_data=response_data,
4589
+ response_types_map=_response_types_map,
4590
+ ).data
4591
+
4592
+ @validate_call
4593
+ def list_metrics_with_http_info(
4594
+ self,
4595
+ project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
4596
+ instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4597
+ metric: Annotated[
4598
+ StrictStr,
4599
+ Field(
4600
+ description="The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'."
4601
+ ),
4602
+ ],
4603
+ granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")],
4604
+ period: Annotated[
4605
+ Optional[StrictStr],
4606
+ Field(
4607
+ description="The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used."
4608
+ ),
4609
+ ] = None,
4610
+ start: Annotated[
4611
+ Optional[StrictStr],
4612
+ Field(
4613
+ description="The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used."
4614
+ ),
4615
+ ] = None,
4616
+ end: Annotated[
4617
+ Optional[StrictStr],
4618
+ Field(
4619
+ description="The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'."
4620
+ ),
4621
+ ] = None,
4622
+ _request_timeout: Union[
4623
+ None,
4624
+ Annotated[StrictFloat, Field(gt=0)],
4625
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
4626
+ ] = None,
4627
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4628
+ _content_type: Optional[StrictStr] = None,
4629
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4630
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4631
+ ) -> ApiResponse[ListMetricsResponse]:
4632
+ """Get Metric
4633
+
4634
+ Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4635
+
4636
+ :param project_id: The UUID of the project. (required)
4637
+ :type project_id: str
4638
+ :param instance_id: The UUID of the instance. (required)
4639
+ :type instance_id: str
4640
+ :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required)
4641
+ :type metric: str
4642
+ :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
4643
+ :type granularity: str
4644
+ :param period: The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used.
4645
+ :type period: str
4646
+ :param start: The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used.
4647
+ :type start: str
4648
+ :param end: The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'.
4649
+ :type end: str
4650
+ :param _request_timeout: timeout setting for this request. If one
4651
+ number provided, it will be total request
4652
+ timeout. It can also be a pair (tuple) of
4653
+ (connection, read) timeouts.
4654
+ :type _request_timeout: int, tuple(int, int), optional
4655
+ :param _request_auth: set to override the auth_settings for an a single
4656
+ request; this effectively ignores the
4657
+ authentication in the spec for a single request.
4658
+ :type _request_auth: dict, optional
4659
+ :param _content_type: force content-type for the request.
4660
+ :type _content_type: str, Optional
4661
+ :param _headers: set to override the headers for a single
4662
+ request; this effectively ignores the headers
4663
+ in the spec for a single request.
4664
+ :type _headers: dict, optional
4665
+ :param _host_index: set to override the host_index for a single
4666
+ request; this effectively ignores the host_index
4667
+ in the spec for a single request.
4668
+ :type _host_index: int, optional
4669
+ :return: Returns the result object.
4670
+ """ # noqa: E501
4671
+
4672
+ _param = self._list_metrics_serialize(
4673
+ project_id=project_id,
4674
+ instance_id=instance_id,
4675
+ metric=metric,
4676
+ granularity=granularity,
4677
+ period=period,
4678
+ start=start,
4679
+ end=end,
4680
+ _request_auth=_request_auth,
4681
+ _content_type=_content_type,
4682
+ _headers=_headers,
4683
+ _host_index=_host_index,
4684
+ )
4685
+
4686
+ _response_types_map: Dict[str, Optional[str]] = {
4687
+ "200": "ListMetricsResponse",
4688
+ "400": "InstanceError",
4689
+ "405": "InstanceError",
4690
+ "500": "InstanceError",
4691
+ }
4692
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
4693
+ response_data.read()
4694
+ return self.api_client.response_deserialize(
4695
+ response_data=response_data,
4696
+ response_types_map=_response_types_map,
4697
+ )
4698
+
4699
+ @validate_call
4700
+ def list_metrics_without_preload_content(
4701
+ self,
4702
+ project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
4703
+ instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4704
+ metric: Annotated[
4705
+ StrictStr,
4706
+ Field(
4707
+ description="The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'."
4708
+ ),
4709
+ ],
4710
+ granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")],
4711
+ period: Annotated[
4712
+ Optional[StrictStr],
4713
+ Field(
4714
+ description="The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used."
4715
+ ),
4716
+ ] = None,
4717
+ start: Annotated[
4718
+ Optional[StrictStr],
4719
+ Field(
4720
+ description="The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used."
4721
+ ),
4722
+ ] = None,
4723
+ end: Annotated[
4724
+ Optional[StrictStr],
4725
+ Field(
4726
+ description="The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'."
4727
+ ),
4728
+ ] = None,
4729
+ _request_timeout: Union[
4730
+ None,
4731
+ Annotated[StrictFloat, Field(gt=0)],
4732
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
4733
+ ] = None,
4734
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4735
+ _content_type: Optional[StrictStr] = None,
4736
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4737
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4738
+ ) -> RESTResponseType:
4739
+ """Get Metric
4740
+
4741
+ Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4742
+
4743
+ :param project_id: The UUID of the project. (required)
4744
+ :type project_id: str
4745
+ :param instance_id: The UUID of the instance. (required)
4746
+ :type instance_id: str
4747
+ :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required)
4748
+ :type metric: str
4749
+ :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
4750
+ :type granularity: str
4751
+ :param period: The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used.
4752
+ :type period: str
4753
+ :param start: The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used.
4754
+ :type start: str
4755
+ :param end: The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'.
4756
+ :type end: str
4757
+ :param _request_timeout: timeout setting for this request. If one
4758
+ number provided, it will be total request
4759
+ timeout. It can also be a pair (tuple) of
4760
+ (connection, read) timeouts.
4761
+ :type _request_timeout: int, tuple(int, int), optional
4762
+ :param _request_auth: set to override the auth_settings for an a single
4763
+ request; this effectively ignores the
4764
+ authentication in the spec for a single request.
4765
+ :type _request_auth: dict, optional
4766
+ :param _content_type: force content-type for the request.
4767
+ :type _content_type: str, Optional
4768
+ :param _headers: set to override the headers for a single
4769
+ request; this effectively ignores the headers
4770
+ in the spec for a single request.
4771
+ :type _headers: dict, optional
4772
+ :param _host_index: set to override the host_index for a single
4773
+ request; this effectively ignores the host_index
4774
+ in the spec for a single request.
4775
+ :type _host_index: int, optional
4776
+ :return: Returns the result object.
4777
+ """ # noqa: E501
4778
+
4779
+ _param = self._list_metrics_serialize(
4780
+ project_id=project_id,
4781
+ instance_id=instance_id,
4782
+ metric=metric,
4783
+ granularity=granularity,
4784
+ period=period,
4785
+ start=start,
4786
+ end=end,
4787
+ _request_auth=_request_auth,
4788
+ _content_type=_content_type,
4789
+ _headers=_headers,
4790
+ _host_index=_host_index,
4791
+ )
4792
+
4793
+ _response_types_map: Dict[str, Optional[str]] = {
4794
+ "200": "ListMetricsResponse",
4795
+ "400": "InstanceError",
4796
+ "405": "InstanceError",
4797
+ "500": "InstanceError",
4798
+ }
4799
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
4800
+ return response_data.response
4801
+
4802
+ def _list_metrics_serialize(
4803
+ self,
4804
+ project_id,
4805
+ instance_id,
4806
+ metric,
4807
+ granularity,
4808
+ period,
4809
+ start,
4810
+ end,
4811
+ _request_auth,
4812
+ _content_type,
4813
+ _headers,
4814
+ _host_index,
4815
+ ) -> RequestSerialized:
4816
+
4817
+ _host = None
4818
+
4819
+ _collection_formats: Dict[str, str] = {}
4820
+
4821
+ _path_params: Dict[str, str] = {}
4822
+ _query_params: List[Tuple[str, str]] = []
4823
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4824
+ _form_params: List[Tuple[str, str]] = []
4825
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4826
+ _body_params: Optional[bytes] = None
4827
+
4828
+ # process the path parameters
4829
+ if project_id is not None:
4830
+ _path_params["projectId"] = project_id
4831
+ if instance_id is not None:
4832
+ _path_params["instanceId"] = instance_id
4833
+ if metric is not None:
4834
+ _path_params["metric"] = metric
4835
+ # process the query parameters
4836
+ if granularity is not None:
4837
+
4838
+ _query_params.append(("granularity", granularity))
4839
+
4840
+ if period is not None:
4841
+
4842
+ _query_params.append(("period", period))
4843
+
4844
+ if start is not None:
4845
+
4846
+ _query_params.append(("start", start))
4847
+
4848
+ if end is not None:
4849
+
4850
+ _query_params.append(("end", end))
4851
+
4852
+ # process the header parameters
4853
+ # process the form parameters
4854
+ # process the body parameter
4855
+
4856
+ # set the HTTP header `Accept`
4857
+ if "Accept" not in _header_params:
4858
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
4859
+
4860
+ # authentication setting
4861
+ _auth_settings: List[str] = []
4862
+
4863
+ return self.api_client.param_serialize(
4864
+ method="GET",
4865
+ resource_path="/v2/projects/{projectId}/instances/{instanceId}/metrics/{metric}",
4866
+ path_params=_path_params,
4867
+ query_params=_query_params,
4868
+ header_params=_header_params,
4869
+ body=_body_params,
4870
+ post_params=_form_params,
4871
+ files=_files,
4872
+ auth_settings=_auth_settings,
4873
+ collection_formats=_collection_formats,
4874
+ _host=_host,
4875
+ _request_auth=_request_auth,
4876
+ )
4877
+
4484
4878
  @validate_call
4485
4879
  def list_restore_jobs(
4486
4880
  self,
@@ -4527,7 +4921,7 @@ class DefaultApi:
4527
4921
  in the spec for a single request.
4528
4922
  :type _host_index: int, optional
4529
4923
  :return: Returns the result object.
4530
- """ # noqa: E501 docstring might be too long
4924
+ """ # noqa: E501
4531
4925
 
4532
4926
  _param = self._list_restore_jobs_serialize(
4533
4927
  project_id=project_id,
@@ -4599,7 +4993,7 @@ class DefaultApi:
4599
4993
  in the spec for a single request.
4600
4994
  :type _host_index: int, optional
4601
4995
  :return: Returns the result object.
4602
- """ # noqa: E501 docstring might be too long
4996
+ """ # noqa: E501
4603
4997
 
4604
4998
  _param = self._list_restore_jobs_serialize(
4605
4999
  project_id=project_id,
@@ -4671,7 +5065,7 @@ class DefaultApi:
4671
5065
  in the spec for a single request.
4672
5066
  :type _host_index: int, optional
4673
5067
  :return: Returns the result object.
4674
- """ # noqa: E501 docstring might be too long
5068
+ """ # noqa: E501
4675
5069
 
4676
5070
  _param = self._list_restore_jobs_serialize(
4677
5071
  project_id=project_id,
@@ -4712,7 +5106,7 @@ class DefaultApi:
4712
5106
  _query_params: List[Tuple[str, str]] = []
4713
5107
  _header_params: Dict[str, Optional[str]] = _headers or {}
4714
5108
  _form_params: List[Tuple[str, str]] = []
4715
- _files: Dict[str, Union[str, bytes]] = {}
5109
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4716
5110
  _body_params: Optional[bytes] = None
4717
5111
 
4718
5112
  # process the path parameters
@@ -4795,7 +5189,7 @@ class DefaultApi:
4795
5189
  in the spec for a single request.
4796
5190
  :type _host_index: int, optional
4797
5191
  :return: Returns the result object.
4798
- """ # noqa: E501 docstring might be too long
5192
+ """ # noqa: E501
4799
5193
 
4800
5194
  _param = self._list_roles_serialize(
4801
5195
  project_id=project_id,
@@ -4867,7 +5261,7 @@ class DefaultApi:
4867
5261
  in the spec for a single request.
4868
5262
  :type _host_index: int, optional
4869
5263
  :return: Returns the result object.
4870
- """ # noqa: E501 docstring might be too long
5264
+ """ # noqa: E501
4871
5265
 
4872
5266
  _param = self._list_roles_serialize(
4873
5267
  project_id=project_id,
@@ -4939,7 +5333,7 @@ class DefaultApi:
4939
5333
  in the spec for a single request.
4940
5334
  :type _host_index: int, optional
4941
5335
  :return: Returns the result object.
4942
- """ # noqa: E501 docstring might be too long
5336
+ """ # noqa: E501
4943
5337
 
4944
5338
  _param = self._list_roles_serialize(
4945
5339
  project_id=project_id,
@@ -4980,7 +5374,7 @@ class DefaultApi:
4980
5374
  _query_params: List[Tuple[str, str]] = []
4981
5375
  _header_params: Dict[str, Optional[str]] = _headers or {}
4982
5376
  _form_params: List[Tuple[str, str]] = []
4983
- _files: Dict[str, Union[str, bytes]] = {}
5377
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4984
5378
  _body_params: Optional[bytes] = None
4985
5379
 
4986
5380
  # process the path parameters
@@ -5063,7 +5457,7 @@ class DefaultApi:
5063
5457
  in the spec for a single request.
5064
5458
  :type _host_index: int, optional
5065
5459
  :return: Returns the result object.
5066
- """ # noqa: E501 docstring might be too long
5460
+ """ # noqa: E501
5067
5461
 
5068
5462
  _param = self._list_storages_serialize(
5069
5463
  project_id=project_id,
@@ -5135,7 +5529,7 @@ class DefaultApi:
5135
5529
  in the spec for a single request.
5136
5530
  :type _host_index: int, optional
5137
5531
  :return: Returns the result object.
5138
- """ # noqa: E501 docstring might be too long
5532
+ """ # noqa: E501
5139
5533
 
5140
5534
  _param = self._list_storages_serialize(
5141
5535
  project_id=project_id,
@@ -5207,7 +5601,7 @@ class DefaultApi:
5207
5601
  in the spec for a single request.
5208
5602
  :type _host_index: int, optional
5209
5603
  :return: Returns the result object.
5210
- """ # noqa: E501 docstring might be too long
5604
+ """ # noqa: E501
5211
5605
 
5212
5606
  _param = self._list_storages_serialize(
5213
5607
  project_id=project_id,
@@ -5248,7 +5642,7 @@ class DefaultApi:
5248
5642
  _query_params: List[Tuple[str, str]] = []
5249
5643
  _header_params: Dict[str, Optional[str]] = _headers or {}
5250
5644
  _form_params: List[Tuple[str, str]] = []
5251
- _files: Dict[str, Union[str, bytes]] = {}
5645
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
5252
5646
  _body_params: Optional[bytes] = None
5253
5647
 
5254
5648
  # process the path parameters
@@ -5331,7 +5725,7 @@ class DefaultApi:
5331
5725
  in the spec for a single request.
5332
5726
  :type _host_index: int, optional
5333
5727
  :return: Returns the result object.
5334
- """ # noqa: E501 docstring might be too long
5728
+ """ # noqa: E501
5335
5729
 
5336
5730
  _param = self._list_users_serialize(
5337
5731
  project_id=project_id,
@@ -5403,7 +5797,7 @@ class DefaultApi:
5403
5797
  in the spec for a single request.
5404
5798
  :type _host_index: int, optional
5405
5799
  :return: Returns the result object.
5406
- """ # noqa: E501 docstring might be too long
5800
+ """ # noqa: E501
5407
5801
 
5408
5802
  _param = self._list_users_serialize(
5409
5803
  project_id=project_id,
@@ -5475,7 +5869,7 @@ class DefaultApi:
5475
5869
  in the spec for a single request.
5476
5870
  :type _host_index: int, optional
5477
5871
  :return: Returns the result object.
5478
- """ # noqa: E501 docstring might be too long
5872
+ """ # noqa: E501
5479
5873
 
5480
5874
  _param = self._list_users_serialize(
5481
5875
  project_id=project_id,
@@ -5516,7 +5910,7 @@ class DefaultApi:
5516
5910
  _query_params: List[Tuple[str, str]] = []
5517
5911
  _header_params: Dict[str, Optional[str]] = _headers or {}
5518
5912
  _form_params: List[Tuple[str, str]] = []
5519
- _files: Dict[str, Union[str, bytes]] = {}
5913
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
5520
5914
  _body_params: Optional[bytes] = None
5521
5915
 
5522
5916
  # process the path parameters
@@ -5599,7 +5993,7 @@ class DefaultApi:
5599
5993
  in the spec for a single request.
5600
5994
  :type _host_index: int, optional
5601
5995
  :return: Returns the result object.
5602
- """ # noqa: E501 docstring might be too long
5996
+ """ # noqa: E501
5603
5997
 
5604
5998
  _param = self._list_versions_serialize(
5605
5999
  project_id=project_id,
@@ -5671,7 +6065,7 @@ class DefaultApi:
5671
6065
  in the spec for a single request.
5672
6066
  :type _host_index: int, optional
5673
6067
  :return: Returns the result object.
5674
- """ # noqa: E501 docstring might be too long
6068
+ """ # noqa: E501
5675
6069
 
5676
6070
  _param = self._list_versions_serialize(
5677
6071
  project_id=project_id,
@@ -5743,7 +6137,7 @@ class DefaultApi:
5743
6137
  in the spec for a single request.
5744
6138
  :type _host_index: int, optional
5745
6139
  :return: Returns the result object.
5746
- """ # noqa: E501 docstring might be too long
6140
+ """ # noqa: E501
5747
6141
 
5748
6142
  _param = self._list_versions_serialize(
5749
6143
  project_id=project_id,
@@ -5784,7 +6178,7 @@ class DefaultApi:
5784
6178
  _query_params: List[Tuple[str, str]] = []
5785
6179
  _header_params: Dict[str, Optional[str]] = _headers or {}
5786
6180
  _form_params: List[Tuple[str, str]] = []
5787
- _files: Dict[str, Union[str, bytes]] = {}
6181
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
5788
6182
  _body_params: Optional[bytes] = None
5789
6183
 
5790
6184
  # process the path parameters
@@ -5842,7 +6236,7 @@ class DefaultApi:
5842
6236
  ) -> UpdateInstanceResponse:
5843
6237
  """Update Instance
5844
6238
 
5845
- Update available instance of a mssql database.
6239
+ Update available instance of a mssql database. **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.**
5846
6240
 
5847
6241
  :param project_id: Project ID (required)
5848
6242
  :type project_id: str
@@ -5872,7 +6266,7 @@ class DefaultApi:
5872
6266
  in the spec for a single request.
5873
6267
  :type _host_index: int, optional
5874
6268
  :return: Returns the result object.
5875
- """ # noqa: E501 docstring might be too long
6269
+ """ # noqa: E501
5876
6270
 
5877
6271
  _param = self._partial_update_instance_serialize(
5878
6272
  project_id=project_id,
@@ -5918,7 +6312,7 @@ class DefaultApi:
5918
6312
  ) -> ApiResponse[UpdateInstanceResponse]:
5919
6313
  """Update Instance
5920
6314
 
5921
- Update available instance of a mssql database.
6315
+ Update available instance of a mssql database. **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.**
5922
6316
 
5923
6317
  :param project_id: Project ID (required)
5924
6318
  :type project_id: str
@@ -5948,7 +6342,7 @@ class DefaultApi:
5948
6342
  in the spec for a single request.
5949
6343
  :type _host_index: int, optional
5950
6344
  :return: Returns the result object.
5951
- """ # noqa: E501 docstring might be too long
6345
+ """ # noqa: E501
5952
6346
 
5953
6347
  _param = self._partial_update_instance_serialize(
5954
6348
  project_id=project_id,
@@ -5994,7 +6388,7 @@ class DefaultApi:
5994
6388
  ) -> RESTResponseType:
5995
6389
  """Update Instance
5996
6390
 
5997
- Update available instance of a mssql database.
6391
+ Update available instance of a mssql database. **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.**
5998
6392
 
5999
6393
  :param project_id: Project ID (required)
6000
6394
  :type project_id: str
@@ -6024,7 +6418,7 @@ class DefaultApi:
6024
6418
  in the spec for a single request.
6025
6419
  :type _host_index: int, optional
6026
6420
  :return: Returns the result object.
6027
- """ # noqa: E501 docstring might be too long
6421
+ """ # noqa: E501
6028
6422
 
6029
6423
  _param = self._partial_update_instance_serialize(
6030
6424
  project_id=project_id,
@@ -6067,7 +6461,7 @@ class DefaultApi:
6067
6461
  _query_params: List[Tuple[str, str]] = []
6068
6462
  _header_params: Dict[str, Optional[str]] = _headers or {}
6069
6463
  _form_params: List[Tuple[str, str]] = []
6070
- _files: Dict[str, Union[str, bytes]] = {}
6464
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
6071
6465
  _body_params: Optional[bytes] = None
6072
6466
 
6073
6467
  # process the path parameters
@@ -6163,7 +6557,7 @@ class DefaultApi:
6163
6557
  in the spec for a single request.
6164
6558
  :type _host_index: int, optional
6165
6559
  :return: Returns the result object.
6166
- """ # noqa: E501 docstring might be too long
6560
+ """ # noqa: E501
6167
6561
 
6168
6562
  _param = self._reset_user_serialize(
6169
6563
  project_id=project_id,
@@ -6240,7 +6634,7 @@ class DefaultApi:
6240
6634
  in the spec for a single request.
6241
6635
  :type _host_index: int, optional
6242
6636
  :return: Returns the result object.
6243
- """ # noqa: E501 docstring might be too long
6637
+ """ # noqa: E501
6244
6638
 
6245
6639
  _param = self._reset_user_serialize(
6246
6640
  project_id=project_id,
@@ -6317,7 +6711,7 @@ class DefaultApi:
6317
6711
  in the spec for a single request.
6318
6712
  :type _host_index: int, optional
6319
6713
  :return: Returns the result object.
6320
- """ # noqa: E501 docstring might be too long
6714
+ """ # noqa: E501
6321
6715
 
6322
6716
  _param = self._reset_user_serialize(
6323
6717
  project_id=project_id,
@@ -6361,7 +6755,7 @@ class DefaultApi:
6361
6755
  _query_params: List[Tuple[str, str]] = []
6362
6756
  _header_params: Dict[str, Optional[str]] = _headers or {}
6363
6757
  _form_params: List[Tuple[str, str]] = []
6364
- _files: Dict[str, Union[str, bytes]] = {}
6758
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
6365
6759
  _body_params: Optional[bytes] = None
6366
6760
 
6367
6761
  # process the path parameters
@@ -6443,7 +6837,7 @@ class DefaultApi:
6443
6837
  in the spec for a single request.
6444
6838
  :type _host_index: int, optional
6445
6839
  :return: Returns the result object.
6446
- """ # noqa: E501 docstring might be too long
6840
+ """ # noqa: E501
6447
6841
 
6448
6842
  _param = self._terminate_project_serialize(
6449
6843
  project_id=project_id,
@@ -6511,7 +6905,7 @@ class DefaultApi:
6511
6905
  in the spec for a single request.
6512
6906
  :type _host_index: int, optional
6513
6907
  :return: Returns the result object.
6514
- """ # noqa: E501 docstring might be too long
6908
+ """ # noqa: E501
6515
6909
 
6516
6910
  _param = self._terminate_project_serialize(
6517
6911
  project_id=project_id,
@@ -6579,7 +6973,7 @@ class DefaultApi:
6579
6973
  in the spec for a single request.
6580
6974
  :type _host_index: int, optional
6581
6975
  :return: Returns the result object.
6582
- """ # noqa: E501 docstring might be too long
6976
+ """ # noqa: E501
6583
6977
 
6584
6978
  _param = self._terminate_project_serialize(
6585
6979
  project_id=project_id,
@@ -6618,7 +7012,7 @@ class DefaultApi:
6618
7012
  _query_params: List[Tuple[str, str]] = []
6619
7013
  _header_params: Dict[str, Optional[str]] = _headers or {}
6620
7014
  _form_params: List[Tuple[str, str]] = []
6621
- _files: Dict[str, Union[str, bytes]] = {}
7015
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
6622
7016
  _body_params: Optional[bytes] = None
6623
7017
 
6624
7018
  # process the path parameters
@@ -6702,7 +7096,7 @@ class DefaultApi:
6702
7096
  in the spec for a single request.
6703
7097
  :type _host_index: int, optional
6704
7098
  :return: Returns the result object.
6705
- """ # noqa: E501 docstring might be too long
7099
+ """ # noqa: E501
6706
7100
 
6707
7101
  _param = self._trigger_database_backup_serialize(
6708
7102
  project_id=project_id,
@@ -6779,7 +7173,7 @@ class DefaultApi:
6779
7173
  in the spec for a single request.
6780
7174
  :type _host_index: int, optional
6781
7175
  :return: Returns the result object.
6782
- """ # noqa: E501 docstring might be too long
7176
+ """ # noqa: E501
6783
7177
 
6784
7178
  _param = self._trigger_database_backup_serialize(
6785
7179
  project_id=project_id,
@@ -6856,7 +7250,7 @@ class DefaultApi:
6856
7250
  in the spec for a single request.
6857
7251
  :type _host_index: int, optional
6858
7252
  :return: Returns the result object.
6859
- """ # noqa: E501 docstring might be too long
7253
+ """ # noqa: E501
6860
7254
 
6861
7255
  _param = self._trigger_database_backup_serialize(
6862
7256
  project_id=project_id,
@@ -6900,7 +7294,7 @@ class DefaultApi:
6900
7294
  _query_params: List[Tuple[str, str]] = []
6901
7295
  _header_params: Dict[str, Optional[str]] = _headers or {}
6902
7296
  _form_params: List[Tuple[str, str]] = []
6903
- _files: Dict[str, Union[str, bytes]] = {}
7297
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
6904
7298
  _body_params: Optional[bytes] = None
6905
7299
 
6906
7300
  # process the path parameters
@@ -6991,7 +7385,7 @@ class DefaultApi:
6991
7385
  in the spec for a single request.
6992
7386
  :type _host_index: int, optional
6993
7387
  :return: Returns the result object.
6994
- """ # noqa: E501 docstring might be too long
7388
+ """ # noqa: E501
6995
7389
 
6996
7390
  _param = self._trigger_database_restore_serialize(
6997
7391
  project_id=project_id,
@@ -7072,7 +7466,7 @@ class DefaultApi:
7072
7466
  in the spec for a single request.
7073
7467
  :type _host_index: int, optional
7074
7468
  :return: Returns the result object.
7075
- """ # noqa: E501 docstring might be too long
7469
+ """ # noqa: E501
7076
7470
 
7077
7471
  _param = self._trigger_database_restore_serialize(
7078
7472
  project_id=project_id,
@@ -7153,7 +7547,7 @@ class DefaultApi:
7153
7547
  in the spec for a single request.
7154
7548
  :type _host_index: int, optional
7155
7549
  :return: Returns the result object.
7156
- """ # noqa: E501 docstring might be too long
7550
+ """ # noqa: E501
7157
7551
 
7158
7552
  _param = self._trigger_database_restore_serialize(
7159
7553
  project_id=project_id,
@@ -7199,7 +7593,7 @@ class DefaultApi:
7199
7593
  _query_params: List[Tuple[str, str]] = []
7200
7594
  _header_params: Dict[str, Optional[str]] = _headers or {}
7201
7595
  _form_params: List[Tuple[str, str]] = []
7202
- _files: Dict[str, Union[str, bytes]] = {}
7596
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
7203
7597
  _body_params: Optional[bytes] = None
7204
7598
 
7205
7599
  # process the path parameters
@@ -7267,7 +7661,7 @@ class DefaultApi:
7267
7661
  ) -> UpdateInstanceResponse:
7268
7662
  """Update Instance
7269
7663
 
7270
- Update available instance of a mssql database.
7664
+ Update available instance of a mssql database. **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.**
7271
7665
 
7272
7666
  :param project_id: Project ID (required)
7273
7667
  :type project_id: str
@@ -7297,7 +7691,7 @@ class DefaultApi:
7297
7691
  in the spec for a single request.
7298
7692
  :type _host_index: int, optional
7299
7693
  :return: Returns the result object.
7300
- """ # noqa: E501 docstring might be too long
7694
+ """ # noqa: E501
7301
7695
 
7302
7696
  _param = self._update_instance_serialize(
7303
7697
  project_id=project_id,
@@ -7343,7 +7737,7 @@ class DefaultApi:
7343
7737
  ) -> ApiResponse[UpdateInstanceResponse]:
7344
7738
  """Update Instance
7345
7739
 
7346
- Update available instance of a mssql database.
7740
+ Update available instance of a mssql database. **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.**
7347
7741
 
7348
7742
  :param project_id: Project ID (required)
7349
7743
  :type project_id: str
@@ -7373,7 +7767,7 @@ class DefaultApi:
7373
7767
  in the spec for a single request.
7374
7768
  :type _host_index: int, optional
7375
7769
  :return: Returns the result object.
7376
- """ # noqa: E501 docstring might be too long
7770
+ """ # noqa: E501
7377
7771
 
7378
7772
  _param = self._update_instance_serialize(
7379
7773
  project_id=project_id,
@@ -7419,7 +7813,7 @@ class DefaultApi:
7419
7813
  ) -> RESTResponseType:
7420
7814
  """Update Instance
7421
7815
 
7422
- Update available instance of a mssql database.
7816
+ Update available instance of a mssql database. **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.**
7423
7817
 
7424
7818
  :param project_id: Project ID (required)
7425
7819
  :type project_id: str
@@ -7449,7 +7843,7 @@ class DefaultApi:
7449
7843
  in the spec for a single request.
7450
7844
  :type _host_index: int, optional
7451
7845
  :return: Returns the result object.
7452
- """ # noqa: E501 docstring might be too long
7846
+ """ # noqa: E501
7453
7847
 
7454
7848
  _param = self._update_instance_serialize(
7455
7849
  project_id=project_id,
@@ -7492,7 +7886,7 @@ class DefaultApi:
7492
7886
  _query_params: List[Tuple[str, str]] = []
7493
7887
  _header_params: Dict[str, Optional[str]] = _headers or {}
7494
7888
  _form_params: List[Tuple[str, str]] = []
7495
- _files: Dict[str, Union[str, bytes]] = {}
7889
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
7496
7890
  _body_params: Optional[bytes] = None
7497
7891
 
7498
7892
  # process the path parameters