stackit-runcommand 0.2.0__tar.gz → 1.0.1__tar.gz

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 (27) hide show
  1. stackit_runcommand-1.0.1/LICENSE.md +201 -0
  2. stackit_runcommand-1.0.1/NOTICE.txt +2 -0
  3. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/PKG-INFO +1 -1
  4. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/pyproject.toml +1 -1
  5. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/__init__.py +1 -1
  6. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/api/default_api.py +66 -6
  7. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/api_client.py +2 -2
  8. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/configuration.py +10 -7
  9. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/exceptions.py +1 -1
  10. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/__init__.py +1 -1
  11. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/command_details.py +1 -1
  12. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/command_template.py +1 -1
  13. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/command_template_response.py +1 -1
  14. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/command_template_schema.py +1 -1
  15. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/commands.py +1 -1
  16. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/create_command_payload.py +1 -1
  17. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/error_response.py +1 -1
  18. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/get_commands_response.py +1 -1
  19. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/model_field.py +1 -1
  20. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/new_command_response.py +1 -1
  21. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/parameters_schema.py +1 -1
  22. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/models/properties.py +1 -1
  23. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/rest.py +1 -1
  24. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/README.md +0 -0
  25. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/api/__init__.py +0 -0
  26. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/api_response.py +0 -0
  27. {stackit_runcommand-0.2.0 → stackit_runcommand-1.0.1}/src/stackit/runcommand/py.typed +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Schwarz IT KG
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ STACKIT Run Command SDK for Python
2
+ Copyright 2025 Schwarz IT KG
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stackit-runcommand
3
- Version: 0.2.0
3
+ Version: 1.0.1
4
4
  Summary: STACKIT Run Commands Service API
5
5
  Author: STACKIT Developer Tools
6
6
  Author-email: developer-tools@stackit.cloud
@@ -3,7 +3,7 @@ name = "stackit-runcommand"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "stackit-runcommand"
6
- version = "v0.2.0"
6
+ version = "v1.0.1"
7
7
  authors = [
8
8
  "STACKIT Developer Tools <developer-tools@stackit.cloud>",
9
9
  ]
@@ -7,7 +7,7 @@
7
7
 
8
8
  API endpoints for the STACKIT Run Commands Service API
9
9
 
10
- The version of the OpenAPI document: 1.0
10
+ The version of the OpenAPI document: 2.0
11
11
  Contact: support@stackit.de
12
12
  Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -47,6 +47,7 @@ class DefaultApi:
47
47
  self,
48
48
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
49
49
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
50
+ region: Annotated[StrictStr, Field(description="region")],
50
51
  create_command_payload: Annotated[Optional[CreateCommandPayload], Field(description="Command to post")] = None,
51
52
  _request_timeout: Union[
52
53
  None,
@@ -66,6 +67,8 @@ class DefaultApi:
66
67
  :type project_id: str
67
68
  :param server_id: Server ID of the machine (required)
68
69
  :type server_id: str
70
+ :param region: region (required)
71
+ :type region: str
69
72
  :param create_command_payload: Command to post
70
73
  :type create_command_payload: CreateCommandPayload
71
74
  :param _request_timeout: timeout setting for this request. If one
@@ -93,6 +96,7 @@ class DefaultApi:
93
96
  _param = self._create_command_serialize(
94
97
  project_id=project_id,
95
98
  server_id=server_id,
99
+ region=region,
96
100
  create_command_payload=create_command_payload,
97
101
  _request_auth=_request_auth,
98
102
  _content_type=_content_type,
@@ -118,6 +122,7 @@ class DefaultApi:
118
122
  self,
119
123
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
120
124
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
125
+ region: Annotated[StrictStr, Field(description="region")],
121
126
  create_command_payload: Annotated[Optional[CreateCommandPayload], Field(description="Command to post")] = None,
122
127
  _request_timeout: Union[
123
128
  None,
@@ -137,6 +142,8 @@ class DefaultApi:
137
142
  :type project_id: str
138
143
  :param server_id: Server ID of the machine (required)
139
144
  :type server_id: str
145
+ :param region: region (required)
146
+ :type region: str
140
147
  :param create_command_payload: Command to post
141
148
  :type create_command_payload: CreateCommandPayload
142
149
  :param _request_timeout: timeout setting for this request. If one
@@ -164,6 +171,7 @@ class DefaultApi:
164
171
  _param = self._create_command_serialize(
165
172
  project_id=project_id,
166
173
  server_id=server_id,
174
+ region=region,
167
175
  create_command_payload=create_command_payload,
168
176
  _request_auth=_request_auth,
169
177
  _content_type=_content_type,
@@ -189,6 +197,7 @@ class DefaultApi:
189
197
  self,
190
198
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
191
199
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
200
+ region: Annotated[StrictStr, Field(description="region")],
192
201
  create_command_payload: Annotated[Optional[CreateCommandPayload], Field(description="Command to post")] = None,
193
202
  _request_timeout: Union[
194
203
  None,
@@ -208,6 +217,8 @@ class DefaultApi:
208
217
  :type project_id: str
209
218
  :param server_id: Server ID of the machine (required)
210
219
  :type server_id: str
220
+ :param region: region (required)
221
+ :type region: str
211
222
  :param create_command_payload: Command to post
212
223
  :type create_command_payload: CreateCommandPayload
213
224
  :param _request_timeout: timeout setting for this request. If one
@@ -235,6 +246,7 @@ class DefaultApi:
235
246
  _param = self._create_command_serialize(
236
247
  project_id=project_id,
237
248
  server_id=server_id,
249
+ region=region,
238
250
  create_command_payload=create_command_payload,
239
251
  _request_auth=_request_auth,
240
252
  _content_type=_content_type,
@@ -255,6 +267,7 @@ class DefaultApi:
255
267
  self,
256
268
  project_id,
257
269
  server_id,
270
+ region,
258
271
  create_command_payload,
259
272
  _request_auth,
260
273
  _content_type,
@@ -278,6 +291,8 @@ class DefaultApi:
278
291
  _path_params["projectId"] = project_id
279
292
  if server_id is not None:
280
293
  _path_params["serverId"] = server_id
294
+ if region is not None:
295
+ _path_params["region"] = region
281
296
  # process the query parameters
282
297
  # process the header parameters
283
298
  # process the form parameters
@@ -302,7 +317,7 @@ class DefaultApi:
302
317
 
303
318
  return self.api_client.param_serialize(
304
319
  method="POST",
305
- resource_path="/v1/projects/{projectId}/servers/{serverId}/commands",
320
+ resource_path="/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",
306
321
  path_params=_path_params,
307
322
  query_params=_query_params,
308
323
  header_params=_header_params,
@@ -319,6 +334,7 @@ class DefaultApi:
319
334
  def get_command(
320
335
  self,
321
336
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
337
+ region: Annotated[StrictStr, Field(description="region")],
322
338
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
323
339
  command_id: Annotated[StrictStr, Field(description="ID of the command")],
324
340
  _request_timeout: Union[
@@ -337,6 +353,8 @@ class DefaultApi:
337
353
 
338
354
  :param project_id: ID of the project (required)
339
355
  :type project_id: str
356
+ :param region: region (required)
357
+ :type region: str
340
358
  :param server_id: Server ID of the machine (required)
341
359
  :type server_id: str
342
360
  :param command_id: ID of the command (required)
@@ -365,6 +383,7 @@ class DefaultApi:
365
383
 
366
384
  _param = self._get_command_serialize(
367
385
  project_id=project_id,
386
+ region=region,
368
387
  server_id=server_id,
369
388
  command_id=command_id,
370
389
  _request_auth=_request_auth,
@@ -390,6 +409,7 @@ class DefaultApi:
390
409
  def get_command_with_http_info(
391
410
  self,
392
411
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
412
+ region: Annotated[StrictStr, Field(description="region")],
393
413
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
394
414
  command_id: Annotated[StrictStr, Field(description="ID of the command")],
395
415
  _request_timeout: Union[
@@ -408,6 +428,8 @@ class DefaultApi:
408
428
 
409
429
  :param project_id: ID of the project (required)
410
430
  :type project_id: str
431
+ :param region: region (required)
432
+ :type region: str
411
433
  :param server_id: Server ID of the machine (required)
412
434
  :type server_id: str
413
435
  :param command_id: ID of the command (required)
@@ -436,6 +458,7 @@ class DefaultApi:
436
458
 
437
459
  _param = self._get_command_serialize(
438
460
  project_id=project_id,
461
+ region=region,
439
462
  server_id=server_id,
440
463
  command_id=command_id,
441
464
  _request_auth=_request_auth,
@@ -461,6 +484,7 @@ class DefaultApi:
461
484
  def get_command_without_preload_content(
462
485
  self,
463
486
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
487
+ region: Annotated[StrictStr, Field(description="region")],
464
488
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
465
489
  command_id: Annotated[StrictStr, Field(description="ID of the command")],
466
490
  _request_timeout: Union[
@@ -479,6 +503,8 @@ class DefaultApi:
479
503
 
480
504
  :param project_id: ID of the project (required)
481
505
  :type project_id: str
506
+ :param region: region (required)
507
+ :type region: str
482
508
  :param server_id: Server ID of the machine (required)
483
509
  :type server_id: str
484
510
  :param command_id: ID of the command (required)
@@ -507,6 +533,7 @@ class DefaultApi:
507
533
 
508
534
  _param = self._get_command_serialize(
509
535
  project_id=project_id,
536
+ region=region,
510
537
  server_id=server_id,
511
538
  command_id=command_id,
512
539
  _request_auth=_request_auth,
@@ -527,6 +554,7 @@ class DefaultApi:
527
554
  def _get_command_serialize(
528
555
  self,
529
556
  project_id,
557
+ region,
530
558
  server_id,
531
559
  command_id,
532
560
  _request_auth,
@@ -549,6 +577,8 @@ class DefaultApi:
549
577
  # process the path parameters
550
578
  if project_id is not None:
551
579
  _path_params["projectId"] = project_id
580
+ if region is not None:
581
+ _path_params["region"] = region
552
582
  if server_id is not None:
553
583
  _path_params["serverId"] = server_id
554
584
  if command_id is not None:
@@ -567,7 +597,7 @@ class DefaultApi:
567
597
 
568
598
  return self.api_client.param_serialize(
569
599
  method="GET",
570
- resource_path="/v1/projects/{projectId}/servers/{serverId}/commands/{commandId}",
600
+ resource_path="/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands/{commandId}",
571
601
  path_params=_path_params,
572
602
  query_params=_query_params,
573
603
  header_params=_header_params,
@@ -586,6 +616,7 @@ class DefaultApi:
586
616
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
587
617
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
588
618
  command_template_name: Annotated[StrictStr, Field(description="Name of the template")],
619
+ region: Annotated[StrictStr, Field(description="region")],
589
620
  _request_timeout: Union[
590
621
  None,
591
622
  Annotated[StrictFloat, Field(gt=0)],
@@ -606,6 +637,8 @@ class DefaultApi:
606
637
  :type server_id: str
607
638
  :param command_template_name: Name of the template (required)
608
639
  :type command_template_name: str
640
+ :param region: region (required)
641
+ :type region: str
609
642
  :param _request_timeout: timeout setting for this request. If one
610
643
  number provided, it will be total request
611
644
  timeout. It can also be a pair (tuple) of
@@ -632,6 +665,7 @@ class DefaultApi:
632
665
  project_id=project_id,
633
666
  server_id=server_id,
634
667
  command_template_name=command_template_name,
668
+ region=region,
635
669
  _request_auth=_request_auth,
636
670
  _content_type=_content_type,
637
671
  _headers=_headers,
@@ -657,6 +691,7 @@ class DefaultApi:
657
691
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
658
692
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
659
693
  command_template_name: Annotated[StrictStr, Field(description="Name of the template")],
694
+ region: Annotated[StrictStr, Field(description="region")],
660
695
  _request_timeout: Union[
661
696
  None,
662
697
  Annotated[StrictFloat, Field(gt=0)],
@@ -677,6 +712,8 @@ class DefaultApi:
677
712
  :type server_id: str
678
713
  :param command_template_name: Name of the template (required)
679
714
  :type command_template_name: str
715
+ :param region: region (required)
716
+ :type region: str
680
717
  :param _request_timeout: timeout setting for this request. If one
681
718
  number provided, it will be total request
682
719
  timeout. It can also be a pair (tuple) of
@@ -703,6 +740,7 @@ class DefaultApi:
703
740
  project_id=project_id,
704
741
  server_id=server_id,
705
742
  command_template_name=command_template_name,
743
+ region=region,
706
744
  _request_auth=_request_auth,
707
745
  _content_type=_content_type,
708
746
  _headers=_headers,
@@ -728,6 +766,7 @@ class DefaultApi:
728
766
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
729
767
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
730
768
  command_template_name: Annotated[StrictStr, Field(description="Name of the template")],
769
+ region: Annotated[StrictStr, Field(description="region")],
731
770
  _request_timeout: Union[
732
771
  None,
733
772
  Annotated[StrictFloat, Field(gt=0)],
@@ -748,6 +787,8 @@ class DefaultApi:
748
787
  :type server_id: str
749
788
  :param command_template_name: Name of the template (required)
750
789
  :type command_template_name: str
790
+ :param region: region (required)
791
+ :type region: str
751
792
  :param _request_timeout: timeout setting for this request. If one
752
793
  number provided, it will be total request
753
794
  timeout. It can also be a pair (tuple) of
@@ -774,6 +815,7 @@ class DefaultApi:
774
815
  project_id=project_id,
775
816
  server_id=server_id,
776
817
  command_template_name=command_template_name,
818
+ region=region,
777
819
  _request_auth=_request_auth,
778
820
  _content_type=_content_type,
779
821
  _headers=_headers,
@@ -794,6 +836,7 @@ class DefaultApi:
794
836
  project_id,
795
837
  server_id,
796
838
  command_template_name,
839
+ region,
797
840
  _request_auth,
798
841
  _content_type,
799
842
  _headers,
@@ -818,6 +861,8 @@ class DefaultApi:
818
861
  _path_params["serverId"] = server_id
819
862
  if command_template_name is not None:
820
863
  _path_params["commandTemplateName"] = command_template_name
864
+ if region is not None:
865
+ _path_params["region"] = region
821
866
  # process the query parameters
822
867
  # process the header parameters
823
868
  # process the form parameters
@@ -832,7 +877,7 @@ class DefaultApi:
832
877
 
833
878
  return self.api_client.param_serialize(
834
879
  method="GET",
835
- resource_path="/v1/projects/{projectId}/servers/{serverId}/command-templates/{commandTemplateName}",
880
+ resource_path="/v2/projects/{projectId}/regions/{region}/servers/{serverId}/command-templates/{commandTemplateName}",
836
881
  path_params=_path_params,
837
882
  query_params=_query_params,
838
883
  header_params=_header_params,
@@ -1081,7 +1126,7 @@ class DefaultApi:
1081
1126
 
1082
1127
  return self.api_client.param_serialize(
1083
1128
  method="GET",
1084
- resource_path="/v1/command-templates",
1129
+ resource_path="/v2/command-templates",
1085
1130
  path_params=_path_params,
1086
1131
  query_params=_query_params,
1087
1132
  header_params=_header_params,
@@ -1099,6 +1144,7 @@ class DefaultApi:
1099
1144
  self,
1100
1145
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
1101
1146
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
1147
+ region: Annotated[StrictStr, Field(description="region")],
1102
1148
  _request_timeout: Union[
1103
1149
  None,
1104
1150
  Annotated[StrictFloat, Field(gt=0)],
@@ -1117,6 +1163,8 @@ class DefaultApi:
1117
1163
  :type project_id: str
1118
1164
  :param server_id: Server ID of the machine (required)
1119
1165
  :type server_id: str
1166
+ :param region: region (required)
1167
+ :type region: str
1120
1168
  :param _request_timeout: timeout setting for this request. If one
1121
1169
  number provided, it will be total request
1122
1170
  timeout. It can also be a pair (tuple) of
@@ -1142,6 +1190,7 @@ class DefaultApi:
1142
1190
  _param = self._list_commands_serialize(
1143
1191
  project_id=project_id,
1144
1192
  server_id=server_id,
1193
+ region=region,
1145
1194
  _request_auth=_request_auth,
1146
1195
  _content_type=_content_type,
1147
1196
  _headers=_headers,
@@ -1166,6 +1215,7 @@ class DefaultApi:
1166
1215
  self,
1167
1216
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
1168
1217
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
1218
+ region: Annotated[StrictStr, Field(description="region")],
1169
1219
  _request_timeout: Union[
1170
1220
  None,
1171
1221
  Annotated[StrictFloat, Field(gt=0)],
@@ -1184,6 +1234,8 @@ class DefaultApi:
1184
1234
  :type project_id: str
1185
1235
  :param server_id: Server ID of the machine (required)
1186
1236
  :type server_id: str
1237
+ :param region: region (required)
1238
+ :type region: str
1187
1239
  :param _request_timeout: timeout setting for this request. If one
1188
1240
  number provided, it will be total request
1189
1241
  timeout. It can also be a pair (tuple) of
@@ -1209,6 +1261,7 @@ class DefaultApi:
1209
1261
  _param = self._list_commands_serialize(
1210
1262
  project_id=project_id,
1211
1263
  server_id=server_id,
1264
+ region=region,
1212
1265
  _request_auth=_request_auth,
1213
1266
  _content_type=_content_type,
1214
1267
  _headers=_headers,
@@ -1233,6 +1286,7 @@ class DefaultApi:
1233
1286
  self,
1234
1287
  project_id: Annotated[StrictStr, Field(description="ID of the project")],
1235
1288
  server_id: Annotated[StrictStr, Field(description="Server ID of the machine")],
1289
+ region: Annotated[StrictStr, Field(description="region")],
1236
1290
  _request_timeout: Union[
1237
1291
  None,
1238
1292
  Annotated[StrictFloat, Field(gt=0)],
@@ -1251,6 +1305,8 @@ class DefaultApi:
1251
1305
  :type project_id: str
1252
1306
  :param server_id: Server ID of the machine (required)
1253
1307
  :type server_id: str
1308
+ :param region: region (required)
1309
+ :type region: str
1254
1310
  :param _request_timeout: timeout setting for this request. If one
1255
1311
  number provided, it will be total request
1256
1312
  timeout. It can also be a pair (tuple) of
@@ -1276,6 +1332,7 @@ class DefaultApi:
1276
1332
  _param = self._list_commands_serialize(
1277
1333
  project_id=project_id,
1278
1334
  server_id=server_id,
1335
+ region=region,
1279
1336
  _request_auth=_request_auth,
1280
1337
  _content_type=_content_type,
1281
1338
  _headers=_headers,
@@ -1295,6 +1352,7 @@ class DefaultApi:
1295
1352
  self,
1296
1353
  project_id,
1297
1354
  server_id,
1355
+ region,
1298
1356
  _request_auth,
1299
1357
  _content_type,
1300
1358
  _headers,
@@ -1317,6 +1375,8 @@ class DefaultApi:
1317
1375
  _path_params["projectId"] = project_id
1318
1376
  if server_id is not None:
1319
1377
  _path_params["serverId"] = server_id
1378
+ if region is not None:
1379
+ _path_params["region"] = region
1320
1380
  # process the query parameters
1321
1381
  # process the header parameters
1322
1382
  # process the form parameters
@@ -1331,7 +1391,7 @@ class DefaultApi:
1331
1391
 
1332
1392
  return self.api_client.param_serialize(
1333
1393
  method="GET",
1334
- resource_path="/v1/projects/{projectId}/servers/{serverId}/commands",
1394
+ resource_path="/v2/projects/{projectId}/regions/{region}/servers/{serverId}/commands",
1335
1395
  path_params=_path_params,
1336
1396
  query_params=_query_params,
1337
1397
  header_params=_header_params,
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -82,7 +82,7 @@ class ApiClient:
82
82
  self.default_headers[header_name] = header_value
83
83
  self.cookie = cookie
84
84
  # Set default User-Agent.
85
- self.user_agent = "OpenAPI-Generator/1.0.0/python"
85
+ self.user_agent = "stackit-sdk-python/runcommand"
86
86
 
87
87
  def __enter__(self):
88
88
  return self
@@ -1,19 +1,22 @@
1
1
  # coding: utf-8
2
2
 
3
+ import sys
4
+
5
+ import os
6
+
7
+
3
8
  """
4
9
  STACKIT Run Commands Service API
5
10
 
6
11
  API endpoints for the STACKIT Run Commands Service API
7
12
 
8
- The version of the OpenAPI document: 1.0
13
+ The version of the OpenAPI document: 2.0
9
14
  Contact: support@stackit.de
10
15
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
16
 
12
17
  Do not edit the class manually.
13
18
  """ # noqa: E501 docstring might be too long
14
19
 
15
- import os
16
-
17
20
 
18
21
  class HostConfiguration:
19
22
  def __init__(
@@ -30,10 +33,11 @@ class HostConfiguration:
30
33
  "as a function argument instead of being set in the client configuration.\n"
31
34
  "Once all services have migrated, the methods to specify the region in the client configuration "
32
35
  "will be removed.",
36
+ file=sys.stderr,
33
37
  )
34
38
  """Constructor
35
39
  """
36
- self._base_path = "https://run-command.api.eu01.stackit.cloud"
40
+ self._base_path = "https://run-command.api.stackit.cloud"
37
41
  """Default Base url
38
42
  """
39
43
  self.server_index = 0 if server_index is None else server_index
@@ -57,13 +61,12 @@ class HostConfiguration:
57
61
  """
58
62
  return [
59
63
  {
60
- "url": "https://run-command.api.{region}stackit.cloud",
64
+ "url": "https://run-command.api.stackit.cloud",
61
65
  "description": "No description provided",
62
66
  "variables": {
63
67
  "region": {
64
68
  "description": "No description provided",
65
- "default_value": "eu01.",
66
- "enum_values": ["eu01."],
69
+ "default_value": "global",
67
70
  }
68
71
  },
69
72
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  API endpoints for the STACKIT Run Commands Service API
8
8
 
9
- The version of the OpenAPI document: 1.0
9
+ The version of the OpenAPI document: 2.0
10
10
  Contact: support@stackit.de
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  API endpoints for the STACKIT Run Commands Service API
7
7
 
8
- The version of the OpenAPI document: 1.0
8
+ The version of the OpenAPI document: 2.0
9
9
  Contact: support@stackit.de
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11