otcextensions.sdk.modelartsv1.v1.devenv

The AS Configuration Class

The Config class inherits from Resource.

class otcextensions.sdk.modelartsv1.v1.devenv.Devenv(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

base_path: str = '/demanager/instances'

The base part of the URI for this resource.

resources_key: ty.Optional[str] = 'instances'

Plural form of key for resource.

allow_create = True

Allow create operation for this resource.

allow_list = True

Allow list operation for this resource.

allow_commit = True

Allow update operation for this resource.

allow_delete = True

Allow delete operation for this resource.

allow_fetch = True

Allow get operation for this resource.

allow_patch = True

Allow patch operation for this resource.

ai_project

AI project.

ai_project_id

AI project ID.

auto_stop

Auto stop parameters.

created_at

Time when an instance is created.

current_status

Current status of an instance.

description

Instance description.

error_code

Error code.

flavor

Instance flavor.

flavor_details

For details about the flavor, see Table 16.

id

Instance ID.

name: ty.Union[Body, URI]

Instance name.

pool

For details about the dedicated resource pool, see Table 17.

previous_state

Previous status of an instance.

profile

Configuration information.

profile_id

Configuration ID.

queuing_info

Queuing information.

repository

Git repository information.

spec

Instance definition For details about parameters of a notebook instance, see Table 19.

status

Instance status.

updated_at

Latest Update Timestamp.

user

User information.

workspace

Workspace.

workspace_id

Workspace ID.

start(session)

start the DevEnv Instance.

stop(session)

stop the DevEnv Instance.