dohq_teamcity.TestOccurrenceApi ###################################### .. note:: + All ``serve_*`` method have aliases with get: ``serve_something`` == ``get_something`` + Some API have ``get`` method - default method to get object by locator (e.g ``agent_api.get('id:123')`` return ``Agent`` model by id + See more examples on page :doc:`/examples/api/TestOccurrenceApi` and model examples + This is autogenerated page, don't change them directly, use template. Read more in :doc:`/development` .. list-table:: :widths: 20 80 :header-rows: 1 * - Method - HTTP request * - :ref:`get_test_occurrences` - **GET** ``/app/rest/testOccurrences`` * - :ref:`serve_instance` - **GET** ``/app/rest/testOccurrences/{testLocator}`` .. _get_test_occurrences: get_test_occurrences ----------------- .. code-block:: python from pprint import pprint from dohq_teamcity import TeamCity, ApiException # username/password authentication tc = TeamCity("https://teamcity.example.com", auth=('username', 'password')) locator = 'locator_example' # str | (optional) fields = 'fields_example' # str | (optional) try: api_response = tc.test_occurrence_api.get_test_occurrences(locator=locator, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling TestOccurrenceApi->get_test_occurrences: %s\n" % e) .. list-table:: :widths: 20 20 60 :header-rows: 1 * - Name - Types - Notes * - **locator** - **str** - [optional] * - **fields** - **str** - [optional] Return type: `TestOccurrences <../models/TestOccurrences.html>`_ `Back to top <#>`_ .. _serve_instance: serve_instance ----------------- .. code-block:: python from pprint import pprint from dohq_teamcity import TeamCity, ApiException # username/password authentication tc = TeamCity("https://teamcity.example.com", auth=('username', 'password')) test_locator = 'test_locator_example' # str | fields = 'fields_example' # str | (optional) try: api_response = tc.test_occurrence_api.serve_instance(test_locator, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling TestOccurrenceApi->serve_instance: %s\n" % e) .. list-table:: :widths: 20 20 60 :header-rows: 1 * - Name - Types - Notes * - **test_locator** - **str** - * - **fields** - **str** - [optional] Return type: `TestOccurrence <../models/TestOccurrence.html>`_ `Back to top <#>`_