class SymmetricCryptoServiceClient(client.Client): (source)
Constructor: SymmetricCryptoServiceClient(channel)
Set of methods that perform symmetric encryption and decryption.
This class provides the client methods for the .nebius.kms.v1.SymmetricCryptoService service.
Each method constructs a nebius.aio.request.Request object
that represents the in-flight RPC. The request can be awaited (async)
or waited synchronously using its .wait() helpers.
The request methods accept various parameters to configure metadata, timeouts, authorization, and retries. See individual method docstrings for details.
| Method | decrypt |
Decrypts the given ciphertext with the specified key. |
| Method | encrypt |
Encrypts given plaintext with the specified key. |
| Method | generate |
Generates a new symmetric data encryption key (not a KMS key) and returns the generated key as plaintext and as ciphertext encrypted with the specified symmetric KMS key. |
| Constant | __PB2 |
The protobuf service descriptor extraction function. |
| Class Variable | __service |
The full protobuf service name. |
Inherited from Client:
| Method | __init__ |
Create a client bound to a channel. |
| Method | request |
Construct a nebius.aio.request.Request for an RPC. |
| Class Variable | __service |
optional deprecation message emitted as a runtime warning when the client is constructed. |
| Instance Variable | _channel |
Undocumented |
SymmetricDecryptRequest, **kwargs: typing_extensions.Unpack[ request_kwargs.RequestKwargs]) -> request_1.Request[ SymmetricDecryptRequest, SymmetricDecryptResponse]:
(source)
¶
Decrypts the given ciphertext with the specified key.
Other parameters can be provided as keyword arguments in the
**kwargs dictionary, including metadata, timeouts, and retries.
See nebius.aio.request_kwargs.RequestKwargs for details.
| Parameters | |
request:nebius.api.nebius.kms.v1.SymmetricDecryptRequest | The request object to send. |
**kwargs:typing_extensions.Unpack[ | Undocumented |
| Returns | |
nebius.aio.request.Request of
nebius.api.nebius.kms.v1.SymmetricDecryptResponse. | A nebius.aio.request.Request object representing the
in-flight RPC. It can be awaited (async) or waited
synchronously using its .wait() helpers. |
SymmetricEncryptRequest, **kwargs: typing_extensions.Unpack[ request_kwargs.RequestKwargs]) -> request_1.Request[ SymmetricEncryptRequest, SymmetricEncryptResponse]:
(source)
¶
Encrypts given plaintext with the specified key.
Other parameters can be provided as keyword arguments in the
**kwargs dictionary, including metadata, timeouts, and retries.
See nebius.aio.request_kwargs.RequestKwargs for details.
| Parameters | |
request:nebius.api.nebius.kms.v1.SymmetricEncryptRequest | The request object to send. |
**kwargs:typing_extensions.Unpack[ | Undocumented |
| Returns | |
nebius.aio.request.Request of
nebius.api.nebius.kms.v1.SymmetricEncryptResponse. | A nebius.aio.request.Request object representing the
in-flight RPC. It can be awaited (async) or waited
synchronously using its .wait() helpers. |
GenerateDataKeyRequest, **kwargs: typing_extensions.Unpack[ request_kwargs.RequestKwargs]) -> request_1.Request[ GenerateDataKeyRequest, GenerateDataKeyResponse]:
(source)
¶
Generates a new symmetric data encryption key (not a KMS key) and returns the generated key as plaintext and as ciphertext encrypted with the specified symmetric KMS key.
Other parameters can be provided as keyword arguments in the
**kwargs dictionary, including metadata, timeouts, and retries.
See nebius.aio.request_kwargs.RequestKwargs for details.
| Parameters | |
request:nebius.api.nebius.kms.v1.GenerateDataKeyRequest | The request object to send. |
**kwargs:typing_extensions.Unpack[ | Undocumented |
| Returns | |
nebius.aio.request.Request of
nebius.api.nebius.kms.v1.GenerateDataKeyResponse. | A nebius.aio.request.Request object representing the
in-flight RPC. It can be awaited (async) or waited
synchronously using its .wait() helpers. |
The protobuf service descriptor extraction function.
| Value |
|