4.7.1.1. API models

API model base classes and mixins.

class axonius_api_client.api.mixins.Model[source]

Bases: object

API model base class.

class axonius_api_client.api.mixins.ModelMixins(auth, **kwargs)[source]

Bases: axonius_api_client.api.mixins.Model

Mixins for API Models.

Parameters

auth (axonius_api_client.auth.models.Model) –

__init__(auth, **kwargs)[source]

Mixins for API Models.

Parameters
LOG: logging.Logger

Logger for this object.

auth

axonius_api_client.auth.models.Mixins authentication object.

http

axonius_api_client.http.Http client to use to send requests,

_init(**kwargs)[source]

Post init method for subclasses to use for extra setup.

__str__()[source]

Show info for this model object.

Return type

str

__repr__()[source]

Show info for this model object.

Return type

str

class axonius_api_client.api.mixins.ChildMixins(parent)[source]

Bases: object

Mixins model for API child objects.

Parameters

parent (axonius_api_client.api.mixins.Model) –

__init__(parent)[source]

Mixins model for API child objects.

Parameters

parent (axonius_api_client.api.mixins.Model) – parent API model of this child

_init(parent)[source]

Post init method for subclasses to use for extra setup.

Parameters

parent (axonius_api_client.api.mixins.Model) – parent API model of this child

__str__()[source]

Show info for this model object.

Return type

str

__repr__()[source]

Show info for this model object.

Return type

str