affinidi_tdk_wallets_client 1.33.0__tar.gz → 1.54.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of affinidi_tdk_wallets_client might be problematic. Click here for more details.
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/PKG-INFO +1 -2
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/README.md +0 -1
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/__init__.py +0 -1
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/__init__.py +0 -1
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/sign_credential_result_dto.py +3 -7
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/pyproject.toml +1 -1
- affinidi_tdk_wallets_client-1.33.0/affinidi_tdk_wallets_client/api/default_api.py +0 -202
- affinidi_tdk_wallets_client-1.33.0/affinidi_tdk_wallets_client/models/sign_credential_result_dto_signed_credential.py +0 -148
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/api/__init__.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/api/revocation_api.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/api/wallet_api.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/api_client.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/api_response.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/configuration.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/exceptions.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/create_wallet_input.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/create_wallet_response.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/did_key_input_params.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/did_web_input_params.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/entity_not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/get_revocation_credential_status_ok.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/get_revocation_list_credential_result_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/invalid_parameter_error.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/key_not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/operation_forbidden_error.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/revoke_credential_input.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/service_error_response.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/service_error_response_details_inner.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/sign_credential400_response.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/sign_credential_input_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/sign_credential_input_dto_unsigned_credential_params.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/sign_jwt_token.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/sign_jwt_token_ok.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/signing_failed_error.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/update_wallet_input.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/wallet_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/wallet_dto_keys_inner.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/models/wallets_list_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/py.typed +0 -0
- {affinidi_tdk_wallets_client-1.33.0 → affinidi_tdk_wallets_client-1.54.0}/affinidi_tdk_wallets_client/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: affinidi_tdk_wallets_client
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.54.0
|
|
4
4
|
Summary: CloudWalletEssentials
|
|
5
5
|
Home-page: https://github.com/affinidi/affinidi-tdk
|
|
6
6
|
License: Apache-2.0
|
|
@@ -168,7 +168,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
|
|
|
168
168
|
- [SignCredentialInputDto](docs/SignCredentialInputDto.md)
|
|
169
169
|
- [SignCredentialInputDtoUnsignedCredentialParams](docs/SignCredentialInputDtoUnsignedCredentialParams.md)
|
|
170
170
|
- [SignCredentialResultDto](docs/SignCredentialResultDto.md)
|
|
171
|
-
- [SignCredentialResultDtoSignedCredential](docs/SignCredentialResultDtoSignedCredential.md)
|
|
172
171
|
- [SignJwtToken](docs/SignJwtToken.md)
|
|
173
172
|
- [SignJwtTokenOK](docs/SignJwtTokenOK.md)
|
|
174
173
|
- [SigningFailedError](docs/SigningFailedError.md)
|
|
@@ -143,7 +143,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
|
|
|
143
143
|
- [SignCredentialInputDto](docs/SignCredentialInputDto.md)
|
|
144
144
|
- [SignCredentialInputDtoUnsignedCredentialParams](docs/SignCredentialInputDtoUnsignedCredentialParams.md)
|
|
145
145
|
- [SignCredentialResultDto](docs/SignCredentialResultDto.md)
|
|
146
|
-
- [SignCredentialResultDtoSignedCredential](docs/SignCredentialResultDtoSignedCredential.md)
|
|
147
146
|
- [SignJwtToken](docs/SignJwtToken.md)
|
|
148
147
|
- [SignJwtTokenOK](docs/SignJwtTokenOK.md)
|
|
149
148
|
- [SigningFailedError](docs/SigningFailedError.md)
|
|
@@ -52,7 +52,6 @@ from affinidi_tdk_wallets_client.models.sign_credential400_response import SignC
|
|
|
52
52
|
from affinidi_tdk_wallets_client.models.sign_credential_input_dto import SignCredentialInputDto
|
|
53
53
|
from affinidi_tdk_wallets_client.models.sign_credential_input_dto_unsigned_credential_params import SignCredentialInputDtoUnsignedCredentialParams
|
|
54
54
|
from affinidi_tdk_wallets_client.models.sign_credential_result_dto import SignCredentialResultDto
|
|
55
|
-
from affinidi_tdk_wallets_client.models.sign_credential_result_dto_signed_credential import SignCredentialResultDtoSignedCredential
|
|
56
55
|
from affinidi_tdk_wallets_client.models.sign_jwt_token import SignJwtToken
|
|
57
56
|
from affinidi_tdk_wallets_client.models.sign_jwt_token_ok import SignJwtTokenOK
|
|
58
57
|
from affinidi_tdk_wallets_client.models.signing_failed_error import SigningFailedError
|
|
@@ -34,7 +34,6 @@ from affinidi_tdk_wallets_client.models.sign_credential400_response import SignC
|
|
|
34
34
|
from affinidi_tdk_wallets_client.models.sign_credential_input_dto import SignCredentialInputDto
|
|
35
35
|
from affinidi_tdk_wallets_client.models.sign_credential_input_dto_unsigned_credential_params import SignCredentialInputDtoUnsignedCredentialParams
|
|
36
36
|
from affinidi_tdk_wallets_client.models.sign_credential_result_dto import SignCredentialResultDto
|
|
37
|
-
from affinidi_tdk_wallets_client.models.sign_credential_result_dto_signed_credential import SignCredentialResultDtoSignedCredential
|
|
38
37
|
from affinidi_tdk_wallets_client.models.sign_jwt_token import SignJwtToken
|
|
39
38
|
from affinidi_tdk_wallets_client.models.sign_jwt_token_ok import SignJwtTokenOK
|
|
40
39
|
from affinidi_tdk_wallets_client.models.signing_failed_error import SigningFailedError
|
|
@@ -19,15 +19,14 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
from typing import Any, Dict
|
|
23
23
|
from pydantic import BaseModel, Field
|
|
24
|
-
from affinidi_tdk_wallets_client.models.sign_credential_result_dto_signed_credential import SignCredentialResultDtoSignedCredential
|
|
25
24
|
|
|
26
25
|
class SignCredentialResultDto(BaseModel):
|
|
27
26
|
"""
|
|
28
27
|
DTO contains signed credential # noqa: E501
|
|
29
28
|
"""
|
|
30
|
-
signed_credential:
|
|
29
|
+
signed_credential: Dict[str, Any] = Field(default=..., alias="signedCredential")
|
|
31
30
|
__properties = ["signedCredential"]
|
|
32
31
|
|
|
33
32
|
class Config:
|
|
@@ -54,9 +53,6 @@ class SignCredentialResultDto(BaseModel):
|
|
|
54
53
|
exclude={
|
|
55
54
|
},
|
|
56
55
|
exclude_none=True)
|
|
57
|
-
# override the default output from pydantic by calling `to_dict()` of signed_credential
|
|
58
|
-
if self.signed_credential:
|
|
59
|
-
_dict['signedCredential'] = self.signed_credential.to_dict()
|
|
60
56
|
return _dict
|
|
61
57
|
|
|
62
58
|
@classmethod
|
|
@@ -69,7 +65,7 @@ class SignCredentialResultDto(BaseModel):
|
|
|
69
65
|
return SignCredentialResultDto.parse_obj(obj)
|
|
70
66
|
|
|
71
67
|
_obj = SignCredentialResultDto.parse_obj({
|
|
72
|
-
"signed_credential":
|
|
68
|
+
"signed_credential": obj.get("signedCredential")
|
|
73
69
|
})
|
|
74
70
|
return _obj
|
|
75
71
|
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
CloudWalletEssentials
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0.0
|
|
9
|
-
Contact: info@affinidi.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import re # noqa: F401
|
|
17
|
-
import io
|
|
18
|
-
import warnings
|
|
19
|
-
|
|
20
|
-
from pydantic import validate_arguments, ValidationError
|
|
21
|
-
|
|
22
|
-
from typing_extensions import Annotated
|
|
23
|
-
from pydantic import Field, StrictStr
|
|
24
|
-
|
|
25
|
-
from affinidi_tdk_wallets_client.models.get_revocation_list_credential_result_dto import GetRevocationListCredentialResultDto
|
|
26
|
-
|
|
27
|
-
from affinidi_tdk_wallets_client.api_client import ApiClient
|
|
28
|
-
from affinidi_tdk_wallets_client.api_response import ApiResponse
|
|
29
|
-
from affinidi_tdk_wallets_client.exceptions import ( # noqa: F401
|
|
30
|
-
ApiTypeError,
|
|
31
|
-
ApiValueError
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
class DefaultApi:
|
|
36
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
37
|
-
Ref: https://openapi-generator.tech
|
|
38
|
-
|
|
39
|
-
Do not edit the class manually.
|
|
40
|
-
"""
|
|
41
|
-
|
|
42
|
-
def __init__(self, api_client=None) -> None:
|
|
43
|
-
if api_client is None:
|
|
44
|
-
api_client = ApiClient.get_default()
|
|
45
|
-
self.api_client = api_client
|
|
46
|
-
|
|
47
|
-
@validate_arguments
|
|
48
|
-
def get_revocation_credential_status(self, project_id : Annotated[StrictStr, Field(..., description="Description for projectId.")], wallet_id : Annotated[StrictStr, Field(..., description="Description for walletId.")], status_id : Annotated[StrictStr, Field(..., description="Description for statusId.")], **kwargs) -> GetRevocationListCredentialResultDto: # noqa: E501
|
|
49
|
-
"""get_revocation_credential_status # noqa: E501
|
|
50
|
-
|
|
51
|
-
Get revocation status list as RevocationListCredential # noqa: E501
|
|
52
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
53
|
-
asynchronous HTTP request, please pass async_req=True
|
|
54
|
-
|
|
55
|
-
>>> thread = api.get_revocation_credential_status(project_id, wallet_id, status_id, async_req=True)
|
|
56
|
-
>>> result = thread.get()
|
|
57
|
-
|
|
58
|
-
:param project_id: Description for projectId. (required)
|
|
59
|
-
:type project_id: str
|
|
60
|
-
:param wallet_id: Description for walletId. (required)
|
|
61
|
-
:type wallet_id: str
|
|
62
|
-
:param status_id: Description for statusId. (required)
|
|
63
|
-
:type status_id: str
|
|
64
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
65
|
-
:type async_req: bool, optional
|
|
66
|
-
:param _request_timeout: timeout setting for this request.
|
|
67
|
-
If one number provided, it will be total request
|
|
68
|
-
timeout. It can also be a pair (tuple) of
|
|
69
|
-
(connection, read) timeouts.
|
|
70
|
-
:return: Returns the result object.
|
|
71
|
-
If the method is called asynchronously,
|
|
72
|
-
returns the request thread.
|
|
73
|
-
:rtype: GetRevocationListCredentialResultDto
|
|
74
|
-
"""
|
|
75
|
-
kwargs['_return_http_data_only'] = True
|
|
76
|
-
if '_preload_content' in kwargs:
|
|
77
|
-
message = "Error! Please call the get_revocation_credential_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
78
|
-
raise ValueError(message)
|
|
79
|
-
return self.get_revocation_credential_status_with_http_info(project_id, wallet_id, status_id, **kwargs) # noqa: E501
|
|
80
|
-
|
|
81
|
-
@validate_arguments
|
|
82
|
-
def get_revocation_credential_status_with_http_info(self, project_id : Annotated[StrictStr, Field(..., description="Description for projectId.")], wallet_id : Annotated[StrictStr, Field(..., description="Description for walletId.")], status_id : Annotated[StrictStr, Field(..., description="Description for statusId.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
83
|
-
"""get_revocation_credential_status # noqa: E501
|
|
84
|
-
|
|
85
|
-
Get revocation status list as RevocationListCredential # noqa: E501
|
|
86
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
87
|
-
asynchronous HTTP request, please pass async_req=True
|
|
88
|
-
|
|
89
|
-
>>> thread = api.get_revocation_credential_status_with_http_info(project_id, wallet_id, status_id, async_req=True)
|
|
90
|
-
>>> result = thread.get()
|
|
91
|
-
|
|
92
|
-
:param project_id: Description for projectId. (required)
|
|
93
|
-
:type project_id: str
|
|
94
|
-
:param wallet_id: Description for walletId. (required)
|
|
95
|
-
:type wallet_id: str
|
|
96
|
-
:param status_id: Description for statusId. (required)
|
|
97
|
-
:type status_id: str
|
|
98
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
99
|
-
:type async_req: bool, optional
|
|
100
|
-
:param _preload_content: if False, the ApiResponse.data will
|
|
101
|
-
be set to none and raw_data will store the
|
|
102
|
-
HTTP response body without reading/decoding.
|
|
103
|
-
Default is True.
|
|
104
|
-
:type _preload_content: bool, optional
|
|
105
|
-
:param _return_http_data_only: response data instead of ApiResponse
|
|
106
|
-
object with status code, headers, etc
|
|
107
|
-
:type _return_http_data_only: bool, optional
|
|
108
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
109
|
-
number provided, it will be total request
|
|
110
|
-
timeout. It can also be a pair (tuple) of
|
|
111
|
-
(connection, read) timeouts.
|
|
112
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
113
|
-
request; this effectively ignores the authentication
|
|
114
|
-
in the spec for a single request.
|
|
115
|
-
:type _request_auth: dict, optional
|
|
116
|
-
:type _content_type: string, optional: force content-type for the request
|
|
117
|
-
:return: Returns the result object.
|
|
118
|
-
If the method is called asynchronously,
|
|
119
|
-
returns the request thread.
|
|
120
|
-
:rtype: tuple(GetRevocationListCredentialResultDto, status_code(int), headers(HTTPHeaderDict))
|
|
121
|
-
"""
|
|
122
|
-
|
|
123
|
-
_params = locals()
|
|
124
|
-
|
|
125
|
-
_all_params = [
|
|
126
|
-
'project_id',
|
|
127
|
-
'wallet_id',
|
|
128
|
-
'status_id'
|
|
129
|
-
]
|
|
130
|
-
_all_params.extend(
|
|
131
|
-
[
|
|
132
|
-
'async_req',
|
|
133
|
-
'_return_http_data_only',
|
|
134
|
-
'_preload_content',
|
|
135
|
-
'_request_timeout',
|
|
136
|
-
'_request_auth',
|
|
137
|
-
'_content_type',
|
|
138
|
-
'_headers'
|
|
139
|
-
]
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
# validate the arguments
|
|
143
|
-
for _key, _val in _params['kwargs'].items():
|
|
144
|
-
if _key not in _all_params:
|
|
145
|
-
raise ApiTypeError(
|
|
146
|
-
"Got an unexpected keyword argument '%s'"
|
|
147
|
-
" to method get_revocation_credential_status" % _key
|
|
148
|
-
)
|
|
149
|
-
_params[_key] = _val
|
|
150
|
-
del _params['kwargs']
|
|
151
|
-
|
|
152
|
-
_collection_formats = {}
|
|
153
|
-
|
|
154
|
-
# process the path parameters
|
|
155
|
-
_path_params = {}
|
|
156
|
-
if _params['project_id'] is not None:
|
|
157
|
-
_path_params['projectId'] = _params['project_id']
|
|
158
|
-
|
|
159
|
-
if _params['wallet_id'] is not None:
|
|
160
|
-
_path_params['walletId'] = _params['wallet_id']
|
|
161
|
-
|
|
162
|
-
if _params['status_id'] is not None:
|
|
163
|
-
_path_params['statusId'] = _params['status_id']
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
# process the query parameters
|
|
167
|
-
_query_params = []
|
|
168
|
-
# process the header parameters
|
|
169
|
-
_header_params = dict(_params.get('_headers', {}))
|
|
170
|
-
# process the form parameters
|
|
171
|
-
_form_params = []
|
|
172
|
-
_files = {}
|
|
173
|
-
# process the body parameter
|
|
174
|
-
_body_params = None
|
|
175
|
-
# set the HTTP header `Accept`
|
|
176
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
177
|
-
['application/json']) # noqa: E501
|
|
178
|
-
|
|
179
|
-
# authentication setting
|
|
180
|
-
_auth_settings = ['ProjectTokenAuth'] # noqa: E501
|
|
181
|
-
|
|
182
|
-
_response_types_map = {
|
|
183
|
-
'200': "GetRevocationListCredentialResultDto",
|
|
184
|
-
'404': "NotFoundError",
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
return self.api_client.call_api(
|
|
188
|
-
'/v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId}', 'GET',
|
|
189
|
-
_path_params,
|
|
190
|
-
_query_params,
|
|
191
|
-
_header_params,
|
|
192
|
-
body=_body_params,
|
|
193
|
-
post_params=_form_params,
|
|
194
|
-
files=_files,
|
|
195
|
-
response_types_map=_response_types_map,
|
|
196
|
-
auth_settings=_auth_settings,
|
|
197
|
-
async_req=_params.get('async_req'),
|
|
198
|
-
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
199
|
-
_preload_content=_params.get('_preload_content', True),
|
|
200
|
-
_request_timeout=_params.get('_request_timeout'),
|
|
201
|
-
collection_formats=_collection_formats,
|
|
202
|
-
_request_auth=_params.get('_request_auth'))
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
CloudWalletEssentials
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0.0
|
|
9
|
-
Contact: info@affinidi.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
from inspect import getfullargspec
|
|
18
|
-
import json
|
|
19
|
-
import pprint
|
|
20
|
-
import re # noqa: F401
|
|
21
|
-
|
|
22
|
-
from typing import Any, Dict, List, Optional
|
|
23
|
-
from pydantic import BaseModel, Field, StrictStr, ValidationError, validator
|
|
24
|
-
from typing import Union, Any, List, TYPE_CHECKING
|
|
25
|
-
from pydantic import StrictStr, Field
|
|
26
|
-
|
|
27
|
-
SIGNCREDENTIALRESULTDTOSIGNEDCREDENTIAL_ONE_OF_SCHEMAS = ["object", "str"]
|
|
28
|
-
|
|
29
|
-
class SignCredentialResultDtoSignedCredential(BaseModel):
|
|
30
|
-
"""
|
|
31
|
-
SignCredentialResultDtoSignedCredential
|
|
32
|
-
"""
|
|
33
|
-
# data type: object
|
|
34
|
-
oneof_schema_1_validator: Optional[Dict[str, Any]] = None
|
|
35
|
-
# data type: str
|
|
36
|
-
oneof_schema_2_validator: Optional[StrictStr] = None
|
|
37
|
-
if TYPE_CHECKING:
|
|
38
|
-
actual_instance: Union[object, str]
|
|
39
|
-
else:
|
|
40
|
-
actual_instance: Any
|
|
41
|
-
one_of_schemas: List[str] = Field(SIGNCREDENTIALRESULTDTOSIGNEDCREDENTIAL_ONE_OF_SCHEMAS, const=True)
|
|
42
|
-
|
|
43
|
-
class Config:
|
|
44
|
-
validate_assignment = True
|
|
45
|
-
|
|
46
|
-
def __init__(self, *args, **kwargs) -> None:
|
|
47
|
-
if args:
|
|
48
|
-
if len(args) > 1:
|
|
49
|
-
raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
|
|
50
|
-
if kwargs:
|
|
51
|
-
raise ValueError("If a position argument is used, keyword arguments cannot be used.")
|
|
52
|
-
super().__init__(actual_instance=args[0])
|
|
53
|
-
else:
|
|
54
|
-
super().__init__(**kwargs)
|
|
55
|
-
|
|
56
|
-
@validator('actual_instance')
|
|
57
|
-
def actual_instance_must_validate_oneof(cls, v):
|
|
58
|
-
instance = SignCredentialResultDtoSignedCredential.construct()
|
|
59
|
-
error_messages = []
|
|
60
|
-
match = 0
|
|
61
|
-
# validate data type: object
|
|
62
|
-
try:
|
|
63
|
-
instance.oneof_schema_1_validator = v
|
|
64
|
-
match += 1
|
|
65
|
-
except (ValidationError, ValueError) as e:
|
|
66
|
-
error_messages.append(str(e))
|
|
67
|
-
# validate data type: str
|
|
68
|
-
try:
|
|
69
|
-
instance.oneof_schema_2_validator = v
|
|
70
|
-
match += 1
|
|
71
|
-
except (ValidationError, ValueError) as e:
|
|
72
|
-
error_messages.append(str(e))
|
|
73
|
-
if match > 1:
|
|
74
|
-
# more than 1 match
|
|
75
|
-
raise ValueError("Multiple matches found when setting `actual_instance` in SignCredentialResultDtoSignedCredential with oneOf schemas: object, str. Details: " + ", ".join(error_messages))
|
|
76
|
-
elif match == 0:
|
|
77
|
-
# no match
|
|
78
|
-
raise ValueError("No match found when setting `actual_instance` in SignCredentialResultDtoSignedCredential with oneOf schemas: object, str. Details: " + ", ".join(error_messages))
|
|
79
|
-
else:
|
|
80
|
-
return v
|
|
81
|
-
|
|
82
|
-
@classmethod
|
|
83
|
-
def from_dict(cls, obj: dict) -> SignCredentialResultDtoSignedCredential:
|
|
84
|
-
return cls.from_json(json.dumps(obj))
|
|
85
|
-
|
|
86
|
-
@classmethod
|
|
87
|
-
def from_json(cls, json_str: str) -> SignCredentialResultDtoSignedCredential:
|
|
88
|
-
"""Returns the object represented by the json string"""
|
|
89
|
-
instance = SignCredentialResultDtoSignedCredential.construct()
|
|
90
|
-
error_messages = []
|
|
91
|
-
match = 0
|
|
92
|
-
|
|
93
|
-
# deserialize data into object
|
|
94
|
-
try:
|
|
95
|
-
# validation
|
|
96
|
-
instance.oneof_schema_1_validator = json.loads(json_str)
|
|
97
|
-
# assign value to actual_instance
|
|
98
|
-
instance.actual_instance = instance.oneof_schema_1_validator
|
|
99
|
-
match += 1
|
|
100
|
-
except (ValidationError, ValueError) as e:
|
|
101
|
-
error_messages.append(str(e))
|
|
102
|
-
# deserialize data into str
|
|
103
|
-
try:
|
|
104
|
-
# validation
|
|
105
|
-
instance.oneof_schema_2_validator = json.loads(json_str)
|
|
106
|
-
# assign value to actual_instance
|
|
107
|
-
instance.actual_instance = instance.oneof_schema_2_validator
|
|
108
|
-
match += 1
|
|
109
|
-
except (ValidationError, ValueError) as e:
|
|
110
|
-
error_messages.append(str(e))
|
|
111
|
-
|
|
112
|
-
if match > 1:
|
|
113
|
-
# more than 1 match
|
|
114
|
-
raise ValueError("Multiple matches found when deserializing the JSON string into SignCredentialResultDtoSignedCredential with oneOf schemas: object, str. Details: " + ", ".join(error_messages))
|
|
115
|
-
elif match == 0:
|
|
116
|
-
# no match
|
|
117
|
-
raise ValueError("No match found when deserializing the JSON string into SignCredentialResultDtoSignedCredential with oneOf schemas: object, str. Details: " + ", ".join(error_messages))
|
|
118
|
-
else:
|
|
119
|
-
return instance
|
|
120
|
-
|
|
121
|
-
def to_json(self) -> str:
|
|
122
|
-
"""Returns the JSON representation of the actual instance"""
|
|
123
|
-
if self.actual_instance is None:
|
|
124
|
-
return "null"
|
|
125
|
-
|
|
126
|
-
to_json = getattr(self.actual_instance, "to_json", None)
|
|
127
|
-
if callable(to_json):
|
|
128
|
-
return self.actual_instance.to_json()
|
|
129
|
-
else:
|
|
130
|
-
return json.dumps(self.actual_instance)
|
|
131
|
-
|
|
132
|
-
def to_dict(self) -> dict:
|
|
133
|
-
"""Returns the dict representation of the actual instance"""
|
|
134
|
-
if self.actual_instance is None:
|
|
135
|
-
return None
|
|
136
|
-
|
|
137
|
-
to_dict = getattr(self.actual_instance, "to_dict", None)
|
|
138
|
-
if callable(to_dict):
|
|
139
|
-
return self.actual_instance.to_dict()
|
|
140
|
-
else:
|
|
141
|
-
# primitive type
|
|
142
|
-
return self.actual_instance
|
|
143
|
-
|
|
144
|
-
def to_str(self) -> str:
|
|
145
|
-
"""Returns the string representation of the actual instance"""
|
|
146
|
-
return pprint.pformat(self.dict())
|
|
147
|
-
|
|
148
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|