class BackendAuthenticatedCmds: def __init__(self, addr: BackendOrganizationAddr, acquire_transport): self.addr = addr self.acquire_transport = acquire_transport for cmd_name in AUTHENTICATED_CMDS: vars()[cmd_name] = expose_cmds_with_retrier(cmd_name)
class BackendInvitedCmds: def __init__(self, addr, acquire_transport): self.addr = addr self.acquire_transport = acquire_transport ping = expose_cmds_with_retrier(cmds.ping) invite_info = expose_cmds_with_retrier(cmds.invite_info) invite_1_claimer_wait_peer = expose_cmds_with_retrier( cmds.invite_1_claimer_wait_peer) invite_2a_claimer_send_hashed_nonce = expose_cmds_with_retrier( cmds.invite_2a_claimer_send_hashed_nonce) invite_2b_claimer_send_nonce = expose_cmds_with_retrier( cmds.invite_2b_claimer_send_nonce) invite_3a_claimer_signify_trust = expose_cmds_with_retrier( cmds.invite_3a_claimer_signify_trust) invite_3b_claimer_wait_peer_trust = expose_cmds_with_retrier( cmds.invite_3b_claimer_wait_peer_trust) invite_4_claimer_communicate = expose_cmds_with_retrier( cmds.invite_4_claimer_communicate)
class BackendAuthenticatedCmds: def __init__(self, addr: BackendOrganizationAddr, acquire_transport): self.addr = addr self.acquire_transport = acquire_transport events_subscribe = expose_cmds_with_retrier(cmds.events_subscribe) events_listen = expose_cmds_with_retrier(cmds.events_listen) ping = expose_cmds_with_retrier(cmds.ping) message_get = expose_cmds_with_retrier(cmds.message_get) user_get = expose_cmds_with_retrier(cmds.user_get) user_create = expose_cmds_with_retrier(cmds.user_create) user_revoke = expose_cmds_with_retrier(cmds.user_revoke) device_create = expose_cmds_with_retrier(cmds.device_create) human_find = expose_cmds_with_retrier(cmds.human_find) invite_new = expose_cmds_with_retrier(cmds.invite_new) invite_delete = expose_cmds_with_retrier(cmds.invite_delete) invite_list = expose_cmds_with_retrier(cmds.invite_list) invite_1_greeter_wait_peer = expose_cmds_with_retrier( cmds.invite_1_greeter_wait_peer) invite_2a_greeter_get_hashed_nonce = expose_cmds_with_retrier( cmds.invite_2a_greeter_get_hashed_nonce) invite_2b_greeter_send_nonce = expose_cmds_with_retrier( cmds.invite_2b_greeter_send_nonce) invite_3a_greeter_wait_peer_trust = expose_cmds_with_retrier( cmds.invite_3a_greeter_wait_peer_trust) invite_3b_greeter_signify_trust = expose_cmds_with_retrier( cmds.invite_3b_greeter_signify_trust) invite_4_greeter_communicate = expose_cmds_with_retrier( cmds.invite_4_greeter_communicate) block_create = expose_cmds_with_retrier(cmds.block_create) block_read = expose_cmds_with_retrier(cmds.block_read) vlob_poll_changes = expose_cmds_with_retrier(cmds.vlob_poll_changes) vlob_create = expose_cmds_with_retrier(cmds.vlob_create) vlob_read = expose_cmds_with_retrier(cmds.vlob_read) vlob_update = expose_cmds_with_retrier(cmds.vlob_update) vlob_list_versions = expose_cmds_with_retrier(cmds.vlob_list_versions) vlob_maintenance_get_reencryption_batch = expose_cmds_with_retrier( cmds.vlob_maintenance_get_reencryption_batch) vlob_maintenance_save_reencryption_batch = expose_cmds_with_retrier( cmds.vlob_maintenance_save_reencryption_batch) realm_create = expose_cmds_with_retrier(cmds.realm_create) realm_status = expose_cmds_with_retrier(cmds.realm_status) realm_get_role_certificates = expose_cmds_with_retrier( cmds.realm_get_role_certificates) realm_update_roles = expose_cmds_with_retrier(cmds.realm_update_roles) realm_start_reencryption_maintenance = expose_cmds_with_retrier( cmds.realm_start_reencryption_maintenance) realm_finish_reencryption_maintenance = expose_cmds_with_retrier( cmds.realm_finish_reencryption_maintenance) organization_stats = expose_cmds_with_retrier(cmds.organization_stats) organization_config = expose_cmds_with_retrier(cmds.organization_config)