Skip to content

Commit

Permalink
feat: update generated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Mar 7, 2024
1 parent f00ca20 commit 2fd8a0e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/secret/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ async def list_secrets(
name: Optional[str] = None,
path: Optional[str] = None,
ephemeral: Optional[bool] = None,
type_: SecretType = SecretType.UNKNOWN_TYPE,
) -> ListSecretsResponse:
"""
List secrets.
Expand All @@ -269,6 +270,7 @@ async def list_secrets(
:param name: Filter by secret name (optional).
:param path: Filter by exact path (optional).
:param ephemeral: Filter by ephemeral / not ephemeral (optional).
:param type_: Filter by secret type (optional).
:return: :class:`ListSecretsResponse <ListSecretsResponse>`
Usage:
Expand All @@ -295,6 +297,7 @@ async def list_secrets(
"path": path,
"project_id": project_id or self.client.default_project_id,
"tags": tags,
"type": type_,
},
)

Expand All @@ -314,6 +317,7 @@ async def list_secrets_all(
name: Optional[str] = None,
path: Optional[str] = None,
ephemeral: Optional[bool] = None,
type_: Optional[SecretType] = None,
) -> List[Secret]:
"""
List secrets.
Expand All @@ -328,6 +332,7 @@ async def list_secrets_all(
:param name: Filter by secret name (optional).
:param path: Filter by exact path (optional).
:param ephemeral: Filter by ephemeral / not ephemeral (optional).
:param type_: Filter by secret type (optional).
:return: :class:`List[ListSecretsResponse] <List[ListSecretsResponse]>`
Usage:
Expand All @@ -351,6 +356,7 @@ async def list_secrets_all(
"name": name,
"path": path,
"ephemeral": ephemeral,
"type_": type_,
},
)

Expand Down
8 changes: 8 additions & 0 deletions scaleway-async/scaleway_async/secret/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ class SecretType(str, Enum, metaclass=StrEnumMeta):
OPAQUE = "opaque"
CERTIFICATE = "certificate"
KEY_VALUE = "key_value"
BASIC_CREDENTIALS = "basic_credentials"
DATABASE_CREDENTIALS = "database_credentials"
SSH_KEY = "ssh_key"

def __str__(self) -> str:
return str(self.value)
Expand Down Expand Up @@ -573,6 +576,11 @@ class ListSecretsRequest:
Filter by ephemeral / not ephemeral (optional).
"""

type_: Optional[SecretType]
"""
Filter by secret type (optional).
"""


@dataclass
class BrowseSecretsRequest:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/secret/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def list_secrets(
name: Optional[str] = None,
path: Optional[str] = None,
ephemeral: Optional[bool] = None,
type_: SecretType = SecretType.UNKNOWN_TYPE,
) -> ListSecretsResponse:
"""
List secrets.
Expand All @@ -269,6 +270,7 @@ def list_secrets(
:param name: Filter by secret name (optional).
:param path: Filter by exact path (optional).
:param ephemeral: Filter by ephemeral / not ephemeral (optional).
:param type_: Filter by secret type (optional).
:return: :class:`ListSecretsResponse <ListSecretsResponse>`
Usage:
Expand All @@ -295,6 +297,7 @@ def list_secrets(
"path": path,
"project_id": project_id or self.client.default_project_id,
"tags": tags,
"type": type_,
},
)

Expand All @@ -314,6 +317,7 @@ def list_secrets_all(
name: Optional[str] = None,
path: Optional[str] = None,
ephemeral: Optional[bool] = None,
type_: Optional[SecretType] = None,
) -> List[Secret]:
"""
List secrets.
Expand All @@ -328,6 +332,7 @@ def list_secrets_all(
:param name: Filter by secret name (optional).
:param path: Filter by exact path (optional).
:param ephemeral: Filter by ephemeral / not ephemeral (optional).
:param type_: Filter by secret type (optional).
:return: :class:`List[ListSecretsResponse] <List[ListSecretsResponse]>`
Usage:
Expand All @@ -351,6 +356,7 @@ def list_secrets_all(
"name": name,
"path": path,
"ephemeral": ephemeral,
"type_": type_,
},
)

Expand Down
8 changes: 8 additions & 0 deletions scaleway/scaleway/secret/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ class SecretType(str, Enum, metaclass=StrEnumMeta):
OPAQUE = "opaque"
CERTIFICATE = "certificate"
KEY_VALUE = "key_value"
BASIC_CREDENTIALS = "basic_credentials"
DATABASE_CREDENTIALS = "database_credentials"
SSH_KEY = "ssh_key"

def __str__(self) -> str:
return str(self.value)
Expand Down Expand Up @@ -573,6 +576,11 @@ class ListSecretsRequest:
Filter by ephemeral / not ephemeral (optional).
"""

type_: Optional[SecretType]
"""
Filter by secret type (optional).
"""


@dataclass
class BrowseSecretsRequest:
Expand Down

0 comments on commit 2fd8a0e

Please sign in to comment.