77import httpx
88
99from ..types import credential_list_params , credential_create_params , credential_update_params
10- from .._types import Body , Omit , Query , Headers , NoneType , NotGiven , omit , not_given
10+ from .._types import Body , Omit , Query , Headers , NoneType , NotGiven , SequenceNotStr , omit , not_given
1111from .._utils import path_template , maybe_transform , async_maybe_transform
1212from .._compat import cached_property
1313from .._resource import SyncAPIResource , AsyncAPIResource
@@ -145,6 +145,7 @@ def update(
145145 id_or_name : str ,
146146 * ,
147147 name : str | Omit = omit ,
148+ remove_value_keys : SequenceNotStr [str ] | Omit = omit ,
148149 sso_provider : Optional [str ] | Omit = omit ,
149150 totp_secret : str | Omit = omit ,
150151 values : Dict [str , str ] | Omit = omit ,
@@ -163,6 +164,9 @@ def update(
163164 Args:
164165 name: New name for the credential
165166
167+ remove_value_keys: Field names to remove from the credential's stored values. Removals are applied
168+ before `values` are merged, so a key present in both is kept with its new value.
169+
166170 sso_provider: If set, indicates this credential should be used with the specified SSO
167171 provider. Set to empty string or null to remove.
168172
@@ -187,6 +191,7 @@ def update(
187191 body = maybe_transform (
188192 {
189193 "name" : name ,
194+ "remove_value_keys" : remove_value_keys ,
190195 "sso_provider" : sso_provider ,
191196 "totp_secret" : totp_secret ,
192197 "values" : values ,
@@ -445,6 +450,7 @@ async def update(
445450 id_or_name : str ,
446451 * ,
447452 name : str | Omit = omit ,
453+ remove_value_keys : SequenceNotStr [str ] | Omit = omit ,
448454 sso_provider : Optional [str ] | Omit = omit ,
449455 totp_secret : str | Omit = omit ,
450456 values : Dict [str , str ] | Omit = omit ,
@@ -463,6 +469,9 @@ async def update(
463469 Args:
464470 name: New name for the credential
465471
472+ remove_value_keys: Field names to remove from the credential's stored values. Removals are applied
473+ before `values` are merged, so a key present in both is kept with its new value.
474+
466475 sso_provider: If set, indicates this credential should be used with the specified SSO
467476 provider. Set to empty string or null to remove.
468477
@@ -487,6 +496,7 @@ async def update(
487496 body = await async_maybe_transform (
488497 {
489498 "name" : name ,
499+ "remove_value_keys" : remove_value_keys ,
490500 "sso_provider" : sso_provider ,
491501 "totp_secret" : totp_secret ,
492502 "values" : values ,
0 commit comments