File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -227,26 +227,24 @@ def list_secrets(
227227 )
228228
229229 return result .data
230-
230+
231231 def get_secret_by_name (
232232 self ,
233233 secret_name : str ,
234234 project_id : str ,
235- secret_path : str ,
236235 environment_slug : str ,
237- version : int = None ,
238- type : str = "shared" ,
236+ secret_path : str ,
239237 expand_secret_references : bool = True ,
240238 include_imports : bool = True ,
241- ) -> BaseSecret :
239+ version : str = None ) -> GetSecretResponse :
242240
243241 params = {
244- "workspaceId" : project_id ,
245- "environment" : environment_slug ,
246- "secretPath" : secret_path ,
247- "expandSecretReferences" : str (expand_secret_references ).lower (),
248- "include_imports" : str (include_imports ).lower (),
249- "version" : version ,
242+ "workspaceId" : project_id ,
243+ "environment" : environment_slug ,
244+ "secretPath" : secret_path ,
245+ "expandSecretReferences" : str (expand_secret_references ).lower (),
246+ "include_imports" : str (include_imports ).lower (),
247+ "version" : version
250248 }
251249
252250 result = self .client .api .get (
You can’t perform that action at this time.
0 commit comments