Skip to content

Commit b2c1df0

Browse files
committed
Release v4.2.1
1 parent 46a093e commit b2c1df0

465 files changed

Lines changed: 2823 additions & 583 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

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

akeyless/__init__.py

Lines changed: 1 addition & 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.0"
18+
__version__ = "4.2.1"
1919

2020
# import apis into sdk package
2121
from akeyless.api.v2_api import V2Api

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.0/python'
82+
self.user_agent = 'OpenAPI-Generator/4.2.1/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.0".\
329+
"SDK Package Version: 4.2.1".\
330330
format(env=sys.platform, pyversion=sys.version)
331331

332332
def get_host_settings(self):

akeyless/models/auth.py

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class Auth(object):
5454
'ldap_username': 'str',
5555
'oci_auth_type': 'str',
5656
'oci_group_ocid': 'list[str]',
57-
'uid_token': 'str'
57+
'uid_token': 'str',
58+
'use_remote_browser': 'bool'
5859
}
5960

6061
attribute_map = {
@@ -78,10 +79,11 @@ class Auth(object):
7879
'ldap_username': 'ldap_username',
7980
'oci_auth_type': 'oci-auth-type',
8081
'oci_group_ocid': 'oci-group-ocid',
81-
'uid_token': 'uid_token'
82+
'uid_token': 'uid_token',
83+
'use_remote_browser': 'use-remote-browser'
8284
}
8385

84-
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, gateway_url=None, gcp_audience='akeyless.io', json=False, jwt=None, k8s_auth_config_name=None, k8s_service_account_token=None, key_data=None, ldap_password=None, ldap_username=None, oci_auth_type='apikey', oci_group_ocid=None, uid_token=None, local_vars_configuration=None): # noqa: E501
86+
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, gateway_url=None, gcp_audience='akeyless.io', json=False, jwt=None, k8s_auth_config_name=None, k8s_service_account_token=None, key_data=None, ldap_password=None, ldap_username=None, oci_auth_type='apikey', oci_group_ocid=None, uid_token=None, use_remote_browser=None, local_vars_configuration=None): # noqa: E501
8587
"""Auth - a model defined in OpenAPI""" # noqa: E501
8688
if local_vars_configuration is None:
8789
local_vars_configuration = Configuration()
@@ -108,6 +110,7 @@ def __init__(self, access_id=None, access_key=None, access_type='access_key', ac
108110
self._oci_auth_type = None
109111
self._oci_group_ocid = None
110112
self._uid_token = None
113+
self._use_remote_browser = None
111114
self.discriminator = None
112115

113116
if access_id is not None:
@@ -152,6 +155,8 @@ def __init__(self, access_id=None, access_key=None, access_type='access_key', ac
152155
self.oci_group_ocid = oci_group_ocid
153156
if uid_token is not None:
154157
self.uid_token = uid_token
158+
if use_remote_browser is not None:
159+
self.use_remote_browser = use_remote_browser
155160

156161
@property
157162
def access_id(self):
@@ -362,7 +367,7 @@ def debug(self, debug):
362367
def gateway_url(self):
363368
"""Gets the gateway_url of this Auth. # noqa: E501
364369
365-
Gateway URL for the K8S/OAUTH2 authenticated (relevant only for access-type=k8s/oauth2) # noqa: E501
370+
Gateway URL relevant only for access-type=k8s/oauth2/saml/oidc # noqa: E501
366371
367372
:return: The gateway_url of this Auth. # noqa: E501
368373
:rtype: str
@@ -373,7 +378,7 @@ def gateway_url(self):
373378
def gateway_url(self, gateway_url):
374379
"""Sets the gateway_url of this Auth.
375380
376-
Gateway URL for the K8S/OAUTH2 authenticated (relevant only for access-type=k8s/oauth2) # noqa: E501
381+
Gateway URL relevant only for access-type=k8s/oauth2/saml/oidc # noqa: E501
377382
378383
:param gateway_url: The gateway_url of this Auth. # noqa: E501
379384
:type: str
@@ -634,6 +639,29 @@ def uid_token(self, uid_token):
634639

635640
self._uid_token = uid_token
636641

642+
@property
643+
def use_remote_browser(self):
644+
"""Gets the use_remote_browser of this Auth. # noqa: E501
645+
646+
Returns a link to complete the authentication remotely (relevant only for access-type=saml/oidc) # noqa: E501
647+
648+
:return: The use_remote_browser of this Auth. # noqa: E501
649+
:rtype: bool
650+
"""
651+
return self._use_remote_browser
652+
653+
@use_remote_browser.setter
654+
def use_remote_browser(self, use_remote_browser):
655+
"""Sets the use_remote_browser of this Auth.
656+
657+
Returns a link to complete the authentication remotely (relevant only for access-type=saml/oidc) # noqa: E501
658+
659+
:param use_remote_browser: The use_remote_browser of this Auth. # noqa: E501
660+
:type: bool
661+
"""
662+
663+
self._use_remote_browser = use_remote_browser
664+
637665
def to_dict(self):
638666
"""Returns the model properties as a dict"""
639667
result = {}

akeyless/models/auth_method.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class AuthMethod(object):
4444
'auth_method_roles_assoc': 'list[AuthMethodRoleAssociation]',
4545
'client_permissions': 'list[str]',
4646
'creation_date': 'datetime',
47+
'delete_protection': 'bool',
4748
'description': 'str',
4849
'is_approved': 'bool',
4950
'modification_date': 'datetime'
@@ -60,12 +61,13 @@ class AuthMethod(object):
6061
'auth_method_roles_assoc': 'auth_method_roles_assoc',
6162
'client_permissions': 'client_permissions',
6263
'creation_date': 'creation_date',
64+
'delete_protection': 'delete_protection',
6365
'description': 'description',
6466
'is_approved': 'is_approved',
6567
'modification_date': 'modification_date'
6668
}
6769

68-
def __init__(self, access_date=None, access_date_display=None, access_info=None, account_id=None, associated_gw_ids=None, auth_method_access_id=None, auth_method_name=None, auth_method_roles_assoc=None, client_permissions=None, creation_date=None, description=None, is_approved=None, modification_date=None, local_vars_configuration=None): # noqa: E501
70+
def __init__(self, access_date=None, access_date_display=None, access_info=None, account_id=None, associated_gw_ids=None, auth_method_access_id=None, auth_method_name=None, auth_method_roles_assoc=None, client_permissions=None, creation_date=None, delete_protection=None, description=None, is_approved=None, modification_date=None, local_vars_configuration=None): # noqa: E501
6971
"""AuthMethod - a model defined in OpenAPI""" # noqa: E501
7072
if local_vars_configuration is None:
7173
local_vars_configuration = Configuration()
@@ -81,6 +83,7 @@ def __init__(self, access_date=None, access_date_display=None, access_info=None,
8183
self._auth_method_roles_assoc = None
8284
self._client_permissions = None
8385
self._creation_date = None
86+
self._delete_protection = None
8487
self._description = None
8588
self._is_approved = None
8689
self._modification_date = None
@@ -106,6 +109,8 @@ def __init__(self, access_date=None, access_date_display=None, access_info=None,
106109
self.client_permissions = client_permissions
107110
if creation_date is not None:
108111
self.creation_date = creation_date
112+
if delete_protection is not None:
113+
self.delete_protection = delete_protection
109114
if description is not None:
110115
self.description = description
111116
if is_approved is not None:
@@ -323,6 +328,27 @@ def creation_date(self, creation_date):
323328

324329
self._creation_date = creation_date
325330

331+
@property
332+
def delete_protection(self):
333+
"""Gets the delete_protection of this AuthMethod. # noqa: E501
334+
335+
336+
:return: The delete_protection of this AuthMethod. # noqa: E501
337+
:rtype: bool
338+
"""
339+
return self._delete_protection
340+
341+
@delete_protection.setter
342+
def delete_protection(self, delete_protection):
343+
"""Sets the delete_protection of this AuthMethod.
344+
345+
346+
:param delete_protection: The delete_protection of this AuthMethod. # noqa: E501
347+
:type: bool
348+
"""
349+
350+
self._delete_protection = delete_protection
351+
326352
@property
327353
def description(self):
328354
"""Gets the description of this AuthMethod. # noqa: E501

akeyless/models/auth_method_create_api_key.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class AuthMethodCreateApiKey(object):
3737
'access_expires': 'int',
3838
'audit_logs_claims': 'list[str]',
3939
'bound_ips': 'list[str]',
40+
'delete_protection': 'str',
4041
'description': 'str',
4142
'force_sub_claims': 'bool',
4243
'gw_bound_ips': 'list[str]',
@@ -52,6 +53,7 @@ class AuthMethodCreateApiKey(object):
5253
'access_expires': 'access-expires',
5354
'audit_logs_claims': 'audit-logs-claims',
5455
'bound_ips': 'bound-ips',
56+
'delete_protection': 'delete_protection',
5557
'description': 'description',
5658
'force_sub_claims': 'force-sub-claims',
5759
'gw_bound_ips': 'gw-bound-ips',
@@ -63,7 +65,7 @@ class AuthMethodCreateApiKey(object):
6365
'uid_token': 'uid-token'
6466
}
6567

66-
def __init__(self, access_expires=0, audit_logs_claims=None, bound_ips=None, description=None, force_sub_claims=None, gw_bound_ips=None, json=False, jwt_ttl=0, name=None, product_type=None, token=None, uid_token=None, local_vars_configuration=None): # noqa: E501
68+
def __init__(self, access_expires=0, audit_logs_claims=None, bound_ips=None, delete_protection=None, description=None, force_sub_claims=None, gw_bound_ips=None, json=False, jwt_ttl=0, name=None, product_type=None, token=None, uid_token=None, local_vars_configuration=None): # noqa: E501
6769
"""AuthMethodCreateApiKey - a model defined in OpenAPI""" # noqa: E501
6870
if local_vars_configuration is None:
6971
local_vars_configuration = Configuration()
@@ -72,6 +74,7 @@ def __init__(self, access_expires=0, audit_logs_claims=None, bound_ips=None, des
7274
self._access_expires = None
7375
self._audit_logs_claims = None
7476
self._bound_ips = None
77+
self._delete_protection = None
7578
self._description = None
7679
self._force_sub_claims = None
7780
self._gw_bound_ips = None
@@ -89,6 +92,8 @@ def __init__(self, access_expires=0, audit_logs_claims=None, bound_ips=None, des
8992
self.audit_logs_claims = audit_logs_claims
9093
if bound_ips is not None:
9194
self.bound_ips = bound_ips
95+
if delete_protection is not None:
96+
self.delete_protection = delete_protection
9297
if description is not None:
9398
self.description = description
9499
if force_sub_claims is not None:
@@ -176,6 +181,29 @@ def bound_ips(self, bound_ips):
176181

177182
self._bound_ips = bound_ips
178183

184+
@property
185+
def delete_protection(self):
186+
"""Gets the delete_protection of this AuthMethodCreateApiKey. # noqa: E501
187+
188+
Protection from accidental deletion of this object [true/false] # noqa: E501
189+
190+
:return: The delete_protection of this AuthMethodCreateApiKey. # noqa: E501
191+
:rtype: str
192+
"""
193+
return self._delete_protection
194+
195+
@delete_protection.setter
196+
def delete_protection(self, delete_protection):
197+
"""Sets the delete_protection of this AuthMethodCreateApiKey.
198+
199+
Protection from accidental deletion of this object [true/false] # noqa: E501
200+
201+
:param delete_protection: The delete_protection of this AuthMethodCreateApiKey. # noqa: E501
202+
:type: str
203+
"""
204+
205+
self._delete_protection = delete_protection
206+
179207
@property
180208
def description(self):
181209
"""Gets the description of this AuthMethodCreateApiKey. # noqa: E501

akeyless/models/auth_method_create_aws_iam.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class AuthMethodCreateAwsIam(object):
4444
'bound_role_name': 'list[str]',
4545
'bound_user_id': 'list[str]',
4646
'bound_user_name': 'list[str]',
47+
'delete_protection': 'str',
4748
'description': 'str',
4849
'force_sub_claims': 'bool',
4950
'gw_bound_ips': 'list[str]',
@@ -67,6 +68,7 @@ class AuthMethodCreateAwsIam(object):
6768
'bound_role_name': 'bound-role-name',
6869
'bound_user_id': 'bound-user-id',
6970
'bound_user_name': 'bound-user-name',
71+
'delete_protection': 'delete_protection',
7072
'description': 'description',
7173
'force_sub_claims': 'force-sub-claims',
7274
'gw_bound_ips': 'gw-bound-ips',
@@ -79,7 +81,7 @@ class AuthMethodCreateAwsIam(object):
7981
'uid_token': 'uid-token'
8082
}
8183

82-
def __init__(self, access_expires=0, audit_logs_claims=None, bound_arn=None, bound_aws_account_id=None, bound_ips=None, bound_resource_id=None, bound_role_id=None, bound_role_name=None, bound_user_id=None, bound_user_name=None, description=None, force_sub_claims=None, gw_bound_ips=None, json=False, jwt_ttl=0, name=None, product_type=None, sts_url='https://sts.amazonaws.com', token=None, uid_token=None, local_vars_configuration=None): # noqa: E501
84+
def __init__(self, access_expires=0, audit_logs_claims=None, bound_arn=None, bound_aws_account_id=None, bound_ips=None, bound_resource_id=None, bound_role_id=None, bound_role_name=None, bound_user_id=None, bound_user_name=None, delete_protection=None, description=None, force_sub_claims=None, gw_bound_ips=None, json=False, jwt_ttl=0, name=None, product_type=None, sts_url='https://sts.amazonaws.com', token=None, uid_token=None, local_vars_configuration=None): # noqa: E501
8385
"""AuthMethodCreateAwsIam - a model defined in OpenAPI""" # noqa: E501
8486
if local_vars_configuration is None:
8587
local_vars_configuration = Configuration()
@@ -95,6 +97,7 @@ def __init__(self, access_expires=0, audit_logs_claims=None, bound_arn=None, bou
9597
self._bound_role_name = None
9698
self._bound_user_id = None
9799
self._bound_user_name = None
100+
self._delete_protection = None
98101
self._description = None
99102
self._force_sub_claims = None
100103
self._gw_bound_ips = None
@@ -126,6 +129,8 @@ def __init__(self, access_expires=0, audit_logs_claims=None, bound_arn=None, bou
126129
self.bound_user_id = bound_user_id
127130
if bound_user_name is not None:
128131
self.bound_user_name = bound_user_name
132+
if delete_protection is not None:
133+
self.delete_protection = delete_protection
129134
if description is not None:
130135
self.description = description
131136
if force_sub_claims is not None:
@@ -378,6 +383,29 @@ def bound_user_name(self, bound_user_name):
378383

379384
self._bound_user_name = bound_user_name
380385

386+
@property
387+
def delete_protection(self):
388+
"""Gets the delete_protection of this AuthMethodCreateAwsIam. # noqa: E501
389+
390+
Protection from accidental deletion of this object [true/false] # noqa: E501
391+
392+
:return: The delete_protection of this AuthMethodCreateAwsIam. # noqa: E501
393+
:rtype: str
394+
"""
395+
return self._delete_protection
396+
397+
@delete_protection.setter
398+
def delete_protection(self, delete_protection):
399+
"""Sets the delete_protection of this AuthMethodCreateAwsIam.
400+
401+
Protection from accidental deletion of this object [true/false] # noqa: E501
402+
403+
:param delete_protection: The delete_protection of this AuthMethodCreateAwsIam. # noqa: E501
404+
:type: str
405+
"""
406+
407+
self._delete_protection = delete_protection
408+
381409
@property
382410
def description(self):
383411
"""Gets the description of this AuthMethodCreateAwsIam. # noqa: E501

0 commit comments

Comments
 (0)