Skip to content

Commit

Permalink
feat: update generated APIs (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Jun 25, 2024
1 parent b18aaf9 commit 888a0a8
Show file tree
Hide file tree
Showing 24 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion scaleway-async/scaleway_async/baremetal/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ def marshal_AddOptionServerRequest(
output: Dict[str, Any] = {}

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def marshal_CreateTokenRequest(
output["description"] = request.description

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ def marshal_CreateSnapshotRequest(
output["name"] = request.name

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down Expand Up @@ -1889,7 +1889,7 @@ def marshal_UpdateSnapshotRequest(
output["name"] = request.name

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ def marshal_ContactExtensionFRAssociationInfo(
output["publication_jo_page"] = request.publication_jo_page

if request.publication_jo is not None:
output["publication_jo"] = request.publication_jo
output["publication_jo"] = request.publication_jo.isoformat()

return output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ def marshal_CreateTokenRequest(
output["description"] = request.description

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
2 changes: 1 addition & 1 deletion scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def marshal_CreateAPIKeyRequest(
output["description"] = request.description

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

if request.default_project_id is not None:
output["default_project_id"] = request.default_project_id
Expand Down
26 changes: 13 additions & 13 deletions scaleway-async/scaleway_async/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3365,10 +3365,10 @@ def marshal_Volume(
output["export_uri"] = request.export_uri

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.tags is not None:
output["tags"] = request.tags
Expand Down Expand Up @@ -3419,10 +3419,10 @@ def marshal_SetImageRequest(
output["arch"] = str(request.arch)

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.from_server is not None:
output["from_server"] = request.from_server
Expand Down Expand Up @@ -3855,10 +3855,10 @@ def marshal__SetSecurityGroupRequest(
output["tags"] = request.tags

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.project_default is not None:
output["project_default"] = request.project_default
Expand Down Expand Up @@ -3957,10 +3957,10 @@ def marshal_Image(
)

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.default_bootscript is not None:
output["default_bootscript"] = marshal_Bootscript(
Expand Down Expand Up @@ -4159,7 +4159,7 @@ def marshal_ServerMaintenance(
output["reason"] = request.reason

if request.start_date is not None:
output["start_date"] = request.start_date
output["start_date"] = request.start_date.isoformat()

return output

Expand Down Expand Up @@ -4203,7 +4203,7 @@ def marshal__SetServerRequest(
output["tags"] = request.tags

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.routed_ip_enabled is not None:
output["routed_ip_enabled"] = request.routed_ip_enabled
Expand All @@ -4226,7 +4226,7 @@ def marshal__SetServerRequest(
]

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.state is not None:
output["state"] = str(request.state)
Expand Down Expand Up @@ -4327,10 +4327,10 @@ def marshal__SetSnapshotRequest(
)

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.project is not None:
output["project"] = request.project or defaults.default_project_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def marshal_KeyRotationPolicy(
output["rotation_period"] = request.rotation_period

if request.next_rotation_at is not None:
output["next_rotation_at"] = request.next_rotation_at
output["next_rotation_at"] = request.next_rotation_at.isoformat()

return output

Expand Down
12 changes: 6 additions & 6 deletions scaleway-async/scaleway_async/rdb/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ def marshal_CreateDatabaseBackupRequest(
output["name"] = request.name

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down Expand Up @@ -1906,7 +1906,7 @@ def marshal_CreateSnapshotRequest(
output["name"] = request.name

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down Expand Up @@ -1972,10 +1972,10 @@ def marshal_PrepareInstanceLogsRequest(
output: Dict[str, Any] = {}

if request.start_date is not None:
output["start_date"] = request.start_date
output["start_date"] = request.start_date.isoformat()

if request.end_date is not None:
output["end_date"] = request.end_date
output["end_date"] = request.end_date.isoformat()

return output

Expand Down Expand Up @@ -2063,7 +2063,7 @@ def marshal_UpdateDatabaseBackupRequest(
output["name"] = request.name

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down Expand Up @@ -2126,7 +2126,7 @@ def marshal_UpdateSnapshotRequest(
output["name"] = request.name

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def marshal_EphemeralProperties(
output["action"] = str(request.action)

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

if request.expires_once_accessed is not None:
output["expires_once_accessed"] = request.expires_once_accessed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def marshal_EphemeralProperties(
output["action"] = str(request.action)

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

if request.expires_once_accessed is not None:
output["expires_once_accessed"] = request.expires_once_accessed
Expand Down
2 changes: 1 addition & 1 deletion scaleway-async/scaleway_async/tem/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ def marshal_CreateEmailRequest(
]

if request.send_before is not None:
output["send_before"] = request.send_before
output["send_before"] = request.send_before.isoformat()

if request.additional_headers is not None:
output["additional_headers"] = [
Expand Down
2 changes: 1 addition & 1 deletion scaleway/scaleway/baremetal/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ def marshal_AddOptionServerRequest(
output: Dict[str, Any] = {}

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
2 changes: 1 addition & 1 deletion scaleway/scaleway/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def marshal_CreateTokenRequest(
output["description"] = request.description

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
4 changes: 2 additions & 2 deletions scaleway/scaleway/document_db/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ def marshal_CreateSnapshotRequest(
output["name"] = request.name

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down Expand Up @@ -1889,7 +1889,7 @@ def marshal_UpdateSnapshotRequest(
output["name"] = request.name

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
2 changes: 1 addition & 1 deletion scaleway/scaleway/domain/v2beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ def marshal_ContactExtensionFRAssociationInfo(
output["publication_jo_page"] = request.publication_jo_page

if request.publication_jo is not None:
output["publication_jo"] = request.publication_jo
output["publication_jo"] = request.publication_jo.isoformat()

return output

Expand Down
2 changes: 1 addition & 1 deletion scaleway/scaleway/function/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ def marshal_CreateTokenRequest(
output["description"] = request.description

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

return output

Expand Down
2 changes: 1 addition & 1 deletion scaleway/scaleway/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def marshal_CreateAPIKeyRequest(
output["description"] = request.description

if request.expires_at is not None:
output["expires_at"] = request.expires_at
output["expires_at"] = request.expires_at.isoformat()

if request.default_project_id is not None:
output["default_project_id"] = request.default_project_id
Expand Down
26 changes: 13 additions & 13 deletions scaleway/scaleway/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3365,10 +3365,10 @@ def marshal_Volume(
output["export_uri"] = request.export_uri

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.tags is not None:
output["tags"] = request.tags
Expand Down Expand Up @@ -3419,10 +3419,10 @@ def marshal_SetImageRequest(
output["arch"] = str(request.arch)

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.from_server is not None:
output["from_server"] = request.from_server
Expand Down Expand Up @@ -3855,10 +3855,10 @@ def marshal__SetSecurityGroupRequest(
output["tags"] = request.tags

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.project_default is not None:
output["project_default"] = request.project_default
Expand Down Expand Up @@ -3957,10 +3957,10 @@ def marshal_Image(
)

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.default_bootscript is not None:
output["default_bootscript"] = marshal_Bootscript(
Expand Down Expand Up @@ -4159,7 +4159,7 @@ def marshal_ServerMaintenance(
output["reason"] = request.reason

if request.start_date is not None:
output["start_date"] = request.start_date
output["start_date"] = request.start_date.isoformat()

return output

Expand Down Expand Up @@ -4203,7 +4203,7 @@ def marshal__SetServerRequest(
output["tags"] = request.tags

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.routed_ip_enabled is not None:
output["routed_ip_enabled"] = request.routed_ip_enabled
Expand All @@ -4226,7 +4226,7 @@ def marshal__SetServerRequest(
]

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.state is not None:
output["state"] = str(request.state)
Expand Down Expand Up @@ -4327,10 +4327,10 @@ def marshal__SetSnapshotRequest(
)

if request.creation_date is not None:
output["creation_date"] = request.creation_date
output["creation_date"] = request.creation_date.isoformat()

if request.modification_date is not None:
output["modification_date"] = request.modification_date
output["modification_date"] = request.modification_date.isoformat()

if request.project is not None:
output["project"] = request.project or defaults.default_project_id
Expand Down
Loading

0 comments on commit 888a0a8

Please sign in to comment.