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.
14606 14607 14608 14609 14610 14611 |
# File 'lib/infrawrench/client.rb', line 14606 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.
14598 14599 14600 |
# File 'lib/infrawrench/client.rb', line 14598 def invitations @invitations end |
#members ⇒ TeamMembersNamespace (readonly)
Returns client.team.members.
14600 14601 14602 |
# File 'lib/infrawrench/client.rb', line 14600 def members @members end |
#roles ⇒ TeamRolesNamespace (readonly)
Returns client.team.roles.
14602 14603 14604 |
# File 'lib/infrawrench/client.rb', line 14602 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
14622 14623 14624 14625 14626 14627 14628 14629 |
# File 'lib/infrawrench/client.rb', line 14622 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
14642 14643 14644 14645 14646 14647 14648 14649 |
# File 'lib/infrawrench/client.rb', line 14642 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 |