Returns a list of all existing users. Args: options (:class:`~couchbase.management.options.GetAllUsersOptions`): Optional parameters for this operation. **kwargs (Dict[str, Any]): keyword arguments that can be used as optional parameters
(self,
*options, # type: GetAllUsersOptions
**kwargs # type: Any
)
| 78 | return self._impl.get_user(req, obs_handler) |
| 79 | |
| 80 | def get_all_users(self, |
| 81 | *options, # type: GetAllUsersOptions |
| 82 | **kwargs # type: Any |
| 83 | ) -> Iterable[UserAndMetadata]: |
| 84 | """Returns a list of all existing users. |
| 85 | |
| 86 | Args: |
| 87 | options (:class:`~couchbase.management.options.GetAllUsersOptions`): Optional parameters for this |
| 88 | operation. |
| 89 | **kwargs (Dict[str, Any]): keyword arguments that can be used as optional parameters |
| 90 | for this operation. |
| 91 | |
| 92 | Returns: |
| 93 | Iterable[:class:`UserAndMetadata`]: A list of existing users. |
| 94 | """ |
| 95 | op_type = UserMgmtOperationType.UserGetAll |
| 96 | with ObservableRequestHandler(op_type, self._impl.observability_instruments) as obs_handler: |
| 97 | req = self._impl.request_builder.build_get_all_users_request(obs_handler, *options, **kwargs) |
| 98 | return self._impl.get_all_users(req, obs_handler) |
| 99 | |
| 100 | def upsert_user(self, |
| 101 | user, # type: User |