Skip to content

Commit 44fb00a

Browse files
committed
replace organization_id and project_id uri
1 parent 4d990a5 commit 44fb00a

21 files changed

+9155
-441
lines changed

scaleway/scaleway/instance/v1/tests/cassettes/instance_volume.cassette.yaml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interactions:
2121
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers
2222
response:
2323
body:
24-
string: '{"server": {"id": "9b7affda-4bd8-4445-908e-8a3fb7d42c4f", "name": "test-sdk-python-fixture",
24+
string: '{"server": {"id": "a2e381f4-efa2-4e33-87a2-361fb81377f6", "name": "test-sdk-python-fixture",
2525
"arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization":
2626
"11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
2727
"hostname": "test-sdk-python-fixture", "image": {"id": "c00ae53c-1e29-4087-a384-47f3c5c1cd84",
@@ -31,17 +31,17 @@ interactions:
3131
"extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2025-02-03T13:36:50.774356+00:00",
3232
"modification_date": "2025-02-03T13:36:50.774356+00:00", "default_bootscript":
3333
null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"},
34-
"volumes": {"0": {"boot": false, "id": "aa9a1813-48cd-43b5-bae9-ff2a8b178225",
34+
"volumes": {"0": {"boot": false, "id": "2586c808-eb32-436f-bd41-14f437bdf5f1",
3535
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "export_uri":
3636
null, "organization": "11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
37-
"server": {"id": "9b7affda-4bd8-4445-908e-8a3fb7d42c4f", "name": "test-sdk-python-fixture"},
38-
"size": 10000000000, "state": "available", "creation_date": "2025-08-28T14:47:15.000191+00:00",
39-
"modification_date": "2025-08-28T14:47:15.000191+00:00", "tags": [], "zone":
37+
"server": {"id": "a2e381f4-efa2-4e33-87a2-361fb81377f6", "name": "test-sdk-python-fixture"},
38+
"size": 10000000000, "state": "available", "creation_date": "2025-08-28T15:35:22.726027+00:00",
39+
"modification_date": "2025-08-28T15:35:22.726027+00:00", "tags": [], "zone":
4040
"fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail":
41-
"", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:a7:cb",
41+
"", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:a9:9f",
4242
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
43-
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-28T14:47:15.000191+00:00",
44-
"modification_date": "2025-08-28T14:47:15.000191+00:00", "bootscript": null,
43+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-28T15:35:22.726027+00:00",
44+
"modification_date": "2025-08-28T15:35:22.726027+00:00", "bootscript": null,
4545
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
4646
security group"}, "location": null, "maintenances": [], "allowed_actions":
4747
["poweron", "backup"], "placement_group": null, "private_nics": [], "zone":
@@ -54,19 +54,19 @@ interactions:
5454
content-type:
5555
- application/json
5656
date:
57-
- Thu, 28 Aug 2025 14:47:15 GMT
57+
- Thu, 28 Aug 2025 15:35:23 GMT
5858
location:
59-
- https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/9b7affda-4bd8-4445-908e-8a3fb7d42c4f
59+
- https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a2e381f4-efa2-4e33-87a2-361fb81377f6
6060
server:
61-
- Scaleway API Gateway (fr-par-3;edge01)
61+
- Scaleway API Gateway (fr-par-3;edge02)
6262
strict-transport-security:
6363
- max-age=63072000
6464
x-content-type-options:
6565
- nosniff
6666
x-frame-options:
6767
- DENY
6868
x-request-id:
69-
- 241f9655-8ff9-4378-a07e-0e2ee8bfb0b3
69+
- 320110f2-643e-478e-85b7-a1ae2de984b5
7070
status:
7171
code: 201
7272
message: Created
@@ -84,10 +84,10 @@ interactions:
8484
user-agent:
8585
- scaleway-sdk-python/2.0.0
8686
method: GET
87-
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/9b7affda-4bd8-4445-908e-8a3fb7d42c4f
87+
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a2e381f4-efa2-4e33-87a2-361fb81377f6
8888
response:
8989
body:
90-
string: '{"server": {"id": "9b7affda-4bd8-4445-908e-8a3fb7d42c4f", "name": "test-sdk-python-fixture",
90+
string: '{"server": {"id": "a2e381f4-efa2-4e33-87a2-361fb81377f6", "name": "test-sdk-python-fixture",
9191
"arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization":
9292
"11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
9393
"hostname": "test-sdk-python-fixture", "image": {"id": "c00ae53c-1e29-4087-a384-47f3c5c1cd84",
@@ -97,17 +97,17 @@ interactions:
9797
"extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2025-02-03T13:36:50.774356+00:00",
9898
"modification_date": "2025-02-03T13:36:50.774356+00:00", "default_bootscript":
9999
null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"},
100-
"volumes": {"0": {"boot": false, "id": "aa9a1813-48cd-43b5-bae9-ff2a8b178225",
100+
"volumes": {"0": {"boot": false, "id": "2586c808-eb32-436f-bd41-14f437bdf5f1",
101101
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "export_uri":
102102
null, "organization": "11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
103-
"server": {"id": "9b7affda-4bd8-4445-908e-8a3fb7d42c4f", "name": "test-sdk-python-fixture"},
104-
"size": 10000000000, "state": "available", "creation_date": "2025-08-28T14:47:15.000191+00:00",
105-
"modification_date": "2025-08-28T14:47:15.000191+00:00", "tags": [], "zone":
103+
"server": {"id": "a2e381f4-efa2-4e33-87a2-361fb81377f6", "name": "test-sdk-python-fixture"},
104+
"size": 10000000000, "state": "available", "creation_date": "2025-08-28T15:35:22.726027+00:00",
105+
"modification_date": "2025-08-28T15:35:22.726027+00:00", "tags": [], "zone":
106106
"fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail":
107-
"", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:a7:cb",
107+
"", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:a9:9f",
108108
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
109-
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-28T14:47:15.000191+00:00",
110-
"modification_date": "2025-08-28T14:47:15.000191+00:00", "bootscript": null,
109+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-28T15:35:22.726027+00:00",
110+
"modification_date": "2025-08-28T15:35:22.726027+00:00", "bootscript": null,
111111
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
112112
security group"}, "location": null, "maintenances": [], "allowed_actions":
113113
["poweron", "backup"], "placement_group": null, "private_nics": [], "zone":
@@ -120,22 +120,22 @@ interactions:
120120
content-type:
121121
- application/json
122122
date:
123-
- Thu, 28 Aug 2025 14:47:15 GMT
123+
- Thu, 28 Aug 2025 15:35:23 GMT
124124
server:
125-
- Scaleway API Gateway (fr-par-3;edge01)
125+
- Scaleway API Gateway (fr-par-3;edge02)
126126
strict-transport-security:
127127
- max-age=63072000
128128
x-content-type-options:
129129
- nosniff
130130
x-frame-options:
131131
- DENY
132132
x-request-id:
133-
- b8ac9a01-c27f-4446-85ce-e6757797bcca
133+
- 4d05459d-f56c-4440-be28-dd45f82d5d4f
134134
status:
135135
code: 200
136136
message: OK
137137
- request:
138-
body: '{"volume_id": "9e153b85-989e-4af1-a3af-f968c9ce2798"}'
138+
body: '{"volume_id": "670c8583-b924-41bc-a034-2284724d8512"}'
139139
headers:
140140
Accept-Encoding:
141141
- gzip, deflate
@@ -150,10 +150,10 @@ interactions:
150150
user-agent:
151151
- scaleway-sdk-python/2.0.0
152152
method: POST
153-
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/9b7affda-4bd8-4445-908e-8a3fb7d42c4f/detach-volume
153+
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a2e381f4-efa2-4e33-87a2-361fb81377f6/detach-volume
154154
response:
155155
body:
156-
string: '{"server": {"id": "9b7affda-4bd8-4445-908e-8a3fb7d42c4f", "name": "test-sdk-python-fixture",
156+
string: '{"server": {"id": "a2e381f4-efa2-4e33-87a2-361fb81377f6", "name": "test-sdk-python-fixture",
157157
"arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization":
158158
"11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
159159
"hostname": "test-sdk-python-fixture", "image": {"id": "c00ae53c-1e29-4087-a384-47f3c5c1cd84",
@@ -163,17 +163,17 @@ interactions:
163163
"extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2025-02-03T13:36:50.774356+00:00",
164164
"modification_date": "2025-02-03T13:36:50.774356+00:00", "default_bootscript":
165165
null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"},
166-
"volumes": {"0": {"boot": false, "id": "aa9a1813-48cd-43b5-bae9-ff2a8b178225",
166+
"volumes": {"0": {"boot": false, "id": "2586c808-eb32-436f-bd41-14f437bdf5f1",
167167
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "export_uri":
168168
null, "organization": "11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
169-
"server": {"id": "9b7affda-4bd8-4445-908e-8a3fb7d42c4f", "name": "test-sdk-python-fixture"},
170-
"size": 10000000000, "state": "available", "creation_date": "2025-08-28T14:47:15.000191+00:00",
171-
"modification_date": "2025-08-28T14:47:15.000191+00:00", "tags": [], "zone":
169+
"server": {"id": "a2e381f4-efa2-4e33-87a2-361fb81377f6", "name": "test-sdk-python-fixture"},
170+
"size": 10000000000, "state": "available", "creation_date": "2025-08-28T15:35:22.726027+00:00",
171+
"modification_date": "2025-08-28T15:35:22.726027+00:00", "tags": [], "zone":
172172
"fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail":
173-
"", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:a7:cb",
173+
"", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:a9:9f",
174174
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
175-
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-28T14:47:15.000191+00:00",
176-
"modification_date": "2025-08-28T14:47:15.000191+00:00", "bootscript": null,
175+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-28T15:35:22.726027+00:00",
176+
"modification_date": "2025-08-28T15:35:22.726027+00:00", "bootscript": null,
177177
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
178178
security group"}, "location": null, "maintenances": [], "allowed_actions":
179179
["poweron", "backup"], "placement_group": null, "private_nics": [], "zone":
@@ -186,7 +186,7 @@ interactions:
186186
content-type:
187187
- application/json
188188
date:
189-
- Thu, 28 Aug 2025 14:47:20 GMT
189+
- Thu, 28 Aug 2025 15:35:28 GMT
190190
server:
191191
- Scaleway API Gateway (fr-par-3;edge02)
192192
strict-transport-security:
@@ -196,7 +196,7 @@ interactions:
196196
x-frame-options:
197197
- DENY
198198
x-request-id:
199-
- 5d9baf24-f43e-44d8-9a51-580a0b89b2ab
199+
- 9b98db4b-7f2e-4da4-a098-239d2d833a59
200200
status:
201201
code: 200
202202
message: OK
@@ -214,24 +214,24 @@ interactions:
214214
user-agent:
215215
- scaleway-sdk-python/2.0.0
216216
method: GET
217-
uri: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/9e153b85-989e-4af1-a3af-f968c9ce2798
217+
uri: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/670c8583-b924-41bc-a034-2284724d8512
218218
response:
219219
body:
220-
string: '{"id": "9e153b85-989e-4af1-a3af-f968c9ce2798", "name": "vol-loving-ptolemy",
220+
string: '{"id": "670c8583-b924-41bc-a034-2284724d8512", "name": "vol-hardcore-mendel",
221221
"type": "sbs_5k", "size": 10000000000, "project_id": "11111111-1111-1111-1111-111111111111",
222-
"created_at": "2025-08-28T14:47:15.540615Z", "updated_at": "2025-08-28T14:47:21.057575Z",
222+
"created_at": "2025-08-28T15:35:23.311139Z", "updated_at": "2025-08-28T15:35:28.568978Z",
223223
"references": [], "parent_snapshot_id": null, "status": "available", "tags":
224-
[], "specs": {"perf_iops": 5000, "class": "sbs"}, "last_detached_at": "2025-08-28T14:47:21.057575Z",
224+
[], "specs": {"perf_iops": 5000, "class": "sbs"}, "last_detached_at": "2025-08-28T15:35:28.568978Z",
225225
"zone": "fr-par-1"}'
226226
headers:
227227
content-length:
228-
- '427'
228+
- '428'
229229
content-security-policy:
230230
- default-src 'none'; frame-ancestors 'none'
231231
content-type:
232232
- application/json
233233
date:
234-
- Thu, 28 Aug 2025 14:47:21 GMT
234+
- Thu, 28 Aug 2025 15:35:29 GMT
235235
server:
236236
- Scaleway API Gateway (fr-par-3;edge02)
237237
strict-transport-security:
@@ -241,7 +241,7 @@ interactions:
241241
x-frame-options:
242242
- DENY
243243
x-request-id:
244-
- a2545ffa-8ca1-4035-a772-58626211b9be
244+
- 0c2a1d80-5d00-465b-a88c-a1931e38eb43
245245
status:
246246
code: 200
247247
message: OK
@@ -259,7 +259,7 @@ interactions:
259259
user-agent:
260260
- scaleway-sdk-python/2.0.0
261261
method: DELETE
262-
uri: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/9e153b85-989e-4af1-a3af-f968c9ce2798
262+
uri: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/670c8583-b924-41bc-a034-2284724d8512
263263
response:
264264
body:
265265
string: ''
@@ -269,17 +269,17 @@ interactions:
269269
content-type:
270270
- application/json
271271
date:
272-
- Thu, 28 Aug 2025 14:47:21 GMT
272+
- Thu, 28 Aug 2025 15:35:29 GMT
273273
server:
274-
- Scaleway API Gateway (fr-par-3;edge02)
274+
- Scaleway API Gateway (fr-par-3;edge01)
275275
strict-transport-security:
276276
- max-age=63072000
277277
x-content-type-options:
278278
- nosniff
279279
x-frame-options:
280280
- DENY
281281
x-request-id:
282-
- ff16cea2-f4af-42eb-81d1-8600f13e213d
282+
- a4d2d74f-e745-4533-bc24-f1971a426798
283283
status:
284284
code: 204
285285
message: No Content
@@ -297,7 +297,7 @@ interactions:
297297
user-agent:
298298
- scaleway-sdk-python/2.0.0
299299
method: DELETE
300-
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/9b7affda-4bd8-4445-908e-8a3fb7d42c4f
300+
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a2e381f4-efa2-4e33-87a2-361fb81377f6
301301
response:
302302
body:
303303
string: ''
@@ -307,7 +307,7 @@ interactions:
307307
content-type:
308308
- application/json
309309
date:
310-
- Thu, 28 Aug 2025 14:47:22 GMT
310+
- Thu, 28 Aug 2025 15:35:29 GMT
311311
server:
312312
- Scaleway API Gateway (fr-par-3;edge01)
313313
strict-transport-security:
@@ -317,7 +317,7 @@ interactions:
317317
x-frame-options:
318318
- DENY
319319
x-request-id:
320-
- 62c90028-ffcc-44fa-99cc-cb9f09e52b10
320+
- f9d83cb5-3857-4c8c-b7c1-fa1d15f3e613
321321
status:
322322
code: 204
323323
message: No Content

0 commit comments

Comments
 (0)