here.platform.project module#
HERE platform project abstraction.
- class here.platform.project.Project(hrn: str, platform: Platform)[source]#
Bases:
objectHERE platform project abstraction.
- add_member(member_hrn: str)[source]#
Add a member to the project.
- Parameters:
member_hrn – hrn of the member who needs to be added to the project
- assign_member_role(member_hrn: str, role_name: str)[source]#
Add and grant access to a project to an entity.
- Parameters:
member_hrn – HRN identifying the user, app or group.
role_name – role which needs to be assigned to a entity
- delete_member(member_hrn: str)[source]#
Remove the member from the specified Project.
- Parameters:
member_hrn – HRN identifying the user, app or group.
- list_members(limit: int | None = None, only_include_identities: bool = False) List[str][source]#
Get the list of members of the Project.
- Parameters:
limit – Number of entries to be returned in the response
only_include_identities – If true, returns an effective project members list containing only user and app identities, including those that are members of the project indirectly via a group. It will also return users who are project admins of the project, and Resource Managers for the realm. If false, returns users, apps, and groups that are direct members of the project, excluding any users and apps that only have membership via a group.
- Returns:
list of HRN of members of the project
- list_resources(resource_type: str, resource_limit: int | None = None, resource_relation: str = 'home') List[ProjectResource][source]#
Get the list of resources in the requested project or referenced in the project
- Parameters:
resource_type – Type of the resource, i.e. catalog, pipeline, pipeline-template, schema, artifact, …
resource_limit – Number of entries to be returned in the response
resource_relation – The relation (home, reference) of the resource
- Returns:
a list of project resources