stackit-postgresflex 0.3.0__py3-none-any.whl → 1.0.2__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 (67) hide show
  1. stackit/postgresflex/__init__.py +194 -70
  2. stackit/postgresflex/api/default_api.py +619 -142
  3. stackit/postgresflex/api_client.py +20 -7
  4. stackit/postgresflex/configuration.py +36 -11
  5. stackit/postgresflex/exceptions.py +21 -2
  6. stackit/postgresflex/models/__init__.py +2 -2
  7. stackit/postgresflex/models/acl.py +3 -3
  8. stackit/postgresflex/models/api_configuration.py +3 -3
  9. stackit/postgresflex/models/api_extension_config_load_response.py +3 -3
  10. stackit/postgresflex/models/api_extension_configure_response.py +3 -3
  11. stackit/postgresflex/models/api_extension_delete_response.py +3 -3
  12. stackit/postgresflex/models/api_extension_list.py +3 -3
  13. stackit/postgresflex/models/api_extension_load_response.py +3 -3
  14. stackit/postgresflex/models/api_install_response.py +3 -3
  15. stackit/postgresflex/models/api_installed_list_response.py +3 -3
  16. stackit/postgresflex/models/backup.py +3 -3
  17. stackit/postgresflex/models/clone_instance_payload.py +3 -3
  18. stackit/postgresflex/models/clone_instance_response.py +3 -3
  19. stackit/postgresflex/models/create_database_payload.py +3 -3
  20. stackit/postgresflex/models/create_instance_payload.py +3 -3
  21. stackit/postgresflex/models/create_instance_response.py +3 -3
  22. stackit/postgresflex/models/create_user_payload.py +3 -3
  23. stackit/postgresflex/models/create_user_response.py +3 -3
  24. stackit/postgresflex/models/error.py +3 -3
  25. stackit/postgresflex/models/extensions_configuration.py +3 -3
  26. stackit/postgresflex/models/extensions_extension_list_response.py +3 -3
  27. stackit/postgresflex/models/extensions_new_config.py +3 -3
  28. stackit/postgresflex/models/flavor.py +3 -3
  29. stackit/postgresflex/models/get_backup_response.py +3 -3
  30. stackit/postgresflex/models/get_user_response.py +3 -3
  31. stackit/postgresflex/models/instance.py +3 -3
  32. stackit/postgresflex/models/instance_create_database_response.py +3 -3
  33. stackit/postgresflex/models/instance_data_point.py +3 -3
  34. stackit/postgresflex/models/instance_database.py +3 -3
  35. stackit/postgresflex/models/instance_host.py +3 -3
  36. stackit/postgresflex/models/instance_host_metric.py +3 -3
  37. stackit/postgresflex/models/instance_list_databases_response.py +3 -3
  38. stackit/postgresflex/models/instance_list_instance.py +3 -3
  39. stackit/postgresflex/models/instance_metrics_response.py +3 -3
  40. stackit/postgresflex/models/instance_response.py +3 -3
  41. stackit/postgresflex/models/list_backups_response.py +3 -3
  42. stackit/postgresflex/models/list_flavors_response.py +3 -3
  43. stackit/postgresflex/models/list_instances_response.py +3 -3
  44. stackit/postgresflex/models/list_storages_response.py +3 -3
  45. stackit/postgresflex/models/list_users_response.py +3 -3
  46. stackit/postgresflex/models/list_users_response_item.py +3 -3
  47. stackit/postgresflex/models/list_versions_response.py +3 -3
  48. stackit/postgresflex/models/partial_update_instance_payload.py +3 -3
  49. stackit/postgresflex/models/partial_update_instance_response.py +3 -3
  50. stackit/postgresflex/models/partial_update_user_payload.py +3 -3
  51. stackit/postgresflex/models/postgres_database_parameter.py +3 -3
  52. stackit/postgresflex/models/postgres_database_parameter_response.py +3 -3
  53. stackit/postgresflex/models/reset_user_response.py +3 -3
  54. stackit/postgresflex/models/storage.py +3 -3
  55. stackit/postgresflex/models/storage_range.py +3 -3
  56. stackit/postgresflex/models/update_backup_schedule_payload.py +3 -3
  57. stackit/postgresflex/models/update_instance_payload.py +3 -3
  58. stackit/postgresflex/models/update_user_payload.py +3 -3
  59. stackit/postgresflex/models/user.py +3 -3
  60. stackit/postgresflex/models/user_response.py +3 -3
  61. stackit/postgresflex/rest.py +3 -3
  62. {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/METADATA +1 -1
  63. stackit_postgresflex-1.0.2.dist-info/RECORD +69 -0
  64. stackit_postgresflex-0.3.0.dist-info/RECORD +0 -69
  65. {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/LICENSE.md +0 -0
  66. {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/NOTICE.txt +0 -0
  67. {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/WHEEL +0 -0
@@ -5,16 +5,22 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres 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
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from typing import Any, Dict, List, Optional, Tuple, Union
16
16
 
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
 
@@ -83,6 +89,7 @@ class DefaultApi:
83
89
  def clone_instance(
84
90
  self,
85
91
  project_id: Annotated[StrictStr, Field(description="Project ID")],
92
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
86
93
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
87
94
  clone_instance_payload: Annotated[CloneInstancePayload, Field(description="Body")],
88
95
  _request_timeout: Union[
@@ -101,6 +108,8 @@ class DefaultApi:
101
108
 
102
109
  :param project_id: Project ID (required)
103
110
  :type project_id: str
111
+ :param region: The region which should be addressed (required)
112
+ :type region: str
104
113
  :param instance_id: Instance ID (required)
105
114
  :type instance_id: str
106
115
  :param clone_instance_payload: Body (required)
@@ -125,10 +134,11 @@ class DefaultApi:
125
134
  in the spec for a single request.
126
135
  :type _host_index: int, optional
127
136
  :return: Returns the result object.
128
- """ # noqa: E501 docstring might be too long
137
+ """ # noqa: E501
129
138
 
130
139
  _param = self._clone_instance_serialize(
131
140
  project_id=project_id,
141
+ region=region,
132
142
  instance_id=instance_id,
133
143
  clone_instance_payload=clone_instance_payload,
134
144
  _request_auth=_request_auth,
@@ -140,6 +150,7 @@ class DefaultApi:
140
150
  _response_types_map: Dict[str, Optional[str]] = {
141
151
  "201": "CloneInstanceResponse",
142
152
  "400": "Error",
153
+ "401": "Error",
143
154
  "405": None,
144
155
  "500": None,
145
156
  }
@@ -154,6 +165,7 @@ class DefaultApi:
154
165
  def clone_instance_with_http_info(
155
166
  self,
156
167
  project_id: Annotated[StrictStr, Field(description="Project ID")],
168
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
157
169
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
158
170
  clone_instance_payload: Annotated[CloneInstancePayload, Field(description="Body")],
159
171
  _request_timeout: Union[
@@ -172,6 +184,8 @@ class DefaultApi:
172
184
 
173
185
  :param project_id: Project ID (required)
174
186
  :type project_id: str
187
+ :param region: The region which should be addressed (required)
188
+ :type region: str
175
189
  :param instance_id: Instance ID (required)
176
190
  :type instance_id: str
177
191
  :param clone_instance_payload: Body (required)
@@ -196,10 +210,11 @@ class DefaultApi:
196
210
  in the spec for a single request.
197
211
  :type _host_index: int, optional
198
212
  :return: Returns the result object.
199
- """ # noqa: E501 docstring might be too long
213
+ """ # noqa: E501
200
214
 
201
215
  _param = self._clone_instance_serialize(
202
216
  project_id=project_id,
217
+ region=region,
203
218
  instance_id=instance_id,
204
219
  clone_instance_payload=clone_instance_payload,
205
220
  _request_auth=_request_auth,
@@ -211,6 +226,7 @@ class DefaultApi:
211
226
  _response_types_map: Dict[str, Optional[str]] = {
212
227
  "201": "CloneInstanceResponse",
213
228
  "400": "Error",
229
+ "401": "Error",
214
230
  "405": None,
215
231
  "500": None,
216
232
  }
@@ -225,6 +241,7 @@ class DefaultApi:
225
241
  def clone_instance_without_preload_content(
226
242
  self,
227
243
  project_id: Annotated[StrictStr, Field(description="Project ID")],
244
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
228
245
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
229
246
  clone_instance_payload: Annotated[CloneInstancePayload, Field(description="Body")],
230
247
  _request_timeout: Union[
@@ -243,6 +260,8 @@ class DefaultApi:
243
260
 
244
261
  :param project_id: Project ID (required)
245
262
  :type project_id: str
263
+ :param region: The region which should be addressed (required)
264
+ :type region: str
246
265
  :param instance_id: Instance ID (required)
247
266
  :type instance_id: str
248
267
  :param clone_instance_payload: Body (required)
@@ -267,10 +286,11 @@ class DefaultApi:
267
286
  in the spec for a single request.
268
287
  :type _host_index: int, optional
269
288
  :return: Returns the result object.
270
- """ # noqa: E501 docstring might be too long
289
+ """ # noqa: E501
271
290
 
272
291
  _param = self._clone_instance_serialize(
273
292
  project_id=project_id,
293
+ region=region,
274
294
  instance_id=instance_id,
275
295
  clone_instance_payload=clone_instance_payload,
276
296
  _request_auth=_request_auth,
@@ -282,6 +302,7 @@ class DefaultApi:
282
302
  _response_types_map: Dict[str, Optional[str]] = {
283
303
  "201": "CloneInstanceResponse",
284
304
  "400": "Error",
305
+ "401": "Error",
285
306
  "405": None,
286
307
  "500": None,
287
308
  }
@@ -291,6 +312,7 @@ class DefaultApi:
291
312
  def _clone_instance_serialize(
292
313
  self,
293
314
  project_id,
315
+ region,
294
316
  instance_id,
295
317
  clone_instance_payload,
296
318
  _request_auth,
@@ -307,12 +329,14 @@ class DefaultApi:
307
329
  _query_params: List[Tuple[str, str]] = []
308
330
  _header_params: Dict[str, Optional[str]] = _headers or {}
309
331
  _form_params: List[Tuple[str, str]] = []
310
- _files: Dict[str, Union[str, bytes]] = {}
332
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
311
333
  _body_params: Optional[bytes] = None
312
334
 
313
335
  # process the path parameters
314
336
  if project_id is not None:
315
337
  _path_params["projectId"] = project_id
338
+ if region is not None:
339
+ _path_params["region"] = region
316
340
  if instance_id is not None:
317
341
  _path_params["instanceId"] = instance_id
318
342
  # process the query parameters
@@ -339,7 +363,7 @@ class DefaultApi:
339
363
 
340
364
  return self.api_client.param_serialize(
341
365
  method="POST",
342
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/clone",
366
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",
343
367
  path_params=_path_params,
344
368
  query_params=_query_params,
345
369
  header_params=_header_params,
@@ -356,6 +380,7 @@ class DefaultApi:
356
380
  def create_database(
357
381
  self,
358
382
  project_id: Annotated[StrictStr, Field(description="Project ID")],
383
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
359
384
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
360
385
  create_database_payload: Annotated[CreateDatabasePayload, Field(description="body")],
361
386
  _request_timeout: Union[
@@ -374,6 +399,8 @@ class DefaultApi:
374
399
 
375
400
  :param project_id: Project ID (required)
376
401
  :type project_id: str
402
+ :param region: The region which should be addressed (required)
403
+ :type region: str
377
404
  :param instance_id: Instance ID (required)
378
405
  :type instance_id: str
379
406
  :param create_database_payload: body (required)
@@ -398,10 +425,11 @@ class DefaultApi:
398
425
  in the spec for a single request.
399
426
  :type _host_index: int, optional
400
427
  :return: Returns the result object.
401
- """ # noqa: E501 docstring might be too long
428
+ """ # noqa: E501
402
429
 
403
430
  _param = self._create_database_serialize(
404
431
  project_id=project_id,
432
+ region=region,
405
433
  instance_id=instance_id,
406
434
  create_database_payload=create_database_payload,
407
435
  _request_auth=_request_auth,
@@ -413,6 +441,7 @@ class DefaultApi:
413
441
  _response_types_map: Dict[str, Optional[str]] = {
414
442
  "201": "InstanceCreateDatabaseResponse",
415
443
  "400": "Error",
444
+ "401": "Error",
416
445
  "405": None,
417
446
  "500": None,
418
447
  }
@@ -427,6 +456,7 @@ class DefaultApi:
427
456
  def create_database_with_http_info(
428
457
  self,
429
458
  project_id: Annotated[StrictStr, Field(description="Project ID")],
459
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
430
460
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
431
461
  create_database_payload: Annotated[CreateDatabasePayload, Field(description="body")],
432
462
  _request_timeout: Union[
@@ -445,6 +475,8 @@ class DefaultApi:
445
475
 
446
476
  :param project_id: Project ID (required)
447
477
  :type project_id: str
478
+ :param region: The region which should be addressed (required)
479
+ :type region: str
448
480
  :param instance_id: Instance ID (required)
449
481
  :type instance_id: str
450
482
  :param create_database_payload: body (required)
@@ -469,10 +501,11 @@ class DefaultApi:
469
501
  in the spec for a single request.
470
502
  :type _host_index: int, optional
471
503
  :return: Returns the result object.
472
- """ # noqa: E501 docstring might be too long
504
+ """ # noqa: E501
473
505
 
474
506
  _param = self._create_database_serialize(
475
507
  project_id=project_id,
508
+ region=region,
476
509
  instance_id=instance_id,
477
510
  create_database_payload=create_database_payload,
478
511
  _request_auth=_request_auth,
@@ -484,6 +517,7 @@ class DefaultApi:
484
517
  _response_types_map: Dict[str, Optional[str]] = {
485
518
  "201": "InstanceCreateDatabaseResponse",
486
519
  "400": "Error",
520
+ "401": "Error",
487
521
  "405": None,
488
522
  "500": None,
489
523
  }
@@ -498,6 +532,7 @@ class DefaultApi:
498
532
  def create_database_without_preload_content(
499
533
  self,
500
534
  project_id: Annotated[StrictStr, Field(description="Project ID")],
535
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
501
536
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
502
537
  create_database_payload: Annotated[CreateDatabasePayload, Field(description="body")],
503
538
  _request_timeout: Union[
@@ -516,6 +551,8 @@ class DefaultApi:
516
551
 
517
552
  :param project_id: Project ID (required)
518
553
  :type project_id: str
554
+ :param region: The region which should be addressed (required)
555
+ :type region: str
519
556
  :param instance_id: Instance ID (required)
520
557
  :type instance_id: str
521
558
  :param create_database_payload: body (required)
@@ -540,10 +577,11 @@ class DefaultApi:
540
577
  in the spec for a single request.
541
578
  :type _host_index: int, optional
542
579
  :return: Returns the result object.
543
- """ # noqa: E501 docstring might be too long
580
+ """ # noqa: E501
544
581
 
545
582
  _param = self._create_database_serialize(
546
583
  project_id=project_id,
584
+ region=region,
547
585
  instance_id=instance_id,
548
586
  create_database_payload=create_database_payload,
549
587
  _request_auth=_request_auth,
@@ -555,6 +593,7 @@ class DefaultApi:
555
593
  _response_types_map: Dict[str, Optional[str]] = {
556
594
  "201": "InstanceCreateDatabaseResponse",
557
595
  "400": "Error",
596
+ "401": "Error",
558
597
  "405": None,
559
598
  "500": None,
560
599
  }
@@ -564,6 +603,7 @@ class DefaultApi:
564
603
  def _create_database_serialize(
565
604
  self,
566
605
  project_id,
606
+ region,
567
607
  instance_id,
568
608
  create_database_payload,
569
609
  _request_auth,
@@ -580,12 +620,14 @@ class DefaultApi:
580
620
  _query_params: List[Tuple[str, str]] = []
581
621
  _header_params: Dict[str, Optional[str]] = _headers or {}
582
622
  _form_params: List[Tuple[str, str]] = []
583
- _files: Dict[str, Union[str, bytes]] = {}
623
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
584
624
  _body_params: Optional[bytes] = None
585
625
 
586
626
  # process the path parameters
587
627
  if project_id is not None:
588
628
  _path_params["projectId"] = project_id
629
+ if region is not None:
630
+ _path_params["region"] = region
589
631
  if instance_id is not None:
590
632
  _path_params["instanceId"] = instance_id
591
633
  # process the query parameters
@@ -612,7 +654,7 @@ class DefaultApi:
612
654
 
613
655
  return self.api_client.param_serialize(
614
656
  method="POST",
615
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/databases",
657
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
616
658
  path_params=_path_params,
617
659
  query_params=_query_params,
618
660
  header_params=_header_params,
@@ -629,6 +671,7 @@ class DefaultApi:
629
671
  def create_instance(
630
672
  self,
631
673
  project_id: Annotated[StrictStr, Field(description="Project ID")],
674
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
632
675
  create_instance_payload: Annotated[CreateInstancePayload, Field(description="Body")],
633
676
  _request_timeout: Union[
634
677
  None,
@@ -646,6 +689,8 @@ class DefaultApi:
646
689
 
647
690
  :param project_id: Project ID (required)
648
691
  :type project_id: str
692
+ :param region: The region which should be addressed (required)
693
+ :type region: str
649
694
  :param create_instance_payload: Body (required)
650
695
  :type create_instance_payload: CreateInstancePayload
651
696
  :param _request_timeout: timeout setting for this request. If one
@@ -668,10 +713,11 @@ class DefaultApi:
668
713
  in the spec for a single request.
669
714
  :type _host_index: int, optional
670
715
  :return: Returns the result object.
671
- """ # noqa: E501 docstring might be too long
716
+ """ # noqa: E501
672
717
 
673
718
  _param = self._create_instance_serialize(
674
719
  project_id=project_id,
720
+ region=region,
675
721
  create_instance_payload=create_instance_payload,
676
722
  _request_auth=_request_auth,
677
723
  _content_type=_content_type,
@@ -682,6 +728,7 @@ class DefaultApi:
682
728
  _response_types_map: Dict[str, Optional[str]] = {
683
729
  "201": "CreateInstanceResponse",
684
730
  "400": "Error",
731
+ "401": "Error",
685
732
  "405": None,
686
733
  "500": None,
687
734
  }
@@ -696,6 +743,7 @@ class DefaultApi:
696
743
  def create_instance_with_http_info(
697
744
  self,
698
745
  project_id: Annotated[StrictStr, Field(description="Project ID")],
746
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
699
747
  create_instance_payload: Annotated[CreateInstancePayload, Field(description="Body")],
700
748
  _request_timeout: Union[
701
749
  None,
@@ -713,6 +761,8 @@ class DefaultApi:
713
761
 
714
762
  :param project_id: Project ID (required)
715
763
  :type project_id: str
764
+ :param region: The region which should be addressed (required)
765
+ :type region: str
716
766
  :param create_instance_payload: Body (required)
717
767
  :type create_instance_payload: CreateInstancePayload
718
768
  :param _request_timeout: timeout setting for this request. If one
@@ -735,10 +785,11 @@ class DefaultApi:
735
785
  in the spec for a single request.
736
786
  :type _host_index: int, optional
737
787
  :return: Returns the result object.
738
- """ # noqa: E501 docstring might be too long
788
+ """ # noqa: E501
739
789
 
740
790
  _param = self._create_instance_serialize(
741
791
  project_id=project_id,
792
+ region=region,
742
793
  create_instance_payload=create_instance_payload,
743
794
  _request_auth=_request_auth,
744
795
  _content_type=_content_type,
@@ -749,6 +800,7 @@ class DefaultApi:
749
800
  _response_types_map: Dict[str, Optional[str]] = {
750
801
  "201": "CreateInstanceResponse",
751
802
  "400": "Error",
803
+ "401": "Error",
752
804
  "405": None,
753
805
  "500": None,
754
806
  }
@@ -763,6 +815,7 @@ class DefaultApi:
763
815
  def create_instance_without_preload_content(
764
816
  self,
765
817
  project_id: Annotated[StrictStr, Field(description="Project ID")],
818
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
766
819
  create_instance_payload: Annotated[CreateInstancePayload, Field(description="Body")],
767
820
  _request_timeout: Union[
768
821
  None,
@@ -780,6 +833,8 @@ class DefaultApi:
780
833
 
781
834
  :param project_id: Project ID (required)
782
835
  :type project_id: str
836
+ :param region: The region which should be addressed (required)
837
+ :type region: str
783
838
  :param create_instance_payload: Body (required)
784
839
  :type create_instance_payload: CreateInstancePayload
785
840
  :param _request_timeout: timeout setting for this request. If one
@@ -802,10 +857,11 @@ class DefaultApi:
802
857
  in the spec for a single request.
803
858
  :type _host_index: int, optional
804
859
  :return: Returns the result object.
805
- """ # noqa: E501 docstring might be too long
860
+ """ # noqa: E501
806
861
 
807
862
  _param = self._create_instance_serialize(
808
863
  project_id=project_id,
864
+ region=region,
809
865
  create_instance_payload=create_instance_payload,
810
866
  _request_auth=_request_auth,
811
867
  _content_type=_content_type,
@@ -816,6 +872,7 @@ class DefaultApi:
816
872
  _response_types_map: Dict[str, Optional[str]] = {
817
873
  "201": "CreateInstanceResponse",
818
874
  "400": "Error",
875
+ "401": "Error",
819
876
  "405": None,
820
877
  "500": None,
821
878
  }
@@ -825,6 +882,7 @@ class DefaultApi:
825
882
  def _create_instance_serialize(
826
883
  self,
827
884
  project_id,
885
+ region,
828
886
  create_instance_payload,
829
887
  _request_auth,
830
888
  _content_type,
@@ -840,12 +898,14 @@ class DefaultApi:
840
898
  _query_params: List[Tuple[str, str]] = []
841
899
  _header_params: Dict[str, Optional[str]] = _headers or {}
842
900
  _form_params: List[Tuple[str, str]] = []
843
- _files: Dict[str, Union[str, bytes]] = {}
901
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
844
902
  _body_params: Optional[bytes] = None
845
903
 
846
904
  # process the path parameters
847
905
  if project_id is not None:
848
906
  _path_params["projectId"] = project_id
907
+ if region is not None:
908
+ _path_params["region"] = region
849
909
  # process the query parameters
850
910
  # process the header parameters
851
911
  # process the form parameters
@@ -870,7 +930,7 @@ class DefaultApi:
870
930
 
871
931
  return self.api_client.param_serialize(
872
932
  method="POST",
873
- resource_path="/v1/projects/{projectId}/instances",
933
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances",
874
934
  path_params=_path_params,
875
935
  query_params=_query_params,
876
936
  header_params=_header_params,
@@ -887,6 +947,7 @@ class DefaultApi:
887
947
  def create_user(
888
948
  self,
889
949
  project_id: Annotated[StrictStr, Field(description="Project ID")],
950
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
890
951
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
891
952
  create_user_payload: Annotated[CreateUserPayload, Field(description="body")],
892
953
  _request_timeout: Union[
@@ -905,6 +966,8 @@ class DefaultApi:
905
966
 
906
967
  :param project_id: Project ID (required)
907
968
  :type project_id: str
969
+ :param region: The region which should be addressed (required)
970
+ :type region: str
908
971
  :param instance_id: Instance ID (required)
909
972
  :type instance_id: str
910
973
  :param create_user_payload: body (required)
@@ -929,10 +992,11 @@ class DefaultApi:
929
992
  in the spec for a single request.
930
993
  :type _host_index: int, optional
931
994
  :return: Returns the result object.
932
- """ # noqa: E501 docstring might be too long
995
+ """ # noqa: E501
933
996
 
934
997
  _param = self._create_user_serialize(
935
998
  project_id=project_id,
999
+ region=region,
936
1000
  instance_id=instance_id,
937
1001
  create_user_payload=create_user_payload,
938
1002
  _request_auth=_request_auth,
@@ -944,6 +1008,7 @@ class DefaultApi:
944
1008
  _response_types_map: Dict[str, Optional[str]] = {
945
1009
  "201": "CreateUserResponse",
946
1010
  "400": "Error",
1011
+ "401": "Error",
947
1012
  "405": None,
948
1013
  "500": None,
949
1014
  }
@@ -958,6 +1023,7 @@ class DefaultApi:
958
1023
  def create_user_with_http_info(
959
1024
  self,
960
1025
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1026
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
961
1027
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
962
1028
  create_user_payload: Annotated[CreateUserPayload, Field(description="body")],
963
1029
  _request_timeout: Union[
@@ -976,6 +1042,8 @@ class DefaultApi:
976
1042
 
977
1043
  :param project_id: Project ID (required)
978
1044
  :type project_id: str
1045
+ :param region: The region which should be addressed (required)
1046
+ :type region: str
979
1047
  :param instance_id: Instance ID (required)
980
1048
  :type instance_id: str
981
1049
  :param create_user_payload: body (required)
@@ -1000,10 +1068,11 @@ class DefaultApi:
1000
1068
  in the spec for a single request.
1001
1069
  :type _host_index: int, optional
1002
1070
  :return: Returns the result object.
1003
- """ # noqa: E501 docstring might be too long
1071
+ """ # noqa: E501
1004
1072
 
1005
1073
  _param = self._create_user_serialize(
1006
1074
  project_id=project_id,
1075
+ region=region,
1007
1076
  instance_id=instance_id,
1008
1077
  create_user_payload=create_user_payload,
1009
1078
  _request_auth=_request_auth,
@@ -1015,6 +1084,7 @@ class DefaultApi:
1015
1084
  _response_types_map: Dict[str, Optional[str]] = {
1016
1085
  "201": "CreateUserResponse",
1017
1086
  "400": "Error",
1087
+ "401": "Error",
1018
1088
  "405": None,
1019
1089
  "500": None,
1020
1090
  }
@@ -1029,6 +1099,7 @@ class DefaultApi:
1029
1099
  def create_user_without_preload_content(
1030
1100
  self,
1031
1101
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1102
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1032
1103
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1033
1104
  create_user_payload: Annotated[CreateUserPayload, Field(description="body")],
1034
1105
  _request_timeout: Union[
@@ -1047,6 +1118,8 @@ class DefaultApi:
1047
1118
 
1048
1119
  :param project_id: Project ID (required)
1049
1120
  :type project_id: str
1121
+ :param region: The region which should be addressed (required)
1122
+ :type region: str
1050
1123
  :param instance_id: Instance ID (required)
1051
1124
  :type instance_id: str
1052
1125
  :param create_user_payload: body (required)
@@ -1071,10 +1144,11 @@ class DefaultApi:
1071
1144
  in the spec for a single request.
1072
1145
  :type _host_index: int, optional
1073
1146
  :return: Returns the result object.
1074
- """ # noqa: E501 docstring might be too long
1147
+ """ # noqa: E501
1075
1148
 
1076
1149
  _param = self._create_user_serialize(
1077
1150
  project_id=project_id,
1151
+ region=region,
1078
1152
  instance_id=instance_id,
1079
1153
  create_user_payload=create_user_payload,
1080
1154
  _request_auth=_request_auth,
@@ -1086,6 +1160,7 @@ class DefaultApi:
1086
1160
  _response_types_map: Dict[str, Optional[str]] = {
1087
1161
  "201": "CreateUserResponse",
1088
1162
  "400": "Error",
1163
+ "401": "Error",
1089
1164
  "405": None,
1090
1165
  "500": None,
1091
1166
  }
@@ -1095,6 +1170,7 @@ class DefaultApi:
1095
1170
  def _create_user_serialize(
1096
1171
  self,
1097
1172
  project_id,
1173
+ region,
1098
1174
  instance_id,
1099
1175
  create_user_payload,
1100
1176
  _request_auth,
@@ -1111,12 +1187,14 @@ class DefaultApi:
1111
1187
  _query_params: List[Tuple[str, str]] = []
1112
1188
  _header_params: Dict[str, Optional[str]] = _headers or {}
1113
1189
  _form_params: List[Tuple[str, str]] = []
1114
- _files: Dict[str, Union[str, bytes]] = {}
1190
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1115
1191
  _body_params: Optional[bytes] = None
1116
1192
 
1117
1193
  # process the path parameters
1118
1194
  if project_id is not None:
1119
1195
  _path_params["projectId"] = project_id
1196
+ if region is not None:
1197
+ _path_params["region"] = region
1120
1198
  if instance_id is not None:
1121
1199
  _path_params["instanceId"] = instance_id
1122
1200
  # process the query parameters
@@ -1143,7 +1221,7 @@ class DefaultApi:
1143
1221
 
1144
1222
  return self.api_client.param_serialize(
1145
1223
  method="POST",
1146
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users",
1224
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
1147
1225
  path_params=_path_params,
1148
1226
  query_params=_query_params,
1149
1227
  header_params=_header_params,
@@ -1160,6 +1238,7 @@ class DefaultApi:
1160
1238
  def delete_database(
1161
1239
  self,
1162
1240
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1241
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1163
1242
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1164
1243
  database_id: Annotated[StrictStr, Field(description="Database ID")],
1165
1244
  _request_timeout: Union[
@@ -1178,6 +1257,8 @@ class DefaultApi:
1178
1257
 
1179
1258
  :param project_id: Project ID (required)
1180
1259
  :type project_id: str
1260
+ :param region: The region which should be addressed (required)
1261
+ :type region: str
1181
1262
  :param instance_id: Instance ID (required)
1182
1263
  :type instance_id: str
1183
1264
  :param database_id: Database ID (required)
@@ -1202,10 +1283,11 @@ class DefaultApi:
1202
1283
  in the spec for a single request.
1203
1284
  :type _host_index: int, optional
1204
1285
  :return: Returns the result object.
1205
- """ # noqa: E501 docstring might be too long
1286
+ """ # noqa: E501
1206
1287
 
1207
1288
  _param = self._delete_database_serialize(
1208
1289
  project_id=project_id,
1290
+ region=region,
1209
1291
  instance_id=instance_id,
1210
1292
  database_id=database_id,
1211
1293
  _request_auth=_request_auth,
@@ -1217,6 +1299,7 @@ class DefaultApi:
1217
1299
  _response_types_map: Dict[str, Optional[str]] = {
1218
1300
  "200": None,
1219
1301
  "400": "Error",
1302
+ "401": "Error",
1220
1303
  "405": None,
1221
1304
  "500": None,
1222
1305
  }
@@ -1231,6 +1314,7 @@ class DefaultApi:
1231
1314
  def delete_database_with_http_info(
1232
1315
  self,
1233
1316
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1317
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1234
1318
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1235
1319
  database_id: Annotated[StrictStr, Field(description="Database ID")],
1236
1320
  _request_timeout: Union[
@@ -1249,6 +1333,8 @@ class DefaultApi:
1249
1333
 
1250
1334
  :param project_id: Project ID (required)
1251
1335
  :type project_id: str
1336
+ :param region: The region which should be addressed (required)
1337
+ :type region: str
1252
1338
  :param instance_id: Instance ID (required)
1253
1339
  :type instance_id: str
1254
1340
  :param database_id: Database ID (required)
@@ -1273,10 +1359,11 @@ class DefaultApi:
1273
1359
  in the spec for a single request.
1274
1360
  :type _host_index: int, optional
1275
1361
  :return: Returns the result object.
1276
- """ # noqa: E501 docstring might be too long
1362
+ """ # noqa: E501
1277
1363
 
1278
1364
  _param = self._delete_database_serialize(
1279
1365
  project_id=project_id,
1366
+ region=region,
1280
1367
  instance_id=instance_id,
1281
1368
  database_id=database_id,
1282
1369
  _request_auth=_request_auth,
@@ -1288,6 +1375,7 @@ class DefaultApi:
1288
1375
  _response_types_map: Dict[str, Optional[str]] = {
1289
1376
  "200": None,
1290
1377
  "400": "Error",
1378
+ "401": "Error",
1291
1379
  "405": None,
1292
1380
  "500": None,
1293
1381
  }
@@ -1302,6 +1390,7 @@ class DefaultApi:
1302
1390
  def delete_database_without_preload_content(
1303
1391
  self,
1304
1392
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1393
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1305
1394
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1306
1395
  database_id: Annotated[StrictStr, Field(description="Database ID")],
1307
1396
  _request_timeout: Union[
@@ -1320,6 +1409,8 @@ class DefaultApi:
1320
1409
 
1321
1410
  :param project_id: Project ID (required)
1322
1411
  :type project_id: str
1412
+ :param region: The region which should be addressed (required)
1413
+ :type region: str
1323
1414
  :param instance_id: Instance ID (required)
1324
1415
  :type instance_id: str
1325
1416
  :param database_id: Database ID (required)
@@ -1344,10 +1435,11 @@ class DefaultApi:
1344
1435
  in the spec for a single request.
1345
1436
  :type _host_index: int, optional
1346
1437
  :return: Returns the result object.
1347
- """ # noqa: E501 docstring might be too long
1438
+ """ # noqa: E501
1348
1439
 
1349
1440
  _param = self._delete_database_serialize(
1350
1441
  project_id=project_id,
1442
+ region=region,
1351
1443
  instance_id=instance_id,
1352
1444
  database_id=database_id,
1353
1445
  _request_auth=_request_auth,
@@ -1359,6 +1451,7 @@ class DefaultApi:
1359
1451
  _response_types_map: Dict[str, Optional[str]] = {
1360
1452
  "200": None,
1361
1453
  "400": "Error",
1454
+ "401": "Error",
1362
1455
  "405": None,
1363
1456
  "500": None,
1364
1457
  }
@@ -1368,6 +1461,7 @@ class DefaultApi:
1368
1461
  def _delete_database_serialize(
1369
1462
  self,
1370
1463
  project_id,
1464
+ region,
1371
1465
  instance_id,
1372
1466
  database_id,
1373
1467
  _request_auth,
@@ -1384,12 +1478,14 @@ class DefaultApi:
1384
1478
  _query_params: List[Tuple[str, str]] = []
1385
1479
  _header_params: Dict[str, Optional[str]] = _headers or {}
1386
1480
  _form_params: List[Tuple[str, str]] = []
1387
- _files: Dict[str, Union[str, bytes]] = {}
1481
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1388
1482
  _body_params: Optional[bytes] = None
1389
1483
 
1390
1484
  # process the path parameters
1391
1485
  if project_id is not None:
1392
1486
  _path_params["projectId"] = project_id
1487
+ if region is not None:
1488
+ _path_params["region"] = region
1393
1489
  if instance_id is not None:
1394
1490
  _path_params["instanceId"] = instance_id
1395
1491
  if database_id is not None:
@@ -1408,7 +1504,7 @@ class DefaultApi:
1408
1504
 
1409
1505
  return self.api_client.param_serialize(
1410
1506
  method="DELETE",
1411
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/databases/{databaseId}",
1507
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
1412
1508
  path_params=_path_params,
1413
1509
  query_params=_query_params,
1414
1510
  header_params=_header_params,
@@ -1425,6 +1521,7 @@ class DefaultApi:
1425
1521
  def delete_instance(
1426
1522
  self,
1427
1523
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1524
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1428
1525
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1429
1526
  _request_timeout: Union[
1430
1527
  None,
@@ -1442,6 +1539,8 @@ class DefaultApi:
1442
1539
 
1443
1540
  :param project_id: Project ID (required)
1444
1541
  :type project_id: str
1542
+ :param region: The region which should be addressed (required)
1543
+ :type region: str
1445
1544
  :param instance_id: Instance ID (required)
1446
1545
  :type instance_id: str
1447
1546
  :param _request_timeout: timeout setting for this request. If one
@@ -1464,10 +1563,11 @@ class DefaultApi:
1464
1563
  in the spec for a single request.
1465
1564
  :type _host_index: int, optional
1466
1565
  :return: Returns the result object.
1467
- """ # noqa: E501 docstring might be too long
1566
+ """ # noqa: E501
1468
1567
 
1469
1568
  _param = self._delete_instance_serialize(
1470
1569
  project_id=project_id,
1570
+ region=region,
1471
1571
  instance_id=instance_id,
1472
1572
  _request_auth=_request_auth,
1473
1573
  _content_type=_content_type,
@@ -1478,6 +1578,7 @@ class DefaultApi:
1478
1578
  _response_types_map: Dict[str, Optional[str]] = {
1479
1579
  "202": None,
1480
1580
  "400": "Error",
1581
+ "401": "Error",
1481
1582
  "404": "Error",
1482
1583
  "405": None,
1483
1584
  "500": "Error",
@@ -1493,6 +1594,7 @@ class DefaultApi:
1493
1594
  def delete_instance_with_http_info(
1494
1595
  self,
1495
1596
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1597
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1496
1598
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1497
1599
  _request_timeout: Union[
1498
1600
  None,
@@ -1510,6 +1612,8 @@ class DefaultApi:
1510
1612
 
1511
1613
  :param project_id: Project ID (required)
1512
1614
  :type project_id: str
1615
+ :param region: The region which should be addressed (required)
1616
+ :type region: str
1513
1617
  :param instance_id: Instance ID (required)
1514
1618
  :type instance_id: str
1515
1619
  :param _request_timeout: timeout setting for this request. If one
@@ -1532,10 +1636,11 @@ class DefaultApi:
1532
1636
  in the spec for a single request.
1533
1637
  :type _host_index: int, optional
1534
1638
  :return: Returns the result object.
1535
- """ # noqa: E501 docstring might be too long
1639
+ """ # noqa: E501
1536
1640
 
1537
1641
  _param = self._delete_instance_serialize(
1538
1642
  project_id=project_id,
1643
+ region=region,
1539
1644
  instance_id=instance_id,
1540
1645
  _request_auth=_request_auth,
1541
1646
  _content_type=_content_type,
@@ -1546,6 +1651,7 @@ class DefaultApi:
1546
1651
  _response_types_map: Dict[str, Optional[str]] = {
1547
1652
  "202": None,
1548
1653
  "400": "Error",
1654
+ "401": "Error",
1549
1655
  "404": "Error",
1550
1656
  "405": None,
1551
1657
  "500": "Error",
@@ -1561,6 +1667,7 @@ class DefaultApi:
1561
1667
  def delete_instance_without_preload_content(
1562
1668
  self,
1563
1669
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1670
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1564
1671
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1565
1672
  _request_timeout: Union[
1566
1673
  None,
@@ -1578,6 +1685,8 @@ class DefaultApi:
1578
1685
 
1579
1686
  :param project_id: Project ID (required)
1580
1687
  :type project_id: str
1688
+ :param region: The region which should be addressed (required)
1689
+ :type region: str
1581
1690
  :param instance_id: Instance ID (required)
1582
1691
  :type instance_id: str
1583
1692
  :param _request_timeout: timeout setting for this request. If one
@@ -1600,10 +1709,11 @@ class DefaultApi:
1600
1709
  in the spec for a single request.
1601
1710
  :type _host_index: int, optional
1602
1711
  :return: Returns the result object.
1603
- """ # noqa: E501 docstring might be too long
1712
+ """ # noqa: E501
1604
1713
 
1605
1714
  _param = self._delete_instance_serialize(
1606
1715
  project_id=project_id,
1716
+ region=region,
1607
1717
  instance_id=instance_id,
1608
1718
  _request_auth=_request_auth,
1609
1719
  _content_type=_content_type,
@@ -1614,6 +1724,7 @@ class DefaultApi:
1614
1724
  _response_types_map: Dict[str, Optional[str]] = {
1615
1725
  "202": None,
1616
1726
  "400": "Error",
1727
+ "401": "Error",
1617
1728
  "404": "Error",
1618
1729
  "405": None,
1619
1730
  "500": "Error",
@@ -1624,6 +1735,7 @@ class DefaultApi:
1624
1735
  def _delete_instance_serialize(
1625
1736
  self,
1626
1737
  project_id,
1738
+ region,
1627
1739
  instance_id,
1628
1740
  _request_auth,
1629
1741
  _content_type,
@@ -1639,12 +1751,14 @@ class DefaultApi:
1639
1751
  _query_params: List[Tuple[str, str]] = []
1640
1752
  _header_params: Dict[str, Optional[str]] = _headers or {}
1641
1753
  _form_params: List[Tuple[str, str]] = []
1642
- _files: Dict[str, Union[str, bytes]] = {}
1754
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1643
1755
  _body_params: Optional[bytes] = None
1644
1756
 
1645
1757
  # process the path parameters
1646
1758
  if project_id is not None:
1647
1759
  _path_params["projectId"] = project_id
1760
+ if region is not None:
1761
+ _path_params["region"] = region
1648
1762
  if instance_id is not None:
1649
1763
  _path_params["instanceId"] = instance_id
1650
1764
  # process the query parameters
@@ -1661,7 +1775,7 @@ class DefaultApi:
1661
1775
 
1662
1776
  return self.api_client.param_serialize(
1663
1777
  method="DELETE",
1664
- resource_path="/v1/projects/{projectId}/instances/{instanceId}",
1778
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
1665
1779
  path_params=_path_params,
1666
1780
  query_params=_query_params,
1667
1781
  header_params=_header_params,
@@ -1678,6 +1792,7 @@ class DefaultApi:
1678
1792
  def delete_user(
1679
1793
  self,
1680
1794
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1795
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1681
1796
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1682
1797
  user_id: Annotated[StrictStr, Field(description="User ID")],
1683
1798
  _request_timeout: Union[
@@ -1696,6 +1811,8 @@ class DefaultApi:
1696
1811
 
1697
1812
  :param project_id: Project ID (required)
1698
1813
  :type project_id: str
1814
+ :param region: The region which should be addressed (required)
1815
+ :type region: str
1699
1816
  :param instance_id: Instance ID (required)
1700
1817
  :type instance_id: str
1701
1818
  :param user_id: User ID (required)
@@ -1720,10 +1837,11 @@ class DefaultApi:
1720
1837
  in the spec for a single request.
1721
1838
  :type _host_index: int, optional
1722
1839
  :return: Returns the result object.
1723
- """ # noqa: E501 docstring might be too long
1840
+ """ # noqa: E501
1724
1841
 
1725
1842
  _param = self._delete_user_serialize(
1726
1843
  project_id=project_id,
1844
+ region=region,
1727
1845
  instance_id=instance_id,
1728
1846
  user_id=user_id,
1729
1847
  _request_auth=_request_auth,
@@ -1735,6 +1853,7 @@ class DefaultApi:
1735
1853
  _response_types_map: Dict[str, Optional[str]] = {
1736
1854
  "200": None,
1737
1855
  "400": "Error",
1856
+ "401": "Error",
1738
1857
  "405": None,
1739
1858
  "500": None,
1740
1859
  }
@@ -1749,6 +1868,7 @@ class DefaultApi:
1749
1868
  def delete_user_with_http_info(
1750
1869
  self,
1751
1870
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1871
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1752
1872
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1753
1873
  user_id: Annotated[StrictStr, Field(description="User ID")],
1754
1874
  _request_timeout: Union[
@@ -1767,6 +1887,8 @@ class DefaultApi:
1767
1887
 
1768
1888
  :param project_id: Project ID (required)
1769
1889
  :type project_id: str
1890
+ :param region: The region which should be addressed (required)
1891
+ :type region: str
1770
1892
  :param instance_id: Instance ID (required)
1771
1893
  :type instance_id: str
1772
1894
  :param user_id: User ID (required)
@@ -1791,10 +1913,11 @@ class DefaultApi:
1791
1913
  in the spec for a single request.
1792
1914
  :type _host_index: int, optional
1793
1915
  :return: Returns the result object.
1794
- """ # noqa: E501 docstring might be too long
1916
+ """ # noqa: E501
1795
1917
 
1796
1918
  _param = self._delete_user_serialize(
1797
1919
  project_id=project_id,
1920
+ region=region,
1798
1921
  instance_id=instance_id,
1799
1922
  user_id=user_id,
1800
1923
  _request_auth=_request_auth,
@@ -1806,6 +1929,7 @@ class DefaultApi:
1806
1929
  _response_types_map: Dict[str, Optional[str]] = {
1807
1930
  "200": None,
1808
1931
  "400": "Error",
1932
+ "401": "Error",
1809
1933
  "405": None,
1810
1934
  "500": None,
1811
1935
  }
@@ -1820,6 +1944,7 @@ class DefaultApi:
1820
1944
  def delete_user_without_preload_content(
1821
1945
  self,
1822
1946
  project_id: Annotated[StrictStr, Field(description="Project ID")],
1947
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1823
1948
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1824
1949
  user_id: Annotated[StrictStr, Field(description="User ID")],
1825
1950
  _request_timeout: Union[
@@ -1838,6 +1963,8 @@ class DefaultApi:
1838
1963
 
1839
1964
  :param project_id: Project ID (required)
1840
1965
  :type project_id: str
1966
+ :param region: The region which should be addressed (required)
1967
+ :type region: str
1841
1968
  :param instance_id: Instance ID (required)
1842
1969
  :type instance_id: str
1843
1970
  :param user_id: User ID (required)
@@ -1862,10 +1989,11 @@ class DefaultApi:
1862
1989
  in the spec for a single request.
1863
1990
  :type _host_index: int, optional
1864
1991
  :return: Returns the result object.
1865
- """ # noqa: E501 docstring might be too long
1992
+ """ # noqa: E501
1866
1993
 
1867
1994
  _param = self._delete_user_serialize(
1868
1995
  project_id=project_id,
1996
+ region=region,
1869
1997
  instance_id=instance_id,
1870
1998
  user_id=user_id,
1871
1999
  _request_auth=_request_auth,
@@ -1877,6 +2005,7 @@ class DefaultApi:
1877
2005
  _response_types_map: Dict[str, Optional[str]] = {
1878
2006
  "200": None,
1879
2007
  "400": "Error",
2008
+ "401": "Error",
1880
2009
  "405": None,
1881
2010
  "500": None,
1882
2011
  }
@@ -1886,6 +2015,7 @@ class DefaultApi:
1886
2015
  def _delete_user_serialize(
1887
2016
  self,
1888
2017
  project_id,
2018
+ region,
1889
2019
  instance_id,
1890
2020
  user_id,
1891
2021
  _request_auth,
@@ -1902,12 +2032,14 @@ class DefaultApi:
1902
2032
  _query_params: List[Tuple[str, str]] = []
1903
2033
  _header_params: Dict[str, Optional[str]] = _headers or {}
1904
2034
  _form_params: List[Tuple[str, str]] = []
1905
- _files: Dict[str, Union[str, bytes]] = {}
2035
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1906
2036
  _body_params: Optional[bytes] = None
1907
2037
 
1908
2038
  # process the path parameters
1909
2039
  if project_id is not None:
1910
2040
  _path_params["projectId"] = project_id
2041
+ if region is not None:
2042
+ _path_params["region"] = region
1911
2043
  if instance_id is not None:
1912
2044
  _path_params["instanceId"] = instance_id
1913
2045
  if user_id is not None:
@@ -1926,7 +2058,7 @@ class DefaultApi:
1926
2058
 
1927
2059
  return self.api_client.param_serialize(
1928
2060
  method="DELETE",
1929
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
2061
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
1930
2062
  path_params=_path_params,
1931
2063
  query_params=_query_params,
1932
2064
  header_params=_header_params,
@@ -1943,6 +2075,7 @@ class DefaultApi:
1943
2075
  def force_delete_instance(
1944
2076
  self,
1945
2077
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2078
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
1946
2079
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
1947
2080
  _request_timeout: Union[
1948
2081
  None,
@@ -1960,6 +2093,8 @@ class DefaultApi:
1960
2093
 
1961
2094
  :param project_id: Project ID (required)
1962
2095
  :type project_id: str
2096
+ :param region: The region which should be addressed (required)
2097
+ :type region: str
1963
2098
  :param instance_id: Instance ID (required)
1964
2099
  :type instance_id: str
1965
2100
  :param _request_timeout: timeout setting for this request. If one
@@ -1982,10 +2117,11 @@ class DefaultApi:
1982
2117
  in the spec for a single request.
1983
2118
  :type _host_index: int, optional
1984
2119
  :return: Returns the result object.
1985
- """ # noqa: E501 docstring might be too long
2120
+ """ # noqa: E501
1986
2121
 
1987
2122
  _param = self._force_delete_instance_serialize(
1988
2123
  project_id=project_id,
2124
+ region=region,
1989
2125
  instance_id=instance_id,
1990
2126
  _request_auth=_request_auth,
1991
2127
  _content_type=_content_type,
@@ -1995,6 +2131,8 @@ class DefaultApi:
1995
2131
 
1996
2132
  _response_types_map: Dict[str, Optional[str]] = {
1997
2133
  "202": None,
2134
+ "400": "Error",
2135
+ "401": "Error",
1998
2136
  "405": None,
1999
2137
  "406": "Error",
2000
2138
  "500": "Error",
@@ -2010,6 +2148,7 @@ class DefaultApi:
2010
2148
  def force_delete_instance_with_http_info(
2011
2149
  self,
2012
2150
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2151
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2013
2152
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2014
2153
  _request_timeout: Union[
2015
2154
  None,
@@ -2027,6 +2166,8 @@ class DefaultApi:
2027
2166
 
2028
2167
  :param project_id: Project ID (required)
2029
2168
  :type project_id: str
2169
+ :param region: The region which should be addressed (required)
2170
+ :type region: str
2030
2171
  :param instance_id: Instance ID (required)
2031
2172
  :type instance_id: str
2032
2173
  :param _request_timeout: timeout setting for this request. If one
@@ -2049,10 +2190,11 @@ class DefaultApi:
2049
2190
  in the spec for a single request.
2050
2191
  :type _host_index: int, optional
2051
2192
  :return: Returns the result object.
2052
- """ # noqa: E501 docstring might be too long
2193
+ """ # noqa: E501
2053
2194
 
2054
2195
  _param = self._force_delete_instance_serialize(
2055
2196
  project_id=project_id,
2197
+ region=region,
2056
2198
  instance_id=instance_id,
2057
2199
  _request_auth=_request_auth,
2058
2200
  _content_type=_content_type,
@@ -2062,6 +2204,8 @@ class DefaultApi:
2062
2204
 
2063
2205
  _response_types_map: Dict[str, Optional[str]] = {
2064
2206
  "202": None,
2207
+ "400": "Error",
2208
+ "401": "Error",
2065
2209
  "405": None,
2066
2210
  "406": "Error",
2067
2211
  "500": "Error",
@@ -2077,6 +2221,7 @@ class DefaultApi:
2077
2221
  def force_delete_instance_without_preload_content(
2078
2222
  self,
2079
2223
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2224
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2080
2225
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2081
2226
  _request_timeout: Union[
2082
2227
  None,
@@ -2094,6 +2239,8 @@ class DefaultApi:
2094
2239
 
2095
2240
  :param project_id: Project ID (required)
2096
2241
  :type project_id: str
2242
+ :param region: The region which should be addressed (required)
2243
+ :type region: str
2097
2244
  :param instance_id: Instance ID (required)
2098
2245
  :type instance_id: str
2099
2246
  :param _request_timeout: timeout setting for this request. If one
@@ -2116,10 +2263,11 @@ class DefaultApi:
2116
2263
  in the spec for a single request.
2117
2264
  :type _host_index: int, optional
2118
2265
  :return: Returns the result object.
2119
- """ # noqa: E501 docstring might be too long
2266
+ """ # noqa: E501
2120
2267
 
2121
2268
  _param = self._force_delete_instance_serialize(
2122
2269
  project_id=project_id,
2270
+ region=region,
2123
2271
  instance_id=instance_id,
2124
2272
  _request_auth=_request_auth,
2125
2273
  _content_type=_content_type,
@@ -2129,6 +2277,8 @@ class DefaultApi:
2129
2277
 
2130
2278
  _response_types_map: Dict[str, Optional[str]] = {
2131
2279
  "202": None,
2280
+ "400": "Error",
2281
+ "401": "Error",
2132
2282
  "405": None,
2133
2283
  "406": "Error",
2134
2284
  "500": "Error",
@@ -2139,6 +2289,7 @@ class DefaultApi:
2139
2289
  def _force_delete_instance_serialize(
2140
2290
  self,
2141
2291
  project_id,
2292
+ region,
2142
2293
  instance_id,
2143
2294
  _request_auth,
2144
2295
  _content_type,
@@ -2154,12 +2305,14 @@ class DefaultApi:
2154
2305
  _query_params: List[Tuple[str, str]] = []
2155
2306
  _header_params: Dict[str, Optional[str]] = _headers or {}
2156
2307
  _form_params: List[Tuple[str, str]] = []
2157
- _files: Dict[str, Union[str, bytes]] = {}
2308
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2158
2309
  _body_params: Optional[bytes] = None
2159
2310
 
2160
2311
  # process the path parameters
2161
2312
  if project_id is not None:
2162
2313
  _path_params["projectId"] = project_id
2314
+ if region is not None:
2315
+ _path_params["region"] = region
2163
2316
  if instance_id is not None:
2164
2317
  _path_params["instanceId"] = instance_id
2165
2318
  # process the query parameters
@@ -2176,7 +2329,7 @@ class DefaultApi:
2176
2329
 
2177
2330
  return self.api_client.param_serialize(
2178
2331
  method="DELETE",
2179
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/force",
2332
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/force",
2180
2333
  path_params=_path_params,
2181
2334
  query_params=_query_params,
2182
2335
  header_params=_header_params,
@@ -2193,6 +2346,7 @@ class DefaultApi:
2193
2346
  def get_backup(
2194
2347
  self,
2195
2348
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2349
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2196
2350
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2197
2351
  backup_id: Annotated[StrictStr, Field(description="Backup ID")],
2198
2352
  _request_timeout: Union[
@@ -2211,6 +2365,8 @@ class DefaultApi:
2211
2365
 
2212
2366
  :param project_id: Project ID (required)
2213
2367
  :type project_id: str
2368
+ :param region: The region which should be addressed (required)
2369
+ :type region: str
2214
2370
  :param instance_id: Instance ID (required)
2215
2371
  :type instance_id: str
2216
2372
  :param backup_id: Backup ID (required)
@@ -2235,10 +2391,11 @@ class DefaultApi:
2235
2391
  in the spec for a single request.
2236
2392
  :type _host_index: int, optional
2237
2393
  :return: Returns the result object.
2238
- """ # noqa: E501 docstring might be too long
2394
+ """ # noqa: E501
2239
2395
 
2240
2396
  _param = self._get_backup_serialize(
2241
2397
  project_id=project_id,
2398
+ region=region,
2242
2399
  instance_id=instance_id,
2243
2400
  backup_id=backup_id,
2244
2401
  _request_auth=_request_auth,
@@ -2250,6 +2407,7 @@ class DefaultApi:
2250
2407
  _response_types_map: Dict[str, Optional[str]] = {
2251
2408
  "200": "GetBackupResponse",
2252
2409
  "400": "Error",
2410
+ "401": "Error",
2253
2411
  "404": None,
2254
2412
  "405": None,
2255
2413
  "500": None,
@@ -2265,6 +2423,7 @@ class DefaultApi:
2265
2423
  def get_backup_with_http_info(
2266
2424
  self,
2267
2425
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2426
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2268
2427
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2269
2428
  backup_id: Annotated[StrictStr, Field(description="Backup ID")],
2270
2429
  _request_timeout: Union[
@@ -2283,6 +2442,8 @@ class DefaultApi:
2283
2442
 
2284
2443
  :param project_id: Project ID (required)
2285
2444
  :type project_id: str
2445
+ :param region: The region which should be addressed (required)
2446
+ :type region: str
2286
2447
  :param instance_id: Instance ID (required)
2287
2448
  :type instance_id: str
2288
2449
  :param backup_id: Backup ID (required)
@@ -2307,10 +2468,11 @@ class DefaultApi:
2307
2468
  in the spec for a single request.
2308
2469
  :type _host_index: int, optional
2309
2470
  :return: Returns the result object.
2310
- """ # noqa: E501 docstring might be too long
2471
+ """ # noqa: E501
2311
2472
 
2312
2473
  _param = self._get_backup_serialize(
2313
2474
  project_id=project_id,
2475
+ region=region,
2314
2476
  instance_id=instance_id,
2315
2477
  backup_id=backup_id,
2316
2478
  _request_auth=_request_auth,
@@ -2322,6 +2484,7 @@ class DefaultApi:
2322
2484
  _response_types_map: Dict[str, Optional[str]] = {
2323
2485
  "200": "GetBackupResponse",
2324
2486
  "400": "Error",
2487
+ "401": "Error",
2325
2488
  "404": None,
2326
2489
  "405": None,
2327
2490
  "500": None,
@@ -2337,6 +2500,7 @@ class DefaultApi:
2337
2500
  def get_backup_without_preload_content(
2338
2501
  self,
2339
2502
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2503
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2340
2504
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2341
2505
  backup_id: Annotated[StrictStr, Field(description="Backup ID")],
2342
2506
  _request_timeout: Union[
@@ -2355,6 +2519,8 @@ class DefaultApi:
2355
2519
 
2356
2520
  :param project_id: Project ID (required)
2357
2521
  :type project_id: str
2522
+ :param region: The region which should be addressed (required)
2523
+ :type region: str
2358
2524
  :param instance_id: Instance ID (required)
2359
2525
  :type instance_id: str
2360
2526
  :param backup_id: Backup ID (required)
@@ -2379,10 +2545,11 @@ class DefaultApi:
2379
2545
  in the spec for a single request.
2380
2546
  :type _host_index: int, optional
2381
2547
  :return: Returns the result object.
2382
- """ # noqa: E501 docstring might be too long
2548
+ """ # noqa: E501
2383
2549
 
2384
2550
  _param = self._get_backup_serialize(
2385
2551
  project_id=project_id,
2552
+ region=region,
2386
2553
  instance_id=instance_id,
2387
2554
  backup_id=backup_id,
2388
2555
  _request_auth=_request_auth,
@@ -2394,6 +2561,7 @@ class DefaultApi:
2394
2561
  _response_types_map: Dict[str, Optional[str]] = {
2395
2562
  "200": "GetBackupResponse",
2396
2563
  "400": "Error",
2564
+ "401": "Error",
2397
2565
  "404": None,
2398
2566
  "405": None,
2399
2567
  "500": None,
@@ -2404,6 +2572,7 @@ class DefaultApi:
2404
2572
  def _get_backup_serialize(
2405
2573
  self,
2406
2574
  project_id,
2575
+ region,
2407
2576
  instance_id,
2408
2577
  backup_id,
2409
2578
  _request_auth,
@@ -2420,12 +2589,14 @@ class DefaultApi:
2420
2589
  _query_params: List[Tuple[str, str]] = []
2421
2590
  _header_params: Dict[str, Optional[str]] = _headers or {}
2422
2591
  _form_params: List[Tuple[str, str]] = []
2423
- _files: Dict[str, Union[str, bytes]] = {}
2592
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2424
2593
  _body_params: Optional[bytes] = None
2425
2594
 
2426
2595
  # process the path parameters
2427
2596
  if project_id is not None:
2428
2597
  _path_params["projectId"] = project_id
2598
+ if region is not None:
2599
+ _path_params["region"] = region
2429
2600
  if instance_id is not None:
2430
2601
  _path_params["instanceId"] = instance_id
2431
2602
  if backup_id is not None:
@@ -2444,7 +2615,7 @@ class DefaultApi:
2444
2615
 
2445
2616
  return self.api_client.param_serialize(
2446
2617
  method="GET",
2447
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups/{backupId}",
2618
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
2448
2619
  path_params=_path_params,
2449
2620
  query_params=_query_params,
2450
2621
  header_params=_header_params,
@@ -2461,6 +2632,7 @@ class DefaultApi:
2461
2632
  def get_instance(
2462
2633
  self,
2463
2634
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2635
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2464
2636
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2465
2637
  _request_timeout: Union[
2466
2638
  None,
@@ -2478,6 +2650,8 @@ class DefaultApi:
2478
2650
 
2479
2651
  :param project_id: Project ID (required)
2480
2652
  :type project_id: str
2653
+ :param region: The region which should be addressed (required)
2654
+ :type region: str
2481
2655
  :param instance_id: Instance ID (required)
2482
2656
  :type instance_id: str
2483
2657
  :param _request_timeout: timeout setting for this request. If one
@@ -2500,10 +2674,11 @@ class DefaultApi:
2500
2674
  in the spec for a single request.
2501
2675
  :type _host_index: int, optional
2502
2676
  :return: Returns the result object.
2503
- """ # noqa: E501 docstring might be too long
2677
+ """ # noqa: E501
2504
2678
 
2505
2679
  _param = self._get_instance_serialize(
2506
2680
  project_id=project_id,
2681
+ region=region,
2507
2682
  instance_id=instance_id,
2508
2683
  _request_auth=_request_auth,
2509
2684
  _content_type=_content_type,
@@ -2514,6 +2689,7 @@ class DefaultApi:
2514
2689
  _response_types_map: Dict[str, Optional[str]] = {
2515
2690
  "200": "InstanceResponse",
2516
2691
  "400": "Error",
2692
+ "401": "Error",
2517
2693
  "405": None,
2518
2694
  "500": None,
2519
2695
  }
@@ -2528,6 +2704,7 @@ class DefaultApi:
2528
2704
  def get_instance_with_http_info(
2529
2705
  self,
2530
2706
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2707
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2531
2708
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2532
2709
  _request_timeout: Union[
2533
2710
  None,
@@ -2545,6 +2722,8 @@ class DefaultApi:
2545
2722
 
2546
2723
  :param project_id: Project ID (required)
2547
2724
  :type project_id: str
2725
+ :param region: The region which should be addressed (required)
2726
+ :type region: str
2548
2727
  :param instance_id: Instance ID (required)
2549
2728
  :type instance_id: str
2550
2729
  :param _request_timeout: timeout setting for this request. If one
@@ -2567,10 +2746,11 @@ class DefaultApi:
2567
2746
  in the spec for a single request.
2568
2747
  :type _host_index: int, optional
2569
2748
  :return: Returns the result object.
2570
- """ # noqa: E501 docstring might be too long
2749
+ """ # noqa: E501
2571
2750
 
2572
2751
  _param = self._get_instance_serialize(
2573
2752
  project_id=project_id,
2753
+ region=region,
2574
2754
  instance_id=instance_id,
2575
2755
  _request_auth=_request_auth,
2576
2756
  _content_type=_content_type,
@@ -2581,6 +2761,7 @@ class DefaultApi:
2581
2761
  _response_types_map: Dict[str, Optional[str]] = {
2582
2762
  "200": "InstanceResponse",
2583
2763
  "400": "Error",
2764
+ "401": "Error",
2584
2765
  "405": None,
2585
2766
  "500": None,
2586
2767
  }
@@ -2595,6 +2776,7 @@ class DefaultApi:
2595
2776
  def get_instance_without_preload_content(
2596
2777
  self,
2597
2778
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2779
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2598
2780
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2599
2781
  _request_timeout: Union[
2600
2782
  None,
@@ -2612,6 +2794,8 @@ class DefaultApi:
2612
2794
 
2613
2795
  :param project_id: Project ID (required)
2614
2796
  :type project_id: str
2797
+ :param region: The region which should be addressed (required)
2798
+ :type region: str
2615
2799
  :param instance_id: Instance ID (required)
2616
2800
  :type instance_id: str
2617
2801
  :param _request_timeout: timeout setting for this request. If one
@@ -2634,10 +2818,11 @@ class DefaultApi:
2634
2818
  in the spec for a single request.
2635
2819
  :type _host_index: int, optional
2636
2820
  :return: Returns the result object.
2637
- """ # noqa: E501 docstring might be too long
2821
+ """ # noqa: E501
2638
2822
 
2639
2823
  _param = self._get_instance_serialize(
2640
2824
  project_id=project_id,
2825
+ region=region,
2641
2826
  instance_id=instance_id,
2642
2827
  _request_auth=_request_auth,
2643
2828
  _content_type=_content_type,
@@ -2648,6 +2833,7 @@ class DefaultApi:
2648
2833
  _response_types_map: Dict[str, Optional[str]] = {
2649
2834
  "200": "InstanceResponse",
2650
2835
  "400": "Error",
2836
+ "401": "Error",
2651
2837
  "405": None,
2652
2838
  "500": None,
2653
2839
  }
@@ -2657,6 +2843,7 @@ class DefaultApi:
2657
2843
  def _get_instance_serialize(
2658
2844
  self,
2659
2845
  project_id,
2846
+ region,
2660
2847
  instance_id,
2661
2848
  _request_auth,
2662
2849
  _content_type,
@@ -2672,12 +2859,14 @@ class DefaultApi:
2672
2859
  _query_params: List[Tuple[str, str]] = []
2673
2860
  _header_params: Dict[str, Optional[str]] = _headers or {}
2674
2861
  _form_params: List[Tuple[str, str]] = []
2675
- _files: Dict[str, Union[str, bytes]] = {}
2862
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2676
2863
  _body_params: Optional[bytes] = None
2677
2864
 
2678
2865
  # process the path parameters
2679
2866
  if project_id is not None:
2680
2867
  _path_params["projectId"] = project_id
2868
+ if region is not None:
2869
+ _path_params["region"] = region
2681
2870
  if instance_id is not None:
2682
2871
  _path_params["instanceId"] = instance_id
2683
2872
  # process the query parameters
@@ -2694,7 +2883,7 @@ class DefaultApi:
2694
2883
 
2695
2884
  return self.api_client.param_serialize(
2696
2885
  method="GET",
2697
- resource_path="/v1/projects/{projectId}/instances/{instanceId}",
2886
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
2698
2887
  path_params=_path_params,
2699
2888
  query_params=_query_params,
2700
2889
  header_params=_header_params,
@@ -2711,6 +2900,7 @@ class DefaultApi:
2711
2900
  def get_user(
2712
2901
  self,
2713
2902
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2903
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2714
2904
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2715
2905
  user_id: Annotated[StrictStr, Field(description="User ID")],
2716
2906
  _request_timeout: Union[
@@ -2729,6 +2919,8 @@ class DefaultApi:
2729
2919
 
2730
2920
  :param project_id: Project ID (required)
2731
2921
  :type project_id: str
2922
+ :param region: The region which should be addressed (required)
2923
+ :type region: str
2732
2924
  :param instance_id: Instance ID (required)
2733
2925
  :type instance_id: str
2734
2926
  :param user_id: User ID (required)
@@ -2753,10 +2945,11 @@ class DefaultApi:
2753
2945
  in the spec for a single request.
2754
2946
  :type _host_index: int, optional
2755
2947
  :return: Returns the result object.
2756
- """ # noqa: E501 docstring might be too long
2948
+ """ # noqa: E501
2757
2949
 
2758
2950
  _param = self._get_user_serialize(
2759
2951
  project_id=project_id,
2952
+ region=region,
2760
2953
  instance_id=instance_id,
2761
2954
  user_id=user_id,
2762
2955
  _request_auth=_request_auth,
@@ -2768,6 +2961,7 @@ class DefaultApi:
2768
2961
  _response_types_map: Dict[str, Optional[str]] = {
2769
2962
  "200": "GetUserResponse",
2770
2963
  "400": "Error",
2964
+ "401": "Error",
2771
2965
  "405": None,
2772
2966
  "500": None,
2773
2967
  }
@@ -2782,6 +2976,7 @@ class DefaultApi:
2782
2976
  def get_user_with_http_info(
2783
2977
  self,
2784
2978
  project_id: Annotated[StrictStr, Field(description="Project ID")],
2979
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2785
2980
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2786
2981
  user_id: Annotated[StrictStr, Field(description="User ID")],
2787
2982
  _request_timeout: Union[
@@ -2800,6 +2995,8 @@ class DefaultApi:
2800
2995
 
2801
2996
  :param project_id: Project ID (required)
2802
2997
  :type project_id: str
2998
+ :param region: The region which should be addressed (required)
2999
+ :type region: str
2803
3000
  :param instance_id: Instance ID (required)
2804
3001
  :type instance_id: str
2805
3002
  :param user_id: User ID (required)
@@ -2824,10 +3021,11 @@ class DefaultApi:
2824
3021
  in the spec for a single request.
2825
3022
  :type _host_index: int, optional
2826
3023
  :return: Returns the result object.
2827
- """ # noqa: E501 docstring might be too long
3024
+ """ # noqa: E501
2828
3025
 
2829
3026
  _param = self._get_user_serialize(
2830
3027
  project_id=project_id,
3028
+ region=region,
2831
3029
  instance_id=instance_id,
2832
3030
  user_id=user_id,
2833
3031
  _request_auth=_request_auth,
@@ -2839,6 +3037,7 @@ class DefaultApi:
2839
3037
  _response_types_map: Dict[str, Optional[str]] = {
2840
3038
  "200": "GetUserResponse",
2841
3039
  "400": "Error",
3040
+ "401": "Error",
2842
3041
  "405": None,
2843
3042
  "500": None,
2844
3043
  }
@@ -2853,6 +3052,7 @@ class DefaultApi:
2853
3052
  def get_user_without_preload_content(
2854
3053
  self,
2855
3054
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3055
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2856
3056
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2857
3057
  user_id: Annotated[StrictStr, Field(description="User ID")],
2858
3058
  _request_timeout: Union[
@@ -2871,6 +3071,8 @@ class DefaultApi:
2871
3071
 
2872
3072
  :param project_id: Project ID (required)
2873
3073
  :type project_id: str
3074
+ :param region: The region which should be addressed (required)
3075
+ :type region: str
2874
3076
  :param instance_id: Instance ID (required)
2875
3077
  :type instance_id: str
2876
3078
  :param user_id: User ID (required)
@@ -2895,10 +3097,11 @@ class DefaultApi:
2895
3097
  in the spec for a single request.
2896
3098
  :type _host_index: int, optional
2897
3099
  :return: Returns the result object.
2898
- """ # noqa: E501 docstring might be too long
3100
+ """ # noqa: E501
2899
3101
 
2900
3102
  _param = self._get_user_serialize(
2901
3103
  project_id=project_id,
3104
+ region=region,
2902
3105
  instance_id=instance_id,
2903
3106
  user_id=user_id,
2904
3107
  _request_auth=_request_auth,
@@ -2910,6 +3113,7 @@ class DefaultApi:
2910
3113
  _response_types_map: Dict[str, Optional[str]] = {
2911
3114
  "200": "GetUserResponse",
2912
3115
  "400": "Error",
3116
+ "401": "Error",
2913
3117
  "405": None,
2914
3118
  "500": None,
2915
3119
  }
@@ -2919,6 +3123,7 @@ class DefaultApi:
2919
3123
  def _get_user_serialize(
2920
3124
  self,
2921
3125
  project_id,
3126
+ region,
2922
3127
  instance_id,
2923
3128
  user_id,
2924
3129
  _request_auth,
@@ -2935,12 +3140,14 @@ class DefaultApi:
2935
3140
  _query_params: List[Tuple[str, str]] = []
2936
3141
  _header_params: Dict[str, Optional[str]] = _headers or {}
2937
3142
  _form_params: List[Tuple[str, str]] = []
2938
- _files: Dict[str, Union[str, bytes]] = {}
3143
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2939
3144
  _body_params: Optional[bytes] = None
2940
3145
 
2941
3146
  # process the path parameters
2942
3147
  if project_id is not None:
2943
3148
  _path_params["projectId"] = project_id
3149
+ if region is not None:
3150
+ _path_params["region"] = region
2944
3151
  if instance_id is not None:
2945
3152
  _path_params["instanceId"] = instance_id
2946
3153
  if user_id is not None:
@@ -2959,7 +3166,7 @@ class DefaultApi:
2959
3166
 
2960
3167
  return self.api_client.param_serialize(
2961
3168
  method="GET",
2962
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
3169
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
2963
3170
  path_params=_path_params,
2964
3171
  query_params=_query_params,
2965
3172
  header_params=_header_params,
@@ -2976,6 +3183,7 @@ class DefaultApi:
2976
3183
  def list_backups(
2977
3184
  self,
2978
3185
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3186
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
2979
3187
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
2980
3188
  _request_timeout: Union[
2981
3189
  None,
@@ -2993,6 +3201,8 @@ class DefaultApi:
2993
3201
 
2994
3202
  :param project_id: Project ID (required)
2995
3203
  :type project_id: str
3204
+ :param region: The region which should be addressed (required)
3205
+ :type region: str
2996
3206
  :param instance_id: Instance ID (required)
2997
3207
  :type instance_id: str
2998
3208
  :param _request_timeout: timeout setting for this request. If one
@@ -3015,10 +3225,11 @@ class DefaultApi:
3015
3225
  in the spec for a single request.
3016
3226
  :type _host_index: int, optional
3017
3227
  :return: Returns the result object.
3018
- """ # noqa: E501 docstring might be too long
3228
+ """ # noqa: E501
3019
3229
 
3020
3230
  _param = self._list_backups_serialize(
3021
3231
  project_id=project_id,
3232
+ region=region,
3022
3233
  instance_id=instance_id,
3023
3234
  _request_auth=_request_auth,
3024
3235
  _content_type=_content_type,
@@ -3029,6 +3240,7 @@ class DefaultApi:
3029
3240
  _response_types_map: Dict[str, Optional[str]] = {
3030
3241
  "200": "ListBackupsResponse",
3031
3242
  "400": "Error",
3243
+ "401": "Error",
3032
3244
  "404": None,
3033
3245
  "405": None,
3034
3246
  "500": None,
@@ -3044,6 +3256,7 @@ class DefaultApi:
3044
3256
  def list_backups_with_http_info(
3045
3257
  self,
3046
3258
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3259
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3047
3260
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3048
3261
  _request_timeout: Union[
3049
3262
  None,
@@ -3061,6 +3274,8 @@ class DefaultApi:
3061
3274
 
3062
3275
  :param project_id: Project ID (required)
3063
3276
  :type project_id: str
3277
+ :param region: The region which should be addressed (required)
3278
+ :type region: str
3064
3279
  :param instance_id: Instance ID (required)
3065
3280
  :type instance_id: str
3066
3281
  :param _request_timeout: timeout setting for this request. If one
@@ -3083,10 +3298,11 @@ class DefaultApi:
3083
3298
  in the spec for a single request.
3084
3299
  :type _host_index: int, optional
3085
3300
  :return: Returns the result object.
3086
- """ # noqa: E501 docstring might be too long
3301
+ """ # noqa: E501
3087
3302
 
3088
3303
  _param = self._list_backups_serialize(
3089
3304
  project_id=project_id,
3305
+ region=region,
3090
3306
  instance_id=instance_id,
3091
3307
  _request_auth=_request_auth,
3092
3308
  _content_type=_content_type,
@@ -3097,6 +3313,7 @@ class DefaultApi:
3097
3313
  _response_types_map: Dict[str, Optional[str]] = {
3098
3314
  "200": "ListBackupsResponse",
3099
3315
  "400": "Error",
3316
+ "401": "Error",
3100
3317
  "404": None,
3101
3318
  "405": None,
3102
3319
  "500": None,
@@ -3112,6 +3329,7 @@ class DefaultApi:
3112
3329
  def list_backups_without_preload_content(
3113
3330
  self,
3114
3331
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3332
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3115
3333
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3116
3334
  _request_timeout: Union[
3117
3335
  None,
@@ -3129,6 +3347,8 @@ class DefaultApi:
3129
3347
 
3130
3348
  :param project_id: Project ID (required)
3131
3349
  :type project_id: str
3350
+ :param region: The region which should be addressed (required)
3351
+ :type region: str
3132
3352
  :param instance_id: Instance ID (required)
3133
3353
  :type instance_id: str
3134
3354
  :param _request_timeout: timeout setting for this request. If one
@@ -3151,10 +3371,11 @@ class DefaultApi:
3151
3371
  in the spec for a single request.
3152
3372
  :type _host_index: int, optional
3153
3373
  :return: Returns the result object.
3154
- """ # noqa: E501 docstring might be too long
3374
+ """ # noqa: E501
3155
3375
 
3156
3376
  _param = self._list_backups_serialize(
3157
3377
  project_id=project_id,
3378
+ region=region,
3158
3379
  instance_id=instance_id,
3159
3380
  _request_auth=_request_auth,
3160
3381
  _content_type=_content_type,
@@ -3165,6 +3386,7 @@ class DefaultApi:
3165
3386
  _response_types_map: Dict[str, Optional[str]] = {
3166
3387
  "200": "ListBackupsResponse",
3167
3388
  "400": "Error",
3389
+ "401": "Error",
3168
3390
  "404": None,
3169
3391
  "405": None,
3170
3392
  "500": None,
@@ -3175,6 +3397,7 @@ class DefaultApi:
3175
3397
  def _list_backups_serialize(
3176
3398
  self,
3177
3399
  project_id,
3400
+ region,
3178
3401
  instance_id,
3179
3402
  _request_auth,
3180
3403
  _content_type,
@@ -3190,12 +3413,14 @@ class DefaultApi:
3190
3413
  _query_params: List[Tuple[str, str]] = []
3191
3414
  _header_params: Dict[str, Optional[str]] = _headers or {}
3192
3415
  _form_params: List[Tuple[str, str]] = []
3193
- _files: Dict[str, Union[str, bytes]] = {}
3416
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3194
3417
  _body_params: Optional[bytes] = None
3195
3418
 
3196
3419
  # process the path parameters
3197
3420
  if project_id is not None:
3198
3421
  _path_params["projectId"] = project_id
3422
+ if region is not None:
3423
+ _path_params["region"] = region
3199
3424
  if instance_id is not None:
3200
3425
  _path_params["instanceId"] = instance_id
3201
3426
  # process the query parameters
@@ -3212,7 +3437,7 @@ class DefaultApi:
3212
3437
 
3213
3438
  return self.api_client.param_serialize(
3214
3439
  method="GET",
3215
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups",
3440
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
3216
3441
  path_params=_path_params,
3217
3442
  query_params=_query_params,
3218
3443
  header_params=_header_params,
@@ -3229,6 +3454,7 @@ class DefaultApi:
3229
3454
  def list_database_parameters(
3230
3455
  self,
3231
3456
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3457
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3232
3458
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3233
3459
  _request_timeout: Union[
3234
3460
  None,
@@ -3246,6 +3472,8 @@ class DefaultApi:
3246
3472
 
3247
3473
  :param project_id: Project ID (required)
3248
3474
  :type project_id: str
3475
+ :param region: The region which should be addressed (required)
3476
+ :type region: str
3249
3477
  :param instance_id: Instance ID (required)
3250
3478
  :type instance_id: str
3251
3479
  :param _request_timeout: timeout setting for this request. If one
@@ -3268,10 +3496,11 @@ class DefaultApi:
3268
3496
  in the spec for a single request.
3269
3497
  :type _host_index: int, optional
3270
3498
  :return: Returns the result object.
3271
- """ # noqa: E501 docstring might be too long
3499
+ """ # noqa: E501
3272
3500
 
3273
3501
  _param = self._list_database_parameters_serialize(
3274
3502
  project_id=project_id,
3503
+ region=region,
3275
3504
  instance_id=instance_id,
3276
3505
  _request_auth=_request_auth,
3277
3506
  _content_type=_content_type,
@@ -3282,6 +3511,7 @@ class DefaultApi:
3282
3511
  _response_types_map: Dict[str, Optional[str]] = {
3283
3512
  "200": "PostgresDatabaseParameterResponse",
3284
3513
  "400": "Error",
3514
+ "401": "Error",
3285
3515
  "405": None,
3286
3516
  "500": None,
3287
3517
  }
@@ -3296,6 +3526,7 @@ class DefaultApi:
3296
3526
  def list_database_parameters_with_http_info(
3297
3527
  self,
3298
3528
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3529
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3299
3530
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3300
3531
  _request_timeout: Union[
3301
3532
  None,
@@ -3313,6 +3544,8 @@ class DefaultApi:
3313
3544
 
3314
3545
  :param project_id: Project ID (required)
3315
3546
  :type project_id: str
3547
+ :param region: The region which should be addressed (required)
3548
+ :type region: str
3316
3549
  :param instance_id: Instance ID (required)
3317
3550
  :type instance_id: str
3318
3551
  :param _request_timeout: timeout setting for this request. If one
@@ -3335,10 +3568,11 @@ class DefaultApi:
3335
3568
  in the spec for a single request.
3336
3569
  :type _host_index: int, optional
3337
3570
  :return: Returns the result object.
3338
- """ # noqa: E501 docstring might be too long
3571
+ """ # noqa: E501
3339
3572
 
3340
3573
  _param = self._list_database_parameters_serialize(
3341
3574
  project_id=project_id,
3575
+ region=region,
3342
3576
  instance_id=instance_id,
3343
3577
  _request_auth=_request_auth,
3344
3578
  _content_type=_content_type,
@@ -3349,6 +3583,7 @@ class DefaultApi:
3349
3583
  _response_types_map: Dict[str, Optional[str]] = {
3350
3584
  "200": "PostgresDatabaseParameterResponse",
3351
3585
  "400": "Error",
3586
+ "401": "Error",
3352
3587
  "405": None,
3353
3588
  "500": None,
3354
3589
  }
@@ -3363,6 +3598,7 @@ class DefaultApi:
3363
3598
  def list_database_parameters_without_preload_content(
3364
3599
  self,
3365
3600
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3601
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3366
3602
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3367
3603
  _request_timeout: Union[
3368
3604
  None,
@@ -3380,6 +3616,8 @@ class DefaultApi:
3380
3616
 
3381
3617
  :param project_id: Project ID (required)
3382
3618
  :type project_id: str
3619
+ :param region: The region which should be addressed (required)
3620
+ :type region: str
3383
3621
  :param instance_id: Instance ID (required)
3384
3622
  :type instance_id: str
3385
3623
  :param _request_timeout: timeout setting for this request. If one
@@ -3402,10 +3640,11 @@ class DefaultApi:
3402
3640
  in the spec for a single request.
3403
3641
  :type _host_index: int, optional
3404
3642
  :return: Returns the result object.
3405
- """ # noqa: E501 docstring might be too long
3643
+ """ # noqa: E501
3406
3644
 
3407
3645
  _param = self._list_database_parameters_serialize(
3408
3646
  project_id=project_id,
3647
+ region=region,
3409
3648
  instance_id=instance_id,
3410
3649
  _request_auth=_request_auth,
3411
3650
  _content_type=_content_type,
@@ -3416,6 +3655,7 @@ class DefaultApi:
3416
3655
  _response_types_map: Dict[str, Optional[str]] = {
3417
3656
  "200": "PostgresDatabaseParameterResponse",
3418
3657
  "400": "Error",
3658
+ "401": "Error",
3419
3659
  "405": None,
3420
3660
  "500": None,
3421
3661
  }
@@ -3425,6 +3665,7 @@ class DefaultApi:
3425
3665
  def _list_database_parameters_serialize(
3426
3666
  self,
3427
3667
  project_id,
3668
+ region,
3428
3669
  instance_id,
3429
3670
  _request_auth,
3430
3671
  _content_type,
@@ -3440,12 +3681,14 @@ class DefaultApi:
3440
3681
  _query_params: List[Tuple[str, str]] = []
3441
3682
  _header_params: Dict[str, Optional[str]] = _headers or {}
3442
3683
  _form_params: List[Tuple[str, str]] = []
3443
- _files: Dict[str, Union[str, bytes]] = {}
3684
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3444
3685
  _body_params: Optional[bytes] = None
3445
3686
 
3446
3687
  # process the path parameters
3447
3688
  if project_id is not None:
3448
3689
  _path_params["projectId"] = project_id
3690
+ if region is not None:
3691
+ _path_params["region"] = region
3449
3692
  if instance_id is not None:
3450
3693
  _path_params["instanceId"] = instance_id
3451
3694
  # process the query parameters
@@ -3462,7 +3705,7 @@ class DefaultApi:
3462
3705
 
3463
3706
  return self.api_client.param_serialize(
3464
3707
  method="GET",
3465
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/parameter",
3708
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/parameter",
3466
3709
  path_params=_path_params,
3467
3710
  query_params=_query_params,
3468
3711
  header_params=_header_params,
@@ -3479,6 +3722,7 @@ class DefaultApi:
3479
3722
  def list_databases(
3480
3723
  self,
3481
3724
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3725
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3482
3726
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3483
3727
  _request_timeout: Union[
3484
3728
  None,
@@ -3496,6 +3740,8 @@ class DefaultApi:
3496
3740
 
3497
3741
  :param project_id: Project ID (required)
3498
3742
  :type project_id: str
3743
+ :param region: The region which should be addressed (required)
3744
+ :type region: str
3499
3745
  :param instance_id: Instance ID (required)
3500
3746
  :type instance_id: str
3501
3747
  :param _request_timeout: timeout setting for this request. If one
@@ -3518,10 +3764,11 @@ class DefaultApi:
3518
3764
  in the spec for a single request.
3519
3765
  :type _host_index: int, optional
3520
3766
  :return: Returns the result object.
3521
- """ # noqa: E501 docstring might be too long
3767
+ """ # noqa: E501
3522
3768
 
3523
3769
  _param = self._list_databases_serialize(
3524
3770
  project_id=project_id,
3771
+ region=region,
3525
3772
  instance_id=instance_id,
3526
3773
  _request_auth=_request_auth,
3527
3774
  _content_type=_content_type,
@@ -3532,6 +3779,7 @@ class DefaultApi:
3532
3779
  _response_types_map: Dict[str, Optional[str]] = {
3533
3780
  "200": "InstanceListDatabasesResponse",
3534
3781
  "400": "Error",
3782
+ "401": "Error",
3535
3783
  "405": None,
3536
3784
  "500": None,
3537
3785
  }
@@ -3546,6 +3794,7 @@ class DefaultApi:
3546
3794
  def list_databases_with_http_info(
3547
3795
  self,
3548
3796
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3797
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3549
3798
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3550
3799
  _request_timeout: Union[
3551
3800
  None,
@@ -3563,6 +3812,8 @@ class DefaultApi:
3563
3812
 
3564
3813
  :param project_id: Project ID (required)
3565
3814
  :type project_id: str
3815
+ :param region: The region which should be addressed (required)
3816
+ :type region: str
3566
3817
  :param instance_id: Instance ID (required)
3567
3818
  :type instance_id: str
3568
3819
  :param _request_timeout: timeout setting for this request. If one
@@ -3585,10 +3836,11 @@ class DefaultApi:
3585
3836
  in the spec for a single request.
3586
3837
  :type _host_index: int, optional
3587
3838
  :return: Returns the result object.
3588
- """ # noqa: E501 docstring might be too long
3839
+ """ # noqa: E501
3589
3840
 
3590
3841
  _param = self._list_databases_serialize(
3591
3842
  project_id=project_id,
3843
+ region=region,
3592
3844
  instance_id=instance_id,
3593
3845
  _request_auth=_request_auth,
3594
3846
  _content_type=_content_type,
@@ -3599,6 +3851,7 @@ class DefaultApi:
3599
3851
  _response_types_map: Dict[str, Optional[str]] = {
3600
3852
  "200": "InstanceListDatabasesResponse",
3601
3853
  "400": "Error",
3854
+ "401": "Error",
3602
3855
  "405": None,
3603
3856
  "500": None,
3604
3857
  }
@@ -3613,6 +3866,7 @@ class DefaultApi:
3613
3866
  def list_databases_without_preload_content(
3614
3867
  self,
3615
3868
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3869
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3616
3870
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
3617
3871
  _request_timeout: Union[
3618
3872
  None,
@@ -3630,6 +3884,8 @@ class DefaultApi:
3630
3884
 
3631
3885
  :param project_id: Project ID (required)
3632
3886
  :type project_id: str
3887
+ :param region: The region which should be addressed (required)
3888
+ :type region: str
3633
3889
  :param instance_id: Instance ID (required)
3634
3890
  :type instance_id: str
3635
3891
  :param _request_timeout: timeout setting for this request. If one
@@ -3652,10 +3908,11 @@ class DefaultApi:
3652
3908
  in the spec for a single request.
3653
3909
  :type _host_index: int, optional
3654
3910
  :return: Returns the result object.
3655
- """ # noqa: E501 docstring might be too long
3911
+ """ # noqa: E501
3656
3912
 
3657
3913
  _param = self._list_databases_serialize(
3658
3914
  project_id=project_id,
3915
+ region=region,
3659
3916
  instance_id=instance_id,
3660
3917
  _request_auth=_request_auth,
3661
3918
  _content_type=_content_type,
@@ -3666,6 +3923,7 @@ class DefaultApi:
3666
3923
  _response_types_map: Dict[str, Optional[str]] = {
3667
3924
  "200": "InstanceListDatabasesResponse",
3668
3925
  "400": "Error",
3926
+ "401": "Error",
3669
3927
  "405": None,
3670
3928
  "500": None,
3671
3929
  }
@@ -3675,6 +3933,7 @@ class DefaultApi:
3675
3933
  def _list_databases_serialize(
3676
3934
  self,
3677
3935
  project_id,
3936
+ region,
3678
3937
  instance_id,
3679
3938
  _request_auth,
3680
3939
  _content_type,
@@ -3690,12 +3949,14 @@ class DefaultApi:
3690
3949
  _query_params: List[Tuple[str, str]] = []
3691
3950
  _header_params: Dict[str, Optional[str]] = _headers or {}
3692
3951
  _form_params: List[Tuple[str, str]] = []
3693
- _files: Dict[str, Union[str, bytes]] = {}
3952
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3694
3953
  _body_params: Optional[bytes] = None
3695
3954
 
3696
3955
  # process the path parameters
3697
3956
  if project_id is not None:
3698
3957
  _path_params["projectId"] = project_id
3958
+ if region is not None:
3959
+ _path_params["region"] = region
3699
3960
  if instance_id is not None:
3700
3961
  _path_params["instanceId"] = instance_id
3701
3962
  # process the query parameters
@@ -3712,7 +3973,7 @@ class DefaultApi:
3712
3973
 
3713
3974
  return self.api_client.param_serialize(
3714
3975
  method="GET",
3715
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/databases",
3976
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
3716
3977
  path_params=_path_params,
3717
3978
  query_params=_query_params,
3718
3979
  header_params=_header_params,
@@ -3729,6 +3990,7 @@ class DefaultApi:
3729
3990
  def list_flavors(
3730
3991
  self,
3731
3992
  project_id: Annotated[StrictStr, Field(description="Project ID")],
3993
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3732
3994
  _request_timeout: Union[
3733
3995
  None,
3734
3996
  Annotated[StrictFloat, Field(gt=0)],
@@ -3745,6 +4007,8 @@ class DefaultApi:
3745
4007
 
3746
4008
  :param project_id: Project ID (required)
3747
4009
  :type project_id: str
4010
+ :param region: The region which should be addressed (required)
4011
+ :type region: str
3748
4012
  :param _request_timeout: timeout setting for this request. If one
3749
4013
  number provided, it will be total request
3750
4014
  timeout. It can also be a pair (tuple) of
@@ -3765,10 +4029,11 @@ class DefaultApi:
3765
4029
  in the spec for a single request.
3766
4030
  :type _host_index: int, optional
3767
4031
  :return: Returns the result object.
3768
- """ # noqa: E501 docstring might be too long
4032
+ """ # noqa: E501
3769
4033
 
3770
4034
  _param = self._list_flavors_serialize(
3771
4035
  project_id=project_id,
4036
+ region=region,
3772
4037
  _request_auth=_request_auth,
3773
4038
  _content_type=_content_type,
3774
4039
  _headers=_headers,
@@ -3778,6 +4043,7 @@ class DefaultApi:
3778
4043
  _response_types_map: Dict[str, Optional[str]] = {
3779
4044
  "200": "ListFlavorsResponse",
3780
4045
  "400": "Error",
4046
+ "401": "Error",
3781
4047
  "405": None,
3782
4048
  "500": None,
3783
4049
  }
@@ -3792,6 +4058,7 @@ class DefaultApi:
3792
4058
  def list_flavors_with_http_info(
3793
4059
  self,
3794
4060
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4061
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3795
4062
  _request_timeout: Union[
3796
4063
  None,
3797
4064
  Annotated[StrictFloat, Field(gt=0)],
@@ -3808,6 +4075,8 @@ class DefaultApi:
3808
4075
 
3809
4076
  :param project_id: Project ID (required)
3810
4077
  :type project_id: str
4078
+ :param region: The region which should be addressed (required)
4079
+ :type region: str
3811
4080
  :param _request_timeout: timeout setting for this request. If one
3812
4081
  number provided, it will be total request
3813
4082
  timeout. It can also be a pair (tuple) of
@@ -3828,10 +4097,11 @@ class DefaultApi:
3828
4097
  in the spec for a single request.
3829
4098
  :type _host_index: int, optional
3830
4099
  :return: Returns the result object.
3831
- """ # noqa: E501 docstring might be too long
4100
+ """ # noqa: E501
3832
4101
 
3833
4102
  _param = self._list_flavors_serialize(
3834
4103
  project_id=project_id,
4104
+ region=region,
3835
4105
  _request_auth=_request_auth,
3836
4106
  _content_type=_content_type,
3837
4107
  _headers=_headers,
@@ -3841,6 +4111,7 @@ class DefaultApi:
3841
4111
  _response_types_map: Dict[str, Optional[str]] = {
3842
4112
  "200": "ListFlavorsResponse",
3843
4113
  "400": "Error",
4114
+ "401": "Error",
3844
4115
  "405": None,
3845
4116
  "500": None,
3846
4117
  }
@@ -3855,6 +4126,7 @@ class DefaultApi:
3855
4126
  def list_flavors_without_preload_content(
3856
4127
  self,
3857
4128
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4129
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3858
4130
  _request_timeout: Union[
3859
4131
  None,
3860
4132
  Annotated[StrictFloat, Field(gt=0)],
@@ -3871,6 +4143,8 @@ class DefaultApi:
3871
4143
 
3872
4144
  :param project_id: Project ID (required)
3873
4145
  :type project_id: str
4146
+ :param region: The region which should be addressed (required)
4147
+ :type region: str
3874
4148
  :param _request_timeout: timeout setting for this request. If one
3875
4149
  number provided, it will be total request
3876
4150
  timeout. It can also be a pair (tuple) of
@@ -3891,10 +4165,11 @@ class DefaultApi:
3891
4165
  in the spec for a single request.
3892
4166
  :type _host_index: int, optional
3893
4167
  :return: Returns the result object.
3894
- """ # noqa: E501 docstring might be too long
4168
+ """ # noqa: E501
3895
4169
 
3896
4170
  _param = self._list_flavors_serialize(
3897
4171
  project_id=project_id,
4172
+ region=region,
3898
4173
  _request_auth=_request_auth,
3899
4174
  _content_type=_content_type,
3900
4175
  _headers=_headers,
@@ -3904,6 +4179,7 @@ class DefaultApi:
3904
4179
  _response_types_map: Dict[str, Optional[str]] = {
3905
4180
  "200": "ListFlavorsResponse",
3906
4181
  "400": "Error",
4182
+ "401": "Error",
3907
4183
  "405": None,
3908
4184
  "500": None,
3909
4185
  }
@@ -3913,6 +4189,7 @@ class DefaultApi:
3913
4189
  def _list_flavors_serialize(
3914
4190
  self,
3915
4191
  project_id,
4192
+ region,
3916
4193
  _request_auth,
3917
4194
  _content_type,
3918
4195
  _headers,
@@ -3927,12 +4204,14 @@ class DefaultApi:
3927
4204
  _query_params: List[Tuple[str, str]] = []
3928
4205
  _header_params: Dict[str, Optional[str]] = _headers or {}
3929
4206
  _form_params: List[Tuple[str, str]] = []
3930
- _files: Dict[str, Union[str, bytes]] = {}
4207
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3931
4208
  _body_params: Optional[bytes] = None
3932
4209
 
3933
4210
  # process the path parameters
3934
4211
  if project_id is not None:
3935
4212
  _path_params["projectId"] = project_id
4213
+ if region is not None:
4214
+ _path_params["region"] = region
3936
4215
  # process the query parameters
3937
4216
  # process the header parameters
3938
4217
  # process the form parameters
@@ -3947,7 +4226,7 @@ class DefaultApi:
3947
4226
 
3948
4227
  return self.api_client.param_serialize(
3949
4228
  method="GET",
3950
- resource_path="/v1/projects/{projectId}/flavors",
4229
+ resource_path="/v2/projects/{projectId}/regions/{region}/flavors",
3951
4230
  path_params=_path_params,
3952
4231
  query_params=_query_params,
3953
4232
  header_params=_header_params,
@@ -3964,6 +4243,7 @@ class DefaultApi:
3964
4243
  def list_instances(
3965
4244
  self,
3966
4245
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4246
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
3967
4247
  _request_timeout: Union[
3968
4248
  None,
3969
4249
  Annotated[StrictFloat, Field(gt=0)],
@@ -3980,6 +4260,8 @@ class DefaultApi:
3980
4260
 
3981
4261
  :param project_id: Project ID (required)
3982
4262
  :type project_id: str
4263
+ :param region: The region which should be addressed (required)
4264
+ :type region: str
3983
4265
  :param _request_timeout: timeout setting for this request. If one
3984
4266
  number provided, it will be total request
3985
4267
  timeout. It can also be a pair (tuple) of
@@ -4000,10 +4282,11 @@ class DefaultApi:
4000
4282
  in the spec for a single request.
4001
4283
  :type _host_index: int, optional
4002
4284
  :return: Returns the result object.
4003
- """ # noqa: E501 docstring might be too long
4285
+ """ # noqa: E501
4004
4286
 
4005
4287
  _param = self._list_instances_serialize(
4006
4288
  project_id=project_id,
4289
+ region=region,
4007
4290
  _request_auth=_request_auth,
4008
4291
  _content_type=_content_type,
4009
4292
  _headers=_headers,
@@ -4013,6 +4296,7 @@ class DefaultApi:
4013
4296
  _response_types_map: Dict[str, Optional[str]] = {
4014
4297
  "200": "ListInstancesResponse",
4015
4298
  "400": "Error",
4299
+ "401": "Error",
4016
4300
  "405": None,
4017
4301
  "500": None,
4018
4302
  }
@@ -4027,6 +4311,7 @@ class DefaultApi:
4027
4311
  def list_instances_with_http_info(
4028
4312
  self,
4029
4313
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4314
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4030
4315
  _request_timeout: Union[
4031
4316
  None,
4032
4317
  Annotated[StrictFloat, Field(gt=0)],
@@ -4043,6 +4328,8 @@ class DefaultApi:
4043
4328
 
4044
4329
  :param project_id: Project ID (required)
4045
4330
  :type project_id: str
4331
+ :param region: The region which should be addressed (required)
4332
+ :type region: str
4046
4333
  :param _request_timeout: timeout setting for this request. If one
4047
4334
  number provided, it will be total request
4048
4335
  timeout. It can also be a pair (tuple) of
@@ -4063,10 +4350,11 @@ class DefaultApi:
4063
4350
  in the spec for a single request.
4064
4351
  :type _host_index: int, optional
4065
4352
  :return: Returns the result object.
4066
- """ # noqa: E501 docstring might be too long
4353
+ """ # noqa: E501
4067
4354
 
4068
4355
  _param = self._list_instances_serialize(
4069
4356
  project_id=project_id,
4357
+ region=region,
4070
4358
  _request_auth=_request_auth,
4071
4359
  _content_type=_content_type,
4072
4360
  _headers=_headers,
@@ -4076,6 +4364,7 @@ class DefaultApi:
4076
4364
  _response_types_map: Dict[str, Optional[str]] = {
4077
4365
  "200": "ListInstancesResponse",
4078
4366
  "400": "Error",
4367
+ "401": "Error",
4079
4368
  "405": None,
4080
4369
  "500": None,
4081
4370
  }
@@ -4090,6 +4379,7 @@ class DefaultApi:
4090
4379
  def list_instances_without_preload_content(
4091
4380
  self,
4092
4381
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4382
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4093
4383
  _request_timeout: Union[
4094
4384
  None,
4095
4385
  Annotated[StrictFloat, Field(gt=0)],
@@ -4106,6 +4396,8 @@ class DefaultApi:
4106
4396
 
4107
4397
  :param project_id: Project ID (required)
4108
4398
  :type project_id: str
4399
+ :param region: The region which should be addressed (required)
4400
+ :type region: str
4109
4401
  :param _request_timeout: timeout setting for this request. If one
4110
4402
  number provided, it will be total request
4111
4403
  timeout. It can also be a pair (tuple) of
@@ -4126,10 +4418,11 @@ class DefaultApi:
4126
4418
  in the spec for a single request.
4127
4419
  :type _host_index: int, optional
4128
4420
  :return: Returns the result object.
4129
- """ # noqa: E501 docstring might be too long
4421
+ """ # noqa: E501
4130
4422
 
4131
4423
  _param = self._list_instances_serialize(
4132
4424
  project_id=project_id,
4425
+ region=region,
4133
4426
  _request_auth=_request_auth,
4134
4427
  _content_type=_content_type,
4135
4428
  _headers=_headers,
@@ -4139,6 +4432,7 @@ class DefaultApi:
4139
4432
  _response_types_map: Dict[str, Optional[str]] = {
4140
4433
  "200": "ListInstancesResponse",
4141
4434
  "400": "Error",
4435
+ "401": "Error",
4142
4436
  "405": None,
4143
4437
  "500": None,
4144
4438
  }
@@ -4148,6 +4442,7 @@ class DefaultApi:
4148
4442
  def _list_instances_serialize(
4149
4443
  self,
4150
4444
  project_id,
4445
+ region,
4151
4446
  _request_auth,
4152
4447
  _content_type,
4153
4448
  _headers,
@@ -4162,12 +4457,14 @@ class DefaultApi:
4162
4457
  _query_params: List[Tuple[str, str]] = []
4163
4458
  _header_params: Dict[str, Optional[str]] = _headers or {}
4164
4459
  _form_params: List[Tuple[str, str]] = []
4165
- _files: Dict[str, Union[str, bytes]] = {}
4460
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4166
4461
  _body_params: Optional[bytes] = None
4167
4462
 
4168
4463
  # process the path parameters
4169
4464
  if project_id is not None:
4170
4465
  _path_params["projectId"] = project_id
4466
+ if region is not None:
4467
+ _path_params["region"] = region
4171
4468
  # process the query parameters
4172
4469
  # process the header parameters
4173
4470
  # process the form parameters
@@ -4182,7 +4479,7 @@ class DefaultApi:
4182
4479
 
4183
4480
  return self.api_client.param_serialize(
4184
4481
  method="GET",
4185
- resource_path="/v1/projects/{projectId}/instances",
4482
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances",
4186
4483
  path_params=_path_params,
4187
4484
  query_params=_query_params,
4188
4485
  header_params=_header_params,
@@ -4199,11 +4496,12 @@ class DefaultApi:
4199
4496
  def list_metrics(
4200
4497
  self,
4201
4498
  project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
4499
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4202
4500
  instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4203
4501
  metric: Annotated[
4204
4502
  StrictStr,
4205
4503
  Field(
4206
- description="The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'."
4504
+ description="The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'."
4207
4505
  ),
4208
4506
  ],
4209
4507
  granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")],
@@ -4237,13 +4535,15 @@ class DefaultApi:
4237
4535
  ) -> InstanceMetricsResponse:
4238
4536
  """Get Metric
4239
4537
 
4240
- Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4538
+ Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4241
4539
 
4242
4540
  :param project_id: The UUID of the project. (required)
4243
4541
  :type project_id: str
4542
+ :param region: The region which should be addressed (required)
4543
+ :type region: str
4244
4544
  :param instance_id: The UUID of the instance. (required)
4245
4545
  :type instance_id: str
4246
- :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. (required)
4546
+ :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'. (required)
4247
4547
  :type metric: str
4248
4548
  :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
4249
4549
  :type granularity: str
@@ -4273,10 +4573,11 @@ class DefaultApi:
4273
4573
  in the spec for a single request.
4274
4574
  :type _host_index: int, optional
4275
4575
  :return: Returns the result object.
4276
- """ # noqa: E501 docstring might be too long
4576
+ """ # noqa: E501
4277
4577
 
4278
4578
  _param = self._list_metrics_serialize(
4279
4579
  project_id=project_id,
4580
+ region=region,
4280
4581
  instance_id=instance_id,
4281
4582
  metric=metric,
4282
4583
  granularity=granularity,
@@ -4292,6 +4593,7 @@ class DefaultApi:
4292
4593
  _response_types_map: Dict[str, Optional[str]] = {
4293
4594
  "200": "InstanceMetricsResponse",
4294
4595
  "400": "Error",
4596
+ "401": "Error",
4295
4597
  "405": "Error",
4296
4598
  "500": "Error",
4297
4599
  }
@@ -4306,11 +4608,12 @@ class DefaultApi:
4306
4608
  def list_metrics_with_http_info(
4307
4609
  self,
4308
4610
  project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
4611
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4309
4612
  instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4310
4613
  metric: Annotated[
4311
4614
  StrictStr,
4312
4615
  Field(
4313
- description="The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'."
4616
+ description="The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'."
4314
4617
  ),
4315
4618
  ],
4316
4619
  granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")],
@@ -4344,13 +4647,15 @@ class DefaultApi:
4344
4647
  ) -> ApiResponse[InstanceMetricsResponse]:
4345
4648
  """Get Metric
4346
4649
 
4347
- Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4650
+ Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4348
4651
 
4349
4652
  :param project_id: The UUID of the project. (required)
4350
4653
  :type project_id: str
4654
+ :param region: The region which should be addressed (required)
4655
+ :type region: str
4351
4656
  :param instance_id: The UUID of the instance. (required)
4352
4657
  :type instance_id: str
4353
- :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. (required)
4658
+ :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'. (required)
4354
4659
  :type metric: str
4355
4660
  :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
4356
4661
  :type granularity: str
@@ -4380,10 +4685,11 @@ class DefaultApi:
4380
4685
  in the spec for a single request.
4381
4686
  :type _host_index: int, optional
4382
4687
  :return: Returns the result object.
4383
- """ # noqa: E501 docstring might be too long
4688
+ """ # noqa: E501
4384
4689
 
4385
4690
  _param = self._list_metrics_serialize(
4386
4691
  project_id=project_id,
4692
+ region=region,
4387
4693
  instance_id=instance_id,
4388
4694
  metric=metric,
4389
4695
  granularity=granularity,
@@ -4399,6 +4705,7 @@ class DefaultApi:
4399
4705
  _response_types_map: Dict[str, Optional[str]] = {
4400
4706
  "200": "InstanceMetricsResponse",
4401
4707
  "400": "Error",
4708
+ "401": "Error",
4402
4709
  "405": "Error",
4403
4710
  "500": "Error",
4404
4711
  }
@@ -4413,11 +4720,12 @@ class DefaultApi:
4413
4720
  def list_metrics_without_preload_content(
4414
4721
  self,
4415
4722
  project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
4723
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4416
4724
  instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4417
4725
  metric: Annotated[
4418
4726
  StrictStr,
4419
4727
  Field(
4420
- description="The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'."
4728
+ description="The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'."
4421
4729
  ),
4422
4730
  ],
4423
4731
  granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")],
@@ -4451,13 +4759,15 @@ class DefaultApi:
4451
4759
  ) -> RESTResponseType:
4452
4760
  """Get Metric
4453
4761
 
4454
- Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4762
+ Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.
4455
4763
 
4456
4764
  :param project_id: The UUID of the project. (required)
4457
4765
  :type project_id: str
4766
+ :param region: The region which should be addressed (required)
4767
+ :type region: str
4458
4768
  :param instance_id: The UUID of the instance. (required)
4459
4769
  :type instance_id: str
4460
- :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. (required)
4770
+ :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'. (required)
4461
4771
  :type metric: str
4462
4772
  :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
4463
4773
  :type granularity: str
@@ -4487,10 +4797,11 @@ class DefaultApi:
4487
4797
  in the spec for a single request.
4488
4798
  :type _host_index: int, optional
4489
4799
  :return: Returns the result object.
4490
- """ # noqa: E501 docstring might be too long
4800
+ """ # noqa: E501
4491
4801
 
4492
4802
  _param = self._list_metrics_serialize(
4493
4803
  project_id=project_id,
4804
+ region=region,
4494
4805
  instance_id=instance_id,
4495
4806
  metric=metric,
4496
4807
  granularity=granularity,
@@ -4506,6 +4817,7 @@ class DefaultApi:
4506
4817
  _response_types_map: Dict[str, Optional[str]] = {
4507
4818
  "200": "InstanceMetricsResponse",
4508
4819
  "400": "Error",
4820
+ "401": "Error",
4509
4821
  "405": "Error",
4510
4822
  "500": "Error",
4511
4823
  }
@@ -4515,6 +4827,7 @@ class DefaultApi:
4515
4827
  def _list_metrics_serialize(
4516
4828
  self,
4517
4829
  project_id,
4830
+ region,
4518
4831
  instance_id,
4519
4832
  metric,
4520
4833
  granularity,
@@ -4535,12 +4848,14 @@ class DefaultApi:
4535
4848
  _query_params: List[Tuple[str, str]] = []
4536
4849
  _header_params: Dict[str, Optional[str]] = _headers or {}
4537
4850
  _form_params: List[Tuple[str, str]] = []
4538
- _files: Dict[str, Union[str, bytes]] = {}
4851
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4539
4852
  _body_params: Optional[bytes] = None
4540
4853
 
4541
4854
  # process the path parameters
4542
4855
  if project_id is not None:
4543
4856
  _path_params["projectId"] = project_id
4857
+ if region is not None:
4858
+ _path_params["region"] = region
4544
4859
  if instance_id is not None:
4545
4860
  _path_params["instanceId"] = instance_id
4546
4861
  if metric is not None:
@@ -4575,7 +4890,7 @@ class DefaultApi:
4575
4890
 
4576
4891
  return self.api_client.param_serialize(
4577
4892
  method="GET",
4578
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/metrics/{metric}",
4893
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}",
4579
4894
  path_params=_path_params,
4580
4895
  query_params=_query_params,
4581
4896
  header_params=_header_params,
@@ -4592,6 +4907,7 @@ class DefaultApi:
4592
4907
  def list_storages(
4593
4908
  self,
4594
4909
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4910
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4595
4911
  flavor_id: Annotated[StrictStr, Field(description="Flavor ID")],
4596
4912
  _request_timeout: Union[
4597
4913
  None,
@@ -4609,6 +4925,8 @@ class DefaultApi:
4609
4925
 
4610
4926
  :param project_id: Project ID (required)
4611
4927
  :type project_id: str
4928
+ :param region: The region which should be addressed (required)
4929
+ :type region: str
4612
4930
  :param flavor_id: Flavor ID (required)
4613
4931
  :type flavor_id: str
4614
4932
  :param _request_timeout: timeout setting for this request. If one
@@ -4631,10 +4949,11 @@ class DefaultApi:
4631
4949
  in the spec for a single request.
4632
4950
  :type _host_index: int, optional
4633
4951
  :return: Returns the result object.
4634
- """ # noqa: E501 docstring might be too long
4952
+ """ # noqa: E501
4635
4953
 
4636
4954
  _param = self._list_storages_serialize(
4637
4955
  project_id=project_id,
4956
+ region=region,
4638
4957
  flavor_id=flavor_id,
4639
4958
  _request_auth=_request_auth,
4640
4959
  _content_type=_content_type,
@@ -4645,6 +4964,7 @@ class DefaultApi:
4645
4964
  _response_types_map: Dict[str, Optional[str]] = {
4646
4965
  "200": "ListStoragesResponse",
4647
4966
  "400": "Error",
4967
+ "401": "Error",
4648
4968
  "405": None,
4649
4969
  "500": None,
4650
4970
  }
@@ -4659,6 +4979,7 @@ class DefaultApi:
4659
4979
  def list_storages_with_http_info(
4660
4980
  self,
4661
4981
  project_id: Annotated[StrictStr, Field(description="Project ID")],
4982
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4662
4983
  flavor_id: Annotated[StrictStr, Field(description="Flavor ID")],
4663
4984
  _request_timeout: Union[
4664
4985
  None,
@@ -4676,6 +4997,8 @@ class DefaultApi:
4676
4997
 
4677
4998
  :param project_id: Project ID (required)
4678
4999
  :type project_id: str
5000
+ :param region: The region which should be addressed (required)
5001
+ :type region: str
4679
5002
  :param flavor_id: Flavor ID (required)
4680
5003
  :type flavor_id: str
4681
5004
  :param _request_timeout: timeout setting for this request. If one
@@ -4698,10 +5021,11 @@ class DefaultApi:
4698
5021
  in the spec for a single request.
4699
5022
  :type _host_index: int, optional
4700
5023
  :return: Returns the result object.
4701
- """ # noqa: E501 docstring might be too long
5024
+ """ # noqa: E501
4702
5025
 
4703
5026
  _param = self._list_storages_serialize(
4704
5027
  project_id=project_id,
5028
+ region=region,
4705
5029
  flavor_id=flavor_id,
4706
5030
  _request_auth=_request_auth,
4707
5031
  _content_type=_content_type,
@@ -4712,6 +5036,7 @@ class DefaultApi:
4712
5036
  _response_types_map: Dict[str, Optional[str]] = {
4713
5037
  "200": "ListStoragesResponse",
4714
5038
  "400": "Error",
5039
+ "401": "Error",
4715
5040
  "405": None,
4716
5041
  "500": None,
4717
5042
  }
@@ -4726,6 +5051,7 @@ class DefaultApi:
4726
5051
  def list_storages_without_preload_content(
4727
5052
  self,
4728
5053
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5054
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4729
5055
  flavor_id: Annotated[StrictStr, Field(description="Flavor ID")],
4730
5056
  _request_timeout: Union[
4731
5057
  None,
@@ -4743,6 +5069,8 @@ class DefaultApi:
4743
5069
 
4744
5070
  :param project_id: Project ID (required)
4745
5071
  :type project_id: str
5072
+ :param region: The region which should be addressed (required)
5073
+ :type region: str
4746
5074
  :param flavor_id: Flavor ID (required)
4747
5075
  :type flavor_id: str
4748
5076
  :param _request_timeout: timeout setting for this request. If one
@@ -4765,10 +5093,11 @@ class DefaultApi:
4765
5093
  in the spec for a single request.
4766
5094
  :type _host_index: int, optional
4767
5095
  :return: Returns the result object.
4768
- """ # noqa: E501 docstring might be too long
5096
+ """ # noqa: E501
4769
5097
 
4770
5098
  _param = self._list_storages_serialize(
4771
5099
  project_id=project_id,
5100
+ region=region,
4772
5101
  flavor_id=flavor_id,
4773
5102
  _request_auth=_request_auth,
4774
5103
  _content_type=_content_type,
@@ -4779,6 +5108,7 @@ class DefaultApi:
4779
5108
  _response_types_map: Dict[str, Optional[str]] = {
4780
5109
  "200": "ListStoragesResponse",
4781
5110
  "400": "Error",
5111
+ "401": "Error",
4782
5112
  "405": None,
4783
5113
  "500": None,
4784
5114
  }
@@ -4788,6 +5118,7 @@ class DefaultApi:
4788
5118
  def _list_storages_serialize(
4789
5119
  self,
4790
5120
  project_id,
5121
+ region,
4791
5122
  flavor_id,
4792
5123
  _request_auth,
4793
5124
  _content_type,
@@ -4803,12 +5134,14 @@ class DefaultApi:
4803
5134
  _query_params: List[Tuple[str, str]] = []
4804
5135
  _header_params: Dict[str, Optional[str]] = _headers or {}
4805
5136
  _form_params: List[Tuple[str, str]] = []
4806
- _files: Dict[str, Union[str, bytes]] = {}
5137
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4807
5138
  _body_params: Optional[bytes] = None
4808
5139
 
4809
5140
  # process the path parameters
4810
5141
  if project_id is not None:
4811
5142
  _path_params["projectId"] = project_id
5143
+ if region is not None:
5144
+ _path_params["region"] = region
4812
5145
  if flavor_id is not None:
4813
5146
  _path_params["flavorId"] = flavor_id
4814
5147
  # process the query parameters
@@ -4825,7 +5158,7 @@ class DefaultApi:
4825
5158
 
4826
5159
  return self.api_client.param_serialize(
4827
5160
  method="GET",
4828
- resource_path="/v1/projects/{projectId}/storages/{flavorId}",
5161
+ resource_path="/v2/projects/{projectId}/regions/{region}/storages/{flavorId}",
4829
5162
  path_params=_path_params,
4830
5163
  query_params=_query_params,
4831
5164
  header_params=_header_params,
@@ -4842,6 +5175,7 @@ class DefaultApi:
4842
5175
  def list_users(
4843
5176
  self,
4844
5177
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5178
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4845
5179
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4846
5180
  _request_timeout: Union[
4847
5181
  None,
@@ -4859,6 +5193,8 @@ class DefaultApi:
4859
5193
 
4860
5194
  :param project_id: Project ID (required)
4861
5195
  :type project_id: str
5196
+ :param region: The region which should be addressed (required)
5197
+ :type region: str
4862
5198
  :param instance_id: Instance ID (required)
4863
5199
  :type instance_id: str
4864
5200
  :param _request_timeout: timeout setting for this request. If one
@@ -4881,10 +5217,11 @@ class DefaultApi:
4881
5217
  in the spec for a single request.
4882
5218
  :type _host_index: int, optional
4883
5219
  :return: Returns the result object.
4884
- """ # noqa: E501 docstring might be too long
5220
+ """ # noqa: E501
4885
5221
 
4886
5222
  _param = self._list_users_serialize(
4887
5223
  project_id=project_id,
5224
+ region=region,
4888
5225
  instance_id=instance_id,
4889
5226
  _request_auth=_request_auth,
4890
5227
  _content_type=_content_type,
@@ -4895,6 +5232,7 @@ class DefaultApi:
4895
5232
  _response_types_map: Dict[str, Optional[str]] = {
4896
5233
  "200": "ListUsersResponse",
4897
5234
  "400": "Error",
5235
+ "401": "Error",
4898
5236
  "405": None,
4899
5237
  "500": None,
4900
5238
  }
@@ -4909,6 +5247,7 @@ class DefaultApi:
4909
5247
  def list_users_with_http_info(
4910
5248
  self,
4911
5249
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5250
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4912
5251
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4913
5252
  _request_timeout: Union[
4914
5253
  None,
@@ -4926,6 +5265,8 @@ class DefaultApi:
4926
5265
 
4927
5266
  :param project_id: Project ID (required)
4928
5267
  :type project_id: str
5268
+ :param region: The region which should be addressed (required)
5269
+ :type region: str
4929
5270
  :param instance_id: Instance ID (required)
4930
5271
  :type instance_id: str
4931
5272
  :param _request_timeout: timeout setting for this request. If one
@@ -4948,10 +5289,11 @@ class DefaultApi:
4948
5289
  in the spec for a single request.
4949
5290
  :type _host_index: int, optional
4950
5291
  :return: Returns the result object.
4951
- """ # noqa: E501 docstring might be too long
5292
+ """ # noqa: E501
4952
5293
 
4953
5294
  _param = self._list_users_serialize(
4954
5295
  project_id=project_id,
5296
+ region=region,
4955
5297
  instance_id=instance_id,
4956
5298
  _request_auth=_request_auth,
4957
5299
  _content_type=_content_type,
@@ -4962,6 +5304,7 @@ class DefaultApi:
4962
5304
  _response_types_map: Dict[str, Optional[str]] = {
4963
5305
  "200": "ListUsersResponse",
4964
5306
  "400": "Error",
5307
+ "401": "Error",
4965
5308
  "405": None,
4966
5309
  "500": None,
4967
5310
  }
@@ -4976,6 +5319,7 @@ class DefaultApi:
4976
5319
  def list_users_without_preload_content(
4977
5320
  self,
4978
5321
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5322
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
4979
5323
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
4980
5324
  _request_timeout: Union[
4981
5325
  None,
@@ -4993,6 +5337,8 @@ class DefaultApi:
4993
5337
 
4994
5338
  :param project_id: Project ID (required)
4995
5339
  :type project_id: str
5340
+ :param region: The region which should be addressed (required)
5341
+ :type region: str
4996
5342
  :param instance_id: Instance ID (required)
4997
5343
  :type instance_id: str
4998
5344
  :param _request_timeout: timeout setting for this request. If one
@@ -5015,10 +5361,11 @@ class DefaultApi:
5015
5361
  in the spec for a single request.
5016
5362
  :type _host_index: int, optional
5017
5363
  :return: Returns the result object.
5018
- """ # noqa: E501 docstring might be too long
5364
+ """ # noqa: E501
5019
5365
 
5020
5366
  _param = self._list_users_serialize(
5021
5367
  project_id=project_id,
5368
+ region=region,
5022
5369
  instance_id=instance_id,
5023
5370
  _request_auth=_request_auth,
5024
5371
  _content_type=_content_type,
@@ -5029,6 +5376,7 @@ class DefaultApi:
5029
5376
  _response_types_map: Dict[str, Optional[str]] = {
5030
5377
  "200": "ListUsersResponse",
5031
5378
  "400": "Error",
5379
+ "401": "Error",
5032
5380
  "405": None,
5033
5381
  "500": None,
5034
5382
  }
@@ -5038,6 +5386,7 @@ class DefaultApi:
5038
5386
  def _list_users_serialize(
5039
5387
  self,
5040
5388
  project_id,
5389
+ region,
5041
5390
  instance_id,
5042
5391
  _request_auth,
5043
5392
  _content_type,
@@ -5053,12 +5402,14 @@ class DefaultApi:
5053
5402
  _query_params: List[Tuple[str, str]] = []
5054
5403
  _header_params: Dict[str, Optional[str]] = _headers or {}
5055
5404
  _form_params: List[Tuple[str, str]] = []
5056
- _files: Dict[str, Union[str, bytes]] = {}
5405
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
5057
5406
  _body_params: Optional[bytes] = None
5058
5407
 
5059
5408
  # process the path parameters
5060
5409
  if project_id is not None:
5061
5410
  _path_params["projectId"] = project_id
5411
+ if region is not None:
5412
+ _path_params["region"] = region
5062
5413
  if instance_id is not None:
5063
5414
  _path_params["instanceId"] = instance_id
5064
5415
  # process the query parameters
@@ -5075,7 +5426,7 @@ class DefaultApi:
5075
5426
 
5076
5427
  return self.api_client.param_serialize(
5077
5428
  method="GET",
5078
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users",
5429
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
5079
5430
  path_params=_path_params,
5080
5431
  query_params=_query_params,
5081
5432
  header_params=_header_params,
@@ -5092,6 +5443,7 @@ class DefaultApi:
5092
5443
  def list_versions(
5093
5444
  self,
5094
5445
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5446
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5095
5447
  instance_id: Annotated[Optional[StrictStr], Field(description="Instance ID")] = None,
5096
5448
  _request_timeout: Union[
5097
5449
  None,
@@ -5109,6 +5461,8 @@ class DefaultApi:
5109
5461
 
5110
5462
  :param project_id: Project ID (required)
5111
5463
  :type project_id: str
5464
+ :param region: The region which should be addressed (required)
5465
+ :type region: str
5112
5466
  :param instance_id: Instance ID
5113
5467
  :type instance_id: str
5114
5468
  :param _request_timeout: timeout setting for this request. If one
@@ -5131,10 +5485,11 @@ class DefaultApi:
5131
5485
  in the spec for a single request.
5132
5486
  :type _host_index: int, optional
5133
5487
  :return: Returns the result object.
5134
- """ # noqa: E501 docstring might be too long
5488
+ """ # noqa: E501
5135
5489
 
5136
5490
  _param = self._list_versions_serialize(
5137
5491
  project_id=project_id,
5492
+ region=region,
5138
5493
  instance_id=instance_id,
5139
5494
  _request_auth=_request_auth,
5140
5495
  _content_type=_content_type,
@@ -5145,6 +5500,7 @@ class DefaultApi:
5145
5500
  _response_types_map: Dict[str, Optional[str]] = {
5146
5501
  "200": "ListVersionsResponse",
5147
5502
  "400": "Error",
5503
+ "401": "Error",
5148
5504
  "405": None,
5149
5505
  "500": None,
5150
5506
  }
@@ -5159,6 +5515,7 @@ class DefaultApi:
5159
5515
  def list_versions_with_http_info(
5160
5516
  self,
5161
5517
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5518
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5162
5519
  instance_id: Annotated[Optional[StrictStr], Field(description="Instance ID")] = None,
5163
5520
  _request_timeout: Union[
5164
5521
  None,
@@ -5176,6 +5533,8 @@ class DefaultApi:
5176
5533
 
5177
5534
  :param project_id: Project ID (required)
5178
5535
  :type project_id: str
5536
+ :param region: The region which should be addressed (required)
5537
+ :type region: str
5179
5538
  :param instance_id: Instance ID
5180
5539
  :type instance_id: str
5181
5540
  :param _request_timeout: timeout setting for this request. If one
@@ -5198,10 +5557,11 @@ class DefaultApi:
5198
5557
  in the spec for a single request.
5199
5558
  :type _host_index: int, optional
5200
5559
  :return: Returns the result object.
5201
- """ # noqa: E501 docstring might be too long
5560
+ """ # noqa: E501
5202
5561
 
5203
5562
  _param = self._list_versions_serialize(
5204
5563
  project_id=project_id,
5564
+ region=region,
5205
5565
  instance_id=instance_id,
5206
5566
  _request_auth=_request_auth,
5207
5567
  _content_type=_content_type,
@@ -5212,6 +5572,7 @@ class DefaultApi:
5212
5572
  _response_types_map: Dict[str, Optional[str]] = {
5213
5573
  "200": "ListVersionsResponse",
5214
5574
  "400": "Error",
5575
+ "401": "Error",
5215
5576
  "405": None,
5216
5577
  "500": None,
5217
5578
  }
@@ -5226,6 +5587,7 @@ class DefaultApi:
5226
5587
  def list_versions_without_preload_content(
5227
5588
  self,
5228
5589
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5590
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5229
5591
  instance_id: Annotated[Optional[StrictStr], Field(description="Instance ID")] = None,
5230
5592
  _request_timeout: Union[
5231
5593
  None,
@@ -5243,6 +5605,8 @@ class DefaultApi:
5243
5605
 
5244
5606
  :param project_id: Project ID (required)
5245
5607
  :type project_id: str
5608
+ :param region: The region which should be addressed (required)
5609
+ :type region: str
5246
5610
  :param instance_id: Instance ID
5247
5611
  :type instance_id: str
5248
5612
  :param _request_timeout: timeout setting for this request. If one
@@ -5265,10 +5629,11 @@ class DefaultApi:
5265
5629
  in the spec for a single request.
5266
5630
  :type _host_index: int, optional
5267
5631
  :return: Returns the result object.
5268
- """ # noqa: E501 docstring might be too long
5632
+ """ # noqa: E501
5269
5633
 
5270
5634
  _param = self._list_versions_serialize(
5271
5635
  project_id=project_id,
5636
+ region=region,
5272
5637
  instance_id=instance_id,
5273
5638
  _request_auth=_request_auth,
5274
5639
  _content_type=_content_type,
@@ -5279,6 +5644,7 @@ class DefaultApi:
5279
5644
  _response_types_map: Dict[str, Optional[str]] = {
5280
5645
  "200": "ListVersionsResponse",
5281
5646
  "400": "Error",
5647
+ "401": "Error",
5282
5648
  "405": None,
5283
5649
  "500": None,
5284
5650
  }
@@ -5288,6 +5654,7 @@ class DefaultApi:
5288
5654
  def _list_versions_serialize(
5289
5655
  self,
5290
5656
  project_id,
5657
+ region,
5291
5658
  instance_id,
5292
5659
  _request_auth,
5293
5660
  _content_type,
@@ -5303,12 +5670,14 @@ class DefaultApi:
5303
5670
  _query_params: List[Tuple[str, str]] = []
5304
5671
  _header_params: Dict[str, Optional[str]] = _headers or {}
5305
5672
  _form_params: List[Tuple[str, str]] = []
5306
- _files: Dict[str, Union[str, bytes]] = {}
5673
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
5307
5674
  _body_params: Optional[bytes] = None
5308
5675
 
5309
5676
  # process the path parameters
5310
5677
  if project_id is not None:
5311
5678
  _path_params["projectId"] = project_id
5679
+ if region is not None:
5680
+ _path_params["region"] = region
5312
5681
  # process the query parameters
5313
5682
  if instance_id is not None:
5314
5683
 
@@ -5327,7 +5696,7 @@ class DefaultApi:
5327
5696
 
5328
5697
  return self.api_client.param_serialize(
5329
5698
  method="GET",
5330
- resource_path="/v1/projects/{projectId}/versions",
5699
+ resource_path="/v2/projects/{projectId}/regions/{region}/versions",
5331
5700
  path_params=_path_params,
5332
5701
  query_params=_query_params,
5333
5702
  header_params=_header_params,
@@ -5344,6 +5713,7 @@ class DefaultApi:
5344
5713
  def partial_update_instance(
5345
5714
  self,
5346
5715
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5716
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5347
5717
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5348
5718
  partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="Body")],
5349
5719
  _request_timeout: Union[
@@ -5362,6 +5732,8 @@ class DefaultApi:
5362
5732
 
5363
5733
  :param project_id: Project ID (required)
5364
5734
  :type project_id: str
5735
+ :param region: The region which should be addressed (required)
5736
+ :type region: str
5365
5737
  :param instance_id: Instance ID (required)
5366
5738
  :type instance_id: str
5367
5739
  :param partial_update_instance_payload: Body (required)
@@ -5386,10 +5758,11 @@ class DefaultApi:
5386
5758
  in the spec for a single request.
5387
5759
  :type _host_index: int, optional
5388
5760
  :return: Returns the result object.
5389
- """ # noqa: E501 docstring might be too long
5761
+ """ # noqa: E501
5390
5762
 
5391
5763
  _param = self._partial_update_instance_serialize(
5392
5764
  project_id=project_id,
5765
+ region=region,
5393
5766
  instance_id=instance_id,
5394
5767
  partial_update_instance_payload=partial_update_instance_payload,
5395
5768
  _request_auth=_request_auth,
@@ -5401,6 +5774,7 @@ class DefaultApi:
5401
5774
  _response_types_map: Dict[str, Optional[str]] = {
5402
5775
  "200": "PartialUpdateInstanceResponse",
5403
5776
  "400": "Error",
5777
+ "401": "Error",
5404
5778
  "405": None,
5405
5779
  "500": None,
5406
5780
  }
@@ -5415,6 +5789,7 @@ class DefaultApi:
5415
5789
  def partial_update_instance_with_http_info(
5416
5790
  self,
5417
5791
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5792
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5418
5793
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5419
5794
  partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="Body")],
5420
5795
  _request_timeout: Union[
@@ -5433,6 +5808,8 @@ class DefaultApi:
5433
5808
 
5434
5809
  :param project_id: Project ID (required)
5435
5810
  :type project_id: str
5811
+ :param region: The region which should be addressed (required)
5812
+ :type region: str
5436
5813
  :param instance_id: Instance ID (required)
5437
5814
  :type instance_id: str
5438
5815
  :param partial_update_instance_payload: Body (required)
@@ -5457,10 +5834,11 @@ class DefaultApi:
5457
5834
  in the spec for a single request.
5458
5835
  :type _host_index: int, optional
5459
5836
  :return: Returns the result object.
5460
- """ # noqa: E501 docstring might be too long
5837
+ """ # noqa: E501
5461
5838
 
5462
5839
  _param = self._partial_update_instance_serialize(
5463
5840
  project_id=project_id,
5841
+ region=region,
5464
5842
  instance_id=instance_id,
5465
5843
  partial_update_instance_payload=partial_update_instance_payload,
5466
5844
  _request_auth=_request_auth,
@@ -5472,6 +5850,7 @@ class DefaultApi:
5472
5850
  _response_types_map: Dict[str, Optional[str]] = {
5473
5851
  "200": "PartialUpdateInstanceResponse",
5474
5852
  "400": "Error",
5853
+ "401": "Error",
5475
5854
  "405": None,
5476
5855
  "500": None,
5477
5856
  }
@@ -5486,6 +5865,7 @@ class DefaultApi:
5486
5865
  def partial_update_instance_without_preload_content(
5487
5866
  self,
5488
5867
  project_id: Annotated[StrictStr, Field(description="Project ID")],
5868
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5489
5869
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5490
5870
  partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="Body")],
5491
5871
  _request_timeout: Union[
@@ -5504,6 +5884,8 @@ class DefaultApi:
5504
5884
 
5505
5885
  :param project_id: Project ID (required)
5506
5886
  :type project_id: str
5887
+ :param region: The region which should be addressed (required)
5888
+ :type region: str
5507
5889
  :param instance_id: Instance ID (required)
5508
5890
  :type instance_id: str
5509
5891
  :param partial_update_instance_payload: Body (required)
@@ -5528,10 +5910,11 @@ class DefaultApi:
5528
5910
  in the spec for a single request.
5529
5911
  :type _host_index: int, optional
5530
5912
  :return: Returns the result object.
5531
- """ # noqa: E501 docstring might be too long
5913
+ """ # noqa: E501
5532
5914
 
5533
5915
  _param = self._partial_update_instance_serialize(
5534
5916
  project_id=project_id,
5917
+ region=region,
5535
5918
  instance_id=instance_id,
5536
5919
  partial_update_instance_payload=partial_update_instance_payload,
5537
5920
  _request_auth=_request_auth,
@@ -5543,6 +5926,7 @@ class DefaultApi:
5543
5926
  _response_types_map: Dict[str, Optional[str]] = {
5544
5927
  "200": "PartialUpdateInstanceResponse",
5545
5928
  "400": "Error",
5929
+ "401": "Error",
5546
5930
  "405": None,
5547
5931
  "500": None,
5548
5932
  }
@@ -5552,6 +5936,7 @@ class DefaultApi:
5552
5936
  def _partial_update_instance_serialize(
5553
5937
  self,
5554
5938
  project_id,
5939
+ region,
5555
5940
  instance_id,
5556
5941
  partial_update_instance_payload,
5557
5942
  _request_auth,
@@ -5568,12 +5953,14 @@ class DefaultApi:
5568
5953
  _query_params: List[Tuple[str, str]] = []
5569
5954
  _header_params: Dict[str, Optional[str]] = _headers or {}
5570
5955
  _form_params: List[Tuple[str, str]] = []
5571
- _files: Dict[str, Union[str, bytes]] = {}
5956
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
5572
5957
  _body_params: Optional[bytes] = None
5573
5958
 
5574
5959
  # process the path parameters
5575
5960
  if project_id is not None:
5576
5961
  _path_params["projectId"] = project_id
5962
+ if region is not None:
5963
+ _path_params["region"] = region
5577
5964
  if instance_id is not None:
5578
5965
  _path_params["instanceId"] = instance_id
5579
5966
  # process the query parameters
@@ -5600,7 +5987,7 @@ class DefaultApi:
5600
5987
 
5601
5988
  return self.api_client.param_serialize(
5602
5989
  method="PATCH",
5603
- resource_path="/v1/projects/{projectId}/instances/{instanceId}",
5990
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
5604
5991
  path_params=_path_params,
5605
5992
  query_params=_query_params,
5606
5993
  header_params=_header_params,
@@ -5617,6 +6004,7 @@ class DefaultApi:
5617
6004
  def partial_update_user(
5618
6005
  self,
5619
6006
  project_id: Annotated[StrictStr, Field(description="The ID of the project")],
6007
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5620
6008
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
5621
6009
  user_id: Annotated[StrictStr, Field(description="The ID of the user in the database")],
5622
6010
  partial_update_user_payload: Annotated[
@@ -5641,6 +6029,8 @@ class DefaultApi:
5641
6029
 
5642
6030
  :param project_id: The ID of the project (required)
5643
6031
  :type project_id: str
6032
+ :param region: The region which should be addressed (required)
6033
+ :type region: str
5644
6034
  :param instance_id: The ID of the instance (required)
5645
6035
  :type instance_id: str
5646
6036
  :param user_id: The ID of the user in the database (required)
@@ -5667,10 +6057,11 @@ class DefaultApi:
5667
6057
  in the spec for a single request.
5668
6058
  :type _host_index: int, optional
5669
6059
  :return: Returns the result object.
5670
- """ # noqa: E501 docstring might be too long
6060
+ """ # noqa: E501
5671
6061
 
5672
6062
  _param = self._partial_update_user_serialize(
5673
6063
  project_id=project_id,
6064
+ region=region,
5674
6065
  instance_id=instance_id,
5675
6066
  user_id=user_id,
5676
6067
  partial_update_user_payload=partial_update_user_payload,
@@ -5683,6 +6074,7 @@ class DefaultApi:
5683
6074
  _response_types_map: Dict[str, Optional[str]] = {
5684
6075
  "200": None,
5685
6076
  "400": "Error",
6077
+ "401": "Error",
5686
6078
  "405": None,
5687
6079
  "500": "Error",
5688
6080
  }
@@ -5697,6 +6089,7 @@ class DefaultApi:
5697
6089
  def partial_update_user_with_http_info(
5698
6090
  self,
5699
6091
  project_id: Annotated[StrictStr, Field(description="The ID of the project")],
6092
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5700
6093
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
5701
6094
  user_id: Annotated[StrictStr, Field(description="The ID of the user in the database")],
5702
6095
  partial_update_user_payload: Annotated[
@@ -5721,6 +6114,8 @@ class DefaultApi:
5721
6114
 
5722
6115
  :param project_id: The ID of the project (required)
5723
6116
  :type project_id: str
6117
+ :param region: The region which should be addressed (required)
6118
+ :type region: str
5724
6119
  :param instance_id: The ID of the instance (required)
5725
6120
  :type instance_id: str
5726
6121
  :param user_id: The ID of the user in the database (required)
@@ -5747,10 +6142,11 @@ class DefaultApi:
5747
6142
  in the spec for a single request.
5748
6143
  :type _host_index: int, optional
5749
6144
  :return: Returns the result object.
5750
- """ # noqa: E501 docstring might be too long
6145
+ """ # noqa: E501
5751
6146
 
5752
6147
  _param = self._partial_update_user_serialize(
5753
6148
  project_id=project_id,
6149
+ region=region,
5754
6150
  instance_id=instance_id,
5755
6151
  user_id=user_id,
5756
6152
  partial_update_user_payload=partial_update_user_payload,
@@ -5763,6 +6159,7 @@ class DefaultApi:
5763
6159
  _response_types_map: Dict[str, Optional[str]] = {
5764
6160
  "200": None,
5765
6161
  "400": "Error",
6162
+ "401": "Error",
5766
6163
  "405": None,
5767
6164
  "500": "Error",
5768
6165
  }
@@ -5777,6 +6174,7 @@ class DefaultApi:
5777
6174
  def partial_update_user_without_preload_content(
5778
6175
  self,
5779
6176
  project_id: Annotated[StrictStr, Field(description="The ID of the project")],
6177
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5780
6178
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
5781
6179
  user_id: Annotated[StrictStr, Field(description="The ID of the user in the database")],
5782
6180
  partial_update_user_payload: Annotated[
@@ -5801,6 +6199,8 @@ class DefaultApi:
5801
6199
 
5802
6200
  :param project_id: The ID of the project (required)
5803
6201
  :type project_id: str
6202
+ :param region: The region which should be addressed (required)
6203
+ :type region: str
5804
6204
  :param instance_id: The ID of the instance (required)
5805
6205
  :type instance_id: str
5806
6206
  :param user_id: The ID of the user in the database (required)
@@ -5827,10 +6227,11 @@ class DefaultApi:
5827
6227
  in the spec for a single request.
5828
6228
  :type _host_index: int, optional
5829
6229
  :return: Returns the result object.
5830
- """ # noqa: E501 docstring might be too long
6230
+ """ # noqa: E501
5831
6231
 
5832
6232
  _param = self._partial_update_user_serialize(
5833
6233
  project_id=project_id,
6234
+ region=region,
5834
6235
  instance_id=instance_id,
5835
6236
  user_id=user_id,
5836
6237
  partial_update_user_payload=partial_update_user_payload,
@@ -5843,6 +6244,7 @@ class DefaultApi:
5843
6244
  _response_types_map: Dict[str, Optional[str]] = {
5844
6245
  "200": None,
5845
6246
  "400": "Error",
6247
+ "401": "Error",
5846
6248
  "405": None,
5847
6249
  "500": "Error",
5848
6250
  }
@@ -5852,6 +6254,7 @@ class DefaultApi:
5852
6254
  def _partial_update_user_serialize(
5853
6255
  self,
5854
6256
  project_id,
6257
+ region,
5855
6258
  instance_id,
5856
6259
  user_id,
5857
6260
  partial_update_user_payload,
@@ -5869,12 +6272,14 @@ class DefaultApi:
5869
6272
  _query_params: List[Tuple[str, str]] = []
5870
6273
  _header_params: Dict[str, Optional[str]] = _headers or {}
5871
6274
  _form_params: List[Tuple[str, str]] = []
5872
- _files: Dict[str, Union[str, bytes]] = {}
6275
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
5873
6276
  _body_params: Optional[bytes] = None
5874
6277
 
5875
6278
  # process the path parameters
5876
6279
  if project_id is not None:
5877
6280
  _path_params["projectId"] = project_id
6281
+ if region is not None:
6282
+ _path_params["region"] = region
5878
6283
  if instance_id is not None:
5879
6284
  _path_params["instanceId"] = instance_id
5880
6285
  if user_id is not None:
@@ -5903,7 +6308,7 @@ class DefaultApi:
5903
6308
 
5904
6309
  return self.api_client.param_serialize(
5905
6310
  method="PATCH",
5906
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
6311
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
5907
6312
  path_params=_path_params,
5908
6313
  query_params=_query_params,
5909
6314
  header_params=_header_params,
@@ -5920,6 +6325,7 @@ class DefaultApi:
5920
6325
  def reset_user(
5921
6326
  self,
5922
6327
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6328
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5923
6329
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5924
6330
  user_id: Annotated[StrictStr, Field(description="user ID")],
5925
6331
  _request_timeout: Union[
@@ -5938,6 +6344,8 @@ class DefaultApi:
5938
6344
 
5939
6345
  :param project_id: Project ID (required)
5940
6346
  :type project_id: str
6347
+ :param region: The region which should be addressed (required)
6348
+ :type region: str
5941
6349
  :param instance_id: Instance ID (required)
5942
6350
  :type instance_id: str
5943
6351
  :param user_id: user ID (required)
@@ -5962,10 +6370,11 @@ class DefaultApi:
5962
6370
  in the spec for a single request.
5963
6371
  :type _host_index: int, optional
5964
6372
  :return: Returns the result object.
5965
- """ # noqa: E501 docstring might be too long
6373
+ """ # noqa: E501
5966
6374
 
5967
6375
  _param = self._reset_user_serialize(
5968
6376
  project_id=project_id,
6377
+ region=region,
5969
6378
  instance_id=instance_id,
5970
6379
  user_id=user_id,
5971
6380
  _request_auth=_request_auth,
@@ -5977,6 +6386,7 @@ class DefaultApi:
5977
6386
  _response_types_map: Dict[str, Optional[str]] = {
5978
6387
  "202": "ResetUserResponse",
5979
6388
  "400": "Error",
6389
+ "401": "Error",
5980
6390
  "404": "Error",
5981
6391
  "405": None,
5982
6392
  "500": "Error",
@@ -5992,6 +6402,7 @@ class DefaultApi:
5992
6402
  def reset_user_with_http_info(
5993
6403
  self,
5994
6404
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6405
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
5995
6406
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
5996
6407
  user_id: Annotated[StrictStr, Field(description="user ID")],
5997
6408
  _request_timeout: Union[
@@ -6010,6 +6421,8 @@ class DefaultApi:
6010
6421
 
6011
6422
  :param project_id: Project ID (required)
6012
6423
  :type project_id: str
6424
+ :param region: The region which should be addressed (required)
6425
+ :type region: str
6013
6426
  :param instance_id: Instance ID (required)
6014
6427
  :type instance_id: str
6015
6428
  :param user_id: user ID (required)
@@ -6034,10 +6447,11 @@ class DefaultApi:
6034
6447
  in the spec for a single request.
6035
6448
  :type _host_index: int, optional
6036
6449
  :return: Returns the result object.
6037
- """ # noqa: E501 docstring might be too long
6450
+ """ # noqa: E501
6038
6451
 
6039
6452
  _param = self._reset_user_serialize(
6040
6453
  project_id=project_id,
6454
+ region=region,
6041
6455
  instance_id=instance_id,
6042
6456
  user_id=user_id,
6043
6457
  _request_auth=_request_auth,
@@ -6049,6 +6463,7 @@ class DefaultApi:
6049
6463
  _response_types_map: Dict[str, Optional[str]] = {
6050
6464
  "202": "ResetUserResponse",
6051
6465
  "400": "Error",
6466
+ "401": "Error",
6052
6467
  "404": "Error",
6053
6468
  "405": None,
6054
6469
  "500": "Error",
@@ -6064,6 +6479,7 @@ class DefaultApi:
6064
6479
  def reset_user_without_preload_content(
6065
6480
  self,
6066
6481
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6482
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6067
6483
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6068
6484
  user_id: Annotated[StrictStr, Field(description="user ID")],
6069
6485
  _request_timeout: Union[
@@ -6082,6 +6498,8 @@ class DefaultApi:
6082
6498
 
6083
6499
  :param project_id: Project ID (required)
6084
6500
  :type project_id: str
6501
+ :param region: The region which should be addressed (required)
6502
+ :type region: str
6085
6503
  :param instance_id: Instance ID (required)
6086
6504
  :type instance_id: str
6087
6505
  :param user_id: user ID (required)
@@ -6106,10 +6524,11 @@ class DefaultApi:
6106
6524
  in the spec for a single request.
6107
6525
  :type _host_index: int, optional
6108
6526
  :return: Returns the result object.
6109
- """ # noqa: E501 docstring might be too long
6527
+ """ # noqa: E501
6110
6528
 
6111
6529
  _param = self._reset_user_serialize(
6112
6530
  project_id=project_id,
6531
+ region=region,
6113
6532
  instance_id=instance_id,
6114
6533
  user_id=user_id,
6115
6534
  _request_auth=_request_auth,
@@ -6121,6 +6540,7 @@ class DefaultApi:
6121
6540
  _response_types_map: Dict[str, Optional[str]] = {
6122
6541
  "202": "ResetUserResponse",
6123
6542
  "400": "Error",
6543
+ "401": "Error",
6124
6544
  "404": "Error",
6125
6545
  "405": None,
6126
6546
  "500": "Error",
@@ -6131,6 +6551,7 @@ class DefaultApi:
6131
6551
  def _reset_user_serialize(
6132
6552
  self,
6133
6553
  project_id,
6554
+ region,
6134
6555
  instance_id,
6135
6556
  user_id,
6136
6557
  _request_auth,
@@ -6147,12 +6568,14 @@ class DefaultApi:
6147
6568
  _query_params: List[Tuple[str, str]] = []
6148
6569
  _header_params: Dict[str, Optional[str]] = _headers or {}
6149
6570
  _form_params: List[Tuple[str, str]] = []
6150
- _files: Dict[str, Union[str, bytes]] = {}
6571
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
6151
6572
  _body_params: Optional[bytes] = None
6152
6573
 
6153
6574
  # process the path parameters
6154
6575
  if project_id is not None:
6155
6576
  _path_params["projectId"] = project_id
6577
+ if region is not None:
6578
+ _path_params["region"] = region
6156
6579
  if instance_id is not None:
6157
6580
  _path_params["instanceId"] = instance_id
6158
6581
  if user_id is not None:
@@ -6171,7 +6594,7 @@ class DefaultApi:
6171
6594
 
6172
6595
  return self.api_client.param_serialize(
6173
6596
  method="POST",
6174
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}/reset",
6597
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
6175
6598
  path_params=_path_params,
6176
6599
  query_params=_query_params,
6177
6600
  header_params=_header_params,
@@ -6188,6 +6611,7 @@ class DefaultApi:
6188
6611
  def update_backup_schedule(
6189
6612
  self,
6190
6613
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6614
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6191
6615
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6192
6616
  update_backup_schedule_payload: Annotated[UpdateBackupSchedulePayload, Field(description="Body")],
6193
6617
  _request_timeout: Union[
@@ -6206,6 +6630,8 @@ class DefaultApi:
6206
6630
 
6207
6631
  :param project_id: Project ID (required)
6208
6632
  :type project_id: str
6633
+ :param region: The region which should be addressed (required)
6634
+ :type region: str
6209
6635
  :param instance_id: Instance ID (required)
6210
6636
  :type instance_id: str
6211
6637
  :param update_backup_schedule_payload: Body (required)
@@ -6230,10 +6656,11 @@ class DefaultApi:
6230
6656
  in the spec for a single request.
6231
6657
  :type _host_index: int, optional
6232
6658
  :return: Returns the result object.
6233
- """ # noqa: E501 docstring might be too long
6659
+ """ # noqa: E501
6234
6660
 
6235
6661
  _param = self._update_backup_schedule_serialize(
6236
6662
  project_id=project_id,
6663
+ region=region,
6237
6664
  instance_id=instance_id,
6238
6665
  update_backup_schedule_payload=update_backup_schedule_payload,
6239
6666
  _request_auth=_request_auth,
@@ -6245,6 +6672,7 @@ class DefaultApi:
6245
6672
  _response_types_map: Dict[str, Optional[str]] = {
6246
6673
  "200": None,
6247
6674
  "400": "Error",
6675
+ "401": "Error",
6248
6676
  "403": None,
6249
6677
  "404": None,
6250
6678
  "405": None,
@@ -6261,6 +6689,7 @@ class DefaultApi:
6261
6689
  def update_backup_schedule_with_http_info(
6262
6690
  self,
6263
6691
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6692
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6264
6693
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6265
6694
  update_backup_schedule_payload: Annotated[UpdateBackupSchedulePayload, Field(description="Body")],
6266
6695
  _request_timeout: Union[
@@ -6279,6 +6708,8 @@ class DefaultApi:
6279
6708
 
6280
6709
  :param project_id: Project ID (required)
6281
6710
  :type project_id: str
6711
+ :param region: The region which should be addressed (required)
6712
+ :type region: str
6282
6713
  :param instance_id: Instance ID (required)
6283
6714
  :type instance_id: str
6284
6715
  :param update_backup_schedule_payload: Body (required)
@@ -6303,10 +6734,11 @@ class DefaultApi:
6303
6734
  in the spec for a single request.
6304
6735
  :type _host_index: int, optional
6305
6736
  :return: Returns the result object.
6306
- """ # noqa: E501 docstring might be too long
6737
+ """ # noqa: E501
6307
6738
 
6308
6739
  _param = self._update_backup_schedule_serialize(
6309
6740
  project_id=project_id,
6741
+ region=region,
6310
6742
  instance_id=instance_id,
6311
6743
  update_backup_schedule_payload=update_backup_schedule_payload,
6312
6744
  _request_auth=_request_auth,
@@ -6318,6 +6750,7 @@ class DefaultApi:
6318
6750
  _response_types_map: Dict[str, Optional[str]] = {
6319
6751
  "200": None,
6320
6752
  "400": "Error",
6753
+ "401": "Error",
6321
6754
  "403": None,
6322
6755
  "404": None,
6323
6756
  "405": None,
@@ -6334,6 +6767,7 @@ class DefaultApi:
6334
6767
  def update_backup_schedule_without_preload_content(
6335
6768
  self,
6336
6769
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6770
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6337
6771
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6338
6772
  update_backup_schedule_payload: Annotated[UpdateBackupSchedulePayload, Field(description="Body")],
6339
6773
  _request_timeout: Union[
@@ -6352,6 +6786,8 @@ class DefaultApi:
6352
6786
 
6353
6787
  :param project_id: Project ID (required)
6354
6788
  :type project_id: str
6789
+ :param region: The region which should be addressed (required)
6790
+ :type region: str
6355
6791
  :param instance_id: Instance ID (required)
6356
6792
  :type instance_id: str
6357
6793
  :param update_backup_schedule_payload: Body (required)
@@ -6376,10 +6812,11 @@ class DefaultApi:
6376
6812
  in the spec for a single request.
6377
6813
  :type _host_index: int, optional
6378
6814
  :return: Returns the result object.
6379
- """ # noqa: E501 docstring might be too long
6815
+ """ # noqa: E501
6380
6816
 
6381
6817
  _param = self._update_backup_schedule_serialize(
6382
6818
  project_id=project_id,
6819
+ region=region,
6383
6820
  instance_id=instance_id,
6384
6821
  update_backup_schedule_payload=update_backup_schedule_payload,
6385
6822
  _request_auth=_request_auth,
@@ -6391,6 +6828,7 @@ class DefaultApi:
6391
6828
  _response_types_map: Dict[str, Optional[str]] = {
6392
6829
  "200": None,
6393
6830
  "400": "Error",
6831
+ "401": "Error",
6394
6832
  "403": None,
6395
6833
  "404": None,
6396
6834
  "405": None,
@@ -6402,6 +6840,7 @@ class DefaultApi:
6402
6840
  def _update_backup_schedule_serialize(
6403
6841
  self,
6404
6842
  project_id,
6843
+ region,
6405
6844
  instance_id,
6406
6845
  update_backup_schedule_payload,
6407
6846
  _request_auth,
@@ -6418,12 +6857,14 @@ class DefaultApi:
6418
6857
  _query_params: List[Tuple[str, str]] = []
6419
6858
  _header_params: Dict[str, Optional[str]] = _headers or {}
6420
6859
  _form_params: List[Tuple[str, str]] = []
6421
- _files: Dict[str, Union[str, bytes]] = {}
6860
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
6422
6861
  _body_params: Optional[bytes] = None
6423
6862
 
6424
6863
  # process the path parameters
6425
6864
  if project_id is not None:
6426
6865
  _path_params["projectId"] = project_id
6866
+ if region is not None:
6867
+ _path_params["region"] = region
6427
6868
  if instance_id is not None:
6428
6869
  _path_params["instanceId"] = instance_id
6429
6870
  # process the query parameters
@@ -6450,7 +6891,7 @@ class DefaultApi:
6450
6891
 
6451
6892
  return self.api_client.param_serialize(
6452
6893
  method="PUT",
6453
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups",
6894
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
6454
6895
  path_params=_path_params,
6455
6896
  query_params=_query_params,
6456
6897
  header_params=_header_params,
@@ -6467,6 +6908,7 @@ class DefaultApi:
6467
6908
  def update_instance(
6468
6909
  self,
6469
6910
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6911
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6470
6912
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6471
6913
  update_instance_payload: Annotated[UpdateInstancePayload, Field(description="Body")],
6472
6914
  _request_timeout: Union[
@@ -6485,6 +6927,8 @@ class DefaultApi:
6485
6927
 
6486
6928
  :param project_id: Project ID (required)
6487
6929
  :type project_id: str
6930
+ :param region: The region which should be addressed (required)
6931
+ :type region: str
6488
6932
  :param instance_id: Instance ID (required)
6489
6933
  :type instance_id: str
6490
6934
  :param update_instance_payload: Body (required)
@@ -6509,10 +6953,11 @@ class DefaultApi:
6509
6953
  in the spec for a single request.
6510
6954
  :type _host_index: int, optional
6511
6955
  :return: Returns the result object.
6512
- """ # noqa: E501 docstring might be too long
6956
+ """ # noqa: E501
6513
6957
 
6514
6958
  _param = self._update_instance_serialize(
6515
6959
  project_id=project_id,
6960
+ region=region,
6516
6961
  instance_id=instance_id,
6517
6962
  update_instance_payload=update_instance_payload,
6518
6963
  _request_auth=_request_auth,
@@ -6524,6 +6969,7 @@ class DefaultApi:
6524
6969
  _response_types_map: Dict[str, Optional[str]] = {
6525
6970
  "200": "PartialUpdateInstanceResponse",
6526
6971
  "400": "Error",
6972
+ "401": "Error",
6527
6973
  "405": None,
6528
6974
  "500": None,
6529
6975
  }
@@ -6538,6 +6984,7 @@ class DefaultApi:
6538
6984
  def update_instance_with_http_info(
6539
6985
  self,
6540
6986
  project_id: Annotated[StrictStr, Field(description="Project ID")],
6987
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6541
6988
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6542
6989
  update_instance_payload: Annotated[UpdateInstancePayload, Field(description="Body")],
6543
6990
  _request_timeout: Union[
@@ -6556,6 +7003,8 @@ class DefaultApi:
6556
7003
 
6557
7004
  :param project_id: Project ID (required)
6558
7005
  :type project_id: str
7006
+ :param region: The region which should be addressed (required)
7007
+ :type region: str
6559
7008
  :param instance_id: Instance ID (required)
6560
7009
  :type instance_id: str
6561
7010
  :param update_instance_payload: Body (required)
@@ -6580,10 +7029,11 @@ class DefaultApi:
6580
7029
  in the spec for a single request.
6581
7030
  :type _host_index: int, optional
6582
7031
  :return: Returns the result object.
6583
- """ # noqa: E501 docstring might be too long
7032
+ """ # noqa: E501
6584
7033
 
6585
7034
  _param = self._update_instance_serialize(
6586
7035
  project_id=project_id,
7036
+ region=region,
6587
7037
  instance_id=instance_id,
6588
7038
  update_instance_payload=update_instance_payload,
6589
7039
  _request_auth=_request_auth,
@@ -6595,6 +7045,7 @@ class DefaultApi:
6595
7045
  _response_types_map: Dict[str, Optional[str]] = {
6596
7046
  "200": "PartialUpdateInstanceResponse",
6597
7047
  "400": "Error",
7048
+ "401": "Error",
6598
7049
  "405": None,
6599
7050
  "500": None,
6600
7051
  }
@@ -6609,6 +7060,7 @@ class DefaultApi:
6609
7060
  def update_instance_without_preload_content(
6610
7061
  self,
6611
7062
  project_id: Annotated[StrictStr, Field(description="Project ID")],
7063
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6612
7064
  instance_id: Annotated[StrictStr, Field(description="Instance ID")],
6613
7065
  update_instance_payload: Annotated[UpdateInstancePayload, Field(description="Body")],
6614
7066
  _request_timeout: Union[
@@ -6627,6 +7079,8 @@ class DefaultApi:
6627
7079
 
6628
7080
  :param project_id: Project ID (required)
6629
7081
  :type project_id: str
7082
+ :param region: The region which should be addressed (required)
7083
+ :type region: str
6630
7084
  :param instance_id: Instance ID (required)
6631
7085
  :type instance_id: str
6632
7086
  :param update_instance_payload: Body (required)
@@ -6651,10 +7105,11 @@ class DefaultApi:
6651
7105
  in the spec for a single request.
6652
7106
  :type _host_index: int, optional
6653
7107
  :return: Returns the result object.
6654
- """ # noqa: E501 docstring might be too long
7108
+ """ # noqa: E501
6655
7109
 
6656
7110
  _param = self._update_instance_serialize(
6657
7111
  project_id=project_id,
7112
+ region=region,
6658
7113
  instance_id=instance_id,
6659
7114
  update_instance_payload=update_instance_payload,
6660
7115
  _request_auth=_request_auth,
@@ -6666,6 +7121,7 @@ class DefaultApi:
6666
7121
  _response_types_map: Dict[str, Optional[str]] = {
6667
7122
  "200": "PartialUpdateInstanceResponse",
6668
7123
  "400": "Error",
7124
+ "401": "Error",
6669
7125
  "405": None,
6670
7126
  "500": None,
6671
7127
  }
@@ -6675,6 +7131,7 @@ class DefaultApi:
6675
7131
  def _update_instance_serialize(
6676
7132
  self,
6677
7133
  project_id,
7134
+ region,
6678
7135
  instance_id,
6679
7136
  update_instance_payload,
6680
7137
  _request_auth,
@@ -6691,12 +7148,14 @@ class DefaultApi:
6691
7148
  _query_params: List[Tuple[str, str]] = []
6692
7149
  _header_params: Dict[str, Optional[str]] = _headers or {}
6693
7150
  _form_params: List[Tuple[str, str]] = []
6694
- _files: Dict[str, Union[str, bytes]] = {}
7151
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
6695
7152
  _body_params: Optional[bytes] = None
6696
7153
 
6697
7154
  # process the path parameters
6698
7155
  if project_id is not None:
6699
7156
  _path_params["projectId"] = project_id
7157
+ if region is not None:
7158
+ _path_params["region"] = region
6700
7159
  if instance_id is not None:
6701
7160
  _path_params["instanceId"] = instance_id
6702
7161
  # process the query parameters
@@ -6723,7 +7182,7 @@ class DefaultApi:
6723
7182
 
6724
7183
  return self.api_client.param_serialize(
6725
7184
  method="PUT",
6726
- resource_path="/v1/projects/{projectId}/instances/{instanceId}",
7185
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
6727
7186
  path_params=_path_params,
6728
7187
  query_params=_query_params,
6729
7188
  header_params=_header_params,
@@ -6740,6 +7199,7 @@ class DefaultApi:
6740
7199
  def update_user(
6741
7200
  self,
6742
7201
  project_id: Annotated[StrictStr, Field(description="The ID of the project")],
7202
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6743
7203
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
6744
7204
  user_id: Annotated[StrictStr, Field(description="The ID of the user in the database")],
6745
7205
  update_user_payload: Annotated[
@@ -6764,6 +7224,8 @@ class DefaultApi:
6764
7224
 
6765
7225
  :param project_id: The ID of the project (required)
6766
7226
  :type project_id: str
7227
+ :param region: The region which should be addressed (required)
7228
+ :type region: str
6767
7229
  :param instance_id: The ID of the instance (required)
6768
7230
  :type instance_id: str
6769
7231
  :param user_id: The ID of the user in the database (required)
@@ -6790,10 +7252,11 @@ class DefaultApi:
6790
7252
  in the spec for a single request.
6791
7253
  :type _host_index: int, optional
6792
7254
  :return: Returns the result object.
6793
- """ # noqa: E501 docstring might be too long
7255
+ """ # noqa: E501
6794
7256
 
6795
7257
  _param = self._update_user_serialize(
6796
7258
  project_id=project_id,
7259
+ region=region,
6797
7260
  instance_id=instance_id,
6798
7261
  user_id=user_id,
6799
7262
  update_user_payload=update_user_payload,
@@ -6806,6 +7269,7 @@ class DefaultApi:
6806
7269
  _response_types_map: Dict[str, Optional[str]] = {
6807
7270
  "200": None,
6808
7271
  "400": "Error",
7272
+ "401": "Error",
6809
7273
  "405": None,
6810
7274
  "500": "Error",
6811
7275
  }
@@ -6820,6 +7284,7 @@ class DefaultApi:
6820
7284
  def update_user_with_http_info(
6821
7285
  self,
6822
7286
  project_id: Annotated[StrictStr, Field(description="The ID of the project")],
7287
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6823
7288
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
6824
7289
  user_id: Annotated[StrictStr, Field(description="The ID of the user in the database")],
6825
7290
  update_user_payload: Annotated[
@@ -6844,6 +7309,8 @@ class DefaultApi:
6844
7309
 
6845
7310
  :param project_id: The ID of the project (required)
6846
7311
  :type project_id: str
7312
+ :param region: The region which should be addressed (required)
7313
+ :type region: str
6847
7314
  :param instance_id: The ID of the instance (required)
6848
7315
  :type instance_id: str
6849
7316
  :param user_id: The ID of the user in the database (required)
@@ -6870,10 +7337,11 @@ class DefaultApi:
6870
7337
  in the spec for a single request.
6871
7338
  :type _host_index: int, optional
6872
7339
  :return: Returns the result object.
6873
- """ # noqa: E501 docstring might be too long
7340
+ """ # noqa: E501
6874
7341
 
6875
7342
  _param = self._update_user_serialize(
6876
7343
  project_id=project_id,
7344
+ region=region,
6877
7345
  instance_id=instance_id,
6878
7346
  user_id=user_id,
6879
7347
  update_user_payload=update_user_payload,
@@ -6886,6 +7354,7 @@ class DefaultApi:
6886
7354
  _response_types_map: Dict[str, Optional[str]] = {
6887
7355
  "200": None,
6888
7356
  "400": "Error",
7357
+ "401": "Error",
6889
7358
  "405": None,
6890
7359
  "500": "Error",
6891
7360
  }
@@ -6900,6 +7369,7 @@ class DefaultApi:
6900
7369
  def update_user_without_preload_content(
6901
7370
  self,
6902
7371
  project_id: Annotated[StrictStr, Field(description="The ID of the project")],
7372
+ region: Annotated[StrictStr, Field(description="The region which should be addressed")],
6903
7373
  instance_id: Annotated[StrictStr, Field(description="The ID of the instance")],
6904
7374
  user_id: Annotated[StrictStr, Field(description="The ID of the user in the database")],
6905
7375
  update_user_payload: Annotated[
@@ -6924,6 +7394,8 @@ class DefaultApi:
6924
7394
 
6925
7395
  :param project_id: The ID of the project (required)
6926
7396
  :type project_id: str
7397
+ :param region: The region which should be addressed (required)
7398
+ :type region: str
6927
7399
  :param instance_id: The ID of the instance (required)
6928
7400
  :type instance_id: str
6929
7401
  :param user_id: The ID of the user in the database (required)
@@ -6950,10 +7422,11 @@ class DefaultApi:
6950
7422
  in the spec for a single request.
6951
7423
  :type _host_index: int, optional
6952
7424
  :return: Returns the result object.
6953
- """ # noqa: E501 docstring might be too long
7425
+ """ # noqa: E501
6954
7426
 
6955
7427
  _param = self._update_user_serialize(
6956
7428
  project_id=project_id,
7429
+ region=region,
6957
7430
  instance_id=instance_id,
6958
7431
  user_id=user_id,
6959
7432
  update_user_payload=update_user_payload,
@@ -6966,6 +7439,7 @@ class DefaultApi:
6966
7439
  _response_types_map: Dict[str, Optional[str]] = {
6967
7440
  "200": None,
6968
7441
  "400": "Error",
7442
+ "401": "Error",
6969
7443
  "405": None,
6970
7444
  "500": "Error",
6971
7445
  }
@@ -6975,6 +7449,7 @@ class DefaultApi:
6975
7449
  def _update_user_serialize(
6976
7450
  self,
6977
7451
  project_id,
7452
+ region,
6978
7453
  instance_id,
6979
7454
  user_id,
6980
7455
  update_user_payload,
@@ -6992,12 +7467,14 @@ class DefaultApi:
6992
7467
  _query_params: List[Tuple[str, str]] = []
6993
7468
  _header_params: Dict[str, Optional[str]] = _headers or {}
6994
7469
  _form_params: List[Tuple[str, str]] = []
6995
- _files: Dict[str, Union[str, bytes]] = {}
7470
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
6996
7471
  _body_params: Optional[bytes] = None
6997
7472
 
6998
7473
  # process the path parameters
6999
7474
  if project_id is not None:
7000
7475
  _path_params["projectId"] = project_id
7476
+ if region is not None:
7477
+ _path_params["region"] = region
7001
7478
  if instance_id is not None:
7002
7479
  _path_params["instanceId"] = instance_id
7003
7480
  if user_id is not None:
@@ -7026,7 +7503,7 @@ class DefaultApi:
7026
7503
 
7027
7504
  return self.api_client.param_serialize(
7028
7505
  method="PUT",
7029
- resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
7506
+ resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
7030
7507
  path_params=_path_params,
7031
7508
  query_params=_query_params,
7032
7509
  header_params=_header_params,