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, #jwt_issuer, #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

#actions ⇒ Object



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

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

#admin_portal ⇒ Object



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

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

#agents ⇒ Object



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

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

#api_keys ⇒ Object



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

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

#audit_logs ⇒ Object



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

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

#authorization ⇒ Object



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

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

#client_api ⇒ Object



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

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

#connect ⇒ Object



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

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

#directory_sync ⇒ Object



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

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

#events ⇒ Object



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

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

#feature_flags ⇒ Object



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

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

#groups ⇒ Object



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

def groups
  @groups ||= WorkOS::Groups.new(self)
end

#multi_factor_auth ⇒ Object



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

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

#organization_domains ⇒ Object



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

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

#organization_membership ⇒ Object



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

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

#organizations ⇒ Object



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

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

#passwordless ⇒ Object

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



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

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

#pipes ⇒ Object



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

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

#pipes_provider ⇒ Object



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

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

#pkce ⇒ Object



119
120
121
# File 'lib/workos/client.rb', line 119

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

#platform_teams ⇒ Object



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

def platform_teams
  @platform_teams ||= WorkOS::PlatformTeams.new(self)
end

#radar ⇒ Object



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

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

#session_manager(encryptor: nil) ⇒ Object



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

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

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

#sso ⇒ Object



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

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

#user_management ⇒ Object



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

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

#vault ⇒ Object



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

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

#webhooks ⇒ Object



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

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

#widgets ⇒ Object



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

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