Class: Anthropic::Resources::Beta::Organization
- Inherits:
-
Object
- Object
- Anthropic::Resources::Beta::Organization
show all
- Defined in:
- lib/anthropic/resources/beta/organization.rb,
lib/anthropic/resources/beta/organization/users.rb,
lib/anthropic/resources/beta/organization/invites.rb,
lib/anthropic/resources/beta/organization/api_keys.rb,
lib/anthropic/resources/beta/organization/federation.rb,
lib/anthropic/resources/beta/organization/workspaces.rb,
lib/anthropic/resources/beta/organization/rate_limits.rb,
lib/anthropic/resources/beta/organization/external_keys.rb,
lib/anthropic/resources/beta/organization/federation/rules.rb,
lib/anthropic/resources/beta/organization/service_accounts.rb,
lib/anthropic/resources/beta/organization/federation/issuers.rb,
lib/anthropic/resources/beta/organization/workspaces/members.rb,
lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb,
lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb,
lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb,
lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb,
sig/anthropic/resources/beta/organization.rbs,
sig/anthropic/resources/beta/organization/users.rbs,
sig/anthropic/resources/beta/organization/invites.rbs,
sig/anthropic/resources/beta/organization/api_keys.rbs,
sig/anthropic/resources/beta/organization/federation.rbs,
sig/anthropic/resources/beta/organization/workspaces.rbs,
sig/anthropic/resources/beta/organization/rate_limits.rbs,
sig/anthropic/resources/beta/organization/external_keys.rbs,
sig/anthropic/resources/beta/organization/federation/rules.rbs,
sig/anthropic/resources/beta/organization/service_accounts.rbs,
sig/anthropic/resources/beta/organization/federation/issuers.rbs,
sig/anthropic/resources/beta/organization/workspaces/members.rbs,
sig/anthropic/resources/beta/organization/workspaces/rate_limits.rbs,
sig/anthropic/resources/beta/organization/federation/rules/workspaces.rbs,
sig/anthropic/resources/beta/organization/service_accounts/workspaces.rbs,
sig/anthropic/resources/beta/organization/workspaces/service_accounts.rbs
Defined Under Namespace
Classes: APIKeys, ExternalKeys, Federation, Invites, RateLimits, ServiceAccounts, Users, Workspaces
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Organization.
53
54
55
56
57
58
59
60
61
62
63
|
# File 'lib/anthropic/resources/beta/organization.rb', line 53
def initialize(client:)
@client = client
@api_keys = Anthropic::Resources::Beta::Organization::APIKeys.new(client: client)
@external_keys = Anthropic::Resources::Beta::Organization::ExternalKeys.new(client: client)
@federation = Anthropic::Resources::Beta::Organization::Federation.new(client: client)
@invites = Anthropic::Resources::Beta::Organization::Invites.new(client: client)
@service_accounts = Anthropic::Resources::Beta::Organization::ServiceAccounts.new(client: client)
@users = Anthropic::Resources::Beta::Organization::Users.new(client: client)
@workspaces = Anthropic::Resources::Beta::Organization::Workspaces.new(client: client)
@rate_limits = Anthropic::Resources::Beta::Organization::RateLimits.new(client: client)
end
|
Instance Attribute Details
8
9
10
|
# File 'lib/anthropic/resources/beta/organization.rb', line 8
def api_keys
@api_keys
end
|
11
12
13
|
# File 'lib/anthropic/resources/beta/organization.rb', line 11
def external_keys
@external_keys
end
|
14
15
16
|
# File 'lib/anthropic/resources/beta/organization.rb', line 14
def federation
@federation
end
|
17
18
19
|
# File 'lib/anthropic/resources/beta/organization.rb', line 17
def invites
@invites
end
|
29
30
31
|
# File 'lib/anthropic/resources/beta/organization.rb', line 29
def rate_limits
@rate_limits
end
|
20
21
22
|
# File 'lib/anthropic/resources/beta/organization.rb', line 20
def service_accounts
@service_accounts
end
|
23
24
25
|
# File 'lib/anthropic/resources/beta/organization.rb', line 23
def users
@users
end
|
26
27
28
|
# File 'lib/anthropic/resources/beta/organization.rb', line 26
def workspaces
@workspaces
end
|
Instance Method Details
Retrieve information about the organization associated with the authenticated
API key.
41
42
43
44
45
46
47
48
|
# File 'lib/anthropic/resources/beta/organization.rb', line 41
def retrieve(params = {})
@client.request(
method: :get,
path: "v1/organizations/me?beta=true",
model: Anthropic::Beta::BetaOrganization,
options: params[:request_options]
)
end
|