Environment

class CodeSignEnvironment(api)

Bases: FeatureBase

Parameters:

api (Authenticate)

create(name, template, project, raise_if_already_exists=False)

Create an environment for a project using a template.

Parameters:
Returns:

A CodeSign Environment

Return type:

AppleEnvironment | CertificateEnvironment | CSPEnvironment | DotNetEnvironment | GPGEnvironment | KeyPairEnvironment

delete(environment)

Delete an environment.

Parameters:

environment (str | Object | AppleEnvironment | CertificateEnvironment | CSPEnvironment | DotNetEnvironment | GPGEnvironment | KeyPairEnvironment) – Environment, Distinguished Name (DN) , or Config Object of the environment.

get(dn=None, guid=None, id=None)

Get an environment using a Distinguished Name (DN), GUID, or Identifier.

Parameters:
  • dn (str) – Distinguished Name (DN) of the environment.

  • guid (str) – GUID of the environment.

  • id (str) – Identifier of the environment.

Returns:

A CodeSign environment.

Return type:

AppleEnvironment | CertificateEnvironment | CSPEnvironment | DotNetEnvironment | GPGEnvironment | KeyPairEnvironment

update(environment)

Update an environment.

Parameters:

environment (Object | AppleEnvironment | CertificateEnvironment | CSPEnvironment | DotNetEnvironment | GPGEnvironment | KeyPairEnvironment) – The updated environment.