EnvironmentGroup¶
-
class
EnvironmentGroup
¶ -
-
property
name
¶ The name of the group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
list_environments
()¶ List the environments of this group.
- Returns
The list of environments in the group.
- Return type
-
remove
(force = False)¶ Delete a environment group
Note
By default, only empty groups can be deleted (
NotEmptyError
is raised otherwise), useforce
to force deletion of non empty groups.- Parameters
force (bool) -- Force the deletion of the group even if it contains environments.
- Raises
NotEmptyError -- If
force
isFalse
and the group contains environments.ReadOnlyError -- If
Database
is in read only mode.
-
create_local_environment
(name, product_id)¶ Create a new local environment.
- Parameters
- Returns
The newly created local environment.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
import_from_encoded_data
(data)¶ Import a hdri.
- Parameters
data (bytes) -- Encoded hdri image data.
- Returns
The created environment.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property