Class: WorkOS::Client

Inherits:
BaseClient show all
Defined in:
lib/workos/client.rb

Constant Summary

Constants inherited from BaseClient

BaseClient::DEFAULT_BASE_URL, BaseClient::DEFAULT_MAX_RETRIES, BaseClient::DEFAULT_TIMEOUT, BaseClient::LOG_SEVERITY, BaseClient::MAX_CACHED_CONNECTIONS, BaseClient::RETRYABLE_STATUSES, BaseClient::RETRY_BACKOFF_BASE, BaseClient::USER_AGENT

Instance Attribute Summary

Attributes inherited from BaseClient

#api_key, #base_url, #client_id, #log_level, #logger, #max_retries, #timeout

Instance Method Summary collapse

Methods inherited from BaseClient

#delete_request, #execute_request, #get_request, #initialize, #patch_request, #post_request, #put_request, #request, #shutdown

Constructor Details

This class inherits a constructor from WorkOS::BaseClient

Instance Method Details

#actionsObject



85
86
87
# File 'lib/workos/client.rb', line 85

def actions
  @actions ||= WorkOS::Actions
end

#admin_portalObject



51
52
53
# File 'lib/workos/client.rb', line 51

def admin_portal
  @admin_portal ||= WorkOS::AdminPortal.new(self)
end

#api_keysObject



7
8
9
# File 'lib/workos/client.rb', line 7

def api_keys
  @api_keys ||= WorkOS::ApiKeys.new(self)
end

#audit_logsObject



71
72
73
# File 'lib/workos/client.rb', line 71

def audit_logs
  @audit_logs ||= WorkOS::AuditLogs.new(self)
end

#authorizationObject



19
20
21
# File 'lib/workos/client.rb', line 19

def authorization
  @authorization ||= WorkOS::Authorization.new(self)
end

#connectObject



15
16
17
# File 'lib/workos/client.rb', line 15

def connect
  @connect ||= WorkOS::Connect.new(self)
end

#directory_syncObject



31
32
33
# File 'lib/workos/client.rb', line 31

def directory_sync
  @directory_sync ||= WorkOS::DirectorySync.new(self)
end

#eventsObject



35
36
37
# File 'lib/workos/client.rb', line 35

def events
  @events ||= WorkOS::Events.new(self)
end

#feature_flagsObject



39
40
41
# File 'lib/workos/client.rb', line 39

def feature_flags
  @feature_flags ||= WorkOS::FeatureFlags.new(self)
end

#multi_factor_authObject



11
12
13
# File 'lib/workos/client.rb', line 11

def multi_factor_auth
  @multi_factor_auth ||= WorkOS::MultiFactorAuth.new(self)
end

#organization_domainsObject



43
44
45
# File 'lib/workos/client.rb', line 43

def organization_domains
  @organization_domains ||= WorkOS::OrganizationDomains.new(self)
end

#organizationsObject



47
48
49
# File 'lib/workos/client.rb', line 47

def organizations
  @organizations ||= WorkOS::Organizations.new(self)
end

#passwordlessObject

@oagen-ignore-start — non-spec service accessors (hand-maintained)



77
78
79
# File 'lib/workos/client.rb', line 77

def passwordless
  @passwordless ||= WorkOS::Passwordless.new(self)
end

#pipesObject



27
28
29
# File 'lib/workos/client.rb', line 27

def pipes
  @pipes ||= WorkOS::Pipes.new(self)
end

#pkceObject



95
96
97
# File 'lib/workos/client.rb', line 95

def pkce
  @pkce ||= WorkOS::PKCE
end

#radarObject



55
56
57
# File 'lib/workos/client.rb', line 55

def radar
  @radar ||= WorkOS::Radar.new(self)
end

#session_manager(encryptor: nil) ⇒ Object



89
90
91
92
93
# File 'lib/workos/client.rb', line 89

def session_manager(encryptor: nil)
  return @session_manager if @session_manager && encryptor.nil?

  @session_manager = WorkOS::SessionManager.new(self, encryptor: encryptor)
end

#ssoObject



23
24
25
# File 'lib/workos/client.rb', line 23

def sso
  @sso ||= WorkOS::SSO.new(self)
end

#user_managementObject



59
60
61
# File 'lib/workos/client.rb', line 59

def user_management
  @user_management ||= WorkOS::UserManagement.new(self)
end

#vaultObject



81
82
83
# File 'lib/workos/client.rb', line 81

def vault
  @vault ||= WorkOS::Vault.new(self)
end

#webhooksObject



63
64
65
# File 'lib/workos/client.rb', line 63

def webhooks
  @webhooks ||= WorkOS::Webhooks.new(self)
end

#widgetsObject



67
68
69
# File 'lib/workos/client.rb', line 67

def widgets
  @widgets ||= WorkOS::Widgets.new(self)
end