client.secrets.update_secret_by_name() changes a secret’s value, name, comment, tags, or other settings. The machine identity needs a role in the project that can change secrets, such as Member.
Parameters
The ID of the project. Pass
project_id or project_slug. If you pass both, the SDK uses project_id.Returns
The updated secret, with its
id, secretKey, secretValue, secretValueHidden, secretComment, environment, type, and version. To get its tags and metadata, call get_secret_by_name. Its secretValue and secretComment hold only the values that this call sent.