All URIs are relative to http://localhost
Method | Description |
---|---|
get_all | Get all resource catalogs |
get_by_id | Get resource catalog by id |
get_by_id_with_relations | Get resource catalog by id with relations |
get_resource_catalog_stats | Get Resource Catalog Stats |
upsert_resource_catalog_cost_data | Upsert resource catalog cost data |
GetAllResourceCatalogsResponse get_all(get_all_resource_catalogs_request)
Get all resource catalogs
import onelens_backend_client
from onelens_backend_client.models.get_all_resource_catalogs_request import GetAllResourceCatalogsRequest
from onelens_backend_client.models.get_all_resource_catalogs_response import GetAllResourceCatalogsResponse
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.ResourceCatalogServiceApi(api_client)
get_all_resource_catalogs_request = onelens_backend_client.GetAllResourceCatalogsRequest() # GetAllResourceCatalogsRequest |
try:
# Get all resource catalogs
api_response = api_instance.get_all(get_all_resource_catalogs_request)
print("The response of ResourceCatalogServiceApi->get_all:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ResourceCatalogServiceApi->get_all: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_all_resource_catalogs_request | GetAllResourceCatalogsRequest |
GetAllResourceCatalogsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
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]
ResourceCatalogResponse get_by_id(resource_catalog_request)
Get resource catalog by id
import onelens_backend_client
from onelens_backend_client.models.resource_catalog_request import ResourceCatalogRequest
from onelens_backend_client.models.resource_catalog_response import ResourceCatalogResponse
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.ResourceCatalogServiceApi(api_client)
resource_catalog_request = onelens_backend_client.ResourceCatalogRequest() # ResourceCatalogRequest |
try:
# Get resource catalog by id
api_response = api_instance.get_by_id(resource_catalog_request)
print("The response of ResourceCatalogServiceApi->get_by_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ResourceCatalogServiceApi->get_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
resource_catalog_request | ResourceCatalogRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
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]
GetResourceWithRelationResponse get_by_id_with_relations(resource_catalog_request)
Get resource catalog by id with relations
import onelens_backend_client
from onelens_backend_client.models.get_resource_with_relation_response import GetResourceWithRelationResponse
from onelens_backend_client.models.resource_catalog_request import ResourceCatalogRequest
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.ResourceCatalogServiceApi(api_client)
resource_catalog_request = onelens_backend_client.ResourceCatalogRequest() # ResourceCatalogRequest |
try:
# Get resource catalog by id with relations
api_response = api_instance.get_by_id_with_relations(resource_catalog_request)
print("The response of ResourceCatalogServiceApi->get_by_id_with_relations:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ResourceCatalogServiceApi->get_by_id_with_relations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
resource_catalog_request | ResourceCatalogRequest |
GetResourceWithRelationResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
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]
GetResourceCatalogStatsResponse get_resource_catalog_stats(get_resource_catalog_stats_request)
Get Resource Catalog Stats
import onelens_backend_client
from onelens_backend_client.models.get_resource_catalog_stats_request import GetResourceCatalogStatsRequest
from onelens_backend_client.models.get_resource_catalog_stats_response import GetResourceCatalogStatsResponse
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.ResourceCatalogServiceApi(api_client)
get_resource_catalog_stats_request = onelens_backend_client.GetResourceCatalogStatsRequest() # GetResourceCatalogStatsRequest |
try:
# Get Resource Catalog Stats
api_response = api_instance.get_resource_catalog_stats(get_resource_catalog_stats_request)
print("The response of ResourceCatalogServiceApi->get_resource_catalog_stats:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ResourceCatalogServiceApi->get_resource_catalog_stats: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_resource_catalog_stats_request | GetResourceCatalogStatsRequest |
GetResourceCatalogStatsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
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]
object upsert_resource_catalog_cost_data(upsert_resource_catalog_cost_data_request)
Upsert resource catalog cost data
import onelens_backend_client
from onelens_backend_client.models.upsert_resource_catalog_cost_data_request import UpsertResourceCatalogCostDataRequest
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.ResourceCatalogServiceApi(api_client)
upsert_resource_catalog_cost_data_request = onelens_backend_client.UpsertResourceCatalogCostDataRequest() # UpsertResourceCatalogCostDataRequest |
try:
# Upsert resource catalog cost data
api_response = api_instance.upsert_resource_catalog_cost_data(upsert_resource_catalog_cost_data_request)
print("The response of ResourceCatalogServiceApi->upsert_resource_catalog_cost_data:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ResourceCatalogServiceApi->upsert_resource_catalog_cost_data: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
upsert_resource_catalog_cost_data_request | UpsertResourceCatalogCostDataRequest |
object
No authorization required
- Content-Type: application/json
- Accept: application/json
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]