stackit-sqlserverflex 0.2.0__py3-none-any.whl → 1.0.0__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 (64) hide show
  1. stackit/sqlserverflex/__init__.py +1 -1
  2. stackit/sqlserverflex/api/default_api.py +526 -31
  3. stackit/sqlserverflex/api_client.py +1 -1
  4. stackit/sqlserverflex/configuration.py +4 -5
  5. stackit/sqlserverflex/exceptions.py +1 -1
  6. stackit/sqlserverflex/models/__init__.py +1 -1
  7. stackit/sqlserverflex/models/acl.py +1 -1
  8. stackit/sqlserverflex/models/backup.py +1 -1
  9. stackit/sqlserverflex/models/backup_list_backups_response_grouped.py +1 -1
  10. stackit/sqlserverflex/models/create_database_payload.py +1 -1
  11. stackit/sqlserverflex/models/create_database_response.py +1 -1
  12. stackit/sqlserverflex/models/create_instance_payload.py +1 -1
  13. stackit/sqlserverflex/models/create_instance_response.py +1 -1
  14. stackit/sqlserverflex/models/create_user_payload.py +1 -1
  15. stackit/sqlserverflex/models/create_user_response.py +1 -1
  16. stackit/sqlserverflex/models/database.py +1 -1
  17. stackit/sqlserverflex/models/database_documentation_create_database_request_options.py +1 -1
  18. stackit/sqlserverflex/models/database_options.py +1 -1
  19. stackit/sqlserverflex/models/flavor.py +1 -1
  20. stackit/sqlserverflex/models/get_backup_response.py +7 -3
  21. stackit/sqlserverflex/models/get_database_response.py +1 -1
  22. stackit/sqlserverflex/models/get_instance_response.py +1 -1
  23. stackit/sqlserverflex/models/get_user_response.py +1 -1
  24. stackit/sqlserverflex/models/instance.py +1 -1
  25. stackit/sqlserverflex/models/instance_documentation_acl.py +1 -1
  26. stackit/sqlserverflex/models/instance_documentation_options.py +1 -1
  27. stackit/sqlserverflex/models/instance_documentation_storage.py +1 -1
  28. stackit/sqlserverflex/models/instance_error.py +1 -1
  29. stackit/sqlserverflex/models/instance_flavor_entry.py +1 -1
  30. stackit/sqlserverflex/models/instance_list_instance.py +1 -1
  31. stackit/sqlserverflex/models/instance_list_user.py +1 -1
  32. stackit/sqlserverflex/models/list_backups_response.py +1 -1
  33. stackit/sqlserverflex/models/list_collations_response.py +1 -1
  34. stackit/sqlserverflex/models/list_compatibility_response.py +1 -1
  35. stackit/sqlserverflex/models/list_databases_response.py +1 -1
  36. stackit/sqlserverflex/models/list_flavors_response.py +1 -1
  37. stackit/sqlserverflex/models/list_instances_response.py +1 -1
  38. stackit/sqlserverflex/models/list_restore_jobs_response.py +1 -1
  39. stackit/sqlserverflex/models/list_roles_response.py +1 -1
  40. stackit/sqlserverflex/models/list_storages_response.py +1 -1
  41. stackit/sqlserverflex/models/list_users_response.py +1 -1
  42. stackit/sqlserverflex/models/list_versions_response.py +1 -1
  43. stackit/sqlserverflex/models/mssql_database_collation.py +1 -1
  44. stackit/sqlserverflex/models/mssql_database_compatibility.py +1 -1
  45. stackit/sqlserverflex/models/partial_update_instance_payload.py +1 -1
  46. stackit/sqlserverflex/models/reset_user_response.py +1 -1
  47. stackit/sqlserverflex/models/restore_running_restore.py +1 -1
  48. stackit/sqlserverflex/models/single_database.py +1 -1
  49. stackit/sqlserverflex/models/single_user.py +1 -1
  50. stackit/sqlserverflex/models/storage.py +1 -1
  51. stackit/sqlserverflex/models/storage_range.py +1 -1
  52. stackit/sqlserverflex/models/trigger_database_restore_payload.py +1 -1
  53. stackit/sqlserverflex/models/type.py +1 -1
  54. stackit/sqlserverflex/models/update_instance_payload.py +1 -1
  55. stackit/sqlserverflex/models/update_instance_response.py +1 -1
  56. stackit/sqlserverflex/models/user.py +1 -1
  57. stackit/sqlserverflex/models/user_response_user.py +1 -1
  58. stackit/sqlserverflex/rest.py +1 -1
  59. stackit_sqlserverflex-1.0.0.dist-info/LICENSE.md +201 -0
  60. {stackit_sqlserverflex-0.2.0.dist-info → stackit_sqlserverflex-1.0.0.dist-info}/METADATA +1 -1
  61. stackit_sqlserverflex-1.0.0.dist-info/NOTICE.txt +2 -0
  62. stackit_sqlserverflex-1.0.0.dist-info/RECORD +66 -0
  63. stackit_sqlserverflex-0.2.0.dist-info/RECORD +0 -64
  64. {stackit_sqlserverflex-0.2.0.dist-info → stackit_sqlserverflex-1.0.0.dist-info}/WHEEL +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
  This is the documentation for the STACKIT MSSQL service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -14,7 +14,13 @@
14
14
 
15
15
  from typing import Any, Dict, List, Optional, Tuple, Union
16
16
 
17
- from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
17
+ from pydantic import (
18
+ Field,
19
+ StrictFloat,
20
+ StrictInt,
21
+ StrictStr,
22
+ validate_call,
23
+ )
18
24
  from stackit.core.configuration import Configuration
19
25
  from typing_extensions import Annotated
20
26
 
@@ -75,6 +81,7 @@ class DefaultApi:
75
81
  self,
76
82
  project_id: Annotated[StrictStr, Field(description="Project ID")],
77
83
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
84
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
78
85
  create_database_payload: Annotated[CreateDatabasePayload, Field(description="Body")],
79
86
  _request_timeout: Union[
80
87
  None,
@@ -94,6 +101,8 @@ class DefaultApi:
94
101
  :type project_id: str
95
102
  :param instance_id: Instance ID (required)
96
103
  :type instance_id: str
104
+ :param region: The region which should be addressed (required)
105
+ :type region: str
97
106
  :param create_database_payload: Body (required)
98
107
  :type create_database_payload: CreateDatabasePayload
99
108
  :param _request_timeout: timeout setting for this request. If one
@@ -121,6 +130,7 @@ class DefaultApi:
121
130
  _param = self._create_database_serialize(
122
131
  project_id=project_id,
123
132
  instance_id=instance_id,
133
+ region=region,
124
134
  create_database_payload=create_database_payload,
125
135
  _request_auth=_request_auth,
126
136
  _content_type=_content_type,
@@ -131,6 +141,7 @@ class DefaultApi:
131
141
  _response_types_map: Dict[str, Optional[str]] = {
132
142
  "201": "CreateDatabaseResponse",
133
143
  "400": "InstanceError",
144
+ "401": "InstanceError",
134
145
  "405": None,
135
146
  "500": None,
136
147
  }
@@ -146,6 +157,7 @@ class DefaultApi:
146
157
  self,
147
158
  project_id: Annotated[StrictStr, Field(description="Project ID")],
148
159
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
160
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
149
161
  create_database_payload: Annotated[CreateDatabasePayload, Field(description="Body")],
150
162
  _request_timeout: Union[
151
163
  None,
@@ -165,6 +177,8 @@ class DefaultApi:
165
177
  :type project_id: str
166
178
  :param instance_id: Instance ID (required)
167
179
  :type instance_id: str
180
+ :param region: The region which should be addressed (required)
181
+ :type region: str
168
182
  :param create_database_payload: Body (required)
169
183
  :type create_database_payload: CreateDatabasePayload
170
184
  :param _request_timeout: timeout setting for this request. If one
@@ -192,6 +206,7 @@ class DefaultApi:
192
206
  _param = self._create_database_serialize(
193
207
  project_id=project_id,
194
208
  instance_id=instance_id,
209
+ region=region,
195
210
  create_database_payload=create_database_payload,
196
211
  _request_auth=_request_auth,
197
212
  _content_type=_content_type,
@@ -202,6 +217,7 @@ class DefaultApi:
202
217
  _response_types_map: Dict[str, Optional[str]] = {
203
218
  "201": "CreateDatabaseResponse",
204
219
  "400": "InstanceError",
220
+ "401": "InstanceError",
205
221
  "405": None,
206
222
  "500": None,
207
223
  }
@@ -217,6 +233,7 @@ class DefaultApi:
217
233
  self,
218
234
  project_id: Annotated[StrictStr, Field(description="Project ID")],
219
235
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
236
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
220
237
  create_database_payload: Annotated[CreateDatabasePayload, Field(description="Body")],
221
238
  _request_timeout: Union[
222
239
  None,
@@ -236,6 +253,8 @@ class DefaultApi:
236
253
  :type project_id: str
237
254
  :param instance_id: Instance ID (required)
238
255
  :type instance_id: str
256
+ :param region: The region which should be addressed (required)
257
+ :type region: str
239
258
  :param create_database_payload: Body (required)
240
259
  :type create_database_payload: CreateDatabasePayload
241
260
  :param _request_timeout: timeout setting for this request. If one
@@ -263,6 +282,7 @@ class DefaultApi:
263
282
  _param = self._create_database_serialize(
264
283
  project_id=project_id,
265
284
  instance_id=instance_id,
285
+ region=region,
266
286
  create_database_payload=create_database_payload,
267
287
  _request_auth=_request_auth,
268
288
  _content_type=_content_type,
@@ -273,6 +293,7 @@ class DefaultApi:
273
293
  _response_types_map: Dict[str, Optional[str]] = {
274
294
  "201": "CreateDatabaseResponse",
275
295
  "400": "InstanceError",
296
+ "401": "InstanceError",
276
297
  "405": None,
277
298
  "500": None,
278
299
  }
@@ -283,6 +304,7 @@ class DefaultApi:
283
304
  self,
284
305
  project_id,
285
306
  instance_id,
307
+ region,
286
308
  create_database_payload,
287
309
  _request_auth,
288
310
  _content_type,
@@ -306,6 +328,8 @@ class DefaultApi:
306
328
  _path_params["projectId"] = project_id
307
329
  if instance_id is not None:
308
330
  _path_params["instanceId"] = instance_id
331
+ if region is not None:
332
+ _path_params["region"] = region
309
333
  # process the query parameters
310
334
  # process the header parameters
311
335
  # process the form parameters
@@ -330,7 +354,7 @@ class DefaultApi:
330
354
 
331
355
  return self.api_client.param_serialize(
332
356
  method="POST",
333
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/databases",
357
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
334
358
  path_params=_path_params,
335
359
  query_params=_query_params,
336
360
  header_params=_header_params,
@@ -347,6 +371,7 @@ class DefaultApi:
347
371
  def create_instance(
348
372
  self,
349
373
  project_id: Annotated[StrictStr, Field(description="Project ID")],
374
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
350
375
  create_instance_payload: Annotated[CreateInstancePayload, Field(description="Body")],
351
376
  _request_timeout: Union[
352
377
  None,
@@ -364,6 +389,8 @@ class DefaultApi:
364
389
 
365
390
  :param project_id: Project ID (required)
366
391
  :type project_id: str
392
+ :param region: The region which should be addressed (required)
393
+ :type region: str
367
394
  :param create_instance_payload: Body (required)
368
395
  :type create_instance_payload: CreateInstancePayload
369
396
  :param _request_timeout: timeout setting for this request. If one
@@ -390,6 +417,7 @@ class DefaultApi:
390
417
 
391
418
  _param = self._create_instance_serialize(
392
419
  project_id=project_id,
420
+ region=region,
393
421
  create_instance_payload=create_instance_payload,
394
422
  _request_auth=_request_auth,
395
423
  _content_type=_content_type,
@@ -400,6 +428,7 @@ class DefaultApi:
400
428
  _response_types_map: Dict[str, Optional[str]] = {
401
429
  "201": "CreateInstanceResponse",
402
430
  "400": "InstanceError",
431
+ "401": "InstanceError",
403
432
  "405": None,
404
433
  "500": None,
405
434
  }
@@ -414,6 +443,7 @@ class DefaultApi:
414
443
  def create_instance_with_http_info(
415
444
  self,
416
445
  project_id: Annotated[StrictStr, Field(description="Project ID")],
446
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
417
447
  create_instance_payload: Annotated[CreateInstancePayload, Field(description="Body")],
418
448
  _request_timeout: Union[
419
449
  None,
@@ -431,6 +461,8 @@ class DefaultApi:
431
461
 
432
462
  :param project_id: Project ID (required)
433
463
  :type project_id: str
464
+ :param region: The region which should be addressed (required)
465
+ :type region: str
434
466
  :param create_instance_payload: Body (required)
435
467
  :type create_instance_payload: CreateInstancePayload
436
468
  :param _request_timeout: timeout setting for this request. If one
@@ -457,6 +489,7 @@ class DefaultApi:
457
489
 
458
490
  _param = self._create_instance_serialize(
459
491
  project_id=project_id,
492
+ region=region,
460
493
  create_instance_payload=create_instance_payload,
461
494
  _request_auth=_request_auth,
462
495
  _content_type=_content_type,
@@ -467,6 +500,7 @@ class DefaultApi:
467
500
  _response_types_map: Dict[str, Optional[str]] = {
468
501
  "201": "CreateInstanceResponse",
469
502
  "400": "InstanceError",
503
+ "401": "InstanceError",
470
504
  "405": None,
471
505
  "500": None,
472
506
  }
@@ -481,6 +515,7 @@ class DefaultApi:
481
515
  def create_instance_without_preload_content(
482
516
  self,
483
517
  project_id: Annotated[StrictStr, Field(description="Project ID")],
518
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
484
519
  create_instance_payload: Annotated[CreateInstancePayload, Field(description="Body")],
485
520
  _request_timeout: Union[
486
521
  None,
@@ -498,6 +533,8 @@ class DefaultApi:
498
533
 
499
534
  :param project_id: Project ID (required)
500
535
  :type project_id: str
536
+ :param region: The region which should be addressed (required)
537
+ :type region: str
501
538
  :param create_instance_payload: Body (required)
502
539
  :type create_instance_payload: CreateInstancePayload
503
540
  :param _request_timeout: timeout setting for this request. If one
@@ -524,6 +561,7 @@ class DefaultApi:
524
561
 
525
562
  _param = self._create_instance_serialize(
526
563
  project_id=project_id,
564
+ region=region,
527
565
  create_instance_payload=create_instance_payload,
528
566
  _request_auth=_request_auth,
529
567
  _content_type=_content_type,
@@ -534,6 +572,7 @@ class DefaultApi:
534
572
  _response_types_map: Dict[str, Optional[str]] = {
535
573
  "201": "CreateInstanceResponse",
536
574
  "400": "InstanceError",
575
+ "401": "InstanceError",
537
576
  "405": None,
538
577
  "500": None,
539
578
  }
@@ -543,6 +582,7 @@ class DefaultApi:
543
582
  def _create_instance_serialize(
544
583
  self,
545
584
  project_id,
585
+ region,
546
586
  create_instance_payload,
547
587
  _request_auth,
548
588
  _content_type,
@@ -564,6 +604,8 @@ class DefaultApi:
564
604
  # process the path parameters
565
605
  if project_id is not None:
566
606
  _path_params["projectId"] = project_id
607
+ if region is not None:
608
+ _path_params["region"] = region
567
609
  # process the query parameters
568
610
  # process the header parameters
569
611
  # process the form parameters
@@ -588,7 +630,7 @@ class DefaultApi:
588
630
 
589
631
  return self.api_client.param_serialize(
590
632
  method="POST",
591
- resource_path="/v1/projects/{projectId}/instances",
633
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances",
592
634
  path_params=_path_params,
593
635
  query_params=_query_params,
594
636
  header_params=_header_params,
@@ -606,6 +648,7 @@ class DefaultApi:
606
648
  self,
607
649
  project_id: Annotated[StrictStr, Field(description="Project ID")],
608
650
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
651
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
609
652
  create_user_payload: Annotated[
610
653
  CreateUserPayload,
611
654
  Field(
@@ -630,6 +673,8 @@ class DefaultApi:
630
673
  :type project_id: str
631
674
  :param instance_id: Instance ID (required)
632
675
  :type instance_id: str
676
+ :param region: The region which should be addressed (required)
677
+ :type region: str
633
678
  :param create_user_payload: The request body contains a username, a list of roles and database. The possible roles can be fetched from the ListRoles endpoint. (required)
634
679
  :type create_user_payload: CreateUserPayload
635
680
  :param _request_timeout: timeout setting for this request. If one
@@ -657,6 +702,7 @@ class DefaultApi:
657
702
  _param = self._create_user_serialize(
658
703
  project_id=project_id,
659
704
  instance_id=instance_id,
705
+ region=region,
660
706
  create_user_payload=create_user_payload,
661
707
  _request_auth=_request_auth,
662
708
  _content_type=_content_type,
@@ -667,6 +713,7 @@ class DefaultApi:
667
713
  _response_types_map: Dict[str, Optional[str]] = {
668
714
  "201": "CreateUserResponse",
669
715
  "400": "InstanceError",
716
+ "401": "InstanceError",
670
717
  "405": None,
671
718
  "500": None,
672
719
  }
@@ -682,6 +729,7 @@ class DefaultApi:
682
729
  self,
683
730
  project_id: Annotated[StrictStr, Field(description="Project ID")],
684
731
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
732
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
685
733
  create_user_payload: Annotated[
686
734
  CreateUserPayload,
687
735
  Field(
@@ -706,6 +754,8 @@ class DefaultApi:
706
754
  :type project_id: str
707
755
  :param instance_id: Instance ID (required)
708
756
  :type instance_id: str
757
+ :param region: The region which should be addressed (required)
758
+ :type region: str
709
759
  :param create_user_payload: The request body contains a username, a list of roles and database. The possible roles can be fetched from the ListRoles endpoint. (required)
710
760
  :type create_user_payload: CreateUserPayload
711
761
  :param _request_timeout: timeout setting for this request. If one
@@ -733,6 +783,7 @@ class DefaultApi:
733
783
  _param = self._create_user_serialize(
734
784
  project_id=project_id,
735
785
  instance_id=instance_id,
786
+ region=region,
736
787
  create_user_payload=create_user_payload,
737
788
  _request_auth=_request_auth,
738
789
  _content_type=_content_type,
@@ -743,6 +794,7 @@ class DefaultApi:
743
794
  _response_types_map: Dict[str, Optional[str]] = {
744
795
  "201": "CreateUserResponse",
745
796
  "400": "InstanceError",
797
+ "401": "InstanceError",
746
798
  "405": None,
747
799
  "500": None,
748
800
  }
@@ -758,6 +810,7 @@ class DefaultApi:
758
810
  self,
759
811
  project_id: Annotated[StrictStr, Field(description="Project ID")],
760
812
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
813
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
761
814
  create_user_payload: Annotated[
762
815
  CreateUserPayload,
763
816
  Field(
@@ -782,6 +835,8 @@ class DefaultApi:
782
835
  :type project_id: str
783
836
  :param instance_id: Instance ID (required)
784
837
  :type instance_id: str
838
+ :param region: The region which should be addressed (required)
839
+ :type region: str
785
840
  :param create_user_payload: The request body contains a username, a list of roles and database. The possible roles can be fetched from the ListRoles endpoint. (required)
786
841
  :type create_user_payload: CreateUserPayload
787
842
  :param _request_timeout: timeout setting for this request. If one
@@ -809,6 +864,7 @@ class DefaultApi:
809
864
  _param = self._create_user_serialize(
810
865
  project_id=project_id,
811
866
  instance_id=instance_id,
867
+ region=region,
812
868
  create_user_payload=create_user_payload,
813
869
  _request_auth=_request_auth,
814
870
  _content_type=_content_type,
@@ -819,6 +875,7 @@ class DefaultApi:
819
875
  _response_types_map: Dict[str, Optional[str]] = {
820
876
  "201": "CreateUserResponse",
821
877
  "400": "InstanceError",
878
+ "401": "InstanceError",
822
879
  "405": None,
823
880
  "500": None,
824
881
  }
@@ -829,6 +886,7 @@ class DefaultApi:
829
886
  self,
830
887
  project_id,
831
888
  instance_id,
889
+ region,
832
890
  create_user_payload,
833
891
  _request_auth,
834
892
  _content_type,
@@ -852,6 +910,8 @@ class DefaultApi:
852
910
  _path_params["projectId"] = project_id
853
911
  if instance_id is not None:
854
912
  _path_params["instanceId"] = instance_id
913
+ if region is not None:
914
+ _path_params["region"] = region
855
915
  # process the query parameters
856
916
  # process the header parameters
857
917
  # process the form parameters
@@ -876,7 +936,7 @@ class DefaultApi:
876
936
 
877
937
  return self.api_client.param_serialize(
878
938
  method="POST",
879
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users",
939
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
880
940
  path_params=_path_params,
881
941
  query_params=_query_params,
882
942
  header_params=_header_params,
@@ -895,6 +955,7 @@ class DefaultApi:
895
955
  project_id: Annotated[StrictStr, Field(description="Project ID")],
896
956
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
897
957
  database_name: Annotated[StrictStr, Field(description="Database Name")],
958
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
898
959
  _request_timeout: Union[
899
960
  None,
900
961
  Annotated[StrictFloat, Field(gt=0)],
@@ -915,6 +976,8 @@ class DefaultApi:
915
976
  :type instance_id: str
916
977
  :param database_name: Database Name (required)
917
978
  :type database_name: str
979
+ :param region: The region which should be addressed (required)
980
+ :type region: str
918
981
  :param _request_timeout: timeout setting for this request. If one
919
982
  number provided, it will be total request
920
983
  timeout. It can also be a pair (tuple) of
@@ -941,6 +1004,7 @@ class DefaultApi:
941
1004
  project_id=project_id,
942
1005
  instance_id=instance_id,
943
1006
  database_name=database_name,
1007
+ region=region,
944
1008
  _request_auth=_request_auth,
945
1009
  _content_type=_content_type,
946
1010
  _headers=_headers,
@@ -950,6 +1014,7 @@ class DefaultApi:
950
1014
  _response_types_map: Dict[str, Optional[str]] = {
951
1015
  "204": None,
952
1016
  "400": "InstanceError",
1017
+ "401": "InstanceError",
953
1018
  "405": None,
954
1019
  "500": None,
955
1020
  }
@@ -966,6 +1031,7 @@ class DefaultApi:
966
1031
  project_id: Annotated[StrictStr, Field(description="Project ID")],
967
1032
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
968
1033
  database_name: Annotated[StrictStr, Field(description="Database Name")],
1034
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
969
1035
  _request_timeout: Union[
970
1036
  None,
971
1037
  Annotated[StrictFloat, Field(gt=0)],
@@ -986,6 +1052,8 @@ class DefaultApi:
986
1052
  :type instance_id: str
987
1053
  :param database_name: Database Name (required)
988
1054
  :type database_name: str
1055
+ :param region: The region which should be addressed (required)
1056
+ :type region: str
989
1057
  :param _request_timeout: timeout setting for this request. If one
990
1058
  number provided, it will be total request
991
1059
  timeout. It can also be a pair (tuple) of
@@ -1012,6 +1080,7 @@ class DefaultApi:
1012
1080
  project_id=project_id,
1013
1081
  instance_id=instance_id,
1014
1082
  database_name=database_name,
1083
+ region=region,
1015
1084
  _request_auth=_request_auth,
1016
1085
  _content_type=_content_type,
1017
1086
  _headers=_headers,
@@ -1021,6 +1090,7 @@ class DefaultApi:
1021
1090
  _response_types_map: Dict[str, Optional[str]] = {
1022
1091
  "204": None,
1023
1092
  "400": "InstanceError",
1093
+ "401": "InstanceError",
1024
1094
  "405": None,
1025
1095
  "500": None,
1026
1096
  }
@@ -1037,6 +1107,7 @@ class DefaultApi:
1037
1107
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1038
1108
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1039
1109
  database_name: Annotated[StrictStr, Field(description="Database Name")],
1110
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1040
1111
  _request_timeout: Union[
1041
1112
  None,
1042
1113
  Annotated[StrictFloat, Field(gt=0)],
@@ -1057,6 +1128,8 @@ class DefaultApi:
1057
1128
  :type instance_id: str
1058
1129
  :param database_name: Database Name (required)
1059
1130
  :type database_name: str
1131
+ :param region: The region which should be addressed (required)
1132
+ :type region: str
1060
1133
  :param _request_timeout: timeout setting for this request. If one
1061
1134
  number provided, it will be total request
1062
1135
  timeout. It can also be a pair (tuple) of
@@ -1083,6 +1156,7 @@ class DefaultApi:
1083
1156
  project_id=project_id,
1084
1157
  instance_id=instance_id,
1085
1158
  database_name=database_name,
1159
+ region=region,
1086
1160
  _request_auth=_request_auth,
1087
1161
  _content_type=_content_type,
1088
1162
  _headers=_headers,
@@ -1092,6 +1166,7 @@ class DefaultApi:
1092
1166
  _response_types_map: Dict[str, Optional[str]] = {
1093
1167
  "204": None,
1094
1168
  "400": "InstanceError",
1169
+ "401": "InstanceError",
1095
1170
  "405": None,
1096
1171
  "500": None,
1097
1172
  }
@@ -1103,6 +1178,7 @@ class DefaultApi:
1103
1178
  project_id,
1104
1179
  instance_id,
1105
1180
  database_name,
1181
+ region,
1106
1182
  _request_auth,
1107
1183
  _content_type,
1108
1184
  _headers,
@@ -1127,6 +1203,8 @@ class DefaultApi:
1127
1203
  _path_params["instanceId"] = instance_id
1128
1204
  if database_name is not None:
1129
1205
  _path_params["databaseName"] = database_name
1206
+ if region is not None:
1207
+ _path_params["region"] = region
1130
1208
  # process the query parameters
1131
1209
  # process the header parameters
1132
1210
  # process the form parameters
@@ -1141,7 +1219,7 @@ class DefaultApi:
1141
1219
 
1142
1220
  return self.api_client.param_serialize(
1143
1221
  method="DELETE",
1144
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/databases/{databaseName}",
1222
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",
1145
1223
  path_params=_path_params,
1146
1224
  query_params=_query_params,
1147
1225
  header_params=_header_params,
@@ -1159,6 +1237,7 @@ class DefaultApi:
1159
1237
  self,
1160
1238
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1161
1239
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1240
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1162
1241
  _request_timeout: Union[
1163
1242
  None,
1164
1243
  Annotated[StrictFloat, Field(gt=0)],
@@ -1177,6 +1256,8 @@ class DefaultApi:
1177
1256
  :type project_id: str
1178
1257
  :param instance_id: Instance ID (required)
1179
1258
  :type instance_id: str
1259
+ :param region: The region which should be addressed (required)
1260
+ :type region: str
1180
1261
  :param _request_timeout: timeout setting for this request. If one
1181
1262
  number provided, it will be total request
1182
1263
  timeout. It can also be a pair (tuple) of
@@ -1202,6 +1283,7 @@ class DefaultApi:
1202
1283
  _param = self._delete_instance_serialize(
1203
1284
  project_id=project_id,
1204
1285
  instance_id=instance_id,
1286
+ region=region,
1205
1287
  _request_auth=_request_auth,
1206
1288
  _content_type=_content_type,
1207
1289
  _headers=_headers,
@@ -1211,6 +1293,7 @@ class DefaultApi:
1211
1293
  _response_types_map: Dict[str, Optional[str]] = {
1212
1294
  "200": None,
1213
1295
  "400": "InstanceError",
1296
+ "401": "InstanceError",
1214
1297
  "405": None,
1215
1298
  "500": None,
1216
1299
  }
@@ -1226,6 +1309,7 @@ class DefaultApi:
1226
1309
  self,
1227
1310
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1228
1311
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1312
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1229
1313
  _request_timeout: Union[
1230
1314
  None,
1231
1315
  Annotated[StrictFloat, Field(gt=0)],
@@ -1244,6 +1328,8 @@ class DefaultApi:
1244
1328
  :type project_id: str
1245
1329
  :param instance_id: Instance ID (required)
1246
1330
  :type instance_id: str
1331
+ :param region: The region which should be addressed (required)
1332
+ :type region: str
1247
1333
  :param _request_timeout: timeout setting for this request. If one
1248
1334
  number provided, it will be total request
1249
1335
  timeout. It can also be a pair (tuple) of
@@ -1269,6 +1355,7 @@ class DefaultApi:
1269
1355
  _param = self._delete_instance_serialize(
1270
1356
  project_id=project_id,
1271
1357
  instance_id=instance_id,
1358
+ region=region,
1272
1359
  _request_auth=_request_auth,
1273
1360
  _content_type=_content_type,
1274
1361
  _headers=_headers,
@@ -1278,6 +1365,7 @@ class DefaultApi:
1278
1365
  _response_types_map: Dict[str, Optional[str]] = {
1279
1366
  "200": None,
1280
1367
  "400": "InstanceError",
1368
+ "401": "InstanceError",
1281
1369
  "405": None,
1282
1370
  "500": None,
1283
1371
  }
@@ -1293,6 +1381,7 @@ class DefaultApi:
1293
1381
  self,
1294
1382
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1295
1383
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1384
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1296
1385
  _request_timeout: Union[
1297
1386
  None,
1298
1387
  Annotated[StrictFloat, Field(gt=0)],
@@ -1311,6 +1400,8 @@ class DefaultApi:
1311
1400
  :type project_id: str
1312
1401
  :param instance_id: Instance ID (required)
1313
1402
  :type instance_id: str
1403
+ :param region: The region which should be addressed (required)
1404
+ :type region: str
1314
1405
  :param _request_timeout: timeout setting for this request. If one
1315
1406
  number provided, it will be total request
1316
1407
  timeout. It can also be a pair (tuple) of
@@ -1336,6 +1427,7 @@ class DefaultApi:
1336
1427
  _param = self._delete_instance_serialize(
1337
1428
  project_id=project_id,
1338
1429
  instance_id=instance_id,
1430
+ region=region,
1339
1431
  _request_auth=_request_auth,
1340
1432
  _content_type=_content_type,
1341
1433
  _headers=_headers,
@@ -1345,6 +1437,7 @@ class DefaultApi:
1345
1437
  _response_types_map: Dict[str, Optional[str]] = {
1346
1438
  "200": None,
1347
1439
  "400": "InstanceError",
1440
+ "401": "InstanceError",
1348
1441
  "405": None,
1349
1442
  "500": None,
1350
1443
  }
@@ -1355,6 +1448,7 @@ class DefaultApi:
1355
1448
  self,
1356
1449
  project_id,
1357
1450
  instance_id,
1451
+ region,
1358
1452
  _request_auth,
1359
1453
  _content_type,
1360
1454
  _headers,
@@ -1377,6 +1471,8 @@ class DefaultApi:
1377
1471
  _path_params["projectId"] = project_id
1378
1472
  if instance_id is not None:
1379
1473
  _path_params["instanceId"] = instance_id
1474
+ if region is not None:
1475
+ _path_params["region"] = region
1380
1476
  # process the query parameters
1381
1477
  # process the header parameters
1382
1478
  # process the form parameters
@@ -1391,7 +1487,7 @@ class DefaultApi:
1391
1487
 
1392
1488
  return self.api_client.param_serialize(
1393
1489
  method="DELETE",
1394
- resource_path="/v1/projects/{projectId}/instances/{instanceId}",
1490
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
1395
1491
  path_params=_path_params,
1396
1492
  query_params=_query_params,
1397
1493
  header_params=_header_params,
@@ -1410,6 +1506,7 @@ class DefaultApi:
1410
1506
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1411
1507
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1412
1508
  user_id: Annotated[StrictStr, Field(description="User ID")],
1509
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1413
1510
  _request_timeout: Union[
1414
1511
  None,
1415
1512
  Annotated[StrictFloat, Field(gt=0)],
@@ -1430,6 +1527,8 @@ class DefaultApi:
1430
1527
  :type instance_id: str
1431
1528
  :param user_id: User ID (required)
1432
1529
  :type user_id: str
1530
+ :param region: The region which should be addressed (required)
1531
+ :type region: str
1433
1532
  :param _request_timeout: timeout setting for this request. If one
1434
1533
  number provided, it will be total request
1435
1534
  timeout. It can also be a pair (tuple) of
@@ -1456,6 +1555,7 @@ class DefaultApi:
1456
1555
  project_id=project_id,
1457
1556
  instance_id=instance_id,
1458
1557
  user_id=user_id,
1558
+ region=region,
1459
1559
  _request_auth=_request_auth,
1460
1560
  _content_type=_content_type,
1461
1561
  _headers=_headers,
@@ -1465,6 +1565,7 @@ class DefaultApi:
1465
1565
  _response_types_map: Dict[str, Optional[str]] = {
1466
1566
  "200": None,
1467
1567
  "400": "InstanceError",
1568
+ "401": "InstanceError",
1468
1569
  "405": None,
1469
1570
  "500": None,
1470
1571
  }
@@ -1481,6 +1582,7 @@ class DefaultApi:
1481
1582
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1482
1583
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1483
1584
  user_id: Annotated[StrictStr, Field(description="User ID")],
1585
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1484
1586
  _request_timeout: Union[
1485
1587
  None,
1486
1588
  Annotated[StrictFloat, Field(gt=0)],
@@ -1501,6 +1603,8 @@ class DefaultApi:
1501
1603
  :type instance_id: str
1502
1604
  :param user_id: User ID (required)
1503
1605
  :type user_id: str
1606
+ :param region: The region which should be addressed (required)
1607
+ :type region: str
1504
1608
  :param _request_timeout: timeout setting for this request. If one
1505
1609
  number provided, it will be total request
1506
1610
  timeout. It can also be a pair (tuple) of
@@ -1527,6 +1631,7 @@ class DefaultApi:
1527
1631
  project_id=project_id,
1528
1632
  instance_id=instance_id,
1529
1633
  user_id=user_id,
1634
+ region=region,
1530
1635
  _request_auth=_request_auth,
1531
1636
  _content_type=_content_type,
1532
1637
  _headers=_headers,
@@ -1536,6 +1641,7 @@ class DefaultApi:
1536
1641
  _response_types_map: Dict[str, Optional[str]] = {
1537
1642
  "200": None,
1538
1643
  "400": "InstanceError",
1644
+ "401": "InstanceError",
1539
1645
  "405": None,
1540
1646
  "500": None,
1541
1647
  }
@@ -1552,6 +1658,7 @@ class DefaultApi:
1552
1658
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1553
1659
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1554
1660
  user_id: Annotated[StrictStr, Field(description="User ID")],
1661
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1555
1662
  _request_timeout: Union[
1556
1663
  None,
1557
1664
  Annotated[StrictFloat, Field(gt=0)],
@@ -1572,6 +1679,8 @@ class DefaultApi:
1572
1679
  :type instance_id: str
1573
1680
  :param user_id: User ID (required)
1574
1681
  :type user_id: str
1682
+ :param region: The region which should be addressed (required)
1683
+ :type region: str
1575
1684
  :param _request_timeout: timeout setting for this request. If one
1576
1685
  number provided, it will be total request
1577
1686
  timeout. It can also be a pair (tuple) of
@@ -1598,6 +1707,7 @@ class DefaultApi:
1598
1707
  project_id=project_id,
1599
1708
  instance_id=instance_id,
1600
1709
  user_id=user_id,
1710
+ region=region,
1601
1711
  _request_auth=_request_auth,
1602
1712
  _content_type=_content_type,
1603
1713
  _headers=_headers,
@@ -1607,6 +1717,7 @@ class DefaultApi:
1607
1717
  _response_types_map: Dict[str, Optional[str]] = {
1608
1718
  "200": None,
1609
1719
  "400": "InstanceError",
1720
+ "401": "InstanceError",
1610
1721
  "405": None,
1611
1722
  "500": None,
1612
1723
  }
@@ -1618,6 +1729,7 @@ class DefaultApi:
1618
1729
  project_id,
1619
1730
  instance_id,
1620
1731
  user_id,
1732
+ region,
1621
1733
  _request_auth,
1622
1734
  _content_type,
1623
1735
  _headers,
@@ -1642,6 +1754,8 @@ class DefaultApi:
1642
1754
  _path_params["instanceId"] = instance_id
1643
1755
  if user_id is not None:
1644
1756
  _path_params["userId"] = user_id
1757
+ if region is not None:
1758
+ _path_params["region"] = region
1645
1759
  # process the query parameters
1646
1760
  # process the header parameters
1647
1761
  # process the form parameters
@@ -1656,7 +1770,7 @@ class DefaultApi:
1656
1770
 
1657
1771
  return self.api_client.param_serialize(
1658
1772
  method="DELETE",
1659
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
1773
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
1660
1774
  path_params=_path_params,
1661
1775
  query_params=_query_params,
1662
1776
  header_params=_header_params,
@@ -1675,6 +1789,7 @@ class DefaultApi:
1675
1789
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1676
1790
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1677
1791
  backup_id: Annotated[StrictStr, Field(description="Backup ID")],
1792
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1678
1793
  _request_timeout: Union[
1679
1794
  None,
1680
1795
  Annotated[StrictFloat, Field(gt=0)],
@@ -1695,6 +1810,8 @@ class DefaultApi:
1695
1810
  :type instance_id: str
1696
1811
  :param backup_id: Backup ID (required)
1697
1812
  :type backup_id: str
1813
+ :param region: The region which should be addressed (required)
1814
+ :type region: str
1698
1815
  :param _request_timeout: timeout setting for this request. If one
1699
1816
  number provided, it will be total request
1700
1817
  timeout. It can also be a pair (tuple) of
@@ -1721,6 +1838,7 @@ class DefaultApi:
1721
1838
  project_id=project_id,
1722
1839
  instance_id=instance_id,
1723
1840
  backup_id=backup_id,
1841
+ region=region,
1724
1842
  _request_auth=_request_auth,
1725
1843
  _content_type=_content_type,
1726
1844
  _headers=_headers,
@@ -1730,6 +1848,7 @@ class DefaultApi:
1730
1848
  _response_types_map: Dict[str, Optional[str]] = {
1731
1849
  "200": "GetBackupResponse",
1732
1850
  "400": "InstanceError",
1851
+ "401": "InstanceError",
1733
1852
  "405": None,
1734
1853
  "500": None,
1735
1854
  }
@@ -1746,6 +1865,7 @@ class DefaultApi:
1746
1865
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1747
1866
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1748
1867
  backup_id: Annotated[StrictStr, Field(description="Backup ID")],
1868
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1749
1869
  _request_timeout: Union[
1750
1870
  None,
1751
1871
  Annotated[StrictFloat, Field(gt=0)],
@@ -1766,6 +1886,8 @@ class DefaultApi:
1766
1886
  :type instance_id: str
1767
1887
  :param backup_id: Backup ID (required)
1768
1888
  :type backup_id: str
1889
+ :param region: The region which should be addressed (required)
1890
+ :type region: str
1769
1891
  :param _request_timeout: timeout setting for this request. If one
1770
1892
  number provided, it will be total request
1771
1893
  timeout. It can also be a pair (tuple) of
@@ -1792,6 +1914,7 @@ class DefaultApi:
1792
1914
  project_id=project_id,
1793
1915
  instance_id=instance_id,
1794
1916
  backup_id=backup_id,
1917
+ region=region,
1795
1918
  _request_auth=_request_auth,
1796
1919
  _content_type=_content_type,
1797
1920
  _headers=_headers,
@@ -1801,6 +1924,7 @@ class DefaultApi:
1801
1924
  _response_types_map: Dict[str, Optional[str]] = {
1802
1925
  "200": "GetBackupResponse",
1803
1926
  "400": "InstanceError",
1927
+ "401": "InstanceError",
1804
1928
  "405": None,
1805
1929
  "500": None,
1806
1930
  }
@@ -1817,6 +1941,7 @@ class DefaultApi:
1817
1941
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1818
1942
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1819
1943
  backup_id: Annotated[StrictStr, Field(description="Backup ID")],
1944
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1820
1945
  _request_timeout: Union[
1821
1946
  None,
1822
1947
  Annotated[StrictFloat, Field(gt=0)],
@@ -1837,6 +1962,8 @@ class DefaultApi:
1837
1962
  :type instance_id: str
1838
1963
  :param backup_id: Backup ID (required)
1839
1964
  :type backup_id: str
1965
+ :param region: The region which should be addressed (required)
1966
+ :type region: str
1840
1967
  :param _request_timeout: timeout setting for this request. If one
1841
1968
  number provided, it will be total request
1842
1969
  timeout. It can also be a pair (tuple) of
@@ -1863,6 +1990,7 @@ class DefaultApi:
1863
1990
  project_id=project_id,
1864
1991
  instance_id=instance_id,
1865
1992
  backup_id=backup_id,
1993
+ region=region,
1866
1994
  _request_auth=_request_auth,
1867
1995
  _content_type=_content_type,
1868
1996
  _headers=_headers,
@@ -1872,6 +2000,7 @@ class DefaultApi:
1872
2000
  _response_types_map: Dict[str, Optional[str]] = {
1873
2001
  "200": "GetBackupResponse",
1874
2002
  "400": "InstanceError",
2003
+ "401": "InstanceError",
1875
2004
  "405": None,
1876
2005
  "500": None,
1877
2006
  }
@@ -1883,6 +2012,7 @@ class DefaultApi:
1883
2012
  project_id,
1884
2013
  instance_id,
1885
2014
  backup_id,
2015
+ region,
1886
2016
  _request_auth,
1887
2017
  _content_type,
1888
2018
  _headers,
@@ -1907,6 +2037,8 @@ class DefaultApi:
1907
2037
  _path_params["instanceId"] = instance_id
1908
2038
  if backup_id is not None:
1909
2039
  _path_params["backupId"] = backup_id
2040
+ if region is not None:
2041
+ _path_params["region"] = region
1910
2042
  # process the query parameters
1911
2043
  # process the header parameters
1912
2044
  # process the form parameters
@@ -1921,7 +2053,7 @@ class DefaultApi:
1921
2053
 
1922
2054
  return self.api_client.param_serialize(
1923
2055
  method="GET",
1924
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups/{backupId}",
2056
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
1925
2057
  path_params=_path_params,
1926
2058
  query_params=_query_params,
1927
2059
  header_params=_header_params,
@@ -1940,6 +2072,7 @@ class DefaultApi:
1940
2072
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1941
2073
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1942
2074
  database_name: Annotated[StrictStr, Field(description="Database Name")],
2075
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1943
2076
  _request_timeout: Union[
1944
2077
  None,
1945
2078
  Annotated[StrictFloat, Field(gt=0)],
@@ -1960,6 +2093,8 @@ class DefaultApi:
1960
2093
  :type instance_id: str
1961
2094
  :param database_name: Database Name (required)
1962
2095
  :type database_name: str
2096
+ :param region: The region which should be addressed (required)
2097
+ :type region: str
1963
2098
  :param _request_timeout: timeout setting for this request. If one
1964
2099
  number provided, it will be total request
1965
2100
  timeout. It can also be a pair (tuple) of
@@ -1986,6 +2121,7 @@ class DefaultApi:
1986
2121
  project_id=project_id,
1987
2122
  instance_id=instance_id,
1988
2123
  database_name=database_name,
2124
+ region=region,
1989
2125
  _request_auth=_request_auth,
1990
2126
  _content_type=_content_type,
1991
2127
  _headers=_headers,
@@ -1995,6 +2131,7 @@ class DefaultApi:
1995
2131
  _response_types_map: Dict[str, Optional[str]] = {
1996
2132
  "200": "GetDatabaseResponse",
1997
2133
  "400": "InstanceError",
2134
+ "401": "InstanceError",
1998
2135
  "405": None,
1999
2136
  "500": None,
2000
2137
  }
@@ -2011,6 +2148,7 @@ class DefaultApi:
2011
2148
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2012
2149
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2013
2150
  database_name: Annotated[StrictStr, Field(description="Database Name")],
2151
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2014
2152
  _request_timeout: Union[
2015
2153
  None,
2016
2154
  Annotated[StrictFloat, Field(gt=0)],
@@ -2031,6 +2169,8 @@ class DefaultApi:
2031
2169
  :type instance_id: str
2032
2170
  :param database_name: Database Name (required)
2033
2171
  :type database_name: str
2172
+ :param region: The region which should be addressed (required)
2173
+ :type region: str
2034
2174
  :param _request_timeout: timeout setting for this request. If one
2035
2175
  number provided, it will be total request
2036
2176
  timeout. It can also be a pair (tuple) of
@@ -2057,6 +2197,7 @@ class DefaultApi:
2057
2197
  project_id=project_id,
2058
2198
  instance_id=instance_id,
2059
2199
  database_name=database_name,
2200
+ region=region,
2060
2201
  _request_auth=_request_auth,
2061
2202
  _content_type=_content_type,
2062
2203
  _headers=_headers,
@@ -2066,6 +2207,7 @@ class DefaultApi:
2066
2207
  _response_types_map: Dict[str, Optional[str]] = {
2067
2208
  "200": "GetDatabaseResponse",
2068
2209
  "400": "InstanceError",
2210
+ "401": "InstanceError",
2069
2211
  "405": None,
2070
2212
  "500": None,
2071
2213
  }
@@ -2082,6 +2224,7 @@ class DefaultApi:
2082
2224
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2083
2225
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2084
2226
  database_name: Annotated[StrictStr, Field(description="Database Name")],
2227
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2085
2228
  _request_timeout: Union[
2086
2229
  None,
2087
2230
  Annotated[StrictFloat, Field(gt=0)],
@@ -2102,6 +2245,8 @@ class DefaultApi:
2102
2245
  :type instance_id: str
2103
2246
  :param database_name: Database Name (required)
2104
2247
  :type database_name: str
2248
+ :param region: The region which should be addressed (required)
2249
+ :type region: str
2105
2250
  :param _request_timeout: timeout setting for this request. If one
2106
2251
  number provided, it will be total request
2107
2252
  timeout. It can also be a pair (tuple) of
@@ -2128,6 +2273,7 @@ class DefaultApi:
2128
2273
  project_id=project_id,
2129
2274
  instance_id=instance_id,
2130
2275
  database_name=database_name,
2276
+ region=region,
2131
2277
  _request_auth=_request_auth,
2132
2278
  _content_type=_content_type,
2133
2279
  _headers=_headers,
@@ -2137,6 +2283,7 @@ class DefaultApi:
2137
2283
  _response_types_map: Dict[str, Optional[str]] = {
2138
2284
  "200": "GetDatabaseResponse",
2139
2285
  "400": "InstanceError",
2286
+ "401": "InstanceError",
2140
2287
  "405": None,
2141
2288
  "500": None,
2142
2289
  }
@@ -2148,6 +2295,7 @@ class DefaultApi:
2148
2295
  project_id,
2149
2296
  instance_id,
2150
2297
  database_name,
2298
+ region,
2151
2299
  _request_auth,
2152
2300
  _content_type,
2153
2301
  _headers,
@@ -2172,6 +2320,8 @@ class DefaultApi:
2172
2320
  _path_params["instanceId"] = instance_id
2173
2321
  if database_name is not None:
2174
2322
  _path_params["databaseName"] = database_name
2323
+ if region is not None:
2324
+ _path_params["region"] = region
2175
2325
  # process the query parameters
2176
2326
  # process the header parameters
2177
2327
  # process the form parameters
@@ -2186,7 +2336,7 @@ class DefaultApi:
2186
2336
 
2187
2337
  return self.api_client.param_serialize(
2188
2338
  method="GET",
2189
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/databases/{databaseName}",
2339
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",
2190
2340
  path_params=_path_params,
2191
2341
  query_params=_query_params,
2192
2342
  header_params=_header_params,
@@ -2204,6 +2354,7 @@ class DefaultApi:
2204
2354
  self,
2205
2355
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2206
2356
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2357
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2207
2358
  _request_timeout: Union[
2208
2359
  None,
2209
2360
  Annotated[StrictFloat, Field(gt=0)],
@@ -2222,6 +2373,8 @@ class DefaultApi:
2222
2373
  :type project_id: str
2223
2374
  :param instance_id: Instance ID (required)
2224
2375
  :type instance_id: str
2376
+ :param region: The region which should be addressed (required)
2377
+ :type region: str
2225
2378
  :param _request_timeout: timeout setting for this request. If one
2226
2379
  number provided, it will be total request
2227
2380
  timeout. It can also be a pair (tuple) of
@@ -2247,6 +2400,7 @@ class DefaultApi:
2247
2400
  _param = self._get_instance_serialize(
2248
2401
  project_id=project_id,
2249
2402
  instance_id=instance_id,
2403
+ region=region,
2250
2404
  _request_auth=_request_auth,
2251
2405
  _content_type=_content_type,
2252
2406
  _headers=_headers,
@@ -2256,6 +2410,7 @@ class DefaultApi:
2256
2410
  _response_types_map: Dict[str, Optional[str]] = {
2257
2411
  "200": "GetInstanceResponse",
2258
2412
  "400": "InstanceError",
2413
+ "401": "InstanceError",
2259
2414
  "405": None,
2260
2415
  "500": None,
2261
2416
  }
@@ -2271,6 +2426,7 @@ class DefaultApi:
2271
2426
  self,
2272
2427
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2273
2428
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2429
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2274
2430
  _request_timeout: Union[
2275
2431
  None,
2276
2432
  Annotated[StrictFloat, Field(gt=0)],
@@ -2289,6 +2445,8 @@ class DefaultApi:
2289
2445
  :type project_id: str
2290
2446
  :param instance_id: Instance ID (required)
2291
2447
  :type instance_id: str
2448
+ :param region: The region which should be addressed (required)
2449
+ :type region: str
2292
2450
  :param _request_timeout: timeout setting for this request. If one
2293
2451
  number provided, it will be total request
2294
2452
  timeout. It can also be a pair (tuple) of
@@ -2314,6 +2472,7 @@ class DefaultApi:
2314
2472
  _param = self._get_instance_serialize(
2315
2473
  project_id=project_id,
2316
2474
  instance_id=instance_id,
2475
+ region=region,
2317
2476
  _request_auth=_request_auth,
2318
2477
  _content_type=_content_type,
2319
2478
  _headers=_headers,
@@ -2323,6 +2482,7 @@ class DefaultApi:
2323
2482
  _response_types_map: Dict[str, Optional[str]] = {
2324
2483
  "200": "GetInstanceResponse",
2325
2484
  "400": "InstanceError",
2485
+ "401": "InstanceError",
2326
2486
  "405": None,
2327
2487
  "500": None,
2328
2488
  }
@@ -2338,6 +2498,7 @@ class DefaultApi:
2338
2498
  self,
2339
2499
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2340
2500
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2501
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2341
2502
  _request_timeout: Union[
2342
2503
  None,
2343
2504
  Annotated[StrictFloat, Field(gt=0)],
@@ -2356,6 +2517,8 @@ class DefaultApi:
2356
2517
  :type project_id: str
2357
2518
  :param instance_id: Instance ID (required)
2358
2519
  :type instance_id: str
2520
+ :param region: The region which should be addressed (required)
2521
+ :type region: str
2359
2522
  :param _request_timeout: timeout setting for this request. If one
2360
2523
  number provided, it will be total request
2361
2524
  timeout. It can also be a pair (tuple) of
@@ -2381,6 +2544,7 @@ class DefaultApi:
2381
2544
  _param = self._get_instance_serialize(
2382
2545
  project_id=project_id,
2383
2546
  instance_id=instance_id,
2547
+ region=region,
2384
2548
  _request_auth=_request_auth,
2385
2549
  _content_type=_content_type,
2386
2550
  _headers=_headers,
@@ -2390,6 +2554,7 @@ class DefaultApi:
2390
2554
  _response_types_map: Dict[str, Optional[str]] = {
2391
2555
  "200": "GetInstanceResponse",
2392
2556
  "400": "InstanceError",
2557
+ "401": "InstanceError",
2393
2558
  "405": None,
2394
2559
  "500": None,
2395
2560
  }
@@ -2400,6 +2565,7 @@ class DefaultApi:
2400
2565
  self,
2401
2566
  project_id,
2402
2567
  instance_id,
2568
+ region,
2403
2569
  _request_auth,
2404
2570
  _content_type,
2405
2571
  _headers,
@@ -2422,6 +2588,8 @@ class DefaultApi:
2422
2588
  _path_params["projectId"] = project_id
2423
2589
  if instance_id is not None:
2424
2590
  _path_params["instanceId"] = instance_id
2591
+ if region is not None:
2592
+ _path_params["region"] = region
2425
2593
  # process the query parameters
2426
2594
  # process the header parameters
2427
2595
  # process the form parameters
@@ -2436,7 +2604,7 @@ class DefaultApi:
2436
2604
 
2437
2605
  return self.api_client.param_serialize(
2438
2606
  method="GET",
2439
- resource_path="/v1/projects/{projectId}/instances/{instanceId}",
2607
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
2440
2608
  path_params=_path_params,
2441
2609
  query_params=_query_params,
2442
2610
  header_params=_header_params,
@@ -2455,6 +2623,7 @@ class DefaultApi:
2455
2623
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2456
2624
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2457
2625
  user_id: Annotated[StrictStr, Field(description="User ID")],
2626
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2458
2627
  _request_timeout: Union[
2459
2628
  None,
2460
2629
  Annotated[StrictFloat, Field(gt=0)],
@@ -2475,6 +2644,8 @@ class DefaultApi:
2475
2644
  :type instance_id: str
2476
2645
  :param user_id: User ID (required)
2477
2646
  :type user_id: str
2647
+ :param region: The region which should be addressed (required)
2648
+ :type region: str
2478
2649
  :param _request_timeout: timeout setting for this request. If one
2479
2650
  number provided, it will be total request
2480
2651
  timeout. It can also be a pair (tuple) of
@@ -2501,6 +2672,7 @@ class DefaultApi:
2501
2672
  project_id=project_id,
2502
2673
  instance_id=instance_id,
2503
2674
  user_id=user_id,
2675
+ region=region,
2504
2676
  _request_auth=_request_auth,
2505
2677
  _content_type=_content_type,
2506
2678
  _headers=_headers,
@@ -2510,6 +2682,7 @@ class DefaultApi:
2510
2682
  _response_types_map: Dict[str, Optional[str]] = {
2511
2683
  "200": "GetUserResponse",
2512
2684
  "400": "InstanceError",
2685
+ "401": "InstanceError",
2513
2686
  "404": "InstanceError",
2514
2687
  "405": None,
2515
2688
  "500": "InstanceError",
@@ -2527,6 +2700,7 @@ class DefaultApi:
2527
2700
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2528
2701
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2529
2702
  user_id: Annotated[StrictStr, Field(description="User ID")],
2703
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2530
2704
  _request_timeout: Union[
2531
2705
  None,
2532
2706
  Annotated[StrictFloat, Field(gt=0)],
@@ -2547,6 +2721,8 @@ class DefaultApi:
2547
2721
  :type instance_id: str
2548
2722
  :param user_id: User ID (required)
2549
2723
  :type user_id: str
2724
+ :param region: The region which should be addressed (required)
2725
+ :type region: str
2550
2726
  :param _request_timeout: timeout setting for this request. If one
2551
2727
  number provided, it will be total request
2552
2728
  timeout. It can also be a pair (tuple) of
@@ -2573,6 +2749,7 @@ class DefaultApi:
2573
2749
  project_id=project_id,
2574
2750
  instance_id=instance_id,
2575
2751
  user_id=user_id,
2752
+ region=region,
2576
2753
  _request_auth=_request_auth,
2577
2754
  _content_type=_content_type,
2578
2755
  _headers=_headers,
@@ -2582,6 +2759,7 @@ class DefaultApi:
2582
2759
  _response_types_map: Dict[str, Optional[str]] = {
2583
2760
  "200": "GetUserResponse",
2584
2761
  "400": "InstanceError",
2762
+ "401": "InstanceError",
2585
2763
  "404": "InstanceError",
2586
2764
  "405": None,
2587
2765
  "500": "InstanceError",
@@ -2599,6 +2777,7 @@ class DefaultApi:
2599
2777
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2600
2778
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2601
2779
  user_id: Annotated[StrictStr, Field(description="User ID")],
2780
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2602
2781
  _request_timeout: Union[
2603
2782
  None,
2604
2783
  Annotated[StrictFloat, Field(gt=0)],
@@ -2619,6 +2798,8 @@ class DefaultApi:
2619
2798
  :type instance_id: str
2620
2799
  :param user_id: User ID (required)
2621
2800
  :type user_id: str
2801
+ :param region: The region which should be addressed (required)
2802
+ :type region: str
2622
2803
  :param _request_timeout: timeout setting for this request. If one
2623
2804
  number provided, it will be total request
2624
2805
  timeout. It can also be a pair (tuple) of
@@ -2645,6 +2826,7 @@ class DefaultApi:
2645
2826
  project_id=project_id,
2646
2827
  instance_id=instance_id,
2647
2828
  user_id=user_id,
2829
+ region=region,
2648
2830
  _request_auth=_request_auth,
2649
2831
  _content_type=_content_type,
2650
2832
  _headers=_headers,
@@ -2654,6 +2836,7 @@ class DefaultApi:
2654
2836
  _response_types_map: Dict[str, Optional[str]] = {
2655
2837
  "200": "GetUserResponse",
2656
2838
  "400": "InstanceError",
2839
+ "401": "InstanceError",
2657
2840
  "404": "InstanceError",
2658
2841
  "405": None,
2659
2842
  "500": "InstanceError",
@@ -2666,6 +2849,7 @@ class DefaultApi:
2666
2849
  project_id,
2667
2850
  instance_id,
2668
2851
  user_id,
2852
+ region,
2669
2853
  _request_auth,
2670
2854
  _content_type,
2671
2855
  _headers,
@@ -2690,6 +2874,8 @@ class DefaultApi:
2690
2874
  _path_params["instanceId"] = instance_id
2691
2875
  if user_id is not None:
2692
2876
  _path_params["userId"] = user_id
2877
+ if region is not None:
2878
+ _path_params["region"] = region
2693
2879
  # process the query parameters
2694
2880
  # process the header parameters
2695
2881
  # process the form parameters
@@ -2704,7 +2890,7 @@ class DefaultApi:
2704
2890
 
2705
2891
  return self.api_client.param_serialize(
2706
2892
  method="GET",
2707
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
2893
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
2708
2894
  path_params=_path_params,
2709
2895
  query_params=_query_params,
2710
2896
  header_params=_header_params,
@@ -2722,6 +2908,7 @@ class DefaultApi:
2722
2908
  self,
2723
2909
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2724
2910
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2911
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2725
2912
  _request_timeout: Union[
2726
2913
  None,
2727
2914
  Annotated[StrictFloat, Field(gt=0)],
@@ -2740,6 +2927,8 @@ class DefaultApi:
2740
2927
  :type project_id: str
2741
2928
  :param instance_id: Instance ID (required)
2742
2929
  :type instance_id: str
2930
+ :param region: The region which should be addressed (required)
2931
+ :type region: str
2743
2932
  :param _request_timeout: timeout setting for this request. If one
2744
2933
  number provided, it will be total request
2745
2934
  timeout. It can also be a pair (tuple) of
@@ -2765,6 +2954,7 @@ class DefaultApi:
2765
2954
  _param = self._list_backups_serialize(
2766
2955
  project_id=project_id,
2767
2956
  instance_id=instance_id,
2957
+ region=region,
2768
2958
  _request_auth=_request_auth,
2769
2959
  _content_type=_content_type,
2770
2960
  _headers=_headers,
@@ -2774,6 +2964,7 @@ class DefaultApi:
2774
2964
  _response_types_map: Dict[str, Optional[str]] = {
2775
2965
  "200": "ListBackupsResponse",
2776
2966
  "400": "InstanceError",
2967
+ "401": "InstanceError",
2777
2968
  "405": None,
2778
2969
  "500": None,
2779
2970
  }
@@ -2789,6 +2980,7 @@ class DefaultApi:
2789
2980
  self,
2790
2981
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2791
2982
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2983
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2792
2984
  _request_timeout: Union[
2793
2985
  None,
2794
2986
  Annotated[StrictFloat, Field(gt=0)],
@@ -2807,6 +2999,8 @@ class DefaultApi:
2807
2999
  :type project_id: str
2808
3000
  :param instance_id: Instance ID (required)
2809
3001
  :type instance_id: str
3002
+ :param region: The region which should be addressed (required)
3003
+ :type region: str
2810
3004
  :param _request_timeout: timeout setting for this request. If one
2811
3005
  number provided, it will be total request
2812
3006
  timeout. It can also be a pair (tuple) of
@@ -2832,6 +3026,7 @@ class DefaultApi:
2832
3026
  _param = self._list_backups_serialize(
2833
3027
  project_id=project_id,
2834
3028
  instance_id=instance_id,
3029
+ region=region,
2835
3030
  _request_auth=_request_auth,
2836
3031
  _content_type=_content_type,
2837
3032
  _headers=_headers,
@@ -2841,6 +3036,7 @@ class DefaultApi:
2841
3036
  _response_types_map: Dict[str, Optional[str]] = {
2842
3037
  "200": "ListBackupsResponse",
2843
3038
  "400": "InstanceError",
3039
+ "401": "InstanceError",
2844
3040
  "405": None,
2845
3041
  "500": None,
2846
3042
  }
@@ -2856,6 +3052,7 @@ class DefaultApi:
2856
3052
  self,
2857
3053
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2858
3054
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3055
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2859
3056
  _request_timeout: Union[
2860
3057
  None,
2861
3058
  Annotated[StrictFloat, Field(gt=0)],
@@ -2874,6 +3071,8 @@ class DefaultApi:
2874
3071
  :type project_id: str
2875
3072
  :param instance_id: Instance ID (required)
2876
3073
  :type instance_id: str
3074
+ :param region: The region which should be addressed (required)
3075
+ :type region: str
2877
3076
  :param _request_timeout: timeout setting for this request. If one
2878
3077
  number provided, it will be total request
2879
3078
  timeout. It can also be a pair (tuple) of
@@ -2899,6 +3098,7 @@ class DefaultApi:
2899
3098
  _param = self._list_backups_serialize(
2900
3099
  project_id=project_id,
2901
3100
  instance_id=instance_id,
3101
+ region=region,
2902
3102
  _request_auth=_request_auth,
2903
3103
  _content_type=_content_type,
2904
3104
  _headers=_headers,
@@ -2908,6 +3108,7 @@ class DefaultApi:
2908
3108
  _response_types_map: Dict[str, Optional[str]] = {
2909
3109
  "200": "ListBackupsResponse",
2910
3110
  "400": "InstanceError",
3111
+ "401": "InstanceError",
2911
3112
  "405": None,
2912
3113
  "500": None,
2913
3114
  }
@@ -2918,6 +3119,7 @@ class DefaultApi:
2918
3119
  self,
2919
3120
  project_id,
2920
3121
  instance_id,
3122
+ region,
2921
3123
  _request_auth,
2922
3124
  _content_type,
2923
3125
  _headers,
@@ -2940,6 +3142,8 @@ class DefaultApi:
2940
3142
  _path_params["projectId"] = project_id
2941
3143
  if instance_id is not None:
2942
3144
  _path_params["instanceId"] = instance_id
3145
+ if region is not None:
3146
+ _path_params["region"] = region
2943
3147
  # process the query parameters
2944
3148
  # process the header parameters
2945
3149
  # process the form parameters
@@ -2954,7 +3158,7 @@ class DefaultApi:
2954
3158
 
2955
3159
  return self.api_client.param_serialize(
2956
3160
  method="GET",
2957
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups",
3161
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
2958
3162
  path_params=_path_params,
2959
3163
  query_params=_query_params,
2960
3164
  header_params=_header_params,
@@ -2972,6 +3176,7 @@ class DefaultApi:
2972
3176
  self,
2973
3177
  project_id: Annotated[StrictStr, Field(description="The ID of the STACKIT project")],
2974
3178
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
3179
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2975
3180
  _request_timeout: Union[
2976
3181
  None,
2977
3182
  Annotated[StrictFloat, Field(gt=0)],
@@ -2990,6 +3195,8 @@ class DefaultApi:
2990
3195
  :type project_id: str
2991
3196
  :param instance_id: The ID of the instance (required)
2992
3197
  :type instance_id: str
3198
+ :param region: The region which should be addressed (required)
3199
+ :type region: str
2993
3200
  :param _request_timeout: timeout setting for this request. If one
2994
3201
  number provided, it will be total request
2995
3202
  timeout. It can also be a pair (tuple) of
@@ -3015,6 +3222,7 @@ class DefaultApi:
3015
3222
  _param = self._list_collations_serialize(
3016
3223
  project_id=project_id,
3017
3224
  instance_id=instance_id,
3225
+ region=region,
3018
3226
  _request_auth=_request_auth,
3019
3227
  _content_type=_content_type,
3020
3228
  _headers=_headers,
@@ -3024,6 +3232,7 @@ class DefaultApi:
3024
3232
  _response_types_map: Dict[str, Optional[str]] = {
3025
3233
  "200": "ListCollationsResponse",
3026
3234
  "400": "InstanceError",
3235
+ "401": "InstanceError",
3027
3236
  "405": "InstanceError",
3028
3237
  "500": "InstanceError",
3029
3238
  }
@@ -3039,6 +3248,7 @@ class DefaultApi:
3039
3248
  self,
3040
3249
  project_id: Annotated[StrictStr, Field(description="The ID of the STACKIT project")],
3041
3250
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
3251
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3042
3252
  _request_timeout: Union[
3043
3253
  None,
3044
3254
  Annotated[StrictFloat, Field(gt=0)],
@@ -3057,6 +3267,8 @@ class DefaultApi:
3057
3267
  :type project_id: str
3058
3268
  :param instance_id: The ID of the instance (required)
3059
3269
  :type instance_id: str
3270
+ :param region: The region which should be addressed (required)
3271
+ :type region: str
3060
3272
  :param _request_timeout: timeout setting for this request. If one
3061
3273
  number provided, it will be total request
3062
3274
  timeout. It can also be a pair (tuple) of
@@ -3082,6 +3294,7 @@ class DefaultApi:
3082
3294
  _param = self._list_collations_serialize(
3083
3295
  project_id=project_id,
3084
3296
  instance_id=instance_id,
3297
+ region=region,
3085
3298
  _request_auth=_request_auth,
3086
3299
  _content_type=_content_type,
3087
3300
  _headers=_headers,
@@ -3091,6 +3304,7 @@ class DefaultApi:
3091
3304
  _response_types_map: Dict[str, Optional[str]] = {
3092
3305
  "200": "ListCollationsResponse",
3093
3306
  "400": "InstanceError",
3307
+ "401": "InstanceError",
3094
3308
  "405": "InstanceError",
3095
3309
  "500": "InstanceError",
3096
3310
  }
@@ -3106,6 +3320,7 @@ class DefaultApi:
3106
3320
  self,
3107
3321
  project_id: Annotated[StrictStr, Field(description="The ID of the STACKIT project")],
3108
3322
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
3323
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3109
3324
  _request_timeout: Union[
3110
3325
  None,
3111
3326
  Annotated[StrictFloat, Field(gt=0)],
@@ -3124,6 +3339,8 @@ class DefaultApi:
3124
3339
  :type project_id: str
3125
3340
  :param instance_id: The ID of the instance (required)
3126
3341
  :type instance_id: str
3342
+ :param region: The region which should be addressed (required)
3343
+ :type region: str
3127
3344
  :param _request_timeout: timeout setting for this request. If one
3128
3345
  number provided, it will be total request
3129
3346
  timeout. It can also be a pair (tuple) of
@@ -3149,6 +3366,7 @@ class DefaultApi:
3149
3366
  _param = self._list_collations_serialize(
3150
3367
  project_id=project_id,
3151
3368
  instance_id=instance_id,
3369
+ region=region,
3152
3370
  _request_auth=_request_auth,
3153
3371
  _content_type=_content_type,
3154
3372
  _headers=_headers,
@@ -3158,6 +3376,7 @@ class DefaultApi:
3158
3376
  _response_types_map: Dict[str, Optional[str]] = {
3159
3377
  "200": "ListCollationsResponse",
3160
3378
  "400": "InstanceError",
3379
+ "401": "InstanceError",
3161
3380
  "405": "InstanceError",
3162
3381
  "500": "InstanceError",
3163
3382
  }
@@ -3168,6 +3387,7 @@ class DefaultApi:
3168
3387
  self,
3169
3388
  project_id,
3170
3389
  instance_id,
3390
+ region,
3171
3391
  _request_auth,
3172
3392
  _content_type,
3173
3393
  _headers,
@@ -3190,6 +3410,8 @@ class DefaultApi:
3190
3410
  _path_params["projectId"] = project_id
3191
3411
  if instance_id is not None:
3192
3412
  _path_params["instanceId"] = instance_id
3413
+ if region is not None:
3414
+ _path_params["region"] = region
3193
3415
  # process the query parameters
3194
3416
  # process the header parameters
3195
3417
  # process the form parameters
@@ -3204,7 +3426,7 @@ class DefaultApi:
3204
3426
 
3205
3427
  return self.api_client.param_serialize(
3206
3428
  method="GET",
3207
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/collation",
3429
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/collation",
3208
3430
  path_params=_path_params,
3209
3431
  query_params=_query_params,
3210
3432
  header_params=_header_params,
@@ -3222,6 +3444,7 @@ class DefaultApi:
3222
3444
  self,
3223
3445
  project_id: Annotated[StrictStr, Field(description="The ID of the STACKIT project")],
3224
3446
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
3447
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3225
3448
  _request_timeout: Union[
3226
3449
  None,
3227
3450
  Annotated[StrictFloat, Field(gt=0)],
@@ -3240,6 +3463,8 @@ class DefaultApi:
3240
3463
  :type project_id: str
3241
3464
  :param instance_id: The ID of the instance (required)
3242
3465
  :type instance_id: str
3466
+ :param region: The region which should be addressed (required)
3467
+ :type region: str
3243
3468
  :param _request_timeout: timeout setting for this request. If one
3244
3469
  number provided, it will be total request
3245
3470
  timeout. It can also be a pair (tuple) of
@@ -3265,6 +3490,7 @@ class DefaultApi:
3265
3490
  _param = self._list_compatibility_serialize(
3266
3491
  project_id=project_id,
3267
3492
  instance_id=instance_id,
3493
+ region=region,
3268
3494
  _request_auth=_request_auth,
3269
3495
  _content_type=_content_type,
3270
3496
  _headers=_headers,
@@ -3274,6 +3500,7 @@ class DefaultApi:
3274
3500
  _response_types_map: Dict[str, Optional[str]] = {
3275
3501
  "200": "ListCompatibilityResponse",
3276
3502
  "400": "InstanceError",
3503
+ "401": "InstanceError",
3277
3504
  "405": "InstanceError",
3278
3505
  "500": "InstanceError",
3279
3506
  }
@@ -3289,6 +3516,7 @@ class DefaultApi:
3289
3516
  self,
3290
3517
  project_id: Annotated[StrictStr, Field(description="The ID of the STACKIT project")],
3291
3518
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
3519
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3292
3520
  _request_timeout: Union[
3293
3521
  None,
3294
3522
  Annotated[StrictFloat, Field(gt=0)],
@@ -3307,6 +3535,8 @@ class DefaultApi:
3307
3535
  :type project_id: str
3308
3536
  :param instance_id: The ID of the instance (required)
3309
3537
  :type instance_id: str
3538
+ :param region: The region which should be addressed (required)
3539
+ :type region: str
3310
3540
  :param _request_timeout: timeout setting for this request. If one
3311
3541
  number provided, it will be total request
3312
3542
  timeout. It can also be a pair (tuple) of
@@ -3332,6 +3562,7 @@ class DefaultApi:
3332
3562
  _param = self._list_compatibility_serialize(
3333
3563
  project_id=project_id,
3334
3564
  instance_id=instance_id,
3565
+ region=region,
3335
3566
  _request_auth=_request_auth,
3336
3567
  _content_type=_content_type,
3337
3568
  _headers=_headers,
@@ -3341,6 +3572,7 @@ class DefaultApi:
3341
3572
  _response_types_map: Dict[str, Optional[str]] = {
3342
3573
  "200": "ListCompatibilityResponse",
3343
3574
  "400": "InstanceError",
3575
+ "401": "InstanceError",
3344
3576
  "405": "InstanceError",
3345
3577
  "500": "InstanceError",
3346
3578
  }
@@ -3356,6 +3588,7 @@ class DefaultApi:
3356
3588
  self,
3357
3589
  project_id: Annotated[StrictStr, Field(description="The ID of the STACKIT project")],
3358
3590
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
3591
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3359
3592
  _request_timeout: Union[
3360
3593
  None,
3361
3594
  Annotated[StrictFloat, Field(gt=0)],
@@ -3374,6 +3607,8 @@ class DefaultApi:
3374
3607
  :type project_id: str
3375
3608
  :param instance_id: The ID of the instance (required)
3376
3609
  :type instance_id: str
3610
+ :param region: The region which should be addressed (required)
3611
+ :type region: str
3377
3612
  :param _request_timeout: timeout setting for this request. If one
3378
3613
  number provided, it will be total request
3379
3614
  timeout. It can also be a pair (tuple) of
@@ -3399,6 +3634,7 @@ class DefaultApi:
3399
3634
  _param = self._list_compatibility_serialize(
3400
3635
  project_id=project_id,
3401
3636
  instance_id=instance_id,
3637
+ region=region,
3402
3638
  _request_auth=_request_auth,
3403
3639
  _content_type=_content_type,
3404
3640
  _headers=_headers,
@@ -3408,6 +3644,7 @@ class DefaultApi:
3408
3644
  _response_types_map: Dict[str, Optional[str]] = {
3409
3645
  "200": "ListCompatibilityResponse",
3410
3646
  "400": "InstanceError",
3647
+ "401": "InstanceError",
3411
3648
  "405": "InstanceError",
3412
3649
  "500": "InstanceError",
3413
3650
  }
@@ -3418,6 +3655,7 @@ class DefaultApi:
3418
3655
  self,
3419
3656
  project_id,
3420
3657
  instance_id,
3658
+ region,
3421
3659
  _request_auth,
3422
3660
  _content_type,
3423
3661
  _headers,
@@ -3440,6 +3678,8 @@ class DefaultApi:
3440
3678
  _path_params["projectId"] = project_id
3441
3679
  if instance_id is not None:
3442
3680
  _path_params["instanceId"] = instance_id
3681
+ if region is not None:
3682
+ _path_params["region"] = region
3443
3683
  # process the query parameters
3444
3684
  # process the header parameters
3445
3685
  # process the form parameters
@@ -3454,7 +3694,7 @@ class DefaultApi:
3454
3694
 
3455
3695
  return self.api_client.param_serialize(
3456
3696
  method="GET",
3457
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/compatibility",
3697
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/compatibility",
3458
3698
  path_params=_path_params,
3459
3699
  query_params=_query_params,
3460
3700
  header_params=_header_params,
@@ -3472,6 +3712,7 @@ class DefaultApi:
3472
3712
  self,
3473
3713
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3474
3714
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3715
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3475
3716
  _request_timeout: Union[
3476
3717
  None,
3477
3718
  Annotated[StrictFloat, Field(gt=0)],
@@ -3490,6 +3731,8 @@ class DefaultApi:
3490
3731
  :type project_id: str
3491
3732
  :param instance_id: Instance ID (required)
3492
3733
  :type instance_id: str
3734
+ :param region: The region which should be addressed (required)
3735
+ :type region: str
3493
3736
  :param _request_timeout: timeout setting for this request. If one
3494
3737
  number provided, it will be total request
3495
3738
  timeout. It can also be a pair (tuple) of
@@ -3515,6 +3758,7 @@ class DefaultApi:
3515
3758
  _param = self._list_databases_serialize(
3516
3759
  project_id=project_id,
3517
3760
  instance_id=instance_id,
3761
+ region=region,
3518
3762
  _request_auth=_request_auth,
3519
3763
  _content_type=_content_type,
3520
3764
  _headers=_headers,
@@ -3524,6 +3768,7 @@ class DefaultApi:
3524
3768
  _response_types_map: Dict[str, Optional[str]] = {
3525
3769
  "200": "ListDatabasesResponse",
3526
3770
  "400": "InstanceError",
3771
+ "401": "InstanceError",
3527
3772
  "405": None,
3528
3773
  "500": None,
3529
3774
  }
@@ -3539,6 +3784,7 @@ class DefaultApi:
3539
3784
  self,
3540
3785
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3541
3786
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3787
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3542
3788
  _request_timeout: Union[
3543
3789
  None,
3544
3790
  Annotated[StrictFloat, Field(gt=0)],
@@ -3557,6 +3803,8 @@ class DefaultApi:
3557
3803
  :type project_id: str
3558
3804
  :param instance_id: Instance ID (required)
3559
3805
  :type instance_id: str
3806
+ :param region: The region which should be addressed (required)
3807
+ :type region: str
3560
3808
  :param _request_timeout: timeout setting for this request. If one
3561
3809
  number provided, it will be total request
3562
3810
  timeout. It can also be a pair (tuple) of
@@ -3582,6 +3830,7 @@ class DefaultApi:
3582
3830
  _param = self._list_databases_serialize(
3583
3831
  project_id=project_id,
3584
3832
  instance_id=instance_id,
3833
+ region=region,
3585
3834
  _request_auth=_request_auth,
3586
3835
  _content_type=_content_type,
3587
3836
  _headers=_headers,
@@ -3591,6 +3840,7 @@ class DefaultApi:
3591
3840
  _response_types_map: Dict[str, Optional[str]] = {
3592
3841
  "200": "ListDatabasesResponse",
3593
3842
  "400": "InstanceError",
3843
+ "401": "InstanceError",
3594
3844
  "405": None,
3595
3845
  "500": None,
3596
3846
  }
@@ -3606,6 +3856,7 @@ class DefaultApi:
3606
3856
  self,
3607
3857
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3608
3858
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3859
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3609
3860
  _request_timeout: Union[
3610
3861
  None,
3611
3862
  Annotated[StrictFloat, Field(gt=0)],
@@ -3624,6 +3875,8 @@ class DefaultApi:
3624
3875
  :type project_id: str
3625
3876
  :param instance_id: Instance ID (required)
3626
3877
  :type instance_id: str
3878
+ :param region: The region which should be addressed (required)
3879
+ :type region: str
3627
3880
  :param _request_timeout: timeout setting for this request. If one
3628
3881
  number provided, it will be total request
3629
3882
  timeout. It can also be a pair (tuple) of
@@ -3649,6 +3902,7 @@ class DefaultApi:
3649
3902
  _param = self._list_databases_serialize(
3650
3903
  project_id=project_id,
3651
3904
  instance_id=instance_id,
3905
+ region=region,
3652
3906
  _request_auth=_request_auth,
3653
3907
  _content_type=_content_type,
3654
3908
  _headers=_headers,
@@ -3658,6 +3912,7 @@ class DefaultApi:
3658
3912
  _response_types_map: Dict[str, Optional[str]] = {
3659
3913
  "200": "ListDatabasesResponse",
3660
3914
  "400": "InstanceError",
3915
+ "401": "InstanceError",
3661
3916
  "405": None,
3662
3917
  "500": None,
3663
3918
  }
@@ -3668,6 +3923,7 @@ class DefaultApi:
3668
3923
  self,
3669
3924
  project_id,
3670
3925
  instance_id,
3926
+ region,
3671
3927
  _request_auth,
3672
3928
  _content_type,
3673
3929
  _headers,
@@ -3690,6 +3946,8 @@ class DefaultApi:
3690
3946
  _path_params["projectId"] = project_id
3691
3947
  if instance_id is not None:
3692
3948
  _path_params["instanceId"] = instance_id
3949
+ if region is not None:
3950
+ _path_params["region"] = region
3693
3951
  # process the query parameters
3694
3952
  # process the header parameters
3695
3953
  # process the form parameters
@@ -3704,7 +3962,7 @@ class DefaultApi:
3704
3962
 
3705
3963
  return self.api_client.param_serialize(
3706
3964
  method="GET",
3707
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/databases",
3965
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
3708
3966
  path_params=_path_params,
3709
3967
  query_params=_query_params,
3710
3968
  header_params=_header_params,
@@ -3721,6 +3979,7 @@ class DefaultApi:
3721
3979
  def list_flavors(
3722
3980
  self,
3723
3981
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3982
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3724
3983
  _request_timeout: Union[
3725
3984
  None,
3726
3985
  Annotated[StrictFloat, Field(gt=0)],
@@ -3737,6 +3996,8 @@ class DefaultApi:
3737
3996
 
3738
3997
  :param project_id: Project ID (required)
3739
3998
  :type project_id: str
3999
+ :param region: The region which should be addressed (required)
4000
+ :type region: str
3740
4001
  :param _request_timeout: timeout setting for this request. If one
3741
4002
  number provided, it will be total request
3742
4003
  timeout. It can also be a pair (tuple) of
@@ -3761,6 +4022,7 @@ class DefaultApi:
3761
4022
 
3762
4023
  _param = self._list_flavors_serialize(
3763
4024
  project_id=project_id,
4025
+ region=region,
3764
4026
  _request_auth=_request_auth,
3765
4027
  _content_type=_content_type,
3766
4028
  _headers=_headers,
@@ -3770,6 +4032,7 @@ class DefaultApi:
3770
4032
  _response_types_map: Dict[str, Optional[str]] = {
3771
4033
  "200": "ListFlavorsResponse",
3772
4034
  "400": "InstanceError",
4035
+ "401": "InstanceError",
3773
4036
  "405": None,
3774
4037
  "500": None,
3775
4038
  }
@@ -3784,6 +4047,7 @@ class DefaultApi:
3784
4047
  def list_flavors_with_http_info(
3785
4048
  self,
3786
4049
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4050
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3787
4051
  _request_timeout: Union[
3788
4052
  None,
3789
4053
  Annotated[StrictFloat, Field(gt=0)],
@@ -3800,6 +4064,8 @@ class DefaultApi:
3800
4064
 
3801
4065
  :param project_id: Project ID (required)
3802
4066
  :type project_id: str
4067
+ :param region: The region which should be addressed (required)
4068
+ :type region: str
3803
4069
  :param _request_timeout: timeout setting for this request. If one
3804
4070
  number provided, it will be total request
3805
4071
  timeout. It can also be a pair (tuple) of
@@ -3824,6 +4090,7 @@ class DefaultApi:
3824
4090
 
3825
4091
  _param = self._list_flavors_serialize(
3826
4092
  project_id=project_id,
4093
+ region=region,
3827
4094
  _request_auth=_request_auth,
3828
4095
  _content_type=_content_type,
3829
4096
  _headers=_headers,
@@ -3833,6 +4100,7 @@ class DefaultApi:
3833
4100
  _response_types_map: Dict[str, Optional[str]] = {
3834
4101
  "200": "ListFlavorsResponse",
3835
4102
  "400": "InstanceError",
4103
+ "401": "InstanceError",
3836
4104
  "405": None,
3837
4105
  "500": None,
3838
4106
  }
@@ -3847,6 +4115,7 @@ class DefaultApi:
3847
4115
  def list_flavors_without_preload_content(
3848
4116
  self,
3849
4117
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4118
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3850
4119
  _request_timeout: Union[
3851
4120
  None,
3852
4121
  Annotated[StrictFloat, Field(gt=0)],
@@ -3863,6 +4132,8 @@ class DefaultApi:
3863
4132
 
3864
4133
  :param project_id: Project ID (required)
3865
4134
  :type project_id: str
4135
+ :param region: The region which should be addressed (required)
4136
+ :type region: str
3866
4137
  :param _request_timeout: timeout setting for this request. If one
3867
4138
  number provided, it will be total request
3868
4139
  timeout. It can also be a pair (tuple) of
@@ -3887,6 +4158,7 @@ class DefaultApi:
3887
4158
 
3888
4159
  _param = self._list_flavors_serialize(
3889
4160
  project_id=project_id,
4161
+ region=region,
3890
4162
  _request_auth=_request_auth,
3891
4163
  _content_type=_content_type,
3892
4164
  _headers=_headers,
@@ -3896,6 +4168,7 @@ class DefaultApi:
3896
4168
  _response_types_map: Dict[str, Optional[str]] = {
3897
4169
  "200": "ListFlavorsResponse",
3898
4170
  "400": "InstanceError",
4171
+ "401": "InstanceError",
3899
4172
  "405": None,
3900
4173
  "500": None,
3901
4174
  }
@@ -3905,6 +4178,7 @@ class DefaultApi:
3905
4178
  def _list_flavors_serialize(
3906
4179
  self,
3907
4180
  project_id,
4181
+ region,
3908
4182
  _request_auth,
3909
4183
  _content_type,
3910
4184
  _headers,
@@ -3925,6 +4199,8 @@ class DefaultApi:
3925
4199
  # process the path parameters
3926
4200
  if project_id is not None:
3927
4201
  _path_params["projectId"] = project_id
4202
+ if region is not None:
4203
+ _path_params["region"] = region
3928
4204
  # process the query parameters
3929
4205
  # process the header parameters
3930
4206
  # process the form parameters
@@ -3939,7 +4215,7 @@ class DefaultApi:
3939
4215
 
3940
4216
  return self.api_client.param_serialize(
3941
4217
  method="GET",
3942
- resource_path="/v1/projects/{projectId}/flavors",
4218
+ resource_path="/v2/projects/{projectId}/regions/{region}/flavors",
3943
4219
  path_params=_path_params,
3944
4220
  query_params=_query_params,
3945
4221
  header_params=_header_params,
@@ -3956,6 +4232,7 @@ class DefaultApi:
3956
4232
  def list_instances(
3957
4233
  self,
3958
4234
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4235
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3959
4236
  _request_timeout: Union[
3960
4237
  None,
3961
4238
  Annotated[StrictFloat, Field(gt=0)],
@@ -3972,6 +4249,8 @@ class DefaultApi:
3972
4249
 
3973
4250
  :param project_id: Project ID (required)
3974
4251
  :type project_id: str
4252
+ :param region: The region which should be addressed (required)
4253
+ :type region: str
3975
4254
  :param _request_timeout: timeout setting for this request. If one
3976
4255
  number provided, it will be total request
3977
4256
  timeout. It can also be a pair (tuple) of
@@ -3996,6 +4275,7 @@ class DefaultApi:
3996
4275
 
3997
4276
  _param = self._list_instances_serialize(
3998
4277
  project_id=project_id,
4278
+ region=region,
3999
4279
  _request_auth=_request_auth,
4000
4280
  _content_type=_content_type,
4001
4281
  _headers=_headers,
@@ -4005,6 +4285,7 @@ class DefaultApi:
4005
4285
  _response_types_map: Dict[str, Optional[str]] = {
4006
4286
  "200": "ListInstancesResponse",
4007
4287
  "400": "InstanceError",
4288
+ "401": "InstanceError",
4008
4289
  "405": None,
4009
4290
  "500": None,
4010
4291
  }
@@ -4019,6 +4300,7 @@ class DefaultApi:
4019
4300
  def list_instances_with_http_info(
4020
4301
  self,
4021
4302
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4303
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4022
4304
  _request_timeout: Union[
4023
4305
  None,
4024
4306
  Annotated[StrictFloat, Field(gt=0)],
@@ -4035,6 +4317,8 @@ class DefaultApi:
4035
4317
 
4036
4318
  :param project_id: Project ID (required)
4037
4319
  :type project_id: str
4320
+ :param region: The region which should be addressed (required)
4321
+ :type region: str
4038
4322
  :param _request_timeout: timeout setting for this request. If one
4039
4323
  number provided, it will be total request
4040
4324
  timeout. It can also be a pair (tuple) of
@@ -4059,6 +4343,7 @@ class DefaultApi:
4059
4343
 
4060
4344
  _param = self._list_instances_serialize(
4061
4345
  project_id=project_id,
4346
+ region=region,
4062
4347
  _request_auth=_request_auth,
4063
4348
  _content_type=_content_type,
4064
4349
  _headers=_headers,
@@ -4068,6 +4353,7 @@ class DefaultApi:
4068
4353
  _response_types_map: Dict[str, Optional[str]] = {
4069
4354
  "200": "ListInstancesResponse",
4070
4355
  "400": "InstanceError",
4356
+ "401": "InstanceError",
4071
4357
  "405": None,
4072
4358
  "500": None,
4073
4359
  }
@@ -4082,6 +4368,7 @@ class DefaultApi:
4082
4368
  def list_instances_without_preload_content(
4083
4369
  self,
4084
4370
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4371
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4085
4372
  _request_timeout: Union[
4086
4373
  None,
4087
4374
  Annotated[StrictFloat, Field(gt=0)],
@@ -4098,6 +4385,8 @@ class DefaultApi:
4098
4385
 
4099
4386
  :param project_id: Project ID (required)
4100
4387
  :type project_id: str
4388
+ :param region: The region which should be addressed (required)
4389
+ :type region: str
4101
4390
  :param _request_timeout: timeout setting for this request. If one
4102
4391
  number provided, it will be total request
4103
4392
  timeout. It can also be a pair (tuple) of
@@ -4122,6 +4411,7 @@ class DefaultApi:
4122
4411
 
4123
4412
  _param = self._list_instances_serialize(
4124
4413
  project_id=project_id,
4414
+ region=region,
4125
4415
  _request_auth=_request_auth,
4126
4416
  _content_type=_content_type,
4127
4417
  _headers=_headers,
@@ -4131,6 +4421,7 @@ class DefaultApi:
4131
4421
  _response_types_map: Dict[str, Optional[str]] = {
4132
4422
  "200": "ListInstancesResponse",
4133
4423
  "400": "InstanceError",
4424
+ "401": "InstanceError",
4134
4425
  "405": None,
4135
4426
  "500": None,
4136
4427
  }
@@ -4140,6 +4431,7 @@ class DefaultApi:
4140
4431
  def _list_instances_serialize(
4141
4432
  self,
4142
4433
  project_id,
4434
+ region,
4143
4435
  _request_auth,
4144
4436
  _content_type,
4145
4437
  _headers,
@@ -4160,6 +4452,8 @@ class DefaultApi:
4160
4452
  # process the path parameters
4161
4453
  if project_id is not None:
4162
4454
  _path_params["projectId"] = project_id
4455
+ if region is not None:
4456
+ _path_params["region"] = region
4163
4457
  # process the query parameters
4164
4458
  # process the header parameters
4165
4459
  # process the form parameters
@@ -4174,7 +4468,7 @@ class DefaultApi:
4174
4468
 
4175
4469
  return self.api_client.param_serialize(
4176
4470
  method="GET",
4177
- resource_path="/v1/projects/{projectId}/instances",
4471
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances",
4178
4472
  path_params=_path_params,
4179
4473
  query_params=_query_params,
4180
4474
  header_params=_header_params,
@@ -4192,6 +4486,7 @@ class DefaultApi:
4192
4486
  self,
4193
4487
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4194
4488
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4489
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4195
4490
  _request_timeout: Union[
4196
4491
  None,
4197
4492
  Annotated[StrictFloat, Field(gt=0)],
@@ -4210,6 +4505,8 @@ class DefaultApi:
4210
4505
  :type project_id: str
4211
4506
  :param instance_id: Instance ID (required)
4212
4507
  :type instance_id: str
4508
+ :param region: The region which should be addressed (required)
4509
+ :type region: str
4213
4510
  :param _request_timeout: timeout setting for this request. If one
4214
4511
  number provided, it will be total request
4215
4512
  timeout. It can also be a pair (tuple) of
@@ -4235,6 +4532,7 @@ class DefaultApi:
4235
4532
  _param = self._list_restore_jobs_serialize(
4236
4533
  project_id=project_id,
4237
4534
  instance_id=instance_id,
4535
+ region=region,
4238
4536
  _request_auth=_request_auth,
4239
4537
  _content_type=_content_type,
4240
4538
  _headers=_headers,
@@ -4244,6 +4542,7 @@ class DefaultApi:
4244
4542
  _response_types_map: Dict[str, Optional[str]] = {
4245
4543
  "200": "ListRestoreJobsResponse",
4246
4544
  "400": "InstanceError",
4545
+ "401": "InstanceError",
4247
4546
  "405": None,
4248
4547
  "500": None,
4249
4548
  }
@@ -4259,6 +4558,7 @@ class DefaultApi:
4259
4558
  self,
4260
4559
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4261
4560
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4561
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4262
4562
  _request_timeout: Union[
4263
4563
  None,
4264
4564
  Annotated[StrictFloat, Field(gt=0)],
@@ -4277,6 +4577,8 @@ class DefaultApi:
4277
4577
  :type project_id: str
4278
4578
  :param instance_id: Instance ID (required)
4279
4579
  :type instance_id: str
4580
+ :param region: The region which should be addressed (required)
4581
+ :type region: str
4280
4582
  :param _request_timeout: timeout setting for this request. If one
4281
4583
  number provided, it will be total request
4282
4584
  timeout. It can also be a pair (tuple) of
@@ -4302,6 +4604,7 @@ class DefaultApi:
4302
4604
  _param = self._list_restore_jobs_serialize(
4303
4605
  project_id=project_id,
4304
4606
  instance_id=instance_id,
4607
+ region=region,
4305
4608
  _request_auth=_request_auth,
4306
4609
  _content_type=_content_type,
4307
4610
  _headers=_headers,
@@ -4311,6 +4614,7 @@ class DefaultApi:
4311
4614
  _response_types_map: Dict[str, Optional[str]] = {
4312
4615
  "200": "ListRestoreJobsResponse",
4313
4616
  "400": "InstanceError",
4617
+ "401": "InstanceError",
4314
4618
  "405": None,
4315
4619
  "500": None,
4316
4620
  }
@@ -4326,6 +4630,7 @@ class DefaultApi:
4326
4630
  self,
4327
4631
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4328
4632
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4633
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4329
4634
  _request_timeout: Union[
4330
4635
  None,
4331
4636
  Annotated[StrictFloat, Field(gt=0)],
@@ -4344,6 +4649,8 @@ class DefaultApi:
4344
4649
  :type project_id: str
4345
4650
  :param instance_id: Instance ID (required)
4346
4651
  :type instance_id: str
4652
+ :param region: The region which should be addressed (required)
4653
+ :type region: str
4347
4654
  :param _request_timeout: timeout setting for this request. If one
4348
4655
  number provided, it will be total request
4349
4656
  timeout. It can also be a pair (tuple) of
@@ -4369,6 +4676,7 @@ class DefaultApi:
4369
4676
  _param = self._list_restore_jobs_serialize(
4370
4677
  project_id=project_id,
4371
4678
  instance_id=instance_id,
4679
+ region=region,
4372
4680
  _request_auth=_request_auth,
4373
4681
  _content_type=_content_type,
4374
4682
  _headers=_headers,
@@ -4378,6 +4686,7 @@ class DefaultApi:
4378
4686
  _response_types_map: Dict[str, Optional[str]] = {
4379
4687
  "200": "ListRestoreJobsResponse",
4380
4688
  "400": "InstanceError",
4689
+ "401": "InstanceError",
4381
4690
  "405": None,
4382
4691
  "500": None,
4383
4692
  }
@@ -4388,6 +4697,7 @@ class DefaultApi:
4388
4697
  self,
4389
4698
  project_id,
4390
4699
  instance_id,
4700
+ region,
4391
4701
  _request_auth,
4392
4702
  _content_type,
4393
4703
  _headers,
@@ -4410,6 +4720,8 @@ class DefaultApi:
4410
4720
  _path_params["projectId"] = project_id
4411
4721
  if instance_id is not None:
4412
4722
  _path_params["instanceId"] = instance_id
4723
+ if region is not None:
4724
+ _path_params["region"] = region
4413
4725
  # process the query parameters
4414
4726
  # process the header parameters
4415
4727
  # process the form parameters
@@ -4424,7 +4736,7 @@ class DefaultApi:
4424
4736
 
4425
4737
  return self.api_client.param_serialize(
4426
4738
  method="GET",
4427
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/restores",
4739
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
4428
4740
  path_params=_path_params,
4429
4741
  query_params=_query_params,
4430
4742
  header_params=_header_params,
@@ -4442,6 +4754,7 @@ class DefaultApi:
4442
4754
  self,
4443
4755
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4444
4756
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4757
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4445
4758
  _request_timeout: Union[
4446
4759
  None,
4447
4760
  Annotated[StrictFloat, Field(gt=0)],
@@ -4460,6 +4773,8 @@ class DefaultApi:
4460
4773
  :type project_id: str
4461
4774
  :param instance_id: Instance ID (required)
4462
4775
  :type instance_id: str
4776
+ :param region: The region which should be addressed (required)
4777
+ :type region: str
4463
4778
  :param _request_timeout: timeout setting for this request. If one
4464
4779
  number provided, it will be total request
4465
4780
  timeout. It can also be a pair (tuple) of
@@ -4485,6 +4800,7 @@ class DefaultApi:
4485
4800
  _param = self._list_roles_serialize(
4486
4801
  project_id=project_id,
4487
4802
  instance_id=instance_id,
4803
+ region=region,
4488
4804
  _request_auth=_request_auth,
4489
4805
  _content_type=_content_type,
4490
4806
  _headers=_headers,
@@ -4494,6 +4810,7 @@ class DefaultApi:
4494
4810
  _response_types_map: Dict[str, Optional[str]] = {
4495
4811
  "200": "ListRolesResponse",
4496
4812
  "400": "InstanceError",
4813
+ "401": "InstanceError",
4497
4814
  "405": None,
4498
4815
  "500": None,
4499
4816
  }
@@ -4509,6 +4826,7 @@ class DefaultApi:
4509
4826
  self,
4510
4827
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4511
4828
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4829
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4512
4830
  _request_timeout: Union[
4513
4831
  None,
4514
4832
  Annotated[StrictFloat, Field(gt=0)],
@@ -4527,6 +4845,8 @@ class DefaultApi:
4527
4845
  :type project_id: str
4528
4846
  :param instance_id: Instance ID (required)
4529
4847
  :type instance_id: str
4848
+ :param region: The region which should be addressed (required)
4849
+ :type region: str
4530
4850
  :param _request_timeout: timeout setting for this request. If one
4531
4851
  number provided, it will be total request
4532
4852
  timeout. It can also be a pair (tuple) of
@@ -4552,6 +4872,7 @@ class DefaultApi:
4552
4872
  _param = self._list_roles_serialize(
4553
4873
  project_id=project_id,
4554
4874
  instance_id=instance_id,
4875
+ region=region,
4555
4876
  _request_auth=_request_auth,
4556
4877
  _content_type=_content_type,
4557
4878
  _headers=_headers,
@@ -4561,6 +4882,7 @@ class DefaultApi:
4561
4882
  _response_types_map: Dict[str, Optional[str]] = {
4562
4883
  "200": "ListRolesResponse",
4563
4884
  "400": "InstanceError",
4885
+ "401": "InstanceError",
4564
4886
  "405": None,
4565
4887
  "500": None,
4566
4888
  }
@@ -4576,6 +4898,7 @@ class DefaultApi:
4576
4898
  self,
4577
4899
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4578
4900
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4901
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4579
4902
  _request_timeout: Union[
4580
4903
  None,
4581
4904
  Annotated[StrictFloat, Field(gt=0)],
@@ -4594,6 +4917,8 @@ class DefaultApi:
4594
4917
  :type project_id: str
4595
4918
  :param instance_id: Instance ID (required)
4596
4919
  :type instance_id: str
4920
+ :param region: The region which should be addressed (required)
4921
+ :type region: str
4597
4922
  :param _request_timeout: timeout setting for this request. If one
4598
4923
  number provided, it will be total request
4599
4924
  timeout. It can also be a pair (tuple) of
@@ -4619,6 +4944,7 @@ class DefaultApi:
4619
4944
  _param = self._list_roles_serialize(
4620
4945
  project_id=project_id,
4621
4946
  instance_id=instance_id,
4947
+ region=region,
4622
4948
  _request_auth=_request_auth,
4623
4949
  _content_type=_content_type,
4624
4950
  _headers=_headers,
@@ -4628,6 +4954,7 @@ class DefaultApi:
4628
4954
  _response_types_map: Dict[str, Optional[str]] = {
4629
4955
  "200": "ListRolesResponse",
4630
4956
  "400": "InstanceError",
4957
+ "401": "InstanceError",
4631
4958
  "405": None,
4632
4959
  "500": None,
4633
4960
  }
@@ -4638,6 +4965,7 @@ class DefaultApi:
4638
4965
  self,
4639
4966
  project_id,
4640
4967
  instance_id,
4968
+ region,
4641
4969
  _request_auth,
4642
4970
  _content_type,
4643
4971
  _headers,
@@ -4660,6 +4988,8 @@ class DefaultApi:
4660
4988
  _path_params["projectId"] = project_id
4661
4989
  if instance_id is not None:
4662
4990
  _path_params["instanceId"] = instance_id
4991
+ if region is not None:
4992
+ _path_params["region"] = region
4663
4993
  # process the query parameters
4664
4994
  # process the header parameters
4665
4995
  # process the form parameters
@@ -4674,7 +5004,7 @@ class DefaultApi:
4674
5004
 
4675
5005
  return self.api_client.param_serialize(
4676
5006
  method="GET",
4677
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/roles",
5007
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",
4678
5008
  path_params=_path_params,
4679
5009
  query_params=_query_params,
4680
5010
  header_params=_header_params,
@@ -4692,6 +5022,7 @@ class DefaultApi:
4692
5022
  self,
4693
5023
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4694
5024
  flavor_id: Annotated[StrictStr, Field(description="Flavor ID")],
5025
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4695
5026
  _request_timeout: Union[
4696
5027
  None,
4697
5028
  Annotated[StrictFloat, Field(gt=0)],
@@ -4710,6 +5041,8 @@ class DefaultApi:
4710
5041
  :type project_id: str
4711
5042
  :param flavor_id: Flavor ID (required)
4712
5043
  :type flavor_id: str
5044
+ :param region: The region which should be addressed (required)
5045
+ :type region: str
4713
5046
  :param _request_timeout: timeout setting for this request. If one
4714
5047
  number provided, it will be total request
4715
5048
  timeout. It can also be a pair (tuple) of
@@ -4735,6 +5068,7 @@ class DefaultApi:
4735
5068
  _param = self._list_storages_serialize(
4736
5069
  project_id=project_id,
4737
5070
  flavor_id=flavor_id,
5071
+ region=region,
4738
5072
  _request_auth=_request_auth,
4739
5073
  _content_type=_content_type,
4740
5074
  _headers=_headers,
@@ -4744,6 +5078,7 @@ class DefaultApi:
4744
5078
  _response_types_map: Dict[str, Optional[str]] = {
4745
5079
  "200": "ListStoragesResponse",
4746
5080
  "400": "InstanceError",
5081
+ "401": "InstanceError",
4747
5082
  "405": None,
4748
5083
  "500": None,
4749
5084
  }
@@ -4759,6 +5094,7 @@ class DefaultApi:
4759
5094
  self,
4760
5095
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4761
5096
  flavor_id: Annotated[StrictStr, Field(description="Flavor ID")],
5097
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4762
5098
  _request_timeout: Union[
4763
5099
  None,
4764
5100
  Annotated[StrictFloat, Field(gt=0)],
@@ -4777,6 +5113,8 @@ class DefaultApi:
4777
5113
  :type project_id: str
4778
5114
  :param flavor_id: Flavor ID (required)
4779
5115
  :type flavor_id: str
5116
+ :param region: The region which should be addressed (required)
5117
+ :type region: str
4780
5118
  :param _request_timeout: timeout setting for this request. If one
4781
5119
  number provided, it will be total request
4782
5120
  timeout. It can also be a pair (tuple) of
@@ -4802,6 +5140,7 @@ class DefaultApi:
4802
5140
  _param = self._list_storages_serialize(
4803
5141
  project_id=project_id,
4804
5142
  flavor_id=flavor_id,
5143
+ region=region,
4805
5144
  _request_auth=_request_auth,
4806
5145
  _content_type=_content_type,
4807
5146
  _headers=_headers,
@@ -4811,6 +5150,7 @@ class DefaultApi:
4811
5150
  _response_types_map: Dict[str, Optional[str]] = {
4812
5151
  "200": "ListStoragesResponse",
4813
5152
  "400": "InstanceError",
5153
+ "401": "InstanceError",
4814
5154
  "405": None,
4815
5155
  "500": None,
4816
5156
  }
@@ -4826,6 +5166,7 @@ class DefaultApi:
4826
5166
  self,
4827
5167
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4828
5168
  flavor_id: Annotated[StrictStr, Field(description="Flavor ID")],
5169
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4829
5170
  _request_timeout: Union[
4830
5171
  None,
4831
5172
  Annotated[StrictFloat, Field(gt=0)],
@@ -4844,6 +5185,8 @@ class DefaultApi:
4844
5185
  :type project_id: str
4845
5186
  :param flavor_id: Flavor ID (required)
4846
5187
  :type flavor_id: str
5188
+ :param region: The region which should be addressed (required)
5189
+ :type region: str
4847
5190
  :param _request_timeout: timeout setting for this request. If one
4848
5191
  number provided, it will be total request
4849
5192
  timeout. It can also be a pair (tuple) of
@@ -4869,6 +5212,7 @@ class DefaultApi:
4869
5212
  _param = self._list_storages_serialize(
4870
5213
  project_id=project_id,
4871
5214
  flavor_id=flavor_id,
5215
+ region=region,
4872
5216
  _request_auth=_request_auth,
4873
5217
  _content_type=_content_type,
4874
5218
  _headers=_headers,
@@ -4878,6 +5222,7 @@ class DefaultApi:
4878
5222
  _response_types_map: Dict[str, Optional[str]] = {
4879
5223
  "200": "ListStoragesResponse",
4880
5224
  "400": "InstanceError",
5225
+ "401": "InstanceError",
4881
5226
  "405": None,
4882
5227
  "500": None,
4883
5228
  }
@@ -4888,6 +5233,7 @@ class DefaultApi:
4888
5233
  self,
4889
5234
  project_id,
4890
5235
  flavor_id,
5236
+ region,
4891
5237
  _request_auth,
4892
5238
  _content_type,
4893
5239
  _headers,
@@ -4910,6 +5256,8 @@ class DefaultApi:
4910
5256
  _path_params["projectId"] = project_id
4911
5257
  if flavor_id is not None:
4912
5258
  _path_params["flavorId"] = flavor_id
5259
+ if region is not None:
5260
+ _path_params["region"] = region
4913
5261
  # process the query parameters
4914
5262
  # process the header parameters
4915
5263
  # process the form parameters
@@ -4924,7 +5272,7 @@ class DefaultApi:
4924
5272
 
4925
5273
  return self.api_client.param_serialize(
4926
5274
  method="GET",
4927
- resource_path="/v1/projects/{projectId}/storages/{flavorId}",
5275
+ resource_path="/v2/projects/{projectId}/regions/{region}/storages/{flavorId}",
4928
5276
  path_params=_path_params,
4929
5277
  query_params=_query_params,
4930
5278
  header_params=_header_params,
@@ -4942,6 +5290,7 @@ class DefaultApi:
4942
5290
  self,
4943
5291
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4944
5292
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5293
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4945
5294
  _request_timeout: Union[
4946
5295
  None,
4947
5296
  Annotated[StrictFloat, Field(gt=0)],
@@ -4960,6 +5309,8 @@ class DefaultApi:
4960
5309
  :type project_id: str
4961
5310
  :param instance_id: Instance ID (required)
4962
5311
  :type instance_id: str
5312
+ :param region: The region which should be addressed (required)
5313
+ :type region: str
4963
5314
  :param _request_timeout: timeout setting for this request. If one
4964
5315
  number provided, it will be total request
4965
5316
  timeout. It can also be a pair (tuple) of
@@ -4985,6 +5336,7 @@ class DefaultApi:
4985
5336
  _param = self._list_users_serialize(
4986
5337
  project_id=project_id,
4987
5338
  instance_id=instance_id,
5339
+ region=region,
4988
5340
  _request_auth=_request_auth,
4989
5341
  _content_type=_content_type,
4990
5342
  _headers=_headers,
@@ -4994,6 +5346,7 @@ class DefaultApi:
4994
5346
  _response_types_map: Dict[str, Optional[str]] = {
4995
5347
  "200": "ListUsersResponse",
4996
5348
  "400": "InstanceError",
5349
+ "401": "InstanceError",
4997
5350
  "405": None,
4998
5351
  "500": None,
4999
5352
  }
@@ -5009,6 +5362,7 @@ class DefaultApi:
5009
5362
  self,
5010
5363
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5011
5364
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5365
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5012
5366
  _request_timeout: Union[
5013
5367
  None,
5014
5368
  Annotated[StrictFloat, Field(gt=0)],
@@ -5027,6 +5381,8 @@ class DefaultApi:
5027
5381
  :type project_id: str
5028
5382
  :param instance_id: Instance ID (required)
5029
5383
  :type instance_id: str
5384
+ :param region: The region which should be addressed (required)
5385
+ :type region: str
5030
5386
  :param _request_timeout: timeout setting for this request. If one
5031
5387
  number provided, it will be total request
5032
5388
  timeout. It can also be a pair (tuple) of
@@ -5052,6 +5408,7 @@ class DefaultApi:
5052
5408
  _param = self._list_users_serialize(
5053
5409
  project_id=project_id,
5054
5410
  instance_id=instance_id,
5411
+ region=region,
5055
5412
  _request_auth=_request_auth,
5056
5413
  _content_type=_content_type,
5057
5414
  _headers=_headers,
@@ -5061,6 +5418,7 @@ class DefaultApi:
5061
5418
  _response_types_map: Dict[str, Optional[str]] = {
5062
5419
  "200": "ListUsersResponse",
5063
5420
  "400": "InstanceError",
5421
+ "401": "InstanceError",
5064
5422
  "405": None,
5065
5423
  "500": None,
5066
5424
  }
@@ -5076,6 +5434,7 @@ class DefaultApi:
5076
5434
  self,
5077
5435
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5078
5436
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5437
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5079
5438
  _request_timeout: Union[
5080
5439
  None,
5081
5440
  Annotated[StrictFloat, Field(gt=0)],
@@ -5094,6 +5453,8 @@ class DefaultApi:
5094
5453
  :type project_id: str
5095
5454
  :param instance_id: Instance ID (required)
5096
5455
  :type instance_id: str
5456
+ :param region: The region which should be addressed (required)
5457
+ :type region: str
5097
5458
  :param _request_timeout: timeout setting for this request. If one
5098
5459
  number provided, it will be total request
5099
5460
  timeout. It can also be a pair (tuple) of
@@ -5119,6 +5480,7 @@ class DefaultApi:
5119
5480
  _param = self._list_users_serialize(
5120
5481
  project_id=project_id,
5121
5482
  instance_id=instance_id,
5483
+ region=region,
5122
5484
  _request_auth=_request_auth,
5123
5485
  _content_type=_content_type,
5124
5486
  _headers=_headers,
@@ -5128,6 +5490,7 @@ class DefaultApi:
5128
5490
  _response_types_map: Dict[str, Optional[str]] = {
5129
5491
  "200": "ListUsersResponse",
5130
5492
  "400": "InstanceError",
5493
+ "401": "InstanceError",
5131
5494
  "405": None,
5132
5495
  "500": None,
5133
5496
  }
@@ -5138,6 +5501,7 @@ class DefaultApi:
5138
5501
  self,
5139
5502
  project_id,
5140
5503
  instance_id,
5504
+ region,
5141
5505
  _request_auth,
5142
5506
  _content_type,
5143
5507
  _headers,
@@ -5160,6 +5524,8 @@ class DefaultApi:
5160
5524
  _path_params["projectId"] = project_id
5161
5525
  if instance_id is not None:
5162
5526
  _path_params["instanceId"] = instance_id
5527
+ if region is not None:
5528
+ _path_params["region"] = region
5163
5529
  # process the query parameters
5164
5530
  # process the header parameters
5165
5531
  # process the form parameters
@@ -5174,7 +5540,7 @@ class DefaultApi:
5174
5540
 
5175
5541
  return self.api_client.param_serialize(
5176
5542
  method="GET",
5177
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users",
5543
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
5178
5544
  path_params=_path_params,
5179
5545
  query_params=_query_params,
5180
5546
  header_params=_header_params,
@@ -5191,6 +5557,7 @@ class DefaultApi:
5191
5557
  def list_versions(
5192
5558
  self,
5193
5559
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5560
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5194
5561
  instance_id: Annotated[Optional[StrictStr], Field(description="Instance ID")] = None,
5195
5562
  _request_timeout: Union[
5196
5563
  None,
@@ -5208,6 +5575,8 @@ class DefaultApi:
5208
5575
 
5209
5576
  :param project_id: Project ID (required)
5210
5577
  :type project_id: str
5578
+ :param region: The region which should be addressed (required)
5579
+ :type region: str
5211
5580
  :param instance_id: Instance ID
5212
5581
  :type instance_id: str
5213
5582
  :param _request_timeout: timeout setting for this request. If one
@@ -5234,6 +5603,7 @@ class DefaultApi:
5234
5603
 
5235
5604
  _param = self._list_versions_serialize(
5236
5605
  project_id=project_id,
5606
+ region=region,
5237
5607
  instance_id=instance_id,
5238
5608
  _request_auth=_request_auth,
5239
5609
  _content_type=_content_type,
@@ -5244,6 +5614,7 @@ class DefaultApi:
5244
5614
  _response_types_map: Dict[str, Optional[str]] = {
5245
5615
  "200": "ListVersionsResponse",
5246
5616
  "400": "InstanceError",
5617
+ "401": "InstanceError",
5247
5618
  "405": None,
5248
5619
  "500": None,
5249
5620
  }
@@ -5258,6 +5629,7 @@ class DefaultApi:
5258
5629
  def list_versions_with_http_info(
5259
5630
  self,
5260
5631
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5632
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5261
5633
  instance_id: Annotated[Optional[StrictStr], Field(description="Instance ID")] = None,
5262
5634
  _request_timeout: Union[
5263
5635
  None,
@@ -5275,6 +5647,8 @@ class DefaultApi:
5275
5647
 
5276
5648
  :param project_id: Project ID (required)
5277
5649
  :type project_id: str
5650
+ :param region: The region which should be addressed (required)
5651
+ :type region: str
5278
5652
  :param instance_id: Instance ID
5279
5653
  :type instance_id: str
5280
5654
  :param _request_timeout: timeout setting for this request. If one
@@ -5301,6 +5675,7 @@ class DefaultApi:
5301
5675
 
5302
5676
  _param = self._list_versions_serialize(
5303
5677
  project_id=project_id,
5678
+ region=region,
5304
5679
  instance_id=instance_id,
5305
5680
  _request_auth=_request_auth,
5306
5681
  _content_type=_content_type,
@@ -5311,6 +5686,7 @@ class DefaultApi:
5311
5686
  _response_types_map: Dict[str, Optional[str]] = {
5312
5687
  "200": "ListVersionsResponse",
5313
5688
  "400": "InstanceError",
5689
+ "401": "InstanceError",
5314
5690
  "405": None,
5315
5691
  "500": None,
5316
5692
  }
@@ -5325,6 +5701,7 @@ class DefaultApi:
5325
5701
  def list_versions_without_preload_content(
5326
5702
  self,
5327
5703
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5704
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5328
5705
  instance_id: Annotated[Optional[StrictStr], Field(description="Instance ID")] = None,
5329
5706
  _request_timeout: Union[
5330
5707
  None,
@@ -5342,6 +5719,8 @@ class DefaultApi:
5342
5719
 
5343
5720
  :param project_id: Project ID (required)
5344
5721
  :type project_id: str
5722
+ :param region: The region which should be addressed (required)
5723
+ :type region: str
5345
5724
  :param instance_id: Instance ID
5346
5725
  :type instance_id: str
5347
5726
  :param _request_timeout: timeout setting for this request. If one
@@ -5368,6 +5747,7 @@ class DefaultApi:
5368
5747
 
5369
5748
  _param = self._list_versions_serialize(
5370
5749
  project_id=project_id,
5750
+ region=region,
5371
5751
  instance_id=instance_id,
5372
5752
  _request_auth=_request_auth,
5373
5753
  _content_type=_content_type,
@@ -5378,6 +5758,7 @@ class DefaultApi:
5378
5758
  _response_types_map: Dict[str, Optional[str]] = {
5379
5759
  "200": "ListVersionsResponse",
5380
5760
  "400": "InstanceError",
5761
+ "401": "InstanceError",
5381
5762
  "405": None,
5382
5763
  "500": None,
5383
5764
  }
@@ -5387,6 +5768,7 @@ class DefaultApi:
5387
5768
  def _list_versions_serialize(
5388
5769
  self,
5389
5770
  project_id,
5771
+ region,
5390
5772
  instance_id,
5391
5773
  _request_auth,
5392
5774
  _content_type,
@@ -5408,6 +5790,8 @@ class DefaultApi:
5408
5790
  # process the path parameters
5409
5791
  if project_id is not None:
5410
5792
  _path_params["projectId"] = project_id
5793
+ if region is not None:
5794
+ _path_params["region"] = region
5411
5795
  # process the query parameters
5412
5796
  if instance_id is not None:
5413
5797
 
@@ -5426,7 +5810,7 @@ class DefaultApi:
5426
5810
 
5427
5811
  return self.api_client.param_serialize(
5428
5812
  method="GET",
5429
- resource_path="/v1/projects/{projectId}/versions",
5813
+ resource_path="/v2/projects/{projectId}/regions/{region}/versions",
5430
5814
  path_params=_path_params,
5431
5815
  query_params=_query_params,
5432
5816
  header_params=_header_params,
@@ -5444,6 +5828,7 @@ class DefaultApi:
5444
5828
  self,
5445
5829
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5446
5830
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5831
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5447
5832
  partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="Body")],
5448
5833
  _request_timeout: Union[
5449
5834
  None,
@@ -5463,6 +5848,8 @@ class DefaultApi:
5463
5848
  :type project_id: str
5464
5849
  :param instance_id: Instance ID (required)
5465
5850
  :type instance_id: str
5851
+ :param region: The region which should be addressed (required)
5852
+ :type region: str
5466
5853
  :param partial_update_instance_payload: Body (required)
5467
5854
  :type partial_update_instance_payload: PartialUpdateInstancePayload
5468
5855
  :param _request_timeout: timeout setting for this request. If one
@@ -5490,6 +5877,7 @@ class DefaultApi:
5490
5877
  _param = self._partial_update_instance_serialize(
5491
5878
  project_id=project_id,
5492
5879
  instance_id=instance_id,
5880
+ region=region,
5493
5881
  partial_update_instance_payload=partial_update_instance_payload,
5494
5882
  _request_auth=_request_auth,
5495
5883
  _content_type=_content_type,
@@ -5500,6 +5888,7 @@ class DefaultApi:
5500
5888
  _response_types_map: Dict[str, Optional[str]] = {
5501
5889
  "200": "UpdateInstanceResponse",
5502
5890
  "400": "InstanceError",
5891
+ "401": "InstanceError",
5503
5892
  "405": None,
5504
5893
  "500": None,
5505
5894
  }
@@ -5515,6 +5904,7 @@ class DefaultApi:
5515
5904
  self,
5516
5905
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5517
5906
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5907
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5518
5908
  partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="Body")],
5519
5909
  _request_timeout: Union[
5520
5910
  None,
@@ -5534,6 +5924,8 @@ class DefaultApi:
5534
5924
  :type project_id: str
5535
5925
  :param instance_id: Instance ID (required)
5536
5926
  :type instance_id: str
5927
+ :param region: The region which should be addressed (required)
5928
+ :type region: str
5537
5929
  :param partial_update_instance_payload: Body (required)
5538
5930
  :type partial_update_instance_payload: PartialUpdateInstancePayload
5539
5931
  :param _request_timeout: timeout setting for this request. If one
@@ -5561,6 +5953,7 @@ class DefaultApi:
5561
5953
  _param = self._partial_update_instance_serialize(
5562
5954
  project_id=project_id,
5563
5955
  instance_id=instance_id,
5956
+ region=region,
5564
5957
  partial_update_instance_payload=partial_update_instance_payload,
5565
5958
  _request_auth=_request_auth,
5566
5959
  _content_type=_content_type,
@@ -5571,6 +5964,7 @@ class DefaultApi:
5571
5964
  _response_types_map: Dict[str, Optional[str]] = {
5572
5965
  "200": "UpdateInstanceResponse",
5573
5966
  "400": "InstanceError",
5967
+ "401": "InstanceError",
5574
5968
  "405": None,
5575
5969
  "500": None,
5576
5970
  }
@@ -5586,6 +5980,7 @@ class DefaultApi:
5586
5980
  self,
5587
5981
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5588
5982
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5983
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5589
5984
  partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="Body")],
5590
5985
  _request_timeout: Union[
5591
5986
  None,
@@ -5605,6 +6000,8 @@ class DefaultApi:
5605
6000
  :type project_id: str
5606
6001
  :param instance_id: Instance ID (required)
5607
6002
  :type instance_id: str
6003
+ :param region: The region which should be addressed (required)
6004
+ :type region: str
5608
6005
  :param partial_update_instance_payload: Body (required)
5609
6006
  :type partial_update_instance_payload: PartialUpdateInstancePayload
5610
6007
  :param _request_timeout: timeout setting for this request. If one
@@ -5632,6 +6029,7 @@ class DefaultApi:
5632
6029
  _param = self._partial_update_instance_serialize(
5633
6030
  project_id=project_id,
5634
6031
  instance_id=instance_id,
6032
+ region=region,
5635
6033
  partial_update_instance_payload=partial_update_instance_payload,
5636
6034
  _request_auth=_request_auth,
5637
6035
  _content_type=_content_type,
@@ -5642,6 +6040,7 @@ class DefaultApi:
5642
6040
  _response_types_map: Dict[str, Optional[str]] = {
5643
6041
  "200": "UpdateInstanceResponse",
5644
6042
  "400": "InstanceError",
6043
+ "401": "InstanceError",
5645
6044
  "405": None,
5646
6045
  "500": None,
5647
6046
  }
@@ -5652,6 +6051,7 @@ class DefaultApi:
5652
6051
  self,
5653
6052
  project_id,
5654
6053
  instance_id,
6054
+ region,
5655
6055
  partial_update_instance_payload,
5656
6056
  _request_auth,
5657
6057
  _content_type,
@@ -5675,6 +6075,8 @@ class DefaultApi:
5675
6075
  _path_params["projectId"] = project_id
5676
6076
  if instance_id is not None:
5677
6077
  _path_params["instanceId"] = instance_id
6078
+ if region is not None:
6079
+ _path_params["region"] = region
5678
6080
  # process the query parameters
5679
6081
  # process the header parameters
5680
6082
  # process the form parameters
@@ -5699,7 +6101,7 @@ class DefaultApi:
5699
6101
 
5700
6102
  return self.api_client.param_serialize(
5701
6103
  method="PATCH",
5702
- resource_path="/v1/projects/{projectId}/instances/{instanceId}",
6104
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
5703
6105
  path_params=_path_params,
5704
6106
  query_params=_query_params,
5705
6107
  header_params=_header_params,
@@ -5718,6 +6120,7 @@ class DefaultApi:
5718
6120
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5719
6121
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5720
6122
  user_id: Annotated[StrictStr, Field(description="user ID")],
6123
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5721
6124
  _request_timeout: Union[
5722
6125
  None,
5723
6126
  Annotated[StrictFloat, Field(gt=0)],
@@ -5738,6 +6141,8 @@ class DefaultApi:
5738
6141
  :type instance_id: str
5739
6142
  :param user_id: user ID (required)
5740
6143
  :type user_id: str
6144
+ :param region: The region which should be addressed (required)
6145
+ :type region: str
5741
6146
  :param _request_timeout: timeout setting for this request. If one
5742
6147
  number provided, it will be total request
5743
6148
  timeout. It can also be a pair (tuple) of
@@ -5764,6 +6169,7 @@ class DefaultApi:
5764
6169
  project_id=project_id,
5765
6170
  instance_id=instance_id,
5766
6171
  user_id=user_id,
6172
+ region=region,
5767
6173
  _request_auth=_request_auth,
5768
6174
  _content_type=_content_type,
5769
6175
  _headers=_headers,
@@ -5773,6 +6179,7 @@ class DefaultApi:
5773
6179
  _response_types_map: Dict[str, Optional[str]] = {
5774
6180
  "200": "ResetUserResponse",
5775
6181
  "400": "InstanceError",
6182
+ "401": "InstanceError",
5776
6183
  "404": "InstanceError",
5777
6184
  "405": None,
5778
6185
  "500": "InstanceError",
@@ -5790,6 +6197,7 @@ class DefaultApi:
5790
6197
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5791
6198
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5792
6199
  user_id: Annotated[StrictStr, Field(description="user ID")],
6200
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5793
6201
  _request_timeout: Union[
5794
6202
  None,
5795
6203
  Annotated[StrictFloat, Field(gt=0)],
@@ -5810,6 +6218,8 @@ class DefaultApi:
5810
6218
  :type instance_id: str
5811
6219
  :param user_id: user ID (required)
5812
6220
  :type user_id: str
6221
+ :param region: The region which should be addressed (required)
6222
+ :type region: str
5813
6223
  :param _request_timeout: timeout setting for this request. If one
5814
6224
  number provided, it will be total request
5815
6225
  timeout. It can also be a pair (tuple) of
@@ -5836,6 +6246,7 @@ class DefaultApi:
5836
6246
  project_id=project_id,
5837
6247
  instance_id=instance_id,
5838
6248
  user_id=user_id,
6249
+ region=region,
5839
6250
  _request_auth=_request_auth,
5840
6251
  _content_type=_content_type,
5841
6252
  _headers=_headers,
@@ -5845,6 +6256,7 @@ class DefaultApi:
5845
6256
  _response_types_map: Dict[str, Optional[str]] = {
5846
6257
  "200": "ResetUserResponse",
5847
6258
  "400": "InstanceError",
6259
+ "401": "InstanceError",
5848
6260
  "404": "InstanceError",
5849
6261
  "405": None,
5850
6262
  "500": "InstanceError",
@@ -5862,6 +6274,7 @@ class DefaultApi:
5862
6274
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5863
6275
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5864
6276
  user_id: Annotated[StrictStr, Field(description="user ID")],
6277
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5865
6278
  _request_timeout: Union[
5866
6279
  None,
5867
6280
  Annotated[StrictFloat, Field(gt=0)],
@@ -5882,6 +6295,8 @@ class DefaultApi:
5882
6295
  :type instance_id: str
5883
6296
  :param user_id: user ID (required)
5884
6297
  :type user_id: str
6298
+ :param region: The region which should be addressed (required)
6299
+ :type region: str
5885
6300
  :param _request_timeout: timeout setting for this request. If one
5886
6301
  number provided, it will be total request
5887
6302
  timeout. It can also be a pair (tuple) of
@@ -5908,6 +6323,7 @@ class DefaultApi:
5908
6323
  project_id=project_id,
5909
6324
  instance_id=instance_id,
5910
6325
  user_id=user_id,
6326
+ region=region,
5911
6327
  _request_auth=_request_auth,
5912
6328
  _content_type=_content_type,
5913
6329
  _headers=_headers,
@@ -5917,6 +6333,7 @@ class DefaultApi:
5917
6333
  _response_types_map: Dict[str, Optional[str]] = {
5918
6334
  "200": "ResetUserResponse",
5919
6335
  "400": "InstanceError",
6336
+ "401": "InstanceError",
5920
6337
  "404": "InstanceError",
5921
6338
  "405": None,
5922
6339
  "500": "InstanceError",
@@ -5929,6 +6346,7 @@ class DefaultApi:
5929
6346
  project_id,
5930
6347
  instance_id,
5931
6348
  user_id,
6349
+ region,
5932
6350
  _request_auth,
5933
6351
  _content_type,
5934
6352
  _headers,
@@ -5953,6 +6371,8 @@ class DefaultApi:
5953
6371
  _path_params["instanceId"] = instance_id
5954
6372
  if user_id is not None:
5955
6373
  _path_params["userId"] = user_id
6374
+ if region is not None:
6375
+ _path_params["region"] = region
5956
6376
  # process the query parameters
5957
6377
  # process the header parameters
5958
6378
  # process the form parameters
@@ -5967,7 +6387,7 @@ class DefaultApi:
5967
6387
 
5968
6388
  return self.api_client.param_serialize(
5969
6389
  method="POST",
5970
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}/reset",
6390
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
5971
6391
  path_params=_path_params,
5972
6392
  query_params=_query_params,
5973
6393
  header_params=_header_params,
@@ -5984,6 +6404,7 @@ class DefaultApi:
5984
6404
  def terminate_project(
5985
6405
  self,
5986
6406
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6407
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5987
6408
  _request_timeout: Union[
5988
6409
  None,
5989
6410
  Annotated[StrictFloat, Field(gt=0)],
@@ -6000,6 +6421,8 @@ class DefaultApi:
6000
6421
 
6001
6422
  :param project_id: Project ID (required)
6002
6423
  :type project_id: str
6424
+ :param region: The region which should be addressed (required)
6425
+ :type region: str
6003
6426
  :param _request_timeout: timeout setting for this request. If one
6004
6427
  number provided, it will be total request
6005
6428
  timeout. It can also be a pair (tuple) of
@@ -6024,6 +6447,7 @@ class DefaultApi:
6024
6447
 
6025
6448
  _param = self._terminate_project_serialize(
6026
6449
  project_id=project_id,
6450
+ region=region,
6027
6451
  _request_auth=_request_auth,
6028
6452
  _content_type=_content_type,
6029
6453
  _headers=_headers,
@@ -6032,6 +6456,8 @@ class DefaultApi:
6032
6456
 
6033
6457
  _response_types_map: Dict[str, Optional[str]] = {
6034
6458
  "202": None,
6459
+ "400": "InstanceError",
6460
+ "401": "InstanceError",
6035
6461
  "405": None,
6036
6462
  "500": "InstanceError",
6037
6463
  }
@@ -6046,6 +6472,7 @@ class DefaultApi:
6046
6472
  def terminate_project_with_http_info(
6047
6473
  self,
6048
6474
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6475
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6049
6476
  _request_timeout: Union[
6050
6477
  None,
6051
6478
  Annotated[StrictFloat, Field(gt=0)],
@@ -6062,6 +6489,8 @@ class DefaultApi:
6062
6489
 
6063
6490
  :param project_id: Project ID (required)
6064
6491
  :type project_id: str
6492
+ :param region: The region which should be addressed (required)
6493
+ :type region: str
6065
6494
  :param _request_timeout: timeout setting for this request. If one
6066
6495
  number provided, it will be total request
6067
6496
  timeout. It can also be a pair (tuple) of
@@ -6086,6 +6515,7 @@ class DefaultApi:
6086
6515
 
6087
6516
  _param = self._terminate_project_serialize(
6088
6517
  project_id=project_id,
6518
+ region=region,
6089
6519
  _request_auth=_request_auth,
6090
6520
  _content_type=_content_type,
6091
6521
  _headers=_headers,
@@ -6094,6 +6524,8 @@ class DefaultApi:
6094
6524
 
6095
6525
  _response_types_map: Dict[str, Optional[str]] = {
6096
6526
  "202": None,
6527
+ "400": "InstanceError",
6528
+ "401": "InstanceError",
6097
6529
  "405": None,
6098
6530
  "500": "InstanceError",
6099
6531
  }
@@ -6108,6 +6540,7 @@ class DefaultApi:
6108
6540
  def terminate_project_without_preload_content(
6109
6541
  self,
6110
6542
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6543
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6111
6544
  _request_timeout: Union[
6112
6545
  None,
6113
6546
  Annotated[StrictFloat, Field(gt=0)],
@@ -6124,6 +6557,8 @@ class DefaultApi:
6124
6557
 
6125
6558
  :param project_id: Project ID (required)
6126
6559
  :type project_id: str
6560
+ :param region: The region which should be addressed (required)
6561
+ :type region: str
6127
6562
  :param _request_timeout: timeout setting for this request. If one
6128
6563
  number provided, it will be total request
6129
6564
  timeout. It can also be a pair (tuple) of
@@ -6148,6 +6583,7 @@ class DefaultApi:
6148
6583
 
6149
6584
  _param = self._terminate_project_serialize(
6150
6585
  project_id=project_id,
6586
+ region=region,
6151
6587
  _request_auth=_request_auth,
6152
6588
  _content_type=_content_type,
6153
6589
  _headers=_headers,
@@ -6156,6 +6592,8 @@ class DefaultApi:
6156
6592
 
6157
6593
  _response_types_map: Dict[str, Optional[str]] = {
6158
6594
  "202": None,
6595
+ "400": "InstanceError",
6596
+ "401": "InstanceError",
6159
6597
  "405": None,
6160
6598
  "500": "InstanceError",
6161
6599
  }
@@ -6165,6 +6603,7 @@ class DefaultApi:
6165
6603
  def _terminate_project_serialize(
6166
6604
  self,
6167
6605
  project_id,
6606
+ region,
6168
6607
  _request_auth,
6169
6608
  _content_type,
6170
6609
  _headers,
@@ -6185,6 +6624,8 @@ class DefaultApi:
6185
6624
  # process the path parameters
6186
6625
  if project_id is not None:
6187
6626
  _path_params["projectId"] = project_id
6627
+ if region is not None:
6628
+ _path_params["region"] = region
6188
6629
  # process the query parameters
6189
6630
  # process the header parameters
6190
6631
  # process the form parameters
@@ -6199,7 +6640,7 @@ class DefaultApi:
6199
6640
 
6200
6641
  return self.api_client.param_serialize(
6201
6642
  method="DELETE",
6202
- resource_path="/v1/projects/{projectId}",
6643
+ resource_path="/v2/projects/{projectId}/regions/{region}",
6203
6644
  path_params=_path_params,
6204
6645
  query_params=_query_params,
6205
6646
  header_params=_header_params,
@@ -6218,6 +6659,7 @@ class DefaultApi:
6218
6659
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6219
6660
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6220
6661
  database_name: Annotated[StrictStr, Field(description="Database Name")],
6662
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6221
6663
  _request_timeout: Union[
6222
6664
  None,
6223
6665
  Annotated[StrictFloat, Field(gt=0)],
@@ -6238,6 +6680,8 @@ class DefaultApi:
6238
6680
  :type instance_id: str
6239
6681
  :param database_name: Database Name (required)
6240
6682
  :type database_name: str
6683
+ :param region: The region which should be addressed (required)
6684
+ :type region: str
6241
6685
  :param _request_timeout: timeout setting for this request. If one
6242
6686
  number provided, it will be total request
6243
6687
  timeout. It can also be a pair (tuple) of
@@ -6264,6 +6708,7 @@ class DefaultApi:
6264
6708
  project_id=project_id,
6265
6709
  instance_id=instance_id,
6266
6710
  database_name=database_name,
6711
+ region=region,
6267
6712
  _request_auth=_request_auth,
6268
6713
  _content_type=_content_type,
6269
6714
  _headers=_headers,
@@ -6273,6 +6718,7 @@ class DefaultApi:
6273
6718
  _response_types_map: Dict[str, Optional[str]] = {
6274
6719
  "202": None,
6275
6720
  "400": "InstanceError",
6721
+ "401": "InstanceError",
6276
6722
  "404": "InstanceError",
6277
6723
  "405": None,
6278
6724
  "500": "InstanceError",
@@ -6290,6 +6736,7 @@ class DefaultApi:
6290
6736
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6291
6737
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6292
6738
  database_name: Annotated[StrictStr, Field(description="Database Name")],
6739
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6293
6740
  _request_timeout: Union[
6294
6741
  None,
6295
6742
  Annotated[StrictFloat, Field(gt=0)],
@@ -6310,6 +6757,8 @@ class DefaultApi:
6310
6757
  :type instance_id: str
6311
6758
  :param database_name: Database Name (required)
6312
6759
  :type database_name: str
6760
+ :param region: The region which should be addressed (required)
6761
+ :type region: str
6313
6762
  :param _request_timeout: timeout setting for this request. If one
6314
6763
  number provided, it will be total request
6315
6764
  timeout. It can also be a pair (tuple) of
@@ -6336,6 +6785,7 @@ class DefaultApi:
6336
6785
  project_id=project_id,
6337
6786
  instance_id=instance_id,
6338
6787
  database_name=database_name,
6788
+ region=region,
6339
6789
  _request_auth=_request_auth,
6340
6790
  _content_type=_content_type,
6341
6791
  _headers=_headers,
@@ -6345,6 +6795,7 @@ class DefaultApi:
6345
6795
  _response_types_map: Dict[str, Optional[str]] = {
6346
6796
  "202": None,
6347
6797
  "400": "InstanceError",
6798
+ "401": "InstanceError",
6348
6799
  "404": "InstanceError",
6349
6800
  "405": None,
6350
6801
  "500": "InstanceError",
@@ -6362,6 +6813,7 @@ class DefaultApi:
6362
6813
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6363
6814
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6364
6815
  database_name: Annotated[StrictStr, Field(description="Database Name")],
6816
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6365
6817
  _request_timeout: Union[
6366
6818
  None,
6367
6819
  Annotated[StrictFloat, Field(gt=0)],
@@ -6382,6 +6834,8 @@ class DefaultApi:
6382
6834
  :type instance_id: str
6383
6835
  :param database_name: Database Name (required)
6384
6836
  :type database_name: str
6837
+ :param region: The region which should be addressed (required)
6838
+ :type region: str
6385
6839
  :param _request_timeout: timeout setting for this request. If one
6386
6840
  number provided, it will be total request
6387
6841
  timeout. It can also be a pair (tuple) of
@@ -6408,6 +6862,7 @@ class DefaultApi:
6408
6862
  project_id=project_id,
6409
6863
  instance_id=instance_id,
6410
6864
  database_name=database_name,
6865
+ region=region,
6411
6866
  _request_auth=_request_auth,
6412
6867
  _content_type=_content_type,
6413
6868
  _headers=_headers,
@@ -6417,6 +6872,7 @@ class DefaultApi:
6417
6872
  _response_types_map: Dict[str, Optional[str]] = {
6418
6873
  "202": None,
6419
6874
  "400": "InstanceError",
6875
+ "401": "InstanceError",
6420
6876
  "404": "InstanceError",
6421
6877
  "405": None,
6422
6878
  "500": "InstanceError",
@@ -6429,6 +6885,7 @@ class DefaultApi:
6429
6885
  project_id,
6430
6886
  instance_id,
6431
6887
  database_name,
6888
+ region,
6432
6889
  _request_auth,
6433
6890
  _content_type,
6434
6891
  _headers,
@@ -6453,6 +6910,8 @@ class DefaultApi:
6453
6910
  _path_params["instanceId"] = instance_id
6454
6911
  if database_name is not None:
6455
6912
  _path_params["databaseName"] = database_name
6913
+ if region is not None:
6914
+ _path_params["region"] = region
6456
6915
  # process the query parameters
6457
6916
  # process the header parameters
6458
6917
  # process the form parameters
@@ -6460,14 +6919,14 @@ class DefaultApi:
6460
6919
 
6461
6920
  # set the HTTP header `Accept`
6462
6921
  if "Accept" not in _header_params:
6463
- _header_params["Accept"] = self.api_client.select_header_accept(["*/*"])
6922
+ _header_params["Accept"] = self.api_client.select_header_accept(["*/*", "application/json"])
6464
6923
 
6465
6924
  # authentication setting
6466
6925
  _auth_settings: List[str] = []
6467
6926
 
6468
6927
  return self.api_client.param_serialize(
6469
6928
  method="POST",
6470
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups/databases/{databaseName}",
6929
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}",
6471
6930
  path_params=_path_params,
6472
6931
  query_params=_query_params,
6473
6932
  header_params=_header_params,
@@ -6486,6 +6945,7 @@ class DefaultApi:
6486
6945
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6487
6946
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6488
6947
  database_name: Annotated[StrictStr, Field(description="Database Name")],
6948
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6489
6949
  trigger_database_restore_payload: Annotated[TriggerDatabaseRestorePayload, Field(description="Body")],
6490
6950
  _request_timeout: Union[
6491
6951
  None,
@@ -6507,6 +6967,8 @@ class DefaultApi:
6507
6967
  :type instance_id: str
6508
6968
  :param database_name: Database Name (required)
6509
6969
  :type database_name: str
6970
+ :param region: The region which should be addressed (required)
6971
+ :type region: str
6510
6972
  :param trigger_database_restore_payload: Body (required)
6511
6973
  :type trigger_database_restore_payload: TriggerDatabaseRestorePayload
6512
6974
  :param _request_timeout: timeout setting for this request. If one
@@ -6535,6 +6997,7 @@ class DefaultApi:
6535
6997
  project_id=project_id,
6536
6998
  instance_id=instance_id,
6537
6999
  database_name=database_name,
7000
+ region=region,
6538
7001
  trigger_database_restore_payload=trigger_database_restore_payload,
6539
7002
  _request_auth=_request_auth,
6540
7003
  _content_type=_content_type,
@@ -6545,6 +7008,7 @@ class DefaultApi:
6545
7008
  _response_types_map: Dict[str, Optional[str]] = {
6546
7009
  "202": None,
6547
7010
  "400": "InstanceError",
7011
+ "401": "InstanceError",
6548
7012
  "404": "InstanceError",
6549
7013
  "405": None,
6550
7014
  "500": "InstanceError",
@@ -6562,6 +7026,7 @@ class DefaultApi:
6562
7026
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6563
7027
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6564
7028
  database_name: Annotated[StrictStr, Field(description="Database Name")],
7029
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6565
7030
  trigger_database_restore_payload: Annotated[TriggerDatabaseRestorePayload, Field(description="Body")],
6566
7031
  _request_timeout: Union[
6567
7032
  None,
@@ -6583,6 +7048,8 @@ class DefaultApi:
6583
7048
  :type instance_id: str
6584
7049
  :param database_name: Database Name (required)
6585
7050
  :type database_name: str
7051
+ :param region: The region which should be addressed (required)
7052
+ :type region: str
6586
7053
  :param trigger_database_restore_payload: Body (required)
6587
7054
  :type trigger_database_restore_payload: TriggerDatabaseRestorePayload
6588
7055
  :param _request_timeout: timeout setting for this request. If one
@@ -6611,6 +7078,7 @@ class DefaultApi:
6611
7078
  project_id=project_id,
6612
7079
  instance_id=instance_id,
6613
7080
  database_name=database_name,
7081
+ region=region,
6614
7082
  trigger_database_restore_payload=trigger_database_restore_payload,
6615
7083
  _request_auth=_request_auth,
6616
7084
  _content_type=_content_type,
@@ -6621,6 +7089,7 @@ class DefaultApi:
6621
7089
  _response_types_map: Dict[str, Optional[str]] = {
6622
7090
  "202": None,
6623
7091
  "400": "InstanceError",
7092
+ "401": "InstanceError",
6624
7093
  "404": "InstanceError",
6625
7094
  "405": None,
6626
7095
  "500": "InstanceError",
@@ -6638,6 +7107,7 @@ class DefaultApi:
6638
7107
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6639
7108
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6640
7109
  database_name: Annotated[StrictStr, Field(description="Database Name")],
7110
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6641
7111
  trigger_database_restore_payload: Annotated[TriggerDatabaseRestorePayload, Field(description="Body")],
6642
7112
  _request_timeout: Union[
6643
7113
  None,
@@ -6659,6 +7129,8 @@ class DefaultApi:
6659
7129
  :type instance_id: str
6660
7130
  :param database_name: Database Name (required)
6661
7131
  :type database_name: str
7132
+ :param region: The region which should be addressed (required)
7133
+ :type region: str
6662
7134
  :param trigger_database_restore_payload: Body (required)
6663
7135
  :type trigger_database_restore_payload: TriggerDatabaseRestorePayload
6664
7136
  :param _request_timeout: timeout setting for this request. If one
@@ -6687,6 +7159,7 @@ class DefaultApi:
6687
7159
  project_id=project_id,
6688
7160
  instance_id=instance_id,
6689
7161
  database_name=database_name,
7162
+ region=region,
6690
7163
  trigger_database_restore_payload=trigger_database_restore_payload,
6691
7164
  _request_auth=_request_auth,
6692
7165
  _content_type=_content_type,
@@ -6697,6 +7170,7 @@ class DefaultApi:
6697
7170
  _response_types_map: Dict[str, Optional[str]] = {
6698
7171
  "202": None,
6699
7172
  "400": "InstanceError",
7173
+ "401": "InstanceError",
6700
7174
  "404": "InstanceError",
6701
7175
  "405": None,
6702
7176
  "500": "InstanceError",
@@ -6709,6 +7183,7 @@ class DefaultApi:
6709
7183
  project_id,
6710
7184
  instance_id,
6711
7185
  database_name,
7186
+ region,
6712
7187
  trigger_database_restore_payload,
6713
7188
  _request_auth,
6714
7189
  _content_type,
@@ -6734,6 +7209,8 @@ class DefaultApi:
6734
7209
  _path_params["instanceId"] = instance_id
6735
7210
  if database_name is not None:
6736
7211
  _path_params["databaseName"] = database_name
7212
+ if region is not None:
7213
+ _path_params["region"] = region
6737
7214
  # process the query parameters
6738
7215
  # process the header parameters
6739
7216
  # process the form parameters
@@ -6743,7 +7220,7 @@ class DefaultApi:
6743
7220
 
6744
7221
  # set the HTTP header `Accept`
6745
7222
  if "Accept" not in _header_params:
6746
- _header_params["Accept"] = self.api_client.select_header_accept(["*/*"])
7223
+ _header_params["Accept"] = self.api_client.select_header_accept(["*/*", "application/json"])
6747
7224
 
6748
7225
  # set the HTTP header `Content-Type`
6749
7226
  if _content_type:
@@ -6758,7 +7235,7 @@ class DefaultApi:
6758
7235
 
6759
7236
  return self.api_client.param_serialize(
6760
7237
  method="POST",
6761
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups/databases/{databaseName}/restores",
7238
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}/restores",
6762
7239
  path_params=_path_params,
6763
7240
  query_params=_query_params,
6764
7241
  header_params=_header_params,
@@ -6776,6 +7253,7 @@ class DefaultApi:
6776
7253
  self,
6777
7254
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6778
7255
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
7256
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6779
7257
  update_instance_payload: Annotated[UpdateInstancePayload, Field(description="Body")],
6780
7258
  _request_timeout: Union[
6781
7259
  None,
@@ -6795,6 +7273,8 @@ class DefaultApi:
6795
7273
  :type project_id: str
6796
7274
  :param instance_id: Instance ID (required)
6797
7275
  :type instance_id: str
7276
+ :param region: The region which should be addressed (required)
7277
+ :type region: str
6798
7278
  :param update_instance_payload: Body (required)
6799
7279
  :type update_instance_payload: UpdateInstancePayload
6800
7280
  :param _request_timeout: timeout setting for this request. If one
@@ -6822,6 +7302,7 @@ class DefaultApi:
6822
7302
  _param = self._update_instance_serialize(
6823
7303
  project_id=project_id,
6824
7304
  instance_id=instance_id,
7305
+ region=region,
6825
7306
  update_instance_payload=update_instance_payload,
6826
7307
  _request_auth=_request_auth,
6827
7308
  _content_type=_content_type,
@@ -6832,6 +7313,7 @@ class DefaultApi:
6832
7313
  _response_types_map: Dict[str, Optional[str]] = {
6833
7314
  "200": "UpdateInstanceResponse",
6834
7315
  "400": "InstanceError",
7316
+ "401": "InstanceError",
6835
7317
  "405": None,
6836
7318
  "500": None,
6837
7319
  }
@@ -6847,6 +7329,7 @@ class DefaultApi:
6847
7329
  self,
6848
7330
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6849
7331
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
7332
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6850
7333
  update_instance_payload: Annotated[UpdateInstancePayload, Field(description="Body")],
6851
7334
  _request_timeout: Union[
6852
7335
  None,
@@ -6866,6 +7349,8 @@ class DefaultApi:
6866
7349
  :type project_id: str
6867
7350
  :param instance_id: Instance ID (required)
6868
7351
  :type instance_id: str
7352
+ :param region: The region which should be addressed (required)
7353
+ :type region: str
6869
7354
  :param update_instance_payload: Body (required)
6870
7355
  :type update_instance_payload: UpdateInstancePayload
6871
7356
  :param _request_timeout: timeout setting for this request. If one
@@ -6893,6 +7378,7 @@ class DefaultApi:
6893
7378
  _param = self._update_instance_serialize(
6894
7379
  project_id=project_id,
6895
7380
  instance_id=instance_id,
7381
+ region=region,
6896
7382
  update_instance_payload=update_instance_payload,
6897
7383
  _request_auth=_request_auth,
6898
7384
  _content_type=_content_type,
@@ -6903,6 +7389,7 @@ class DefaultApi:
6903
7389
  _response_types_map: Dict[str, Optional[str]] = {
6904
7390
  "200": "UpdateInstanceResponse",
6905
7391
  "400": "InstanceError",
7392
+ "401": "InstanceError",
6906
7393
  "405": None,
6907
7394
  "500": None,
6908
7395
  }
@@ -6918,6 +7405,7 @@ class DefaultApi:
6918
7405
  self,
6919
7406
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6920
7407
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
7408
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6921
7409
  update_instance_payload: Annotated[UpdateInstancePayload, Field(description="Body")],
6922
7410
  _request_timeout: Union[
6923
7411
  None,
@@ -6937,6 +7425,8 @@ class DefaultApi:
6937
7425
  :type project_id: str
6938
7426
  :param instance_id: Instance ID (required)
6939
7427
  :type instance_id: str
7428
+ :param region: The region which should be addressed (required)
7429
+ :type region: str
6940
7430
  :param update_instance_payload: Body (required)
6941
7431
  :type update_instance_payload: UpdateInstancePayload
6942
7432
  :param _request_timeout: timeout setting for this request. If one
@@ -6964,6 +7454,7 @@ class DefaultApi:
6964
7454
  _param = self._update_instance_serialize(
6965
7455
  project_id=project_id,
6966
7456
  instance_id=instance_id,
7457
+ region=region,
6967
7458
  update_instance_payload=update_instance_payload,
6968
7459
  _request_auth=_request_auth,
6969
7460
  _content_type=_content_type,
@@ -6974,6 +7465,7 @@ class DefaultApi:
6974
7465
  _response_types_map: Dict[str, Optional[str]] = {
6975
7466
  "200": "UpdateInstanceResponse",
6976
7467
  "400": "InstanceError",
7468
+ "401": "InstanceError",
6977
7469
  "405": None,
6978
7470
  "500": None,
6979
7471
  }
@@ -6984,6 +7476,7 @@ class DefaultApi:
6984
7476
  self,
6985
7477
  project_id,
6986
7478
  instance_id,
7479
+ region,
6987
7480
  update_instance_payload,
6988
7481
  _request_auth,
6989
7482
  _content_type,
@@ -7007,6 +7500,8 @@ class DefaultApi:
7007
7500
  _path_params["projectId"] = project_id
7008
7501
  if instance_id is not None:
7009
7502
  _path_params["instanceId"] = instance_id
7503
+ if region is not None:
7504
+ _path_params["region"] = region
7010
7505
  # process the query parameters
7011
7506
  # process the header parameters
7012
7507
  # process the form parameters
@@ -7031,7 +7526,7 @@ class DefaultApi:
7031
7526
 
7032
7527
  return self.api_client.param_serialize(
7033
7528
  method="PUT",
7034
- resource_path="/v1/projects/{projectId}/instances/{instanceId}",
7529
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
7035
7530
  path_params=_path_params,
7036
7531
  query_params=_query_params,
7037
7532
  header_params=_header_params,