data.parse_methods

Parse Methods for Data Returned by Cisco vManage.

Module Contents

data.parse_methods.VALID_STATUS_CODES = [200, 201, 202, 203, 204, 205, 206, 207, 208, 226][source]
class data.parse_methods.ParseMethods[source]

Reset all configuratios on a vManage instance.

Executes the necessary REST calls in specific order to remove configurations applied to a vManage instance.

static parse_data(response)[source]

Parse data and provide error handling for missing data.

Parameters

response (obj) – Requests response object

Returns

All data associated with a response.

Return type

result (dict)

Raises

Exception – Provides error message and details of issue.

static parse_status(response)[source]

Retrieve status code for transactions that do not receive a response.

Parameters

response (obj) – Requests response object

Returns

All data associated with a response.

Return type

result (dict)

static parse_config(response)[source]

Parse config and provide error handling for missing data.

Parameters

response (obj) – Requests response object

Returns

All data associated with a response.

Return type

result (dict)

Raises

Exception – Provides error message and details of issue.

static parse_id(response)[source]

Parse id and provide error handling for missing data.

Parameters

response (obj) – Requests response object

Returns

All data associated with a response.

Return type

result (dict)

Raises

Exception – Provides error message and details of issue.