issue-tracking/jira/sdm_service.py
def grant_temporal_access(self, account_email, resource_name, start_from, valid_until):
        """
        Grant temporary access to a SDM resource for an account
        """
        try:
            logging.debug(
                "##SDM## SdmService.grant_temporary_access resource_id: %s account_id: %s start_from: %s valid_until: %s",
                resource_name, account_email, str(start_from), str(valid_until)
            )            
            sdm_grant = strongdm.AccountGrant(
                resource_id = self.get_resource_by_name(resource_name).id,
                account_id = self.get_account_by_email(account_email).id,
                start_from = start_from,
                valid_until = valid_until
            )
            self.__client.account_grants.create(sdm_grant)
        except Exception as ex:
            raise Exception("Grant failed: " + str(ex)) from ex

        Grant temporary access to a SDM resource for an account
        
Grant temporary access to a SDM resource for an account
Grant temporary access to a SDM resource for an account
def grant_temporal_access(self, account_email, resource_name, start_from, valid_until):
        try:
            logging.debug(
                "##SDM## SdmService.grant_temporary_access resource_id: %s account_id: %s start_from: %s valid_until: %s",
                resource_name, account_email, str(start_from), str(valid_until)
            )            
            sdm_grant = strongdm.AccountGrant(
                resource_id = self.get_resource_by_name(resource_name).id,
                account_id = self.get_account_by_email(account_email).id,
                start_from = start_from,
                valid_until = valid_until
            )
            self.__client.account_grants.create(sdm_grant)
        except Exception as ex:
            raise Exception("Grant failed: " + str(ex)) from ex
def grant_temporal_access ( self , account_email , resource_name , start_from , valid_until ) : try : logging . debug ( "##SDM## SdmService.grant_temporary_access resource_id: %s account_id: %s start_from: %s valid_until: %s" , resource_name , account_email , str ( start_from ) , str ( valid_until ) ) sdm_grant = strongdm . AccountGrant ( resource_id = self . get_resource_by_name ( resource_name ) . id , account_id = self . get_account_by_email ( account_email ) . id , start_from = start_from , valid_until = valid_until ) self . __client . account_grants . create ( sdm_grant ) except Exception as ex : raise Exception ( "Grant failed: " + str ( ex ) ) from ex
Grant temporary access to a SDM resource for an account
Grant temporary access to a SDM resource for an account
"""
        Grant temporary access to a SDM resource for an account
        """
self
account_email
resource_name
start_from
valid_until