Skip to content

Commit

Permalink
11.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SupportSDM committed Sep 11, 2024
1 parent fb19d29 commit 39ffd20
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 13 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
setup(
name='strongdm',
packages=['strongdm'],
version='11.9.0',
version='11.10.0',
license='apache-2.0',
description='strongDM SDK for the Python programming language.',
long_description=long_description,
Expand All @@ -32,7 +32,7 @@
author_email='[email protected]',
url='https://github.com/strongdm/strongdm-sdk-python',
download_url=
'https://github.com/strongdm/strongdm-sdk-python/archive/v11.9.0.tar.gz',
'https://github.com/strongdm/strongdm-sdk-python/archive/v11.10.0.tar.gz',
keywords=[
'strongDM', 'sdm', 'api', 'automation', 'security', 'audit',
'database', 'server', 'ssh', 'rdp'
Expand Down
4 changes: 2 additions & 2 deletions strongdm.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Metadata-Version: 2.1
Name: strongdm
Version: 11.9.0
Version: 11.10.0
Summary: strongDM SDK for the Python programming language.
Home-page: https://github.com/strongdm/strongdm-sdk-python
Author: strongDM Team
Author-email: [email protected]
License: apache-2.0
Download-URL: https://github.com/strongdm/strongdm-sdk-python/archive/v11.9.0.tar.gz
Download-URL: https://github.com/strongdm/strongdm-sdk-python/archive/v11.10.0.tar.gz
Keywords: strongDM,sdm,api,automation,security,audit,database,server,ssh,rdp
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Expand Down
18 changes: 10 additions & 8 deletions strongdm/accounts_pb2.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion strongdm/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
API_VERSION = '2024-03-28'
USER_AGENT = 'strongdm-sdk-python/11.9.0'
USER_AGENT = 'strongdm-sdk-python/11.10.0'


class Client:
Expand Down
2 changes: 2 additions & 0 deletions strongdm/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class ActivityVerb:
USER_UPDATED = "user updated"
USER_SIGNUP = "user signup"
USER_TYPE_CHANGED = "user type changed"
USER_PASSWORD_CHANGED = "user password changed"
USER_TEMPORARY_ACCESS_GRANTED = "user temporary access granted"
USER_TEMPORARY_ACCESS_REVOKED = "user temporary access revoked"
USER_TEMPORARY_ACCESS_EXPIRED = "user temporary access expired"
Expand Down Expand Up @@ -361,6 +362,7 @@ class Permission:
USER_DELETE = "user:delete"
USER_ASSIGN = "user:assign"
USER_SUSPEND = "user:suspend"
USER_SET_PASSWORD = "user:set_password"
DEMO_PROVISIONING_REQUEST_CREATE = "demoprovisioningrequest:create"
DEMO_PROVISIONING_REQUEST_LIST = "demoprovisioningrequest:list"
ROLE_LIST = "role:list"
Expand Down
10 changes: 10 additions & 0 deletions strongdm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23094,6 +23094,7 @@ class User:
'id',
'last_name',
'managed_by',
'password',
'permission_level',
'suspended',
'tags',
Expand All @@ -23107,6 +23108,7 @@ def __init__(
id=None,
last_name=None,
managed_by=None,
password=None,
permission_level=None,
suspended=None,
tags=None,
Expand Down Expand Up @@ -23135,6 +23137,11 @@ def __init__(
'''
Managed By is a read only field for what service manages this user, e.g. StrongDM, Okta, Azure.
'''
self.password = password if password is not None else ''
'''
Password is a write-only field that can be used to set the user's password.
Currently only supported for update.
'''
self.permission_level = permission_level if permission_level is not None else ''
'''
PermissionLevel is the user's permission level e.g. admin, DBA, user.
Expand All @@ -23156,6 +23163,7 @@ def __repr__(self):
'id: ' + repr(self.id) + ' ' +\
'last_name: ' + repr(self.last_name) + ' ' +\
'managed_by: ' + repr(self.managed_by) + ' ' +\
'password: ' + repr(self.password) + ' ' +\
'permission_level: ' + repr(self.permission_level) + ' ' +\
'suspended: ' + repr(self.suspended) + ' ' +\
'tags: ' + repr(self.tags) + ' ' +\
Expand All @@ -23169,6 +23177,7 @@ def to_dict(self):
'id': self.id,
'last_name': self.last_name,
'managed_by': self.managed_by,
'password': self.password,
'permission_level': self.permission_level,
'suspended': self.suspended,
'tags': self.tags,
Expand All @@ -23183,6 +23192,7 @@ def from_dict(cls, d):
id=d.get('id'),
last_name=d.get('last_name'),
managed_by=d.get('managed_by'),
password=d.get('password'),
permission_level=d.get('permission_level'),
suspended=d.get('suspended'),
tags=d.get('tags'),
Expand Down
2 changes: 2 additions & 0 deletions strongdm/plumbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11657,6 +11657,7 @@ def convert_user_to_porcelain(plumbing):
porcelain.id = (plumbing.id)
porcelain.last_name = (plumbing.last_name)
porcelain.managed_by = (plumbing.managed_by)
porcelain.password = (plumbing.password)
porcelain.permission_level = (plumbing.permission_levelRW)
porcelain.suspended = (plumbing.suspendedRO)
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
Expand All @@ -11673,6 +11674,7 @@ def convert_user_to_plumbing(porcelain):
plumbing.id = (porcelain.id)
plumbing.last_name = (porcelain.last_name)
plumbing.managed_by = (porcelain.managed_by)
plumbing.password = (porcelain.password)
plumbing.permission_levelRW = (porcelain.permission_level)
plumbing.suspendedRO = (porcelain.suspended)
plumbing.tags.CopyFrom(convert_tags_to_plumbing(porcelain.tags))
Expand Down

0 comments on commit 39ffd20

Please sign in to comment.