Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/openhound_okta/models/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class AgentProperties(OktaNodeProperties):
end=nk.AGENT_POOL,
kind=ek.AGENT_MEMBER_OF,
description="Agent belongs to agent pool",
traversable=False,
traversable=True,
),
EdgeDef(
start=nk.AD_USER,
end=nk.AGENT,
kind=ek.HOSTS_AGENT,
description="Computer hosts okta agent",
traversable=False,
traversable=True,
),
],
)
Expand Down Expand Up @@ -110,7 +110,7 @@ def _hosts_agent_edge(self):
),
end=EdgePath(value=self.id, match_by="id"),
kind=ek.HOSTS_AGENT,
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand All @@ -119,7 +119,7 @@ def _agent_member_of_edge(self):
kind=ek.AGENT_MEMBER_OF,
start=EdgePath(value=self.id, match_by="id"),
end=EdgePath(value=self.pool_id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand Down
8 changes: 4 additions & 4 deletions src/openhound_okta/models/agent_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ class Agent(BaseModel):
end=nk.AGENT_POOL,
kind=ek.CONTAINS,
description="Organization contains agent pool",
traversable=False,
traversable=True,
),
EdgeDef(
start=nk.AGENT_POOL,
end=nk.AGENT,
kind=ek.AGENT_POOL_FOR,
description="Agent pool for okta agent",
traversable=False,
traversable=True,
),
],
)
Expand Down Expand Up @@ -100,7 +100,7 @@ def _agent_pool_for_edges(self):
kind=ek.AGENT_POOL_FOR,
start=EdgePath(value=self.id, match_by="id"),
end=EdgePath(value=agent.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand All @@ -109,7 +109,7 @@ def _contains_edge(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand Down
8 changes: 4 additions & 4 deletions src/openhound_okta/models/api_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ class ApiServiceProperties(OktaNodeProperties):
end=nk.INTEGRATION,
kind=ek.CONTAINS,
description="Organization contains API service integration",
traversable=False,
traversable=True,
),
EdgeDef(
start=nk.USER,
end=nk.INTEGRATION,
kind=ek.CREATOR_OF,
description="User created the API service integration",
traversable=True,
traversable=False,
),
],
)
Expand Down Expand Up @@ -78,7 +78,7 @@ def _contains_edges(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand All @@ -88,7 +88,7 @@ def _creator_of_edges(self):
kind=ek.CREATOR_OF,
start=EdgePath(value=self.created_by, match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=True),
properties=EdgeProperties(traversable=False),
)

@property
Expand Down
5 changes: 3 additions & 2 deletions src/openhound_okta/models/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Credentials(BaseModel):
end=nk.APPLICATION,
kind=ek.CONTAINS,
description="Organization contains application",
traversable=False,
traversable=True,
),
],
)
Expand Down Expand Up @@ -169,6 +169,7 @@ def _outbound_jamf_sso_edge(self):
# kind=ek.KERBEROS_SSO,
# start=ConditionalEdgePath(kind="User", property_matchers=[condition]),
# end=EdgePath(value=self.id, match_by="id"),
# properties=EdgeProperties(traversable=True),
# )

@property
Expand All @@ -177,7 +178,7 @@ def _contains_edge(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand Down
6 changes: 3 additions & 3 deletions src/openhound_okta/models/application_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Profile(BaseModel):
kind=ek.USER_PULL,
start=nk.APPLICATION,
end=nk.USER,
traversable=True,
traversable=False,
description="User is pulled form an external application",
),
EdgeDef(
Expand Down Expand Up @@ -156,7 +156,7 @@ def _app_assignment_edge(self):
kind=ek.APP_ASSIGNMENT,
start=EdgePath(value=self.id, match_by="id"),
end=EdgePath(value=self.app_id, match_by="id"),
properties=EdgeProperties(traversable=True),
properties=EdgeProperties(traversable=False),
)

@property
Expand All @@ -167,7 +167,7 @@ def _user_push_poll_edges(self):
kind=ek.USER_PULL,
start=EdgePath(value=self.app_id, match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=True),
properties=EdgeProperties(traversable=False),
)
else:
yield Edge(
Expand Down
4 changes: 2 additions & 2 deletions src/openhound_okta/models/auth_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AuthServerProperties(OktaNodeProperties):
end=nk.AUTH_SERVER,
kind=ek.CONTAINS,
description="Organization contains authorization server",
traversable=False,
traversable=True,
)
],
)
Expand Down Expand Up @@ -84,5 +84,5 @@ def edges(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)
4 changes: 2 additions & 2 deletions src/openhound_okta/models/built_in_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BuiltInRoleProperties(OktaNodeProperties):
end=nk.ROLE,
kind=ek.CONTAINS,
description="Organization contains built-in role",
traversable=False,
traversable=True,
)
],
)
Expand Down Expand Up @@ -82,5 +82,5 @@ def edges(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.type, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)
2 changes: 1 addition & 1 deletion src/openhound_okta/models/client_role_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Embedded(BaseModel):
end=nk.GROUP,
kind=ek.ADD_MEMBER,
description="Application can add member to groups",
traversable=False,
traversable=True,
),
EdgeDef(
start=nk.APPLICATION,
Expand Down
4 changes: 2 additions & 2 deletions src/openhound_okta/models/custom_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CustomRoleProperties(OktaNodeProperties):
end=nk.CUSTOM_ROLE,
kind=ek.CONTAINS,
description="Organization contains custom role",
traversable=False,
traversable=True,
)
],
)
Expand Down Expand Up @@ -75,5 +75,5 @@ def edges(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)
4 changes: 2 additions & 2 deletions src/openhound_okta/models/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Embedded(BaseModel):
end=nk.DEVICE,
kind=ek.CONTAINS,
description="Organization contains device",
traversable=False,
traversable=True,
),
EdgeDef(
start=nk.DEVICE,
Expand Down Expand Up @@ -142,7 +142,7 @@ def _contains_edge(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand Down
4 changes: 2 additions & 2 deletions src/openhound_okta/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Source(BaseModel):
end=nk.GROUP,
kind=ek.CONTAINS,
description="Organization contains group",
traversable=False,
traversable=True,
),
EdgeDef(
start=nk.APPLICATION,
Expand Down Expand Up @@ -155,7 +155,7 @@ def _contains_edges(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand Down
2 changes: 1 addition & 1 deletion src/openhound_okta/models/group_assigned_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ def edges(self):
kind=ek.APP_ASSIGNMENT,
start=EdgePath(value=self.group_id, match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=True),
properties=EdgeProperties(traversable=False),
)
2 changes: 1 addition & 1 deletion src/openhound_okta/models/group_role_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Embedded(BaseModel):
end=nk.GROUP,
kind=ek.ADD_MEMBER,
description="Group can add member to groups",
traversable=False,
traversable=True,
),
EdgeDef(
start=nk.GROUP,
Expand Down
8 changes: 4 additions & 4 deletions src/openhound_okta/models/idp.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Protocol(BaseModel):
end=nk.IDP,
kind=ek.CONTAINS,
description="Organization contains identity provider",
traversable=False,
traversable=True,
),
EdgeDef(
start=nk.IDP,
Expand All @@ -118,7 +118,7 @@ class Protocol(BaseModel):
end=nk.IDP,
kind=ek.INBOUND_ORG_SSO,
description="Organization SSO via identity provider",
traversable=False,
traversable=True,
),
],
)
Expand Down Expand Up @@ -200,7 +200,7 @@ def _contains_edge(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand All @@ -212,7 +212,7 @@ def _inbound_org_sso_edge(self):
kind=ek.INBOUND_ORG_SSO,
start=EdgePath(value=tenant_id, match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand Down
4 changes: 2 additions & 2 deletions src/openhound_okta/models/idp_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Profile(BaseModel):
end=nk.USER,
kind=ek.INBOUND_SSO,
description="User identity via SSO",
traversable=False,
traversable=True,
),
],
)
Expand Down Expand Up @@ -60,7 +60,7 @@ def _inbound_sso_edge(self):
kind=ek.INBOUND_SSO,
start=EdgePath(value=self.external_id, match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)

@property
Expand Down
4 changes: 2 additions & 2 deletions src/openhound_okta/models/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PolicyProperties(OktaNodeProperties):
end=nk.POLICY,
kind=ek.CONTAINS,
description="Organization contains policy",
traversable=False,
traversable=True,
),
],
)
Expand Down Expand Up @@ -80,5 +80,5 @@ def edges(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)
4 changes: 2 additions & 2 deletions src/openhound_okta/models/realm.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class RealmProfile(BaseModel):
end=nk.REALM,
kind=ek.CONTAINS,
description="Organization contains realm",
traversable=False,
traversable=True,
),
],
)
Expand Down Expand Up @@ -80,5 +80,5 @@ def edges(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)
4 changes: 2 additions & 2 deletions src/openhound_okta/models/resource_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ResourceSetProperties(OktaNodeProperties):
end=nk.RESOURCE_SET,
kind=ek.CONTAINS,
description="Organization contains resource set",
traversable=False,
traversable=True,
)
],
)
Expand Down Expand Up @@ -75,5 +75,5 @@ def edges(self):
kind=ek.CONTAINS,
start=EdgePath(value=self._lookup.org_id(), match_by="id"),
end=EdgePath(value=self.id, match_by="id"),
properties=EdgeProperties(traversable=False),
properties=EdgeProperties(traversable=True),
)
1 change: 1 addition & 0 deletions src/openhound_okta/models/role_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def add_member_edges(self):
kind=ek.ADD_MEMBER,
start=EdgePath(value=self.source_id, match_by="id"),
end=EdgePath(value=group_id, match_by="id"),
properties=EdgeProperties(traversable=True),
)

@property
Expand Down
Loading