Skip to content

Commit

Permalink
docs(instance): document the IPv6 address of the Metadata API (scalew…
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Jan 30, 2024
1 parent 2df2619 commit 8f9e99d
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 108 deletions.
8 changes: 5 additions & 3 deletions scaleway-async/scaleway_async/instance/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,11 @@ async def list_servers(
"per_page": per_page or self.client.default_page_size,
"private_ip": private_ip,
"private_network": private_network,
"private_networks": ",".join(private_networks)
if private_networks and len(private_networks) > 0
else None,
"private_networks": (
",".join(private_networks)
if private_networks and len(private_networks) > 0
else None
),
"private_nic_mac_address": private_nic_mac_address,
"project": project or self.client.default_project_id,
"servers": ",".join(servers) if servers and len(servers) > 0 else None,
Expand Down
136 changes: 85 additions & 51 deletions scaleway-async/scaleway_async/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2802,16 +2802,20 @@ def marshal_CreateImageRequest(
[
OneOfPossibility(
"project",
request.project or defaults.default_project_id
if request.project is not None
else None,
(
request.project or defaults.default_project_id
if request.project is not None
else None
),
defaults.default_project_id,
),
OneOfPossibility(
"organization",
request.organization or defaults.default_organization_id
if request.organization is not None
else None,
(
request.organization or defaults.default_organization_id
if request.organization is not None
else None
),
defaults.default_organization_id,
),
]
Expand Down Expand Up @@ -2855,16 +2859,20 @@ def marshal_CreateIpRequest(
[
OneOfPossibility(
"project",
request.project or defaults.default_project_id
if request.project is not None
else None,
(
request.project or defaults.default_project_id
if request.project is not None
else None
),
defaults.default_project_id,
),
OneOfPossibility(
"organization",
request.organization or defaults.default_organization_id
if request.organization is not None
else None,
(
request.organization or defaults.default_organization_id
if request.organization is not None
else None
),
defaults.default_organization_id,
),
]
Expand Down Expand Up @@ -2893,16 +2901,20 @@ def marshal_CreatePlacementGroupRequest(
[
OneOfPossibility(
"project",
request.project or defaults.default_project_id
if request.project is not None
else None,
(
request.project or defaults.default_project_id
if request.project is not None
else None
),
defaults.default_project_id,
),
OneOfPossibility(
"organization",
request.organization or defaults.default_organization_id
if request.organization is not None
else None,
(
request.organization or defaults.default_organization_id
if request.organization is not None
else None
),
defaults.default_organization_id,
),
]
Expand Down Expand Up @@ -2952,15 +2964,19 @@ def marshal_CreateSecurityGroupRequest(
[
OneOfPossibility(
"organization_default",
request.organization_default
if request.organization_default is not None
else None,
(
request.organization_default
if request.organization_default is not None
else None
),
),
OneOfPossibility(
"project_default",
request.project_default
if request.project_default is not None
else None,
(
request.project_default
if request.project_default is not None
else None
),
),
]
),
Expand All @@ -2970,16 +2986,20 @@ def marshal_CreateSecurityGroupRequest(
[
OneOfPossibility(
"project",
request.project or defaults.default_project_id
if request.project is not None
else None,
(
request.project or defaults.default_project_id
if request.project is not None
else None
),
defaults.default_project_id,
),
OneOfPossibility(
"organization",
request.organization or defaults.default_organization_id
if request.organization is not None
else None,
(
request.organization or defaults.default_organization_id
if request.organization is not None
else None
),
defaults.default_organization_id,
),
]
Expand Down Expand Up @@ -3057,16 +3077,20 @@ def marshal_CreateSnapshotRequest(
[
OneOfPossibility(
"project",
request.project or defaults.default_project_id
if request.project is not None
else None,
(
request.project or defaults.default_project_id
if request.project is not None
else None
),
defaults.default_project_id,
),
OneOfPossibility(
"organization",
request.organization or defaults.default_organization_id
if request.organization is not None
else None,
(
request.organization or defaults.default_organization_id
if request.organization is not None
else None
),
defaults.default_organization_id,
),
]
Expand Down Expand Up @@ -3107,16 +3131,20 @@ def marshal_CreateVolumeRequest(
[
OneOfPossibility(
"project",
request.project or defaults.default_project_id
if request.project is not None
else None,
(
request.project or defaults.default_project_id
if request.project is not None
else None
),
defaults.default_project_id,
),
OneOfPossibility(
"organization",
request.organization or defaults.default_organization_id
if request.organization is not None
else None,
(
request.organization or defaults.default_organization_id
if request.organization is not None
else None
),
defaults.default_organization_id,
),
]
Expand All @@ -3130,9 +3158,11 @@ def marshal_CreateVolumeRequest(
),
OneOfPossibility(
"base_snapshot",
request.base_snapshot
if request.base_snapshot is not None
else None,
(
request.base_snapshot
if request.base_snapshot is not None
else None
),
),
]
),
Expand Down Expand Up @@ -3482,16 +3512,20 @@ def marshal__CreateServerRequest(
[
OneOfPossibility(
"project",
request.project or defaults.default_project_id
if request.project is not None
else None,
(
request.project or defaults.default_project_id
if request.project is not None
else None
),
defaults.default_project_id,
),
OneOfPossibility(
"organization",
request.organization or defaults.default_organization_id
if request.organization is not None
else None,
(
request.organization or defaults.default_organization_id
if request.organization is not None
else None
),
defaults.default_organization_id,
),
]
Expand Down
8 changes: 5 additions & 3 deletions scaleway/scaleway/instance/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,11 @@ def list_servers(
"per_page": per_page or self.client.default_page_size,
"private_ip": private_ip,
"private_network": private_network,
"private_networks": ",".join(private_networks)
if private_networks and len(private_networks) > 0
else None,
"private_networks": (
",".join(private_networks)
if private_networks and len(private_networks) > 0
else None
),
"private_nic_mac_address": private_nic_mac_address,
"project": project or self.client.default_project_id,
"servers": ",".join(servers) if servers and len(servers) > 0 else None,
Expand Down
Loading

0 comments on commit 8f9e99d

Please sign in to comment.