-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
981 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# ResourceHierarchyMappingRequest | ||
|
||
dto for resource hierarchy mapping request | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**tenant_id** | **str** | Tenant ID | | ||
|
||
## Example | ||
|
||
```python | ||
from onelens_backend_client.models.resource_hierarchy_mapping_request import ResourceHierarchyMappingRequest | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of ResourceHierarchyMappingRequest from a JSON string | ||
resource_hierarchy_mapping_request_instance = ResourceHierarchyMappingRequest.from_json(json) | ||
# print the JSON string representation of the object | ||
print(ResourceHierarchyMappingRequest.to_json()) | ||
|
||
# convert the object into a dict | ||
resource_hierarchy_mapping_request_dict = resource_hierarchy_mapping_request_instance.to_dict() | ||
# create an instance of ResourceHierarchyMappingRequest from a dict | ||
resource_hierarchy_mapping_request_form_dict = resource_hierarchy_mapping_request.from_dict(resource_hierarchy_mapping_request_dict) | ||
``` | ||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# ResourceHierarchyMappingResponse | ||
|
||
dto for resource hierarchy mapping | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**hierarchy_node_id** | **str** | List of hierarchy node ids for the resource mapping | | ||
**resource_id** | **str** | List of resource ids for the resource mapping | | ||
|
||
## Example | ||
|
||
```python | ||
from onelens_backend_client.models.resource_hierarchy_mapping_response import ResourceHierarchyMappingResponse | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of ResourceHierarchyMappingResponse from a JSON string | ||
resource_hierarchy_mapping_response_instance = ResourceHierarchyMappingResponse.from_json(json) | ||
# print the JSON string representation of the object | ||
print(ResourceHierarchyMappingResponse.to_json()) | ||
|
||
# convert the object into a dict | ||
resource_hierarchy_mapping_response_dict = resource_hierarchy_mapping_response_instance.to_dict() | ||
# create an instance of ResourceHierarchyMappingResponse from a dict | ||
resource_hierarchy_mapping_response_form_dict = resource_hierarchy_mapping_response.from_dict(resource_hierarchy_mapping_response_dict) | ||
``` | ||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# ResourceMappingServiceApi | ||
|
||
All URIs are relative to *http://localhost* | ||
|
||
Method | Description | ||
------------- | ------------- | ||
[**create**](ResourceMappingServiceApi.md#create) | create a resource hierarchy mapping | ||
|
||
|
||
# **create** | ||
> object create(resource_hierarchy_mapping_request) | ||
create a resource hierarchy mapping | ||
|
||
### Example | ||
|
||
|
||
```python | ||
import onelens_backend_client | ||
from onelens_backend_client.models.resource_hierarchy_mapping_request import ResourceHierarchyMappingRequest | ||
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.ResourceMappingServiceApi(api_client) | ||
resource_hierarchy_mapping_request = onelens_backend_client.ResourceHierarchyMappingRequest() # ResourceHierarchyMappingRequest | | ||
|
||
try: | ||
# create a resource hierarchy mapping | ||
api_response = api_instance.create(resource_hierarchy_mapping_request) | ||
print("The response of ResourceMappingServiceApi->create:\n") | ||
pprint(api_response) | ||
except Exception as e: | ||
print("Exception when calling ResourceMappingServiceApi->create: %s\n" % e) | ||
``` | ||
|
||
|
||
|
||
### Parameters | ||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**resource_hierarchy_mapping_request** | [**ResourceHierarchyMappingRequest**](ResourceHierarchyMappingRequest.md)| | | ||
|
||
### 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]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# ResponseResourceHierarchyMappingResponse | ||
|
||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**data** | [**ResourceHierarchyMappingResponse**](ResourceHierarchyMappingResponse.md) | | | ||
**message** | **str** | | [optional] | ||
|
||
## Example | ||
|
||
```python | ||
from onelens_backend_client.models.response_resource_hierarchy_mapping_response import ResponseResourceHierarchyMappingResponse | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of ResponseResourceHierarchyMappingResponse from a JSON string | ||
response_resource_hierarchy_mapping_response_instance = ResponseResourceHierarchyMappingResponse.from_json(json) | ||
# print the JSON string representation of the object | ||
print(ResponseResourceHierarchyMappingResponse.to_json()) | ||
|
||
# convert the object into a dict | ||
response_resource_hierarchy_mapping_response_dict = response_resource_hierarchy_mapping_response_instance.to_dict() | ||
# create an instance of ResponseResourceHierarchyMappingResponse from a dict | ||
response_resource_hierarchy_mapping_response_form_dict = response_resource_hierarchy_mapping_response.from_dict(response_resource_hierarchy_mapping_response_dict) | ||
``` | ||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.