Skip to content

Latest commit

 

History

History
695 lines (461 loc) · 23.7 KB

TenantTicketServiceApi.md

File metadata and controls

695 lines (461 loc) · 23.7 KB

TenantTicketServiceApi

All URIs are relative to http://localhost

Method Description
bulk_update_tenant_tickets Bulk update tenant tickets
create_tenant_tickets Creates policy tickets in bulk
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_details Retrieves all active tickets of a tenant.
get_tenant_tickets Retrieves all active tickets of a tenant.
update_tenant_ticket Update tenant policy ticket user state
update_tenant_tickets Updates policy tickets in bulk

bulk_update_tenant_tickets

BulkUpdateTenantTicketsResponse bulk_update_tenant_tickets(bulk_update_tenant_tickets_request)

Bulk update tenant tickets

Example

import onelens_backend_client
from onelens_backend_client.models.bulk_update_tenant_tickets_request import BulkUpdateTenantTicketsRequest
from onelens_backend_client.models.bulk_update_tenant_tickets_response import BulkUpdateTenantTicketsResponse
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.TenantTicketServiceApi(api_client)
    bulk_update_tenant_tickets_request = onelens_backend_client.BulkUpdateTenantTicketsRequest() # BulkUpdateTenantTicketsRequest | 

    try:
        # Bulk update tenant tickets
        api_response = api_instance.bulk_update_tenant_tickets(bulk_update_tenant_tickets_request)
        print("The response of TenantTicketServiceApi->bulk_update_tenant_tickets:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantTicketServiceApi->bulk_update_tenant_tickets: %s\n" % e)

Parameters

Name Type Description Notes
bulk_update_tenant_tickets_request BulkUpdateTenantTicketsRequest

Return type

BulkUpdateTenantTicketsResponse

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

object create_tenant_tickets(create_tenant_tickets_request)

Creates policy tickets in bulk

Example

import onelens_backend_client
from onelens_backend_client.models.create_tenant_tickets_request import CreateTenantTicketsRequest
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.TenantTicketServiceApi(api_client)
    create_tenant_tickets_request = onelens_backend_client.CreateTenantTicketsRequest() # CreateTenantTicketsRequest | 

    try:
        # Creates policy tickets in bulk
        api_response = api_instance.create_tenant_tickets(create_tenant_tickets_request)
        print("The response of TenantTicketServiceApi->create_tenant_tickets:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantTicketServiceApi->create_tenant_tickets: %s\n" % e)

Parameters

Name Type Description Notes
create_tenant_tickets_request CreateTenantTicketsRequest

Return type

object

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

GetAllPolicyViolationsResponse get_all_policy_violations(get_all_policy_violations_request)

Get All Policy Violations

Example

import onelens_backend_client
from onelens_backend_client.models.get_all_policy_violations_request import GetAllPolicyViolationsRequest
from onelens_backend_client.models.get_all_policy_violations_response import GetAllPolicyViolationsResponse
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.TenantTicketServiceApi(api_client)
    get_all_policy_violations_request = onelens_backend_client.GetAllPolicyViolationsRequest() # GetAllPolicyViolationsRequest | 

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

Parameters

Name Type Description Notes
get_all_policy_violations_request GetAllPolicyViolationsRequest

Return type

GetAllPolicyViolationsResponse

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

GetPolicyTicketStatsResponse get_policy_ticket_stats(get_policy_ticket_stats_request)

Get Policy Ticket Stats

Example

import onelens_backend_client
from onelens_backend_client.models.get_policy_ticket_stats_request import GetPolicyTicketStatsRequest
from onelens_backend_client.models.get_policy_ticket_stats_response import GetPolicyTicketStatsResponse
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.TenantTicketServiceApi(api_client)
    get_policy_ticket_stats_request = onelens_backend_client.GetPolicyTicketStatsRequest() # GetPolicyTicketStatsRequest | 

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

Parameters

Name Type Description Notes
get_policy_ticket_stats_request GetPolicyTicketStatsRequest

Return type

GetPolicyTicketStatsResponse

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

GetPolicyTicketsByEntityIdResponse get_policy_tickets_by_entity_id(get_policy_tickets_by_entity_id_request)

Get Policy Tickets By Entity Id

Example

import onelens_backend_client
from onelens_backend_client.models.get_policy_tickets_by_entity_id_request import GetPolicyTicketsByEntityIdRequest
from onelens_backend_client.models.get_policy_tickets_by_entity_id_response import GetPolicyTicketsByEntityIdResponse
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.TenantTicketServiceApi(api_client)
    get_policy_tickets_by_entity_id_request = onelens_backend_client.GetPolicyTicketsByEntityIdRequest() # GetPolicyTicketsByEntityIdRequest | 

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

Parameters

Name Type Description Notes
get_policy_tickets_by_entity_id_request GetPolicyTicketsByEntityIdRequest

Return type

GetPolicyTicketsByEntityIdResponse

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

GetPolicyTicketsByPolicyIdResponse get_policy_tickets_by_policy_id(get_policy_tickets_by_policy_id_request)

Get Policy Tickets By Policy Id

Example

import onelens_backend_client
from onelens_backend_client.models.get_policy_tickets_by_policy_id_request import GetPolicyTicketsByPolicyIdRequest
from onelens_backend_client.models.get_policy_tickets_by_policy_id_response import GetPolicyTicketsByPolicyIdResponse
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.TenantTicketServiceApi(api_client)
    get_policy_tickets_by_policy_id_request = onelens_backend_client.GetPolicyTicketsByPolicyIdRequest() # GetPolicyTicketsByPolicyIdRequest | 

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

Parameters

Name Type Description Notes
get_policy_tickets_by_policy_id_request GetPolicyTicketsByPolicyIdRequest

Return type

GetPolicyTicketsByPolicyIdResponse

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_details

GetTicketByIdPolicyDetailsResponse get_tenant_ticket_by_id_with_policy_details(get_ticket_by_id_policy_details_request)

Retrieves all active tickets of a tenant.

Example

import onelens_backend_client
from onelens_backend_client.models.get_ticket_by_id_policy_details_request import GetTicketByIdPolicyDetailsRequest
from onelens_backend_client.models.get_ticket_by_id_policy_details_response import GetTicketByIdPolicyDetailsResponse
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.TenantTicketServiceApi(api_client)
    get_ticket_by_id_policy_details_request = onelens_backend_client.GetTicketByIdPolicyDetailsRequest() # GetTicketByIdPolicyDetailsRequest | 

    try:
        # Retrieves all active tickets of a tenant.
        api_response = api_instance.get_tenant_ticket_by_id_with_policy_details(get_ticket_by_id_policy_details_request)
        print("The response of TenantTicketServiceApi->get_tenant_ticket_by_id_with_policy_details:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantTicketServiceApi->get_tenant_ticket_by_id_with_policy_details: %s\n" % e)

Parameters

Name Type Description Notes
get_ticket_by_id_policy_details_request GetTicketByIdPolicyDetailsRequest

Return type

GetTicketByIdPolicyDetailsResponse

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_tickets

GetTenantTicketsResponse get_tenant_tickets(get_tenant_tickets_request)

Retrieves all active tickets of a tenant.

Example

import onelens_backend_client
from onelens_backend_client.models.get_tenant_tickets_request import GetTenantTicketsRequest
from onelens_backend_client.models.get_tenant_tickets_response import GetTenantTicketsResponse
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.TenantTicketServiceApi(api_client)
    get_tenant_tickets_request = onelens_backend_client.GetTenantTicketsRequest() # GetTenantTicketsRequest | 

    try:
        # Retrieves all active tickets of a tenant.
        api_response = api_instance.get_tenant_tickets(get_tenant_tickets_request)
        print("The response of TenantTicketServiceApi->get_tenant_tickets:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantTicketServiceApi->get_tenant_tickets: %s\n" % e)

Parameters

Name Type Description Notes
get_tenant_tickets_request GetTenantTicketsRequest

Return type

GetTenantTicketsResponse

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

object update_tenant_ticket(update_tenant_ticket_request)

Update tenant policy ticket user state

Example

import onelens_backend_client
from onelens_backend_client.models.update_tenant_ticket_request import UpdateTenantTicketRequest
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.TenantTicketServiceApi(api_client)
    update_tenant_ticket_request = onelens_backend_client.UpdateTenantTicketRequest() # UpdateTenantTicketRequest | 

    try:
        # Update tenant policy ticket user state
        api_response = api_instance.update_tenant_ticket(update_tenant_ticket_request)
        print("The response of TenantTicketServiceApi->update_tenant_ticket:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantTicketServiceApi->update_tenant_ticket: %s\n" % e)

Parameters

Name Type Description Notes
update_tenant_ticket_request UpdateTenantTicketRequest

Return type

object

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

object update_tenant_tickets(update_tenant_tickets_request)

Updates policy tickets in bulk

Example

import onelens_backend_client
from onelens_backend_client.models.update_tenant_tickets_request import UpdateTenantTicketsRequest
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.TenantTicketServiceApi(api_client)
    update_tenant_tickets_request = onelens_backend_client.UpdateTenantTicketsRequest() # UpdateTenantTicketsRequest | 

    try:
        # Updates policy tickets in bulk
        api_response = api_instance.update_tenant_tickets(update_tenant_tickets_request)
        print("The response of TenantTicketServiceApi->update_tenant_tickets:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantTicketServiceApi->update_tenant_tickets: %s\n" % e)

Parameters

Name Type Description Notes
update_tenant_tickets_request UpdateTenantTicketsRequest

Return type

object

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]