Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions scaleway-async/scaleway_async/applesilicon/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,9 +1106,8 @@ async def wait_for_server_private_network(
options = WaitForOptions()

if not options.stop:
options.stop = (
lambda res: res.status
not in SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES
options.stop = lambda res: (
res.status not in SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES
)

return await wait_for_resource_async(
Expand Down
18 changes: 9 additions & 9 deletions scaleway-async/scaleway_async/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,6 @@ def unmarshal_Token(data: Any) -> Token:
else:
args["token"] = None

field = data.get("public_key", None)
if field is not None:
args["public_key"] = field
else:
args["public_key"] = None

field = data.get("status", None)
if field is not None:
args["status"] = field
Expand All @@ -634,6 +628,12 @@ def unmarshal_Token(data: Any) -> Token:
else:
args["namespace_id"] = None

field = data.get("public_key", None)
if field is not None:
args["public_key"] = field
else:
args["public_key"] = None

field = data.get("description", None)
if field is not None:
args["description"] = field
Expand Down Expand Up @@ -1208,9 +1208,6 @@ def marshal_CreateNamespaceRequest(
) -> dict[str, Any]:
output: dict[str, Any] = {}

if request.activate_vpc_integration is not None:
output["activate_vpc_integration"] = request.activate_vpc_integration

if request.name is not None:
output["name"] = request.name

Expand All @@ -1234,6 +1231,9 @@ def marshal_CreateNamespaceRequest(
if request.tags is not None:
output["tags"] = request.tags

if request.activate_vpc_integration is not None:
output["activate_vpc_integration"] = request.activate_vpc_integration

return output


Expand Down
4 changes: 2 additions & 2 deletions scaleway-async/scaleway_async/dedibox/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,8 +1352,8 @@ async def wait_for_server_install(
options = WaitForOptions()

if not options.stop:
options.stop = (
lambda res: res.status not in SERVER_INSTALL_TRANSIENT_STATUSES
options.stop = lambda res: (
res.status not in SERVER_INSTALL_TRANSIENT_STATUSES
)

return await wait_for_resource_async(
Expand Down
28 changes: 14 additions & 14 deletions scaleway-async/scaleway_async/domain/v2beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ def unmarshal_ContactExtensionIT(data: Any) -> ContactExtensionIT:

args: dict[str, Any] = {}

field = data.get("pin", None)
if field is not None:
args["pin"] = field
else:
args["pin"] = None

field = data.get("european_citizenship", None)
if field is not None:
args["european_citizenship"] = field
Expand All @@ -328,12 +334,6 @@ def unmarshal_ContactExtensionIT(data: Any) -> ContactExtensionIT:
else:
args["tax_code"] = None

field = data.get("pin", None)
if field is not None:
args["pin"] = field
else:
args["pin"] = None

return ContactExtensionIT(**args)


Expand Down Expand Up @@ -3034,15 +3034,15 @@ def marshal_ContactExtensionIT(
) -> dict[str, Any]:
output: dict[str, Any] = {}

if request.pin is not None:
output["pin"] = request.pin

if request.european_citizenship is not None:
output["european_citizenship"] = request.european_citizenship

if request.tax_code is not None:
output["tax_code"] = request.tax_code

if request.pin is not None:
output["pin"] = request.pin

return output


Expand Down Expand Up @@ -3132,11 +3132,6 @@ def marshal_NewContact(
if request.whois_opt_in is not None:
output["whois_opt_in"] = request.whois_opt_in

if request.questions is not None:
output["questions"] = [
marshal_ContactQuestion(item, defaults) for item in request.questions
]

if request.vat_identification_code is not None:
output["vat_identification_code"] = request.vat_identification_code

Expand Down Expand Up @@ -3166,6 +3161,11 @@ def marshal_NewContact(
request.extension_it, defaults
)

if request.questions is not None:
output["questions"] = [
marshal_ContactQuestion(item, defaults) for item in request.questions
]

return output


Expand Down
12 changes: 6 additions & 6 deletions scaleway-async/scaleway_async/function/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,6 @@ def unmarshal_Token(data: Any) -> Token:
else:
args["token"] = None

field = data.get("public_key", None)
if field is not None:
args["public_key"] = field
else:
args["public_key"] = None

field = data.get("status", None)
if field is not None:
args["status"] = field
Expand All @@ -508,6 +502,12 @@ def unmarshal_Token(data: Any) -> Token:
else:
args["namespace_id"] = None

field = data.get("public_key", None)
if field is not None:
args["public_key"] = field
else:
args["public_key"] = None

field = data.get("description", None)
if field is not None:
args["description"] = field
Expand Down
4 changes: 2 additions & 2 deletions scaleway-async/scaleway_async/interlink/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ async def wait_for_dedicated_connection(
options = WaitForOptions()

if not options.stop:
options.stop = (
lambda res: res.status not in DEDICATED_CONNECTION_TRANSIENT_STATUSES
options.stop = lambda res: (
res.status not in DEDICATED_CONNECTION_TRANSIENT_STATUSES
)

return await wait_for_resource_async(
Expand Down
12 changes: 6 additions & 6 deletions scaleway-async/scaleway_async/lb/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,6 @@ def unmarshal_Ip(data: Any) -> Ip:
else:
args["tags"] = []

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("zone", None)
if field is not None:
args["zone"] = field
Expand All @@ -185,6 +179,12 @@ def unmarshal_Ip(data: Any) -> Ip:
else:
args["lb_id"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

return Ip(**args)


Expand Down
4 changes: 2 additions & 2 deletions scaleway-async/scaleway_async/vpcgw/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,8 @@ async def wait_for_gateway_network(
options = WaitForOptions()

if not options.stop:
options.stop = (
lambda res: res.status not in GATEWAY_NETWORK_TRANSIENT_STATUSES
options.stop = lambda res: (
res.status not in GATEWAY_NETWORK_TRANSIENT_STATUSES
)

return await wait_for_resource_async(
Expand Down
4 changes: 2 additions & 2 deletions scaleway-async/scaleway_async/vpcgw/v2/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ async def wait_for_gateway_network(
options = WaitForOptions()

if not options.stop:
options.stop = (
lambda res: res.status not in GATEWAY_NETWORK_TRANSIENT_STATUSES
options.stop = lambda res: (
res.status not in GATEWAY_NETWORK_TRANSIENT_STATUSES
)

return await wait_for_resource_async(
Expand Down
12 changes: 6 additions & 6 deletions scaleway-async/scaleway_async/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1676,18 +1676,18 @@ def unmarshal_ResetHostingPasswordResponse(data: Any) -> ResetHostingPasswordRes

args: dict[str, Any] = {}

field = data.get("one_time_password", None)
if field is not None:
args["one_time_password"] = field
else:
args["one_time_password"] = None

field = data.get("one_time_password_b64", None)
if field is not None:
args["one_time_password_b64"] = field
else:
args["one_time_password_b64"] = None

field = data.get("one_time_password", None)
if field is not None:
args["one_time_password"] = field
else:
args["one_time_password"] = None

return ResetHostingPasswordResponse(**args)


Expand Down
5 changes: 2 additions & 3 deletions scaleway/scaleway/applesilicon/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,8 @@ def wait_for_server_private_network(
options = WaitForOptions()

if not options.stop:
options.stop = (
lambda res: res.status
not in SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES
options.stop = lambda res: (
res.status not in SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES
)

return wait_for_resource(
Expand Down
18 changes: 9 additions & 9 deletions scaleway/scaleway/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,6 @@ def unmarshal_Token(data: Any) -> Token:
else:
args["token"] = None

field = data.get("public_key", None)
if field is not None:
args["public_key"] = field
else:
args["public_key"] = None

field = data.get("status", None)
if field is not None:
args["status"] = field
Expand All @@ -634,6 +628,12 @@ def unmarshal_Token(data: Any) -> Token:
else:
args["namespace_id"] = None

field = data.get("public_key", None)
if field is not None:
args["public_key"] = field
else:
args["public_key"] = None

field = data.get("description", None)
if field is not None:
args["description"] = field
Expand Down Expand Up @@ -1208,9 +1208,6 @@ def marshal_CreateNamespaceRequest(
) -> dict[str, Any]:
output: dict[str, Any] = {}

if request.activate_vpc_integration is not None:
output["activate_vpc_integration"] = request.activate_vpc_integration

if request.name is not None:
output["name"] = request.name

Expand All @@ -1234,6 +1231,9 @@ def marshal_CreateNamespaceRequest(
if request.tags is not None:
output["tags"] = request.tags

if request.activate_vpc_integration is not None:
output["activate_vpc_integration"] = request.activate_vpc_integration

return output


Expand Down
4 changes: 2 additions & 2 deletions scaleway/scaleway/dedibox/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,8 +1350,8 @@ def wait_for_server_install(
options = WaitForOptions()

if not options.stop:
options.stop = (
lambda res: res.status not in SERVER_INSTALL_TRANSIENT_STATUSES
options.stop = lambda res: (
res.status not in SERVER_INSTALL_TRANSIENT_STATUSES
)

return wait_for_resource(
Expand Down
16 changes: 8 additions & 8 deletions scaleway/scaleway/domain/v2beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3034,15 +3034,15 @@ def marshal_ContactExtensionIT(
) -> dict[str, Any]:
output: dict[str, Any] = {}

if request.pin is not None:
output["pin"] = request.pin

if request.european_citizenship is not None:
output["european_citizenship"] = request.european_citizenship

if request.tax_code is not None:
output["tax_code"] = request.tax_code

if request.pin is not None:
output["pin"] = request.pin

return output


Expand Down Expand Up @@ -3132,11 +3132,6 @@ def marshal_NewContact(
if request.whois_opt_in is not None:
output["whois_opt_in"] = request.whois_opt_in

if request.questions is not None:
output["questions"] = [
marshal_ContactQuestion(item, defaults) for item in request.questions
]

if request.vat_identification_code is not None:
output["vat_identification_code"] = request.vat_identification_code

Expand Down Expand Up @@ -3166,6 +3161,11 @@ def marshal_NewContact(
request.extension_it, defaults
)

if request.questions is not None:
output["questions"] = [
marshal_ContactQuestion(item, defaults) for item in request.questions
]

return output


Expand Down
Loading
Loading