Secret
Package: flyte.remote
class Secret(
pb2: definition_pb2.Secret,
)| Parameter | Type | Description |
|---|---|---|
pb2 |
definition_pb2.Secret |
Methods
| Method | Description |
|---|---|
create() |
|
delete() |
|
get() |
|
listall() |
|
to_dict() |
Convert the object to a JSON-serializable dictionary. |
to_json() |
Convert the object to a JSON string. |
create()
Default invocation is sync and will block.
To call it asynchronously, use the function .aio() on the method name itself, e.g.,:
result = await Secret.create.aio().
def create(
cls,
name: str,
value: Union[str, bytes],
type: SecretTypes,
)| Parameter | Type | Description |
|---|---|---|
cls |
||
name |
str |
|
value |
Union[str, bytes] |
|
type |
SecretTypes |
delete()
Default invocation is sync and will block.
To call it asynchronously, use the function .aio() on the method name itself, e.g.,:
result = await Secret.delete.aio().
def delete(
cls,
name,
)| Parameter | Type | Description |
|---|---|---|
cls |
||
name |
get()
Default invocation is sync and will block.
To call it asynchronously, use the function .aio() on the method name itself, e.g.,:
result = await Secret.get.aio().
def get(
cls,
name: str,
) -> Secret| Parameter | Type | Description |
|---|---|---|
cls |
||
name |
str |
listall()
Default invocation is sync and will block.
To call it asynchronously, use the function .aio() on the method name itself, e.g.,:
result = await Secret.listall.aio().
def listall(
cls,
limit: int,
) -> AsyncIterator[Secret]| Parameter | Type | Description |
|---|---|---|
cls |
||
limit |
int |
to_dict()
def to_dict()Convert the object to a JSON-serializable dictionary.
Returns: dict: A dictionary representation of the object.
to_json()
def to_json()Convert the object to a JSON string.
Returns: str: A JSON string representation of the object.
Properties
| Property | Type | Description |
|---|---|---|
name |
None |
|
type |
None |