Skip to content

Commit f78c4f7

Browse files
committed
"Release v5.0.8"
1 parent d438265 commit f78c4f7

40 files changed

+959
-61
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The purpose of this application is to provide access to Akeyless API.
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 3.0
7-
- Package version: 5.0.7
7+
- Package version: 5.0.8
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [http://akeyless.io](http://akeyless.io)
1010

@@ -399,6 +399,7 @@ Class | Method | HTTP request | Description
399399
*V2Api* | [**get_account_settings**](docs/V2Api.md#get_account_settings) | **POST** /get-account-settings |
400400
*V2Api* | [**get_analytics_data**](docs/V2Api.md#get_analytics_data) | **POST** /get-analytics-data |
401401
*V2Api* | [**get_auth_method**](docs/V2Api.md#get_auth_method) | **POST** /get-auth-method |
402+
*V2Api* | [**get_cert_challenge**](docs/V2Api.md#get_cert_challenge) | **POST** /get-cert-challenge |
402403
*V2Api* | [**get_certificate_value**](docs/V2Api.md#get_certificate_value) | **POST** /get-certificate-value |
403404
*V2Api* | [**get_dynamic_secret_value**](docs/V2Api.md#get_dynamic_secret_value) | **POST** /get-dynamic-secret-value |
404405
*V2Api* | [**get_event_forwarder**](docs/V2Api.md#get_event_forwarder) | **POST** /get-event-forwarder |
@@ -1253,6 +1254,8 @@ Class | Method | HTTP request | Description
12531254
- [GetAccountSettingsCommandOutput](docs/GetAccountSettingsCommandOutput.md)
12541255
- [GetAnalyticsData](docs/GetAnalyticsData.md)
12551256
- [GetAuthMethod](docs/GetAuthMethod.md)
1257+
- [GetCertChallenge](docs/GetCertChallenge.md)
1258+
- [GetCertChallengeOutput](docs/GetCertChallengeOutput.md)
12561259
- [GetCertificateValue](docs/GetCertificateValue.md)
12571260
- [GetCertificateValueOutput](docs/GetCertificateValueOutput.md)
12581261
- [GetDynamicSecretValue](docs/GetDynamicSecretValue.md)

akeyless/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "5.0.7"
18+
__version__ = "5.0.8"
1919

2020
# import apis into sdk package
2121
from akeyless.api.v2_api import V2Api
@@ -620,6 +620,8 @@
620620
from akeyless.models.get_account_settings_command_output import GetAccountSettingsCommandOutput
621621
from akeyless.models.get_analytics_data import GetAnalyticsData
622622
from akeyless.models.get_auth_method import GetAuthMethod
623+
from akeyless.models.get_cert_challenge import GetCertChallenge
624+
from akeyless.models.get_cert_challenge_output import GetCertChallengeOutput
623625
from akeyless.models.get_certificate_value import GetCertificateValue
624626
from akeyless.models.get_certificate_value_output import GetCertificateValueOutput
625627
from akeyless.models.get_dynamic_secret_value import GetDynamicSecretValue

akeyless/api/v2_api.py

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36660,6 +36660,122 @@ def get_auth_method_with_http_info(self, get_auth_method, **kwargs): # noqa: E5
3666036660
_request_timeout=local_var_params.get('_request_timeout'),
3666136661
collection_formats=collection_formats)
3666236662

36663+
def get_cert_challenge(self, get_cert_challenge, **kwargs): # noqa: E501
36664+
"""get_cert_challenge # noqa: E501
36665+
36666+
This method makes a synchronous HTTP request by default. To make an
36667+
asynchronous HTTP request, please pass async_req=True
36668+
>>> thread = api.get_cert_challenge(get_cert_challenge, async_req=True)
36669+
>>> result = thread.get()
36670+
36671+
:param async_req bool: execute request asynchronously
36672+
:param GetCertChallenge get_cert_challenge: (required)
36673+
:param _preload_content: if False, the urllib3.HTTPResponse object will
36674+
be returned without reading/decoding response
36675+
data. Default is True.
36676+
:param _request_timeout: timeout setting for this request. If one
36677+
number provided, it will be total request
36678+
timeout. It can also be a pair (tuple) of
36679+
(connection, read) timeouts.
36680+
:return: GetCertChallengeOutput
36681+
If the method is called asynchronously,
36682+
returns the request thread.
36683+
"""
36684+
kwargs['_return_http_data_only'] = True
36685+
return self.get_cert_challenge_with_http_info(get_cert_challenge, **kwargs) # noqa: E501
36686+
36687+
def get_cert_challenge_with_http_info(self, get_cert_challenge, **kwargs): # noqa: E501
36688+
"""get_cert_challenge # noqa: E501
36689+
36690+
This method makes a synchronous HTTP request by default. To make an
36691+
asynchronous HTTP request, please pass async_req=True
36692+
>>> thread = api.get_cert_challenge_with_http_info(get_cert_challenge, async_req=True)
36693+
>>> result = thread.get()
36694+
36695+
:param async_req bool: execute request asynchronously
36696+
:param GetCertChallenge get_cert_challenge: (required)
36697+
:param _return_http_data_only: response data without head status code
36698+
and headers
36699+
:param _preload_content: if False, the urllib3.HTTPResponse object will
36700+
be returned without reading/decoding response
36701+
data. Default is True.
36702+
:param _request_timeout: timeout setting for this request. If one
36703+
number provided, it will be total request
36704+
timeout. It can also be a pair (tuple) of
36705+
(connection, read) timeouts.
36706+
:return: tuple(GetCertChallengeOutput, status_code(int), headers(HTTPHeaderDict))
36707+
If the method is called asynchronously,
36708+
returns the request thread.
36709+
"""
36710+
36711+
local_var_params = locals()
36712+
36713+
all_params = [
36714+
'get_cert_challenge'
36715+
]
36716+
all_params.extend(
36717+
[
36718+
'async_req',
36719+
'_return_http_data_only',
36720+
'_preload_content',
36721+
'_request_timeout'
36722+
]
36723+
)
36724+
36725+
for key, val in six.iteritems(local_var_params['kwargs']):
36726+
if key not in all_params:
36727+
raise ApiTypeError(
36728+
"Got an unexpected keyword argument '%s'"
36729+
" to method get_cert_challenge" % key
36730+
)
36731+
local_var_params[key] = val
36732+
del local_var_params['kwargs']
36733+
# verify the required parameter 'get_cert_challenge' is set
36734+
if self.api_client.client_side_validation and ('get_cert_challenge' not in local_var_params or # noqa: E501
36735+
local_var_params['get_cert_challenge'] is None): # noqa: E501
36736+
raise ApiValueError("Missing the required parameter `get_cert_challenge` when calling `get_cert_challenge`") # noqa: E501
36737+
36738+
collection_formats = {}
36739+
36740+
path_params = {}
36741+
36742+
query_params = []
36743+
36744+
header_params = {}
36745+
36746+
form_params = []
36747+
local_var_files = {}
36748+
36749+
body_params = None
36750+
if 'get_cert_challenge' in local_var_params:
36751+
body_params = local_var_params['get_cert_challenge']
36752+
# HTTP header `Accept`
36753+
header_params['Accept'] = self.api_client.select_header_accept(
36754+
['application/json']) # noqa: E501
36755+
36756+
# HTTP header `Content-Type`
36757+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
36758+
['application/json']) # noqa: E501
36759+
36760+
# Authentication setting
36761+
auth_settings = [] # noqa: E501
36762+
36763+
return self.api_client.call_api(
36764+
'/get-cert-challenge', 'POST',
36765+
path_params,
36766+
query_params,
36767+
header_params,
36768+
body=body_params,
36769+
post_params=form_params,
36770+
files=local_var_files,
36771+
response_type='GetCertChallengeOutput', # noqa: E501
36772+
auth_settings=auth_settings,
36773+
async_req=local_var_params.get('async_req'),
36774+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
36775+
_preload_content=local_var_params.get('_preload_content', True),
36776+
_request_timeout=local_var_params.get('_request_timeout'),
36777+
collection_formats=collection_formats)
36778+
3666336779
def get_certificate_value(self, get_certificate_value, **kwargs): # noqa: E501
3666436780
"""get_certificate_value # noqa: E501
3666536781

akeyless/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7979
self.default_headers[header_name] = header_value
8080
self.cookie = cookie
8181
# Set default User-Agent.
82-
self.user_agent = 'OpenAPI-Generator/5.0.7/python'
82+
self.user_agent = 'OpenAPI-Generator/5.0.8/python'
8383
self.client_side_validation = configuration.client_side_validation
8484

8585
def __enter__(self):

akeyless/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def to_debug_report(self):
326326
"OS: {env}\n"\
327327
"Python Version: {pyversion}\n"\
328328
"Version of the API: 3.0\n"\
329-
"SDK Package Version: 5.0.7".\
329+
"SDK Package Version: 5.0.8".\
330330
format(env=sys.platform, pyversion=sys.version)
331331

332332
def get_host_settings(self):

akeyless/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,8 @@
606606
from akeyless.models.get_account_settings_command_output import GetAccountSettingsCommandOutput
607607
from akeyless.models.get_analytics_data import GetAnalyticsData
608608
from akeyless.models.get_auth_method import GetAuthMethod
609+
from akeyless.models.get_cert_challenge import GetCertChallenge
610+
from akeyless.models.get_cert_challenge_output import GetCertChallengeOutput
609611
from akeyless.models.get_certificate_value import GetCertificateValue
610612
from akeyless.models.get_certificate_value_output import GetCertificateValueOutput
611613
from akeyless.models.get_dynamic_secret_value import GetDynamicSecretValue

akeyless/models/auth.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Auth(object):
4040
'account_id': 'str',
4141
'admin_email': 'str',
4242
'admin_password': 'str',
43+
'cert_challenge': 'str',
4344
'cert_data': 'str',
4445
'cloud_id': 'str',
4546
'debug': 'bool',
@@ -60,6 +61,7 @@ class Auth(object):
6061
'oci_auth_type': 'str',
6162
'oci_group_ocid': 'list[str]',
6263
'otp': 'str',
64+
'signed_cert_challenge': 'str',
6365
'uid_token': 'str',
6466
'use_remote_browser': 'bool',
6567
'username': 'str'
@@ -72,6 +74,7 @@ class Auth(object):
7274
'account_id': 'account-id',
7375
'admin_email': 'admin-email',
7476
'admin_password': 'admin-password',
77+
'cert_challenge': 'cert-challenge',
7578
'cert_data': 'cert-data',
7679
'cloud_id': 'cloud-id',
7780
'debug': 'debug',
@@ -92,12 +95,13 @@ class Auth(object):
9295
'oci_auth_type': 'oci-auth-type',
9396
'oci_group_ocid': 'oci-group-ocid',
9497
'otp': 'otp',
98+
'signed_cert_challenge': 'signed-cert-challenge',
9599
'uid_token': 'uid-token',
96100
'use_remote_browser': 'use-remote-browser',
97101
'username': 'username'
98102
}
99103

100-
def __init__(self, access_id=None, access_key=None, access_type='access_key', account_id=None, admin_email=None, admin_password=None, cert_data=None, cloud_id=None, debug=None, disable_pafxfast=None, gateway_spn=None, gateway_url=None, gcp_audience='akeyless.io', json=False, jwt=None, k8s_auth_config_name=None, k8s_service_account_token=None, kerberos_token=None, kerberos_username=None, key_data=None, keytab_data=None, krb5_conf_data=None, ldap_password=None, oci_auth_type='apikey', oci_group_ocid=None, otp=None, uid_token=None, use_remote_browser=None, username=None, local_vars_configuration=None): # noqa: E501
104+
def __init__(self, access_id=None, access_key=None, access_type='access_key', account_id=None, admin_email=None, admin_password=None, cert_challenge=None, cert_data=None, cloud_id=None, debug=None, disable_pafxfast=None, gateway_spn=None, gateway_url=None, gcp_audience='akeyless.io', json=False, jwt=None, k8s_auth_config_name=None, k8s_service_account_token=None, kerberos_token=None, kerberos_username=None, key_data=None, keytab_data=None, krb5_conf_data=None, ldap_password=None, oci_auth_type='apikey', oci_group_ocid=None, otp=None, signed_cert_challenge=None, uid_token=None, use_remote_browser=None, username=None, local_vars_configuration=None): # noqa: E501
101105
"""Auth - a model defined in OpenAPI""" # noqa: E501
102106
if local_vars_configuration is None:
103107
local_vars_configuration = Configuration()
@@ -109,6 +113,7 @@ def __init__(self, access_id=None, access_key=None, access_type='access_key', ac
109113
self._account_id = None
110114
self._admin_email = None
111115
self._admin_password = None
116+
self._cert_challenge = None
112117
self._cert_data = None
113118
self._cloud_id = None
114119
self._debug = None
@@ -129,6 +134,7 @@ def __init__(self, access_id=None, access_key=None, access_type='access_key', ac
129134
self._oci_auth_type = None
130135
self._oci_group_ocid = None
131136
self._otp = None
137+
self._signed_cert_challenge = None
132138
self._uid_token = None
133139
self._use_remote_browser = None
134140
self._username = None
@@ -146,6 +152,8 @@ def __init__(self, access_id=None, access_key=None, access_type='access_key', ac
146152
self.admin_email = admin_email
147153
if admin_password is not None:
148154
self.admin_password = admin_password
155+
if cert_challenge is not None:
156+
self.cert_challenge = cert_challenge
149157
if cert_data is not None:
150158
self.cert_data = cert_data
151159
if cloud_id is not None:
@@ -186,6 +194,8 @@ def __init__(self, access_id=None, access_key=None, access_type='access_key', ac
186194
self.oci_group_ocid = oci_group_ocid
187195
if otp is not None:
188196
self.otp = otp
197+
if signed_cert_challenge is not None:
198+
self.signed_cert_challenge = signed_cert_challenge
189199
if uid_token is not None:
190200
self.uid_token = uid_token
191201
if use_remote_browser is not None:
@@ -331,6 +341,29 @@ def admin_password(self, admin_password):
331341

332342
self._admin_password = admin_password
333343

344+
@property
345+
def cert_challenge(self):
346+
"""Gets the cert_challenge of this Auth. # noqa: E501
347+
348+
Certificate challenge encoded in base64. (relevant only for access-type=cert) # noqa: E501
349+
350+
:return: The cert_challenge of this Auth. # noqa: E501
351+
:rtype: str
352+
"""
353+
return self._cert_challenge
354+
355+
@cert_challenge.setter
356+
def cert_challenge(self, cert_challenge):
357+
"""Sets the cert_challenge of this Auth.
358+
359+
Certificate challenge encoded in base64. (relevant only for access-type=cert) # noqa: E501
360+
361+
:param cert_challenge: The cert_challenge of this Auth. # noqa: E501
362+
:type: str
363+
"""
364+
365+
self._cert_challenge = cert_challenge
366+
334367
@property
335368
def cert_data(self):
336369
"""Gets the cert_data of this Auth. # noqa: E501
@@ -787,6 +820,29 @@ def otp(self, otp):
787820

788821
self._otp = otp
789822

823+
@property
824+
def signed_cert_challenge(self):
825+
"""Gets the signed_cert_challenge of this Auth. # noqa: E501
826+
827+
Signed certificate challenge encoded in base64. (relevant only for access-type=cert) # noqa: E501
828+
829+
:return: The signed_cert_challenge of this Auth. # noqa: E501
830+
:rtype: str
831+
"""
832+
return self._signed_cert_challenge
833+
834+
@signed_cert_challenge.setter
835+
def signed_cert_challenge(self, signed_cert_challenge):
836+
"""Sets the signed_cert_challenge of this Auth.
837+
838+
Signed certificate challenge encoded in base64. (relevant only for access-type=cert) # noqa: E501
839+
840+
:param signed_cert_challenge: The signed_cert_challenge of this Auth. # noqa: E501
841+
:type: str
842+
"""
843+
844+
self._signed_cert_challenge = signed_cert_challenge
845+
790846
@property
791847
def uid_token(self):
792848
"""Gets the uid_token of this Auth. # noqa: E501

akeyless/models/auth_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,35 @@ class AuthOutput(object):
3636
openapi_types = {
3737
'complete_auth_link': 'str',
3838
'creds': 'SystemAccessCredentialsReplyObj',
39+
'expiration': 'str',
3940
'token': 'str'
4041
}
4142

4243
attribute_map = {
4344
'complete_auth_link': 'complete_auth_link',
4445
'creds': 'creds',
46+
'expiration': 'expiration',
4547
'token': 'token'
4648
}
4749

48-
def __init__(self, complete_auth_link=None, creds=None, token=None, local_vars_configuration=None): # noqa: E501
50+
def __init__(self, complete_auth_link=None, creds=None, expiration=None, token=None, local_vars_configuration=None): # noqa: E501
4951
"""AuthOutput - a model defined in OpenAPI""" # noqa: E501
5052
if local_vars_configuration is None:
5153
local_vars_configuration = Configuration()
5254
self.local_vars_configuration = local_vars_configuration
5355

5456
self._complete_auth_link = None
5557
self._creds = None
58+
self._expiration = None
5659
self._token = None
5760
self.discriminator = None
5861

5962
if complete_auth_link is not None:
6063
self.complete_auth_link = complete_auth_link
6164
if creds is not None:
6265
self.creds = creds
66+
if expiration is not None:
67+
self.expiration = expiration
6368
if token is not None:
6469
self.token = token
6570

@@ -105,6 +110,27 @@ def creds(self, creds):
105110

106111
self._creds = creds
107112

113+
@property
114+
def expiration(self):
115+
"""Gets the expiration of this AuthOutput. # noqa: E501
116+
117+
118+
:return: The expiration of this AuthOutput. # noqa: E501
119+
:rtype: str
120+
"""
121+
return self._expiration
122+
123+
@expiration.setter
124+
def expiration(self, expiration):
125+
"""Sets the expiration of this AuthOutput.
126+
127+
128+
:param expiration: The expiration of this AuthOutput. # noqa: E501
129+
:type: str
130+
"""
131+
132+
self._expiration = expiration
133+
108134
@property
109135
def token(self):
110136
"""Gets the token of this AuthOutput. # noqa: E501

0 commit comments

Comments
 (0)