openstack.compute.v2.server_external_event

The ServerExternalEvent Class

The ServerExternalEvent class inherits from Resource.

class openstack.compute.v2.server_external_event.ServerExternalEvent(_synchronized=False, connection=None, **attrs)

The base resource

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

  • 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.

resource_key = None

Singular form of key for resource.

resources_key = 'events'

Plural form of key for resource.

base_path = '/os-server-external-events'

The base part of the URI for this resource.

requires_id = False

Do calls for this resource require an ID.

create_opts = CreateOpts(request_key=<Unset.UNSET: 'UNSET'>, response_key=<Unset.UNSET: 'UNSET'>, method='POST', requires_id=False, has_body=<Unset.UNSET: 'UNSET'>)

Class-level configuration for the create operation. Subclasses can override this to set per-resource defaults without overriding create().

allow_create = True

Allow create operation for this resource.

allow_fetch = False

Allow get operation for this resource.

allow_delete = False

Allow delete operation for this resource.

allow_list = False

Allow list operation for this resource.

allow_commit = False

Allow update operation for this resource.

name

The name of this event

code

The result code (set in the response)