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

Method apply_profile

couchbase/options.py:411–429  ·  view source on GitHub ↗

**VOLATILE** This API is subject to change at any time. Apply the provided ConfigProfile options. Args: profile_name ([:class:`~couchbase.options.KnownConfigProfiles`, str]): The name of the profile to apply toward ClusterOptions. a

(self,
                      profile_name  # type: Union[KnownConfigProfiles, str]
                      )

Source from the content-addressed store, hash-verified

409 """ # noqa: E501
410
411 def apply_profile(self,
412 profile_name # type: Union[KnownConfigProfiles, str]
413 ) -> None:
414 """
415 **VOLATILE** This API is subject to change at any time.
416
417 Apply the provided ConfigProfile options.
418
419 Args:
420 profile_name ([:class:`~couchbase.options.KnownConfigProfiles`, str]): The name of the profile to apply
421 toward ClusterOptions.
422 authenticator (Union[:class:`~couchbase.auth.PasswordAuthenticator`, :class:`~couchbaes.auth.CertificateAuthenticator`]): An authenticator instance.
423
424 Raises:
425 :class:`~couchbase.exceptions.InvalidArgumentException`: If the specified profile is not registered.
426
427 """ # noqa: E501
428 prof_name = profile_name.value if isinstance(profile_name, KnownConfigProfiles) else profile_name
429 CONFIG_PROFILES.apply_profile(prof_name, self)
430
431 @classmethod
432 def create_options_with_profile(cls,

Callers 3

Calls 1

apply_profileMethod · 0.45

Tested by 3