MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / unregister_profile

Method unregister_profile

couchbase/options.py:301–316  ·  view source on GitHub ↗

**VOLATILE** This API is subject to change at any time. Unregister a :class:`~couchbase.options.ConfigProfile`. Args: profile_name (str): The name of the :class:`~couchbase.options.ConfigProfile` to unregister. Returns Optional(:class:`~co

(self,
                           profile_name  # type: str
                           )

Source from the content-addressed store, hash-verified

299 self._profiles[profile_name] = profile
300
301 def unregister_profile(self,
302 profile_name # type: str
303 ) -> Optional[ConfigProfile]:
304 """
305 **VOLATILE** This API is subject to change at any time.
306
307 Unregister a :class:`~couchbase.options.ConfigProfile`.
308
309 Args:
310 profile_name (str): The name of the :class:`~couchbase.options.ConfigProfile` to unregister.
311
312 Returns
313 Optional(:class:`~couchbase.options.ConfigProfile`): The unregistered :class:`~couchbase.options.ConfigProfile`
314 """ # noqa: E501
315
316 return self._profiles.pop(profile_name, None)
317
318
319"""

Callers 1

Calls 1

popMethod · 0.45

Tested by 1