'struct TSentryActiveRoleSet {
1: required bool all,
2: required set<string> roles,
struct TListSentryPrivilegesForProviderResponse {
1: required sentry_common_service.TSentryResponseStatus status
2: required set<string> privileges'

def list_sentry_privileges_for_provider(self, groups, roleSet=None, authorizableHierarchy=None):

    if (roleSet is not None):
        roleSet = TSentryActiveRoleSet(**roleSet)
    if (authorizableHierarchy is not None):
        authorizableHierarchy = TSentryAuthorizable(**authorizableHierarchy)
    request = TListSentryPrivilegesForProviderRequest(groups=groups, roleSet=roleSet, authorizableHierarchy=authorizableHierarchy)
    return self.client.list_sentry_privileges_for_provider(request)
