Skip to content

Commit

Permalink
Regenerate API SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
itsbalamurali committed Mar 11, 2022
1 parent 7030051 commit 1aa0b15
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 103 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Class | Method | HTTP request | Description
*DigiLockerCompatIssuerApi* | [**digilocker_compat_issue_document**](docs/DigiLockerCompatIssuerApi.md#digilocker_compat_issue_document) | **POST** /issuer/issuedoc/1/xml | Digilocker Compatible endpoint to issue document.
*DocumentsApi* | [**get_issued_document_by_id**](docs/DocumentsApi.md#get_issued_document_by_id) | **GET** /v1/documents/issued/{documentId} | Get issued document.
*DocumentsApi* | [**get_issued_documents**](docs/DocumentsApi.md#get_issued_documents) | **GET** /v1/documents/issued/{documentTypeId} | Get paginated list of issued documents of given document type.
*DocumentsApi* | [**get_registered_document_types**](docs/DocumentsApi.md#get_registered_document_types) | **GET** /v1/documents/types | Get registered document types.
*DocumentsApi* | [**get_registered_document_types**](docs/DocumentsApi.md#get_registered_document_types) | **GET** /v1/documents/types | Get paginated list of registered document types.
*DocumentsApi* | [**issue_document_to_individual**](docs/DocumentsApi.md#issue_document_to_individual) | **POST** /v1/documents/issue/individual | Issue a new document to an individual user.
*DocumentsApi* | [**issue_document_to_organization**](docs/DocumentsApi.md#issue_document_to_organization) | **POST** /v1/documents/issue/organization | Issue a new document to an organization.
*DocumentsApi* | [**upload_document_for_individual**](docs/DocumentsApi.md#upload_document_for_individual) | **POST** /v1/documents/issue/individual/upload/{issueRequestId} | Upload a document for issuance request of individual.
Expand Down
4 changes: 2 additions & 2 deletions docs/DigiLockerCompatIssuerApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ with mydatamyconsent.ApiClient() as api_client:
txn="txn_example",
org_id="org_id_example",
keyhash="keyhash_example",
) # PushUriRequest | Push uri request MyDataMyConsent.Models.DigiLocker.PushUriRequest. (optional)
) # PushUriRequest | Push uri request MyDataMyConsent.DeveloperApi.Models.DigiLocker.PushUriRequest. (optional)

# example passing only required values which don't have defaults set
# and optional values
Expand All @@ -70,7 +70,7 @@ with mydatamyconsent.ApiClient() as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**push_uri_request** | [**PushUriRequest**](PushUriRequest.md)| Push uri request MyDataMyConsent.Models.DigiLocker.PushUriRequest. | [optional]
**push_uri_request** | [**PushUriRequest**](PushUriRequest.md)| Push uri request MyDataMyConsent.DeveloperApi.Models.DigiLocker.PushUriRequest. | [optional]

### Return type

Expand Down
14 changes: 7 additions & 7 deletions docs/DocumentIssueRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ Document Issue Request.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**document_type_id** | **str** | |
**identifier** | **str** | |
**description** | **str** | |
**document_type_id** | **str** | Document type id. |
**identifier** | **str** | Document identifier. |
**description** | **str** | Document description. |
**receiver** | [**DocumentReceiver**](DocumentReceiver.md) | |
**issued_at_utc** | **datetime** | |
**valid_from_utc** | **datetime** | |
**expires_at_utc** | **datetime, none_type** | | [optional]
**metadata** | **{str: (str,)}, none_type** | | [optional]
**issued_at_utc** | **datetime** | Datetime of issue in UTC timezone. |
**valid_from_utc** | **datetime** | Valid from datetime in UTC timezone. |
**expires_at_utc** | **datetime, none_type** | Datetime of expiry in UTC timezone. | [optional]
**metadata** | **{str: (str,)}, none_type** | Metadata. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
22 changes: 11 additions & 11 deletions docs/DocumentIssueRequestDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ Document issue request details.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | Request Id. |
**document_type_id** | **str** | |
**type_name** | **str** | |
**identifier** | **str** | |
**id** | **str** | Document issue request Id. |
**document_type_id** | **str** | Document type Id. |
**type_name** | **str** | Document type name. |
**identifier** | **str** | Document identifier. |
**status** | [**DocumentIssueRequestStatus**](DocumentIssueRequestStatus.md) | |
**description** | **str** | |
**receiver** | **bool, date, datetime, dict, float, int, list, str, none_type** | |
**issued_at_utc** | **datetime** | |
**valid_from_utc** | **datetime** | |
**created_at_utc** | **datetime** | |
**expires_at_utc** | **datetime, none_type** | | [optional]
**meta_data** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
**description** | **str** | Document description. |
**receiver** | **bool, date, datetime, dict, float, int, list, str, none_type** | Document receiver details. |
**issued_at_utc** | **datetime** | Datetime of issue in UTC timezone. |
**valid_from_utc** | **datetime** | Valid from datetime in UTC timezone. |
**created_at_utc** | **datetime** | Creation datetime of issue request in UTC timezone. |
**expires_at_utc** | **datetime, none_type** | Datetime of expiry in UTC timezone. | [optional]
**meta_data** | **bool, date, datetime, dict, float, int, list, str, none_type** | Metadata. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
40 changes: 19 additions & 21 deletions docs/DocumentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**get_issued_document_by_id**](DocumentsApi.md#get_issued_document_by_id) | **GET** /v1/documents/issued/{documentId} | Get issued document.
[**get_issued_documents**](DocumentsApi.md#get_issued_documents) | **GET** /v1/documents/issued/{documentTypeId} | Get paginated list of issued documents of given document type.
[**get_registered_document_types**](DocumentsApi.md#get_registered_document_types) | **GET** /v1/documents/types | Get registered document types.
[**get_registered_document_types**](DocumentsApi.md#get_registered_document_types) | **GET** /v1/documents/types | Get paginated list of registered document types.
[**issue_document_to_individual**](DocumentsApi.md#issue_document_to_individual) | **POST** /v1/documents/issue/individual | Issue a new document to an individual user.
[**issue_document_to_organization**](DocumentsApi.md#issue_document_to_organization) | **POST** /v1/documents/issue/organization | Issue a new document to an organization.
[**upload_document_for_individual**](DocumentsApi.md#upload_document_for_individual) | **POST** /v1/documents/issue/individual/upload/{issueRequestId} | Upload a document for issuance request of individual.
Expand Down Expand Up @@ -107,8 +107,8 @@ with mydatamyconsent.ApiClient() as api_client:
# Create an instance of the API class
api_instance = documents_api.DocumentsApi(api_client)
document_type_id = "documentTypeId_example" # str | Document type id.
from_date_time = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | From DateTime. (optional)
to_date_time = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | To DateTime. (optional)
from_date_time = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | From DateTime in UTC timezone. (optional)
to_date_time = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | To DateTime in UTC timezone. (optional)
page_no = 1 # int | Page number. (optional) if omitted the server will use the default value of 1
page_size = 25 # int | Number of items to return. (optional) if omitted the server will use the default value of 25

Expand Down Expand Up @@ -136,8 +136,8 @@ with mydatamyconsent.ApiClient() as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**document_type_id** | **str**| Document type id. |
**from_date_time** | **datetime**| From DateTime. | [optional]
**to_date_time** | **datetime**| To DateTime. | [optional]
**from_date_time** | **datetime**| From DateTime in UTC timezone. | [optional]
**to_date_time** | **datetime**| To DateTime in UTC timezone. | [optional]
**page_no** | **int**| Page number. | [optional] if omitted the server will use the default value of 1
**page_size** | **int**| Number of items to return. | [optional] if omitted the server will use the default value of 25

Expand Down Expand Up @@ -168,7 +168,7 @@ No authorization required
# **get_registered_document_types**
> DocumentTypePaginatedList get_registered_document_types()
Get registered document types.
Get paginated list of registered document types.

### Example

Expand Down Expand Up @@ -196,7 +196,7 @@ with mydatamyconsent.ApiClient() as api_client:
# example passing only required values which don't have defaults set
# and optional values
try:
# Get registered document types.
# Get paginated list of registered document types.
api_response = api_instance.get_registered_document_types(page_no=page_no, page_size=page_size)
pprint(api_response)
except mydatamyconsent.ApiException as e:
Expand Down Expand Up @@ -263,7 +263,7 @@ with mydatamyconsent.ApiClient() as api_client:
api_instance = documents_api.DocumentsApi(api_client)
document_issue_request = DocumentIssueRequest(
document_type_id="document_type_id_example",
identifier="identifier_example",
identifier="GJ05FG67866586.",
description="description_example",
receiver=DocumentReceiver(
country_iso2_code="country_iso2_code_example",
Expand Down Expand Up @@ -353,7 +353,7 @@ with mydatamyconsent.ApiClient() as api_client:
api_instance = documents_api.DocumentsApi(api_client)
document_issue_request = DocumentIssueRequest(
document_type_id="document_type_id_example",
identifier="identifier_example",
identifier="GJ05FG67866586.",
description="description_example",
receiver=DocumentReceiver(
country_iso2_code="country_iso2_code_example",
Expand Down Expand Up @@ -416,7 +416,7 @@ No authorization required
[[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)

# **upload_document_for_individual**
> str upload_document_for_individual(issue_request_id, form_file)
> upload_document_for_individual(issue_request_id, form_file)
Upload a document for issuance request of individual.

Expand All @@ -439,14 +439,13 @@ configuration = mydatamyconsent.Configuration(
with mydatamyconsent.ApiClient() as api_client:
# Create an instance of the API class
api_instance = documents_api.DocumentsApi(api_client)
issue_request_id = "issueRequestId_example" # str | Issue Request Id System.Guid.
issue_request_id = "issueRequestId_example" # str | Document issue request id.
form_file = open('/path/to/file', 'rb') # file_type |

# example passing only required values which don't have defaults set
try:
# Upload a document for issuance request of individual.
api_response = api_instance.upload_document_for_individual(issue_request_id, form_file)
pprint(api_response)
api_instance.upload_document_for_individual(issue_request_id, form_file)
except mydatamyconsent.ApiException as e:
print("Exception when calling DocumentsApi->upload_document_for_individual: %s\n" % e)
```
Expand All @@ -456,12 +455,12 @@ with mydatamyconsent.ApiClient() as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**issue_request_id** | **str**| Issue Request Id System.Guid. |
**issue_request_id** | **str**| Document issue request id. |
**form_file** | **file_type**| |

### Return type

**str**
void (empty response body)

### Authorization

Expand All @@ -484,7 +483,7 @@ No authorization required
[[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)

# **upload_document_for_organization**
> str upload_document_for_organization(issue_request_id, form_file)
> upload_document_for_organization(issue_request_id, form_file)
Upload a document for issuance request of organization.

Expand All @@ -507,14 +506,13 @@ configuration = mydatamyconsent.Configuration(
with mydatamyconsent.ApiClient() as api_client:
# Create an instance of the API class
api_instance = documents_api.DocumentsApi(api_client)
issue_request_id = "issueRequestId_example" # str | Issue Request Id System.Guid.
issue_request_id = "issueRequestId_example" # str | Document issue request id System.Guid.
form_file = open('/path/to/file', 'rb') # file_type |

# example passing only required values which don't have defaults set
try:
# Upload a document for issuance request of organization.
api_response = api_instance.upload_document_for_organization(issue_request_id, form_file)
pprint(api_response)
api_instance.upload_document_for_organization(issue_request_id, form_file)
except mydatamyconsent.ApiException as e:
print("Exception when calling DocumentsApi->upload_document_for_organization: %s\n" % e)
```
Expand All @@ -524,12 +522,12 @@ with mydatamyconsent.ApiClient() as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**issue_request_id** | **str**| Issue Request Id System.Guid. |
**issue_request_id** | **str**| Document issue request id System.Guid. |
**form_file** | **file_type**| |

### Return type

**str**
void (empty response body)

### Authorization

Expand Down
10 changes: 5 additions & 5 deletions docs/IssuedDocument.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ Issued Document Identifier.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | Document Identifier. |
**identifier** | **str** | Document Identifier. eg: GJ05FG67866586. |
**document_type** | **str** | Document type name. eg: Driving License. |
**issued_to** | **str** | |
**issued_at_utc** | **datetime** | |
**id** | **str** | Document Id. |
**identifier** | **str** | Document Identifier. |
**document_type** | **str** | Document type name. |
**issued_to** | **str** | User name. |
**issued_at_utc** | **datetime** | Issued datetime in UTC timezone. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion mydatamyconsent/api/digi_locker_compat_issuer_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def digilocker_compat_issue_document(
Keyword Args:
push_uri_request (PushUriRequest): Push uri request MyDataMyConsent.Models.DigiLocker.PushUriRequest.. [optional]
push_uri_request (PushUriRequest): Push uri request MyDataMyConsent.DeveloperApi.Models.DigiLocker.PushUriRequest.. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
Expand Down
18 changes: 9 additions & 9 deletions mydatamyconsent/api/documents_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def __init__(self, api_client=None):
)
self.upload_document_for_individual_endpoint = _Endpoint(
settings={
'response_type': (str,),
'response_type': None,
'auth': [],
'endpoint_path': '/v1/documents/issue/individual/upload/{issueRequestId}',
'operation_id': 'upload_document_for_individual',
Expand Down Expand Up @@ -370,7 +370,7 @@ def __init__(self, api_client=None):
)
self.upload_document_for_organization_endpoint = _Endpoint(
settings={
'response_type': (str,),
'response_type': None,
'auth': [],
'endpoint_path': '/v1/documents/issue/organization/upload/{issueRequestId}',
'operation_id': 'upload_document_for_organization',
Expand Down Expand Up @@ -520,8 +520,8 @@ def get_issued_documents(
document_type_id (str): Document type id.
Keyword Args:
from_date_time (datetime): From DateTime.. [optional]
to_date_time (datetime): To DateTime.. [optional]
from_date_time (datetime): From DateTime in UTC timezone.. [optional]
to_date_time (datetime): To DateTime in UTC timezone.. [optional]
page_no (int): Page number.. [optional] if omitted the server will use the default value of 1
page_size (int): Number of items to return.. [optional] if omitted the server will use the default value of 25
_return_http_data_only (bool): response data without head status
Expand Down Expand Up @@ -588,7 +588,7 @@ def get_registered_document_types(
self,
**kwargs
):
"""Get registered document types. # noqa: E501
"""Get paginated list of registered document types. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -827,7 +827,7 @@ def upload_document_for_individual(
>>> result = thread.get()
Args:
issue_request_id (str): Issue Request Id System.Guid.
issue_request_id (str): Document issue request id.
form_file (file_type):
Keyword Args:
Expand Down Expand Up @@ -859,7 +859,7 @@ def upload_document_for_individual(
async_req (bool): execute request asynchronously
Returns:
str
None
If the method is called asynchronously, returns the request
thread.
"""
Expand Down Expand Up @@ -908,7 +908,7 @@ def upload_document_for_organization(
>>> result = thread.get()
Args:
issue_request_id (str): Issue Request Id System.Guid.
issue_request_id (str): Document issue request id System.Guid.
form_file (file_type):
Keyword Args:
Expand Down Expand Up @@ -940,7 +940,7 @@ def upload_document_for_organization(
async_req (bool): execute request asynchronously
Returns:
str
None
If the method is called asynchronously, returns the request
thread.
"""
Expand Down
Loading

0 comments on commit 1aa0b15

Please sign in to comment.