#NEWLINE# def list_sentry_privileges_for_provider( self , groups , roleSet = None , authorizableHierarchy = None ) : #NEWLINE# #INDENT# '\n    struct TSentryActiveRoleSet {\n      1: required bool all,\n      2: required set<string> roles,\n    }\n\n    struct TListSentryPrivilegesForProviderResponse {\n      1: required sentry_common_service.TSentryResponseStatus status\n      2: required set<string> privileges\n    }\n    ' #NEWLINE# if ( roleSet is not None ) : #NEWLINE# #INDENT# roleSet = TSentryActiveRoleSet ( ** roleSet ) #NEWLINE# #UNINDENT# if ( authorizableHierarchy is not None ) : #NEWLINE# #INDENT# authorizableHierarchy = TSentryAuthorizable ( ** authorizableHierarchy ) #NEWLINE# #UNINDENT# request = TListSentryPrivilegesForProviderRequest ( groups = groups , roleSet = roleSet , authorizableHierarchy = authorizableHierarchy ) #NEWLINE# return self . client . list_sentry_privileges_for_provider ( self )