Returns the details for a given project role in a project.
        :param project_key:
        :param role_id:
        :return:
498110
def get_project_actors_for_role_project(self, project_key, role_id):
        
        url = 'rest/api/2/project/{projectIdOrKey}/role/{id}'.format(projectIdOrKey=project_key,
                                                                     id=role_id)
        return (self.get(url) or {}).get('actors')
650316
def get_queue_settings(self, project_key):
        
        url = 'rest/servicedeskapi/queues/{}'.format(project_key)

        return self.get(url, headers=self.experimental_headers)
529109
def _get_role_description(self, role):
        

        parameter = 'role-' + role.lower()
        if self.configure.has_parameter(parameter):
            return self.configure.get_parameter(parameter)
        return None
925808
def role_assignment_path(cls, project, incident, role_assignment):
        """"""
        return google.api_core.path_template.expand(
            "projects/{project}/incidents/{incident}/roleAssignments/{role_assignment}",
            project=project,
            incident=incident,
            role_assignment=role_assignment,
        )
77097
def add_profile(project_root)
      roles = Bebox::Role.list(project_root)
      profiles = Bebox::Profile.list(project_root)
      role = choose_option(roles, _('wizard.choose_role'))
      profile = choose_option(profiles, _('wizard.role.choose_add_profile'))
      if Bebox::Role.profile_in_role?(project_root, role, profile)
        warn _('wizard.role.profile_exist')%{profile: profile, role: role}
        output = false
      else
        output = Bebox::Role.add_profile(project_root, role, profile)
        ok _('wizard.role.add_profile_success')%{profile: profile, role: role}
      end
      return output
    end
602049
def generate_role_command(role_command, command, send_command, description)
      role_command.desc description
      role_command.command command do |generated_command|
        generated_command.action do |global_options,options,args|
          Bebox::RoleWizard.new.send(send_command, project_root)
        end
      end
    end
424513
def _get_project_id(self):
        
        fpath = os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', None)
        if fpath is None:
            raise Exception('ERROR: No project ID specified, and '
                            'GOOGLE_APPLICATION_CREDENTIALS env var is not set')
        fpath = os.path.abspath(os.path.expanduser(fpath))
        logger.debug('Reading credentials file at %s to get project_id', fpath)
        with open(fpath, 'r') as fh:
            cred_data = json.loads(fh.read())
        return cred_data['project_id']
742934
def get_by_id(role_id, custom_headers:nil)
      response = get_by_id_async(role_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
920152
def view_project_details(self, project_id):
        
        data = self._run(
            url_path="projects/view",
            id=project_id
        )
        return self._project_formatter(data['result']['project'])
355400
def print_project_list_details(self, filter_auth_role, long_format):
        
        if filter_auth_role:
            projects_details = self.remote_store.get_projects_with_auth_role(auth_role=filter_auth_role)
        else:
            projects_details = self.remote_store.get_projects_details()
        if projects_details:
            for projects_detail in projects_details:
                print(self.get_project_info_line(projects_detail, long_format))
        else:
            print(NO_PROJECTS_FOUND_MESSAGE)
25755
def set_role_id(self, role_name, role_id, mount_point='approle'):
        

        url = '/v1/auth/{0}/role/{1}/role-id'.format(mount_point, role_name)
        params = {
            'role_id': role_id
        }
        return self._adapter.post(url, json=params)
514011
def get_project(self, project_id):
        
        return youtrack.Project(self._get("/admin/project/" + urlquote(project_id)), self)
1238884
def get_project_export(self, project_id):
        
        try:
            result = self._request('/getprojectexport/',
                                   {'projectid': project_id})
            return TildaProject(**result)
        except NetworkError:
            return []
1255293
public static String getProjectId(String sessionId, AzkabanProjectConfig azkabanProjectConfig) throws IOException {
    // Note: Every get call to Azkaban provides a projectId in response, so we have are using fetchProjectFlows call
    // .. because it does not need any additional params other than project name
    Map<String, String> params = Maps.newHashMap();
    params.put("ajax", "fetchprojectflows");
    params.put("project", azkabanProjectConfig.getAzkabanProjectName());

    return executeGetRequest(prepareGetRequest(azkabanProjectConfig.getAzkabanServerUrl() + "/manager",
        sessionId, params)).get("projectId");
  }
348566
def project_plans(self, project_key):
        
        resource = 'project/{}'.format(project_key, max_results=25)
        return self.base_list_call(resource, expand='plans', favourite=False, clover_enabled=False, max_results=25,
                                   elements_key='plans', element_key='plan')
194691
def get_project_details(self, project):
        
        result = self.get_project(project.pid)
        if result is None:
            result = {}
        return result
1179660
def get_job(project_id, job_id, opts = {})
      data, _status_code, _headers = get_job_with_http_info(project_id, job_id, opts)
      return data
    end