EnvironmentReference Class
References an existing environment definition stored in the workspace.
An EnvironmentReference can be used in place of an Environment object.
Class EnvironmentReference constructor.
Constructor
EnvironmentReference(name, version=None)
Parameters
Name | Description |
---|---|
name
Required
|
The name of the environment. |
version
|
The version of the environment. Default value: None
|
Methods
get_environment |
Return the Environment object pointed at by this reference. |
get_environment
Return the Environment object pointed at by this reference.
get_environment(workspace)
Parameters
Name | Description |
---|---|
workspace
Required
|
The workspace that contains the persisted environment |
Returns
Type | Description |
---|---|
The referenced Environment object |