Skip to content

Commit 86fd856

Browse files
committed
Release v4.2.2
1 parent b2c1df0 commit 86fd856

28 files changed

Lines changed: 1055 additions & 12 deletions

README.md

Lines changed: 5 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: 2.0
7-
- Package version: 4.2.1
7+
- Package version: 4.2.2
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [http://akeyless.io](http://akeyless.io)
1010

@@ -173,6 +173,7 @@ Class | Method | HTTP request | Description
173173
*V2Api* | [**create_zero_ssl_target**](docs/V2Api.md#create_zero_ssl_target) | **POST** /create-zerossl-target |
174174
*V2Api* | [**createldap_target**](docs/V2Api.md#createldap_target) | **POST** /create-ldap-target |
175175
*V2Api* | [**decrypt**](docs/V2Api.md#decrypt) | **POST** /decrypt |
176+
*V2Api* | [**decrypt_batch**](docs/V2Api.md#decrypt_batch) | **POST** /decrypt-batch |
176177
*V2Api* | [**decrypt_gpg**](docs/V2Api.md#decrypt_gpg) | **POST** /decrypt-gpg |
177178
*V2Api* | [**decrypt_pkcs1**](docs/V2Api.md#decrypt_pkcs1) | **POST** /decrypt-pkcs1 |
178179
*V2Api* | [**decrypt_with_classic_key**](docs/V2Api.md#decrypt_with_classic_key) | **POST** /decrypt-with-classic-key |
@@ -259,6 +260,7 @@ Class | Method | HTTP request | Description
259260
*V2Api* | [**dynamic_secret_update_snowflake**](docs/V2Api.md#dynamic_secret_update_snowflake) | **POST** /dynamic-secret-update-snowflake |
260261
*V2Api* | [**dynamic_secret_update_venafi**](docs/V2Api.md#dynamic_secret_update_venafi) | **POST** /dynamic-secret-update-venafi |
261262
*V2Api* | [**encrypt**](docs/V2Api.md#encrypt) | **POST** /encrypt |
263+
*V2Api* | [**encrypt_batch**](docs/V2Api.md#encrypt_batch) | **POST** /encrypt-batch |
262264
*V2Api* | [**encrypt_gpg**](docs/V2Api.md#encrypt_gpg) | **POST** /encrypt-gpg |
263265
*V2Api* | [**encrypt_with_classic_key**](docs/V2Api.md#encrypt_with_classic_key) | **POST** /encrypt-with-classic-key |
264266
*V2Api* | [**esm_create**](docs/V2Api.md#esm_create) | **POST** /esm-create |
@@ -685,6 +687,8 @@ Class | Method | HTTP request | Description
685687
- [AzureTargetDetails](docs/AzureTargetDetails.md)
686688
- [BastionListEntry](docs/BastionListEntry.md)
687689
- [BastionsList](docs/BastionsList.md)
690+
- [BatchEncryptionRequestLine](docs/BatchEncryptionRequestLine.md)
691+
- [BatchEncryptionResponseLine](docs/BatchEncryptionResponseLine.md)
688692
- [CFConfigPart](docs/CFConfigPart.md)
689693
- [CacheConfigPart](docs/CacheConfigPart.md)
690694
- [CertAccessRules](docs/CertAccessRules.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__ = "4.2.1"
18+
__version__ = "4.2.2"
1919

2020
# import apis into sdk package
2121
from akeyless.api.v2_api import V2Api
@@ -96,6 +96,8 @@
9696
from akeyless.models.azure_target_details import AzureTargetDetails
9797
from akeyless.models.bastion_list_entry import BastionListEntry
9898
from akeyless.models.bastions_list import BastionsList
99+
from akeyless.models.batch_encryption_request_line import BatchEncryptionRequestLine
100+
from akeyless.models.batch_encryption_response_line import BatchEncryptionResponseLine
99101
from akeyless.models.cf_config_part import CFConfigPart
100102
from akeyless.models.cache_config_part import CacheConfigPart
101103
from akeyless.models.cert_access_rules import CertAccessRules

akeyless/api/v2_api.py

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10477,6 +10477,122 @@ def decrypt_with_http_info(self, body, **kwargs): # noqa: E501
1047710477
_request_timeout=local_var_params.get('_request_timeout'),
1047810478
collection_formats=collection_formats)
1047910479

10480+
def decrypt_batch(self, body, **kwargs): # noqa: E501
10481+
"""decrypt_batch # noqa: E501
10482+
10483+
This method makes a synchronous HTTP request by default. To make an
10484+
asynchronous HTTP request, please pass async_req=True
10485+
>>> thread = api.decrypt_batch(body, async_req=True)
10486+
>>> result = thread.get()
10487+
10488+
:param async_req bool: execute request asynchronously
10489+
:param list[BatchEncryptionRequestLine] body: (required)
10490+
:param _preload_content: if False, the urllib3.HTTPResponse object will
10491+
be returned without reading/decoding response
10492+
data. Default is True.
10493+
:param _request_timeout: timeout setting for this request. If one
10494+
number provided, it will be total request
10495+
timeout. It can also be a pair (tuple) of
10496+
(connection, read) timeouts.
10497+
:return: DecryptOutput
10498+
If the method is called asynchronously,
10499+
returns the request thread.
10500+
"""
10501+
kwargs['_return_http_data_only'] = True
10502+
return self.decrypt_batch_with_http_info(body, **kwargs) # noqa: E501
10503+
10504+
def decrypt_batch_with_http_info(self, body, **kwargs): # noqa: E501
10505+
"""decrypt_batch # noqa: E501
10506+
10507+
This method makes a synchronous HTTP request by default. To make an
10508+
asynchronous HTTP request, please pass async_req=True
10509+
>>> thread = api.decrypt_batch_with_http_info(body, async_req=True)
10510+
>>> result = thread.get()
10511+
10512+
:param async_req bool: execute request asynchronously
10513+
:param list[BatchEncryptionRequestLine] body: (required)
10514+
:param _return_http_data_only: response data without head status code
10515+
and headers
10516+
:param _preload_content: if False, the urllib3.HTTPResponse object will
10517+
be returned without reading/decoding response
10518+
data. Default is True.
10519+
:param _request_timeout: timeout setting for this request. If one
10520+
number provided, it will be total request
10521+
timeout. It can also be a pair (tuple) of
10522+
(connection, read) timeouts.
10523+
:return: tuple(DecryptOutput, status_code(int), headers(HTTPHeaderDict))
10524+
If the method is called asynchronously,
10525+
returns the request thread.
10526+
"""
10527+
10528+
local_var_params = locals()
10529+
10530+
all_params = [
10531+
'body'
10532+
]
10533+
all_params.extend(
10534+
[
10535+
'async_req',
10536+
'_return_http_data_only',
10537+
'_preload_content',
10538+
'_request_timeout'
10539+
]
10540+
)
10541+
10542+
for key, val in six.iteritems(local_var_params['kwargs']):
10543+
if key not in all_params:
10544+
raise ApiTypeError(
10545+
"Got an unexpected keyword argument '%s'"
10546+
" to method decrypt_batch" % key
10547+
)
10548+
local_var_params[key] = val
10549+
del local_var_params['kwargs']
10550+
# verify the required parameter 'body' is set
10551+
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
10552+
local_var_params['body'] is None): # noqa: E501
10553+
raise ApiValueError("Missing the required parameter `body` when calling `decrypt_batch`") # noqa: E501
10554+
10555+
collection_formats = {}
10556+
10557+
path_params = {}
10558+
10559+
query_params = []
10560+
10561+
header_params = {}
10562+
10563+
form_params = []
10564+
local_var_files = {}
10565+
10566+
body_params = None
10567+
if 'body' in local_var_params:
10568+
body_params = local_var_params['body']
10569+
# HTTP header `Accept`
10570+
header_params['Accept'] = self.api_client.select_header_accept(
10571+
['application/json']) # noqa: E501
10572+
10573+
# HTTP header `Content-Type`
10574+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
10575+
['application/json']) # noqa: E501
10576+
10577+
# Authentication setting
10578+
auth_settings = [] # noqa: E501
10579+
10580+
return self.api_client.call_api(
10581+
'/decrypt-batch', 'POST',
10582+
path_params,
10583+
query_params,
10584+
header_params,
10585+
body=body_params,
10586+
post_params=form_params,
10587+
files=local_var_files,
10588+
response_type='DecryptOutput', # noqa: E501
10589+
auth_settings=auth_settings,
10590+
async_req=local_var_params.get('async_req'),
10591+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
10592+
_preload_content=local_var_params.get('_preload_content', True),
10593+
_request_timeout=local_var_params.get('_request_timeout'),
10594+
collection_formats=collection_formats)
10595+
1048010596
def decrypt_gpg(self, body, **kwargs): # noqa: E501
1048110597
"""decrypt_gpg # noqa: E501
1048210598

@@ -20445,6 +20561,122 @@ def encrypt_with_http_info(self, body, **kwargs): # noqa: E501
2044520561
_request_timeout=local_var_params.get('_request_timeout'),
2044620562
collection_formats=collection_formats)
2044720563

20564+
def encrypt_batch(self, body, **kwargs): # noqa: E501
20565+
"""encrypt_batch # noqa: E501
20566+
20567+
This method makes a synchronous HTTP request by default. To make an
20568+
asynchronous HTTP request, please pass async_req=True
20569+
>>> thread = api.encrypt_batch(body, async_req=True)
20570+
>>> result = thread.get()
20571+
20572+
:param async_req bool: execute request asynchronously
20573+
:param list[BatchEncryptionRequestLine] body: (required)
20574+
:param _preload_content: if False, the urllib3.HTTPResponse object will
20575+
be returned without reading/decoding response
20576+
data. Default is True.
20577+
:param _request_timeout: timeout setting for this request. If one
20578+
number provided, it will be total request
20579+
timeout. It can also be a pair (tuple) of
20580+
(connection, read) timeouts.
20581+
:return: EncryptOutput
20582+
If the method is called asynchronously,
20583+
returns the request thread.
20584+
"""
20585+
kwargs['_return_http_data_only'] = True
20586+
return self.encrypt_batch_with_http_info(body, **kwargs) # noqa: E501
20587+
20588+
def encrypt_batch_with_http_info(self, body, **kwargs): # noqa: E501
20589+
"""encrypt_batch # noqa: E501
20590+
20591+
This method makes a synchronous HTTP request by default. To make an
20592+
asynchronous HTTP request, please pass async_req=True
20593+
>>> thread = api.encrypt_batch_with_http_info(body, async_req=True)
20594+
>>> result = thread.get()
20595+
20596+
:param async_req bool: execute request asynchronously
20597+
:param list[BatchEncryptionRequestLine] body: (required)
20598+
:param _return_http_data_only: response data without head status code
20599+
and headers
20600+
:param _preload_content: if False, the urllib3.HTTPResponse object will
20601+
be returned without reading/decoding response
20602+
data. Default is True.
20603+
:param _request_timeout: timeout setting for this request. If one
20604+
number provided, it will be total request
20605+
timeout. It can also be a pair (tuple) of
20606+
(connection, read) timeouts.
20607+
:return: tuple(EncryptOutput, status_code(int), headers(HTTPHeaderDict))
20608+
If the method is called asynchronously,
20609+
returns the request thread.
20610+
"""
20611+
20612+
local_var_params = locals()
20613+
20614+
all_params = [
20615+
'body'
20616+
]
20617+
all_params.extend(
20618+
[
20619+
'async_req',
20620+
'_return_http_data_only',
20621+
'_preload_content',
20622+
'_request_timeout'
20623+
]
20624+
)
20625+
20626+
for key, val in six.iteritems(local_var_params['kwargs']):
20627+
if key not in all_params:
20628+
raise ApiTypeError(
20629+
"Got an unexpected keyword argument '%s'"
20630+
" to method encrypt_batch" % key
20631+
)
20632+
local_var_params[key] = val
20633+
del local_var_params['kwargs']
20634+
# verify the required parameter 'body' is set
20635+
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
20636+
local_var_params['body'] is None): # noqa: E501
20637+
raise ApiValueError("Missing the required parameter `body` when calling `encrypt_batch`") # noqa: E501
20638+
20639+
collection_formats = {}
20640+
20641+
path_params = {}
20642+
20643+
query_params = []
20644+
20645+
header_params = {}
20646+
20647+
form_params = []
20648+
local_var_files = {}
20649+
20650+
body_params = None
20651+
if 'body' in local_var_params:
20652+
body_params = local_var_params['body']
20653+
# HTTP header `Accept`
20654+
header_params['Accept'] = self.api_client.select_header_accept(
20655+
['application/json']) # noqa: E501
20656+
20657+
# HTTP header `Content-Type`
20658+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
20659+
['application/json']) # noqa: E501
20660+
20661+
# Authentication setting
20662+
auth_settings = [] # noqa: E501
20663+
20664+
return self.api_client.call_api(
20665+
'/encrypt-batch', 'POST',
20666+
path_params,
20667+
query_params,
20668+
header_params,
20669+
body=body_params,
20670+
post_params=form_params,
20671+
files=local_var_files,
20672+
response_type='EncryptOutput', # noqa: E501
20673+
auth_settings=auth_settings,
20674+
async_req=local_var_params.get('async_req'),
20675+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20676+
_preload_content=local_var_params.get('_preload_content', True),
20677+
_request_timeout=local_var_params.get('_request_timeout'),
20678+
collection_formats=collection_formats)
20679+
2044820680
def encrypt_gpg(self, body, **kwargs): # noqa: E501
2044920681
"""encrypt_gpg # noqa: E501
2045020682

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/4.2.1/python'
82+
self.user_agent = 'OpenAPI-Generator/4.2.2/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: 2.0\n"\
329-
"SDK Package Version: 4.2.1".\
329+
"SDK Package Version: 4.2.2".\
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
@@ -82,6 +82,8 @@
8282
from akeyless.models.azure_target_details import AzureTargetDetails
8383
from akeyless.models.bastion_list_entry import BastionListEntry
8484
from akeyless.models.bastions_list import BastionsList
85+
from akeyless.models.batch_encryption_request_line import BatchEncryptionRequestLine
86+
from akeyless.models.batch_encryption_response_line import BatchEncryptionResponseLine
8587
from akeyless.models.cf_config_part import CFConfigPart
8688
from akeyless.models.cache_config_part import CacheConfigPart
8789
from akeyless.models.cert_access_rules import CertAccessRules

0 commit comments

Comments
 (0)