File tree Expand file tree Collapse file tree
ground_control_client/lib/src/protocol Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -876,6 +876,23 @@ class EndpointSecrets extends _i1.EndpointRef {
876876 'cloudCapsuleId' : cloudCapsuleId,
877877 });
878878
879+ /// Upserts secrets for a cloud capsule.
880+ ///
881+ /// Creates new secrets or updates existing ones. Unlike [create] , this method
882+ /// allows updating existing secret keys without throwing an exception.
883+ ///
884+ /// Requires capsule authorization.
885+ ///
886+ /// Throws [NotFoundException] if the capsule is not found.
887+ /// Throws [InvalidValueException] if secret names are invalid.
888+ _i2.Future <void > upsert ({
889+ required Map <String , String > secrets,
890+ required String cloudCapsuleId,
891+ }) => caller.callServerEndpoint <void >('secrets' , 'upsert' , {
892+ 'secrets' : secrets,
893+ 'cloudCapsuleId' : cloudCapsuleId,
894+ });
895+
879896 _i2.Future <void > delete ({
880897 required String key,
881898 required String cloudCapsuleId,
You can’t perform that action at this time.
0 commit comments