Skip to content

Latest commit

 

History

History
709 lines (470 loc) · 24.8 KB

TenantsTenantTicketsApi.md

File metadata and controls

709 lines (470 loc) · 24.8 KB

TenantsTenantTicketsApi

All URIs are relative to http://localhost

Method Description
bulk_update_tenant_tickets Bulk Update Tenant Tickets
create_tenant_tickets Create Tenant Tickets
get_all_policy_violations Get All Policy Violations
get_policy_ticket_stats Get Policy Ticket Stats
get_policy_tickets_by_entity_id Get Policy Tickets By Entity Id
get_policy_tickets_by_policy_id Get Policy Tickets By Policy Id
get_tenant_ticket_by_id_with_policy Get Tenant Ticket By Id With Policy
get_tenant_tickets Get Tenant Tickets
update_tenant_ticket Update Tenant Ticket
update_tenant_tickets Update Tenant Tickets

bulk_update_tenant_tickets

ResponseBulkUpdateTenantTicketsAPIResponse bulk_update_tenant_tickets(bulk_update_tenant_tickets_api_request)

Bulk Update Tenant Tickets

Example

import onelens_backend_client
from onelens_backend_client.models.bulk_update_tenant_tickets_api_request import BulkUpdateTenantTicketsAPIRequest
from onelens_backend_client.models.response_bulk_update_tenant_tickets_api_response import ResponseBulkUpdateTenantTicketsAPIResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    bulk_update_tenant_tickets_api_request = onelens_backend_client.BulkUpdateTenantTicketsAPIRequest() # BulkUpdateTenantTicketsAPIRequest | 

    try:
        # Bulk Update Tenant Tickets
        api_response = api_instance.bulk_update_tenant_tickets(bulk_update_tenant_tickets_api_request)
        print("The response of TenantsTenantTicketsApi->bulk_update_tenant_tickets:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->bulk_update_tenant_tickets: %s\n" % e)

Parameters

Name Type Description Notes
bulk_update_tenant_tickets_api_request BulkUpdateTenantTicketsAPIRequest

Return type

ResponseBulkUpdateTenantTicketsAPIResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_tenant_tickets

ResponseCreateTenantTicketsResponse create_tenant_tickets(create_tenant_tickets_api_request)

Create Tenant Tickets

An API endpoint to create new tickets for a tenant in bulk

Example

import onelens_backend_client
from onelens_backend_client.models.create_tenant_tickets_api_request import CreateTenantTicketsAPIRequest
from onelens_backend_client.models.response_create_tenant_tickets_response import ResponseCreateTenantTicketsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    create_tenant_tickets_api_request = onelens_backend_client.CreateTenantTicketsAPIRequest() # CreateTenantTicketsAPIRequest | 

    try:
        # Create Tenant Tickets
        api_response = api_instance.create_tenant_tickets(create_tenant_tickets_api_request)
        print("The response of TenantsTenantTicketsApi->create_tenant_tickets:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->create_tenant_tickets: %s\n" % e)

Parameters

Name Type Description Notes
create_tenant_tickets_api_request CreateTenantTicketsAPIRequest

Return type

ResponseCreateTenantTicketsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_all_policy_violations

ResponseGetAllPolicyViolationsResponse get_all_policy_violations(get_all_policy_violations_api_request)

Get All Policy Violations

Example

import onelens_backend_client
from onelens_backend_client.models.get_all_policy_violations_api_request import GetAllPolicyViolationsAPIRequest
from onelens_backend_client.models.response_get_all_policy_violations_response import ResponseGetAllPolicyViolationsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    get_all_policy_violations_api_request = onelens_backend_client.GetAllPolicyViolationsAPIRequest() # GetAllPolicyViolationsAPIRequest | 

    try:
        # Get All Policy Violations
        api_response = api_instance.get_all_policy_violations(get_all_policy_violations_api_request)
        print("The response of TenantsTenantTicketsApi->get_all_policy_violations:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->get_all_policy_violations: %s\n" % e)

Parameters

Name Type Description Notes
get_all_policy_violations_api_request GetAllPolicyViolationsAPIRequest

Return type

ResponseGetAllPolicyViolationsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_policy_ticket_stats

ResponseGetPolicyTicketStatsResponse get_policy_ticket_stats(get_policy_ticket_stats_api_request)

Get Policy Ticket Stats

Example

import onelens_backend_client
from onelens_backend_client.models.get_policy_ticket_stats_api_request import GetPolicyTicketStatsAPIRequest
from onelens_backend_client.models.response_get_policy_ticket_stats_response import ResponseGetPolicyTicketStatsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    get_policy_ticket_stats_api_request = onelens_backend_client.GetPolicyTicketStatsAPIRequest() # GetPolicyTicketStatsAPIRequest | 

    try:
        # Get Policy Ticket Stats
        api_response = api_instance.get_policy_ticket_stats(get_policy_ticket_stats_api_request)
        print("The response of TenantsTenantTicketsApi->get_policy_ticket_stats:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->get_policy_ticket_stats: %s\n" % e)

Parameters

Name Type Description Notes
get_policy_ticket_stats_api_request GetPolicyTicketStatsAPIRequest

Return type

ResponseGetPolicyTicketStatsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_policy_tickets_by_entity_id

ResponseGetPolicyTicketsByEntityIdResponse get_policy_tickets_by_entity_id(get_policy_tickets_by_entity_id_api_request)

Get Policy Tickets By Entity Id

Example

import onelens_backend_client
from onelens_backend_client.models.get_policy_tickets_by_entity_id_api_request import GetPolicyTicketsByEntityIdAPIRequest
from onelens_backend_client.models.response_get_policy_tickets_by_entity_id_response import ResponseGetPolicyTicketsByEntityIdResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    get_policy_tickets_by_entity_id_api_request = onelens_backend_client.GetPolicyTicketsByEntityIdAPIRequest() # GetPolicyTicketsByEntityIdAPIRequest | 

    try:
        # Get Policy Tickets By Entity Id
        api_response = api_instance.get_policy_tickets_by_entity_id(get_policy_tickets_by_entity_id_api_request)
        print("The response of TenantsTenantTicketsApi->get_policy_tickets_by_entity_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->get_policy_tickets_by_entity_id: %s\n" % e)

Parameters

Name Type Description Notes
get_policy_tickets_by_entity_id_api_request GetPolicyTicketsByEntityIdAPIRequest

Return type

ResponseGetPolicyTicketsByEntityIdResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_policy_tickets_by_policy_id

ResponseGetPolicyTicketsByPolicyIdResponse get_policy_tickets_by_policy_id(get_policy_tickets_by_policy_id_api_request)

Get Policy Tickets By Policy Id

Example

import onelens_backend_client
from onelens_backend_client.models.get_policy_tickets_by_policy_id_api_request import GetPolicyTicketsByPolicyIdAPIRequest
from onelens_backend_client.models.response_get_policy_tickets_by_policy_id_response import ResponseGetPolicyTicketsByPolicyIdResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    get_policy_tickets_by_policy_id_api_request = onelens_backend_client.GetPolicyTicketsByPolicyIdAPIRequest() # GetPolicyTicketsByPolicyIdAPIRequest | 

    try:
        # Get Policy Tickets By Policy Id
        api_response = api_instance.get_policy_tickets_by_policy_id(get_policy_tickets_by_policy_id_api_request)
        print("The response of TenantsTenantTicketsApi->get_policy_tickets_by_policy_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->get_policy_tickets_by_policy_id: %s\n" % e)

Parameters

Name Type Description Notes
get_policy_tickets_by_policy_id_api_request GetPolicyTicketsByPolicyIdAPIRequest

Return type

ResponseGetPolicyTicketsByPolicyIdResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_tenant_ticket_by_id_with_policy

ResponseGetTicketByIdPolicyDetailsResponse get_tenant_ticket_by_id_with_policy(ticket_id)

Get Tenant Ticket By Id With Policy

An API endpoint to get the ticket with policy details

Example

import onelens_backend_client
from onelens_backend_client.models.response_get_ticket_by_id_policy_details_response import ResponseGetTicketByIdPolicyDetailsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    ticket_id = 'ticket_id_example' # str | 

    try:
        # Get Tenant Ticket By Id With Policy
        api_response = api_instance.get_tenant_ticket_by_id_with_policy(ticket_id)
        print("The response of TenantsTenantTicketsApi->get_tenant_ticket_by_id_with_policy:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->get_tenant_ticket_by_id_with_policy: %s\n" % e)

Parameters

Name Type Description Notes
ticket_id str

Return type

ResponseGetTicketByIdPolicyDetailsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_tenant_tickets

ResponseGetTenantTicketsResponse get_tenant_tickets(get_tenant_tickets_api_request)

Get Tenant Tickets

An API endpoint that retrieves active tickets for a tenant

Example

import onelens_backend_client
from onelens_backend_client.models.get_tenant_tickets_api_request import GetTenantTicketsAPIRequest
from onelens_backend_client.models.response_get_tenant_tickets_response import ResponseGetTenantTicketsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    get_tenant_tickets_api_request = onelens_backend_client.GetTenantTicketsAPIRequest() # GetTenantTicketsAPIRequest | 

    try:
        # Get Tenant Tickets
        api_response = api_instance.get_tenant_tickets(get_tenant_tickets_api_request)
        print("The response of TenantsTenantTicketsApi->get_tenant_tickets:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->get_tenant_tickets: %s\n" % e)

Parameters

Name Type Description Notes
get_tenant_tickets_api_request GetTenantTicketsAPIRequest

Return type

ResponseGetTenantTicketsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_tenant_ticket

ResponseUpdateTenantTicketResponse update_tenant_ticket(ticket_id, update_tenant_ticket_api_request)

Update Tenant Ticket

An API endpoint to update the user state of a ticket

Example

import onelens_backend_client
from onelens_backend_client.models.response_update_tenant_ticket_response import ResponseUpdateTenantTicketResponse
from onelens_backend_client.models.update_tenant_ticket_api_request import UpdateTenantTicketAPIRequest
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    ticket_id = 'ticket_id_example' # str | 
    update_tenant_ticket_api_request = onelens_backend_client.UpdateTenantTicketAPIRequest() # UpdateTenantTicketAPIRequest | 

    try:
        # Update Tenant Ticket
        api_response = api_instance.update_tenant_ticket(ticket_id, update_tenant_ticket_api_request)
        print("The response of TenantsTenantTicketsApi->update_tenant_ticket:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->update_tenant_ticket: %s\n" % e)

Parameters

Name Type Description Notes
ticket_id str
update_tenant_ticket_api_request UpdateTenantTicketAPIRequest

Return type

ResponseUpdateTenantTicketResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_tenant_tickets

ResponseUpdateTenantTicketsResponse update_tenant_tickets(update_tenant_tickets_api_request)

Update Tenant Tickets

An API endpoint to update tickets for a tenant in bulk

Example

import onelens_backend_client
from onelens_backend_client.models.response_update_tenant_tickets_response import ResponseUpdateTenantTicketsResponse
from onelens_backend_client.models.update_tenant_tickets_api_request import UpdateTenantTicketsAPIRequest
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
    update_tenant_tickets_api_request = onelens_backend_client.UpdateTenantTicketsAPIRequest() # UpdateTenantTicketsAPIRequest | 

    try:
        # Update Tenant Tickets
        api_response = api_instance.update_tenant_tickets(update_tenant_tickets_api_request)
        print("The response of TenantsTenantTicketsApi->update_tenant_tickets:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantsTenantTicketsApi->update_tenant_tickets: %s\n" % e)

Parameters

Name Type Description Notes
update_tenant_tickets_api_request UpdateTenantTicketsAPIRequest

Return type

ResponseUpdateTenantTicketsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]