Project
- class CodeSignProject(api)
Bases:
FeatureBase- Parameters:
api (Authenticate)
- create(name, owners, parent_folder='\\VED\\Code Signing\\Projects', applications=None, auditors=None, description=None, key_use_approvers=None, key_users=None, environments=None, raise_if_already_exists=False)
Create a project with the specified values.
- Parameters:
name (str) – Name of the project.
parent_folder (Object | str) – Config Object or Distinguished Name (DN) of the parent folder.
applications (Iterable[str | Object | Application | ApplicationCollection]) – List of
Application,ApplicationCollection, Config Object, or Distinguished Name (DN) of application or application collections.auditors (Iterable[Identity | str]) – List of Identity Object, Config Object, or prefixed universal of identities to be project auditors.
description (str) – Description of the project.
key_use_approvers (Iterable[Identity | str]) – List of Identity Object, Config Object, or prefixed universal of identities who can approve environment usage.
key_users (Iterable[Identity | str]) – List of Identity Object, Config Object, or prefixed universal of identities who can sign with environments.
owners (Iterable[Identity | str]) – List of Identity Object, Config Object, or prefixed universal of identities to be project owners.
environments (Iterable[Object | AppleEnvironment | CertificateEnvironment | CSPEnvironment | DotNetEnvironment | GPGEnvironment | KeyPairEnvironment]) – List of signing environments for the project.
raise_if_already_exists (bool) – If the object already exists, raise an error.
- Returns:
- Return type:
- delete(project)
Delete a project.
- Parameters:
project (str | Object | Project) –
Project, Distinguished Name (DN), or Config Object of the project.
- disable(project)
Disable a project. Changes project status to “disabled”.
- enable(project)
Enable a project.
- enumerate(_filter=None, rights=None)
Enumerate the projects.
- get(dn=None, guid=None, id=None)
Get a project using a Distinguished Name (DN), GUID, or Identifier.
- Parameters:
dn (str) – Distinguished Name (DN) of the project object.
guid (str) – GUID of the project object.
id (str) – Identifier of the project object.
- Returns:
- Return type:
- rename(project, new_dn)
Rename a project by giving it a new Distinguished Name (DN).
- Parameters:
project (str | Object | Project) –
Project, Config Object, or Distinguished Name (DN) of the project.new_dn (str) – The new Distinguished Name (DN) for the project.