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



93
94
95
# File 'lib/workos/client.rb', line 93

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

#admin_portalObject



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

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



79
80
81
# File 'lib/workos/client.rb', line 79

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

#groupsObject



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

def groups
  @groups ||= WorkOS::Groups.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)



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

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



103
104
105
# File 'lib/workos/client.rb', line 103

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

#radarObject



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

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

#session_manager(encryptor: nil) ⇒ Object



97
98
99
100
101
# File 'lib/workos/client.rb', line 97

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



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

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

#user_management_organization_membership_groupsObject



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

def user_management_organization_membership_groups
  @user_management_organization_membership_groups ||= WorkOS::UserManagementOrganizationMembershipGroups.new(self)
end

#vaultObject



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

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

#webhooksObject



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

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

#widgetsObject



75
76
77
# File 'lib/workos/client.rb', line 75

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