Class: Infrawrench::TeamNamespace
- Inherits:
-
Object
- Object
- Infrawrench::TeamNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.team
Instance Attribute Summary collapse
-
#invitations ⇒ TeamInvitationsNamespace
readonly
client.team.invitations. -
#members ⇒ TeamMembersNamespace
readonly
client.team.members. -
#roles ⇒ TeamRolesNamespace
readonly
client.team.roles.
Instance Method Summary collapse
-
#initialize(transport) ⇒ TeamNamespace
constructor
private
A new instance of TeamNamespace.
-
#me(org_id: nil, request_options: nil) ⇒ Hash
Current user's effective permissions and role.
-
#permissions(org_id: nil, request_options: nil) ⇒ Hash
List all permission strings the server recognises.
Constructor Details
#initialize(transport) ⇒ TeamNamespace
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 TeamNamespace.
7725 7726 7727 7728 7729 7730 |
# File 'lib/infrawrench/client.rb', line 7725 def initialize(transport) @transport = transport @invitations = TeamInvitationsNamespace.new(@transport) @members = TeamMembersNamespace.new(@transport) @roles = TeamRolesNamespace.new(@transport) end |
Instance Attribute Details
#invitations ⇒ TeamInvitationsNamespace (readonly)
Returns client.team.invitations.
7717 7718 7719 |
# File 'lib/infrawrench/client.rb', line 7717 def invitations @invitations end |
#members ⇒ TeamMembersNamespace (readonly)
Returns client.team.members.
7719 7720 7721 |
# File 'lib/infrawrench/client.rb', line 7719 def members @members end |
#roles ⇒ TeamRolesNamespace (readonly)
Returns client.team.roles.
7721 7722 7723 |
# File 'lib/infrawrench/client.rb', line 7721 def roles @roles end |
Instance Method Details
#me(org_id: nil, request_options: nil) ⇒ Hash
Current user's effective permissions and role
GET /api/org/orgId/team/me
7741 7742 7743 7744 7745 7746 7747 7748 |
# File 'lib/infrawrench/client.rb', line 7741 def me(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/team/me", path_params: { "orgId" => org_id }, request_options: ) end |
#permissions(org_id: nil, request_options: nil) ⇒ Hash
List all permission strings the server recognises
Requires permission: team:read.
GET /api/org/orgId/team/permissions
7761 7762 7763 7764 7765 7766 7767 7768 |
# File 'lib/infrawrench/client.rb', line 7761 def (org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/team/permissions", path_params: { "orgId" => org_id }, request_options: ) end |