Class: Anthropic::Resources::Organization
- Inherits:
-
Object
- Object
- Anthropic::Resources::Organization
show all
- Defined in:
- lib/anthropic/resources/organization.rb,
lib/anthropic/resources/organization/users.rb,
lib/anthropic/resources/organization/invites.rb,
lib/anthropic/resources/organization/api_keys.rb,
lib/anthropic/resources/organization/analytics.rb,
lib/anthropic/resources/organization/federation.rb,
lib/anthropic/resources/organization/rbac_roles.rb,
lib/anthropic/resources/organization/workspaces.rb,
lib/anthropic/resources/organization/rate_limits.rb,
lib/anthropic/resources/organization/rbac_groups.rb,
lib/anthropic/resources/organization/spend_limits.rb,
lib/anthropic/resources/organization/external_keys.rb,
lib/anthropic/resources/organization/analytics/apps.rb,
lib/anthropic/resources/organization/analytics/users.rb,
lib/anthropic/resources/organization/analytics/skills.rb,
lib/anthropic/resources/organization/federation/rules.rb,
lib/anthropic/resources/organization/service_accounts.rb,
lib/anthropic/resources/organization/analytics/plugins.rb,
lib/anthropic/resources/organization/federation/issuers.rb,
lib/anthropic/resources/organization/workspaces/members.rb,
lib/anthropic/resources/organization/analytics/apps/chat.rb,
lib/anthropic/resources/organization/analytics/artifacts.rb,
lib/anthropic/resources/organization/analytics/summaries.rb,
lib/anthropic/resources/organization/compliance_settings.rb,
lib/anthropic/resources/organization/rbac_groups/members.rb,
lib/anthropic/resources/organization/analytics/connectors.rb,
lib/anthropic/resources/organization/rbac_roles/permissions.rb,
lib/anthropic/resources/organization/spend_limits/effective.rb,
lib/anthropic/resources/organization/workspaces/rate_limits.rb,
lib/anthropic/resources/organization/federation/rules/workspaces.rb,
lib/anthropic/resources/organization/service_accounts/workspaces.rb,
lib/anthropic/resources/organization/workspaces/service_accounts.rb,
lib/anthropic/resources/organization/analytics/apps/chat/projects.rb,
lib/anthropic/resources/organization/spend_limits/increase_requests.rb,
sig/anthropic/resources/organization.rbs,
sig/anthropic/resources/organization/users.rbs,
sig/anthropic/resources/organization/invites.rbs,
sig/anthropic/resources/organization/api_keys.rbs,
sig/anthropic/resources/organization/analytics.rbs,
sig/anthropic/resources/organization/federation.rbs,
sig/anthropic/resources/organization/rbac_roles.rbs,
sig/anthropic/resources/organization/workspaces.rbs,
sig/anthropic/resources/organization/rate_limits.rbs,
sig/anthropic/resources/organization/rbac_groups.rbs,
sig/anthropic/resources/organization/spend_limits.rbs,
sig/anthropic/resources/organization/external_keys.rbs,
sig/anthropic/resources/organization/analytics/apps.rbs,
sig/anthropic/resources/organization/analytics/users.rbs,
sig/anthropic/resources/organization/analytics/skills.rbs,
sig/anthropic/resources/organization/federation/rules.rbs,
sig/anthropic/resources/organization/service_accounts.rbs,
sig/anthropic/resources/organization/analytics/plugins.rbs,
sig/anthropic/resources/organization/federation/issuers.rbs,
sig/anthropic/resources/organization/workspaces/members.rbs,
sig/anthropic/resources/organization/analytics/apps/chat.rbs,
sig/anthropic/resources/organization/analytics/artifacts.rbs,
sig/anthropic/resources/organization/analytics/summaries.rbs,
sig/anthropic/resources/organization/compliance_settings.rbs,
sig/anthropic/resources/organization/rbac_groups/members.rbs,
sig/anthropic/resources/organization/analytics/connectors.rbs,
sig/anthropic/resources/organization/rbac_roles/permissions.rbs,
sig/anthropic/resources/organization/spend_limits/effective.rbs,
sig/anthropic/resources/organization/workspaces/rate_limits.rbs,
sig/anthropic/resources/organization/federation/rules/workspaces.rbs,
sig/anthropic/resources/organization/service_accounts/workspaces.rbs,
sig/anthropic/resources/organization/workspaces/service_accounts.rbs,
sig/anthropic/resources/organization/analytics/apps/chat/projects.rbs,
sig/anthropic/resources/organization/spend_limits/increase_requests.rbs
Defined Under Namespace
Classes: APIKeys, Analytics, ComplianceSettings, ExternalKeys, Federation, Invites, RBACGroups, RBACRoles, RateLimits, ServiceAccounts, SpendLimits, 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.
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# File 'lib/anthropic/resources/organization.rb', line 69
def initialize(client:)
@client = client
@api_keys = Anthropic::Resources::Organization::APIKeys.new(client: client)
@external_keys = Anthropic::Resources::Organization::ExternalKeys.new(client: client)
@federation = Anthropic::Resources::Organization::Federation.new(client: client)
@invites = Anthropic::Resources::Organization::Invites.new(client: client)
@service_accounts = Anthropic::Resources::Organization::ServiceAccounts.new(client: client)
@users = Anthropic::Resources::Organization::Users.new(client: client)
@workspaces = Anthropic::Resources::Organization::Workspaces.new(client: client)
@rate_limits = Anthropic::Resources::Organization::RateLimits.new(client: client)
@compliance_settings = Anthropic::Resources::Organization::ComplianceSettings.new(client: client)
@analytics = Anthropic::Resources::Organization::Analytics.new(client: client)
@spend_limits = Anthropic::Resources::Organization::SpendLimits.new(client: client)
@rbac_groups = Anthropic::Resources::Organization::RBACGroups.new(client: client)
@rbac_roles = Anthropic::Resources::Organization::RBACRoles.new(client: client)
end
|
Instance Attribute Details
34
35
36
|
# File 'lib/anthropic/resources/organization.rb', line 34
def analytics
@analytics
end
|
7
8
9
|
# File 'lib/anthropic/resources/organization.rb', line 7
def api_keys
@api_keys
end
|
31
32
33
|
# File 'lib/anthropic/resources/organization.rb', line 31
def compliance_settings
@compliance_settings
end
|
10
11
12
|
# File 'lib/anthropic/resources/organization.rb', line 10
def external_keys
@external_keys
end
|
13
14
15
|
# File 'lib/anthropic/resources/organization.rb', line 13
def federation
@federation
end
|
16
17
18
|
# File 'lib/anthropic/resources/organization.rb', line 16
def invites
@invites
end
|
28
29
30
|
# File 'lib/anthropic/resources/organization.rb', line 28
def rate_limits
@rate_limits
end
|
40
41
42
|
# File 'lib/anthropic/resources/organization.rb', line 40
def rbac_groups
@rbac_groups
end
|
43
44
45
|
# File 'lib/anthropic/resources/organization.rb', line 43
def rbac_roles
@rbac_roles
end
|
19
20
21
|
# File 'lib/anthropic/resources/organization.rb', line 19
def service_accounts
@service_accounts
end
|
37
38
39
|
# File 'lib/anthropic/resources/organization.rb', line 37
def spend_limits
@spend_limits
end
|
22
23
24
|
# File 'lib/anthropic/resources/organization.rb', line 22
def users
@users
end
|
25
26
27
|
# File 'lib/anthropic/resources/organization.rb', line 25
def workspaces
@workspaces
end
|
Instance Method Details
Retrieve information about the organization associated with the authenticated
API key.
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/anthropic/resources/organization.rb', line 55
def retrieve(params = {})
@client.request(
span_name: Anthropic::Internal::Tracing::SpanName::ORGANIZATION_RETRIEVE,
span_route: "/v1/organizations/me",
method: :get,
path: "v1/organizations/me",
model: Anthropic::OrganizationInfo,
options: params[:request_options]
)
end
|