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



105
106
107
# File 'lib/workos/client.rb', line 105

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

#admin_portalObject



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

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

#agentsObject



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

def agents
  @agents ||= WorkOS::Agents.new(self)
end

#api_keysObject



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

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

#audit_logsObject



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

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

#client_apiObject



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

def client_api
  @client_api ||= WorkOS::ClientApi.new(self)
end

#connectObject



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

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

#directory_syncObject



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

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

#eventsObject



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

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

#feature_flagsObject



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

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

#groupsObject



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

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



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

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

#organization_membershipObject



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

def organization_membership
  @organization_membership ||= WorkOS::OrganizationMembershipService.new(self)
end

#organizationsObject



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

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

#passwordlessObject

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



101
102
103
# File 'lib/workos/client.rb', line 101

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

#pipesObject



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

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

#pipes_providerObject



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

def pipes_provider
  @pipes_provider ||= WorkOS::PipesProvider.new(self)
end

#pkceObject



115
116
117
# File 'lib/workos/client.rb', line 115

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

#radarObject



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

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

#session_manager(encryptor: nil) ⇒ Object



109
110
111
112
113
# File 'lib/workos/client.rb', line 109

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

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

#ssoObject



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

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

#user_managementObject



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

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

#vaultObject



83
84
85
# File 'lib/workos/client.rb', line 83

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

#webhooksObject



87
88
89
# File 'lib/workos/client.rb', line 87

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

#widgetsObject



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

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