diff --git a/scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py b/scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py index 51868f293..e64f626ff 100644 --- a/scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py @@ -126,18 +126,6 @@ def unmarshal_APIKey(data: Any) -> APIKey: if field is not None: args["default_project_id"] = field - field = data.get("editable", None) - if field is not None: - args["editable"] = field - - field = data.get("managed", None) - if field is not None: - args["managed"] = field - - field = data.get("creation_ip", None) - if field is not None: - args["creation_ip"] = field - field = data.get("secret_key", None) if field is not None: args["secret_key"] = field @@ -150,6 +138,22 @@ def unmarshal_APIKey(data: Any) -> APIKey: else: args["application_id"] = None + field = data.get("editable", None) + if field is not None: + args["editable"] = field + + field = data.get("deletable", None) + if field is not None: + args["deletable"] = field + + field = data.get("managed", None) + if field is not None: + args["managed"] = field + + field = data.get("creation_ip", None) + if field is not None: + args["creation_ip"] = field + field = data.get("user_id", None) if field is not None: args["user_id"] = field diff --git a/scaleway-async/scaleway_async/iam/v1alpha1/types.py b/scaleway-async/scaleway_async/iam/v1alpha1/types.py index f8ce6abc9..1a7e65e2b 100644 --- a/scaleway-async/scaleway_async/iam/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/iam/v1alpha1/types.py @@ -287,6 +287,11 @@ class APIKey: Defines whether or not the API key is editable. """ + deletable: bool + """ + Defines whether or not the API key is deletable. + """ + managed: bool """ Defines whether or not the API key is managed. diff --git a/scaleway/scaleway/iam/v1alpha1/marshalling.py b/scaleway/scaleway/iam/v1alpha1/marshalling.py index 51868f293..e64f626ff 100644 --- a/scaleway/scaleway/iam/v1alpha1/marshalling.py +++ b/scaleway/scaleway/iam/v1alpha1/marshalling.py @@ -126,18 +126,6 @@ def unmarshal_APIKey(data: Any) -> APIKey: if field is not None: args["default_project_id"] = field - field = data.get("editable", None) - if field is not None: - args["editable"] = field - - field = data.get("managed", None) - if field is not None: - args["managed"] = field - - field = data.get("creation_ip", None) - if field is not None: - args["creation_ip"] = field - field = data.get("secret_key", None) if field is not None: args["secret_key"] = field @@ -150,6 +138,22 @@ def unmarshal_APIKey(data: Any) -> APIKey: else: args["application_id"] = None + field = data.get("editable", None) + if field is not None: + args["editable"] = field + + field = data.get("deletable", None) + if field is not None: + args["deletable"] = field + + field = data.get("managed", None) + if field is not None: + args["managed"] = field + + field = data.get("creation_ip", None) + if field is not None: + args["creation_ip"] = field + field = data.get("user_id", None) if field is not None: args["user_id"] = field diff --git a/scaleway/scaleway/iam/v1alpha1/types.py b/scaleway/scaleway/iam/v1alpha1/types.py index f8ce6abc9..1a7e65e2b 100644 --- a/scaleway/scaleway/iam/v1alpha1/types.py +++ b/scaleway/scaleway/iam/v1alpha1/types.py @@ -287,6 +287,11 @@ class APIKey: Defines whether or not the API key is editable. """ + deletable: bool + """ + Defines whether or not the API key is deletable. + """ + managed: bool """ Defines whether or not the API key is managed.