language
stringclasses
6 values
original_string
stringlengths
25
887k
text
stringlengths
25
887k
JavaScript
function memoize(func, equalityCheck = eqCheck, orm) { let lastOrmState = null; let lastResult = null; let lastArgs = null; const modelNameToInvalidatorMap = {}; return (...args) => { const [dbState, ...otherArgs] = args; const dbIsEqual = lastOrmState === dbState || !shouldRun(modelNameToInvalidatorMap, dbState); const argsAreEqual = lastArgs && otherArgs.every( (value, index) => equalityCheck(value, lastArgs[index]) ); if (dbIsEqual && argsAreEqual) { return lastResult; } const session = orm.session(dbState); const newArgs = [session, ...otherArgs]; const result = func(...newArgs); // If a selector has control flow branching, different // input arguments might result in a different set of // accessed models. On each run, we check if any new // models are accessed and add their invalidator functions. session.accessedModels.forEach(modelName => { if (!modelNameToInvalidatorMap.hasOwnProperty(modelName)) { modelNameToInvalidatorMap[modelName] = nextState => lastOrmState[modelName] !== nextState[modelName]; } }); lastResult = result; lastOrmState = dbState; lastArgs = otherArgs; return lastResult; }; }
function memoize(func, equalityCheck = eqCheck, orm) { let lastOrmState = null; let lastResult = null; let lastArgs = null; const modelNameToInvalidatorMap = {}; return (...args) => { const [dbState, ...otherArgs] = args; const dbIsEqual = lastOrmState === dbState || !shouldRun(modelNameToInvalidatorMap, dbState); const argsAreEqual = lastArgs && otherArgs.every( (value, index) => equalityCheck(value, lastArgs[index]) ); if (dbIsEqual && argsAreEqual) { return lastResult; } const session = orm.session(dbState); const newArgs = [session, ...otherArgs]; const result = func(...newArgs); // If a selector has control flow branching, different // input arguments might result in a different set of // accessed models. On each run, we check if any new // models are accessed and add their invalidator functions. session.accessedModels.forEach(modelName => { if (!modelNameToInvalidatorMap.hasOwnProperty(modelName)) { modelNameToInvalidatorMap[modelName] = nextState => lastOrmState[modelName] !== nextState[modelName]; } }); lastResult = result; lastOrmState = dbState; lastArgs = otherArgs; return lastResult; }; }
JavaScript
function containersmallspace() { if ($("body").hasClass("boxed")) { if ($window.width() > 800) { $wideContainer.css("padding-left", 30); $wideContainer.css("padding-right", 30); } } }
function containersmallspace() { if ($("body").hasClass("boxed")) { if ($window.width() > 800) { $wideContainer.css("padding-left", 30); $wideContainer.css("padding-right", 30); } } }
JavaScript
function containerSpace() { if ($("body").hasClass("home-three")) { if ($window.width() > 991) { $wideContainer.css("padding-left", 70); $wideContainer.css("padding-right", 70); } else{ $wideContainer.css("padding-left", 15); $wideContainer.css("padding-right", 15); } } }
function containerSpace() { if ($("body").hasClass("home-three")) { if ($window.width() > 991) { $wideContainer.css("padding-left", 70); $wideContainer.css("padding-right", 70); } else{ $wideContainer.css("padding-left", 15); $wideContainer.css("padding-right", 15); } } }
JavaScript
function request(url, option) { // url = 'http://xtoapi.biztalkgroup.com' + url; // debugger; /* 执行 ajax 调用 */ /* 打印输入参数 */ const options = { expirys: isAntdPro(), ...option, }; /** * Produce fingerprints based on url and parameters * Maybe url has the same parameters * 生成一个用于标识某一类请求的 Hash 值。 后面做 Cache 时会用到这个 Code。 */ const fingerprint = url + (options.body ? JSON.stringify(options.body) : ''); const hashcode = hash .sha256() .update(fingerprint) .digest('hex'); const defaultOptions = { credentials: 'include', }; const newOptions = { ...defaultOptions, ...options }; if ( newOptions.method === 'POST' || newOptions.method === 'PUT' ) { // 如果它不是 Form 类型的提交,给上面这些 Method 方式的 Ajax 调用,添加默认的 Http Header 信息。 if (!(newOptions.body instanceof FormData)) { newOptions.headers = { Accept: 'application/json', 'Content-Type': 'application/json; charset=utf-8', ...newOptions.headers, }; newOptions.body = JSON.stringify(newOptions.body); } else { // newOptions.body is FormData newOptions.headers = { Accept: 'application/json', ...newOptions.headers, }; } } else if( newOptions.method === "GET" || newOptions.method === 'DELETE' ){ // 因为是GET请求,将Body中的Key-Value对象,映射到URL上。 const queryString = parseQuery(newOptions.body); url = url + '?' + queryString; // 2019-05-29 Eric // 经过客户测试发现有时Ajax时会报下面这个错误: // Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. // 经分析和验证,Get/Head时需要将Ajax中的Body内容清空才行。 newOptions.body = null; } // 在 XTOPMS 中,需要用到 Token var token = getToken(); if(token){ newOptions.headers = { Authorization: 'Bearer ' + token, ...newOptions.headers, }; } const expirys = options.expirys && 60; // options.expirys !== false, return the cache, if (options.expirys !== false) { const cached = sessionStorage.getItem(hashcode); const whenCached = sessionStorage.getItem(`${hashcode}:timestamp`); if (cached !== null && whenCached !== null) { const age = (Date.now() - whenCached) / 1000; // 如果 sessionStorage 中的数据没有过期,直接使用它里面的数据。 // 这样可以有效减少后端数据库的交互操作。 if (age < expirys) { const response = new Response(new Blob([cached])); return response.json(); } sessionStorage.removeItem(hashcode); sessionStorage.removeItem(`${hashcode}:timestamp`); } } return fetch(url, newOptions) .then(response => { // TODO: 这里主要是参加一个 Handler,为了打印 http response 内容。 PRD 时请去掉。 console.log('/**************** http ajax request ***************/') if(url) console.log('Web API Uri: ' + url); if(newOptions) { console.log('Web API Request: ') console.log(newOptions); } console.log('Web API Response: '); return response; }) .then(checkStatus) .then(response => cachedSave(response, hashcode)) .then(response => { // DELETE and 204 do not return data by default // using .json will report an error. // TODO 这里需要增加对 http status 的判断 if(!response.ok){ return { success: false, status: response.status, statusText: response.statusText, error: response.statusText, message: response.statusText, }; } if (newOptions.method === 'DELETE' || response.status === 204) { return response.text(); } return response.json(); }) .then(response=>{ console.log('>>>>>>>> '); console.log(response); return response; }) .catch(e => { console.log(e); notification.error({ message: '系统接口调用返回异常', description: e.message ? e.message : e, }); // ! 中途想使用 response, 必须先 clone。 if(e.response){ e.response .clone() .json() .then(content => { if(content && content.__abp){ const result = content.error; if(result && result.items && result.items.length>0){ console.log('>>>>>>>> ABP Array/List'); const list = result.items; list.map((value, index, data)=>{ console.log(value); // 输出返回类似为 List 的每外 Item }); } else { console.log('>>>>>>>> ABP Entity/Object'); console.log(result); // 输出 AbP 的 Result 的内容 } } else { console.log('>>>>>>>> None ABP Object'); console.log(content); // 输出 Response 中 Body 的内容 } }); } if(e.response){ return e.response.json(); } else { return { success: false, message: e.message ? e.message : e, error: e.message ? e.message : e, }; } console.log(e); // debugger; const status = e.name; // 2019-04-08 Eric: 在这里处理一下由于调用ABP Web API引起的权限问题返回的 403 错误。 const url = e.response.url; if(url.toLowerCase().indexOf('/api/services/app/')){ // 如果url中包含此字符串,说明是ABP的API返回值 if(status === 403){ // 当前登录的用户没有调用此 API 的权限 var json = { __abp: 4.0, success: false, result: null, error: '你的权限设置,不允许进行此操作。', } return json; }else if(status === 404){ var json = { __abp: 4.0, success: false, result: null, error: 'API接口不存在', } return json; } } if (status === 401) { // @HACK /* eslint-disable no-underscore-dangle */ window.g_app._store.dispatch({ type: 'login/logout', }); } // environment should not be used if (status === 403) { router.push('/exception/403'); } if (status <= 504 && status >= 500) { // 20190422: 因为我们主要是用于 web api,当服务器反馈 500 错误时,暂时不要跳到 500 报错页面。 // router.push('/exception/500'); const response = e.response; return response.json(); } if (status >= 404 && status < 422) { router.push('/exception/404'); } if(status === "TypeError"){ // 处理不可控的Error信息 router.push('/exception/500'); // 用router.push 不起做用,页面不发生变化 } return; } ); }
function request(url, option) { // url = 'http://xtoapi.biztalkgroup.com' + url; // debugger; /* 执行 ajax 调用 */ /* 打印输入参数 */ const options = { expirys: isAntdPro(), ...option, }; /** * Produce fingerprints based on url and parameters * Maybe url has the same parameters * 生成一个用于标识某一类请求的 Hash 值。 后面做 Cache 时会用到这个 Code。 */ const fingerprint = url + (options.body ? JSON.stringify(options.body) : ''); const hashcode = hash .sha256() .update(fingerprint) .digest('hex'); const defaultOptions = { credentials: 'include', }; const newOptions = { ...defaultOptions, ...options }; if ( newOptions.method === 'POST' || newOptions.method === 'PUT' ) { // 如果它不是 Form 类型的提交,给上面这些 Method 方式的 Ajax 调用,添加默认的 Http Header 信息。 if (!(newOptions.body instanceof FormData)) { newOptions.headers = { Accept: 'application/json', 'Content-Type': 'application/json; charset=utf-8', ...newOptions.headers, }; newOptions.body = JSON.stringify(newOptions.body); } else { // newOptions.body is FormData newOptions.headers = { Accept: 'application/json', ...newOptions.headers, }; } } else if( newOptions.method === "GET" || newOptions.method === 'DELETE' ){ // 因为是GET请求,将Body中的Key-Value对象,映射到URL上。 const queryString = parseQuery(newOptions.body); url = url + '?' + queryString; // 2019-05-29 Eric // 经过客户测试发现有时Ajax时会报下面这个错误: // Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. // 经分析和验证,Get/Head时需要将Ajax中的Body内容清空才行。 newOptions.body = null; } // 在 XTOPMS 中,需要用到 Token var token = getToken(); if(token){ newOptions.headers = { Authorization: 'Bearer ' + token, ...newOptions.headers, }; } const expirys = options.expirys && 60; // options.expirys !== false, return the cache, if (options.expirys !== false) { const cached = sessionStorage.getItem(hashcode); const whenCached = sessionStorage.getItem(`${hashcode}:timestamp`); if (cached !== null && whenCached !== null) { const age = (Date.now() - whenCached) / 1000; // 如果 sessionStorage 中的数据没有过期,直接使用它里面的数据。 // 这样可以有效减少后端数据库的交互操作。 if (age < expirys) { const response = new Response(new Blob([cached])); return response.json(); } sessionStorage.removeItem(hashcode); sessionStorage.removeItem(`${hashcode}:timestamp`); } } return fetch(url, newOptions) .then(response => { // TODO: 这里主要是参加一个 Handler,为了打印 http response 内容。 PRD 时请去掉。 console.log('/**************** http ajax request ***************/') if(url) console.log('Web API Uri: ' + url); if(newOptions) { console.log('Web API Request: ') console.log(newOptions); } console.log('Web API Response: '); return response; }) .then(checkStatus) .then(response => cachedSave(response, hashcode)) .then(response => { // DELETE and 204 do not return data by default // using .json will report an error. // TODO 这里需要增加对 http status 的判断 if(!response.ok){ return { success: false, status: response.status, statusText: response.statusText, error: response.statusText, message: response.statusText, }; } if (newOptions.method === 'DELETE' || response.status === 204) { return response.text(); } return response.json(); }) .then(response=>{ console.log('>>>>>>>> '); console.log(response); return response; }) .catch(e => { console.log(e); notification.error({ message: '系统接口调用返回异常', description: e.message ? e.message : e, }); // ! 中途想使用 response, 必须先 clone。 if(e.response){ e.response .clone() .json() .then(content => { if(content && content.__abp){ const result = content.error; if(result && result.items && result.items.length>0){ console.log('>>>>>>>> ABP Array/List'); const list = result.items; list.map((value, index, data)=>{ console.log(value); // 输出返回类似为 List 的每外 Item }); } else { console.log('>>>>>>>> ABP Entity/Object'); console.log(result); // 输出 AbP 的 Result 的内容 } } else { console.log('>>>>>>>> None ABP Object'); console.log(content); // 输出 Response 中 Body 的内容 } }); } if(e.response){ return e.response.json(); } else { return { success: false, message: e.message ? e.message : e, error: e.message ? e.message : e, }; } console.log(e); // debugger; const status = e.name; // 2019-04-08 Eric: 在这里处理一下由于调用ABP Web API引起的权限问题返回的 403 错误。 const url = e.response.url; if(url.toLowerCase().indexOf('/api/services/app/')){ // 如果url中包含此字符串,说明是ABP的API返回值 if(status === 403){ // 当前登录的用户没有调用此 API 的权限 var json = { __abp: 4.0, success: false, result: null, error: '你的权限设置,不允许进行此操作。', } return json; }else if(status === 404){ var json = { __abp: 4.0, success: false, result: null, error: 'API接口不存在', } return json; } } if (status === 401) { // @HACK /* eslint-disable no-underscore-dangle */ window.g_app._store.dispatch({ type: 'login/logout', }); } // environment should not be used if (status === 403) { router.push('/exception/403'); } if (status <= 504 && status >= 500) { // 20190422: 因为我们主要是用于 web api,当服务器反馈 500 错误时,暂时不要跳到 500 报错页面。 // router.push('/exception/500'); const response = e.response; return response.json(); } if (status >= 404 && status < 422) { router.push('/exception/404'); } if(status === "TypeError"){ // 处理不可控的Error信息 router.push('/exception/500'); // 用router.push 不起做用,页面不发生变化 } return; } ); }
JavaScript
async function QuickSearch(params) { const restParams = params; // 如果没有特殊要求,不用进行二次加工。 const option = {method: "POST", body: restParams, } return request(CON_API_URI + 'quicksearch', option); }
async function QuickSearch(params) { const restParams = params; // 如果没有特殊要求,不用进行二次加工。 const option = {method: "POST", body: restParams, } return request(CON_API_URI + 'quicksearch', option); }
JavaScript
componentDidMount(){ const { dispatch } = this.props; // Get dispatch from parent component. // load data dispatch({ type: this.SERVICE_NAMESPACE + "/getAll", payload: {current: 1, pageSize: 20} }) }
componentDidMount(){ const { dispatch } = this.props; // Get dispatch from parent component. // load data dispatch({ type: this.SERVICE_NAMESPACE + "/getAll", payload: {current: 1, pageSize: 20} }) }
JavaScript
async function UserQuickSearch(params) { const restParams = params; // 如果没有特殊要求,不用进行二次加工。 const option = {method: "POST", body: restParams, } return request(CON_API_URI + 'quicksearch', option); }
async function UserQuickSearch(params) { const restParams = params; // 如果没有特殊要求,不用进行二次加工。 const option = {method: "POST", body: restParams, } return request(CON_API_URI + 'quicksearch', option); }
JavaScript
closeCreateUser(state, action){ return { ...state, showCreateUserDialog: false } }
closeCreateUser(state, action){ return { ...state, showCreateUserDialog: false } }
JavaScript
componentDidMount(){ const { dispatch } = this.props; // Get dispatch from parent component. const { pagination, filters, sorter } = this.state; const payload = { current: pagination.current, pageSize: pagination.pageSize, filters: filters, sorter: sorter, } // load data dispatch({ type: this.SERVICE_NAMESPACE + "/query", payload: payload, }) }
componentDidMount(){ const { dispatch } = this.props; // Get dispatch from parent component. const { pagination, filters, sorter } = this.state; const payload = { current: pagination.current, pageSize: pagination.pageSize, filters: filters, sorter: sorter, } // load data dispatch({ type: this.SERVICE_NAMESPACE + "/query", payload: payload, }) }
JavaScript
componentDidMount(){ const { dispatch } = this.props; // Get dispatch from parent component. this.setState({ pagination: this.CON_TABLE_PAGINATION_OPTION }); const payload = { current: this.CON_TABLE_PAGINATION_OPTION.current, pageSize: this.CON_TABLE_PAGINATION_OPTION.pageSize, } // load data dispatch({ type: this.SERVICE_NAMESPACE + "/getAll", payload: payload, }) }
componentDidMount(){ const { dispatch } = this.props; // Get dispatch from parent component. this.setState({ pagination: this.CON_TABLE_PAGINATION_OPTION }); const payload = { current: this.CON_TABLE_PAGINATION_OPTION.current, pageSize: this.CON_TABLE_PAGINATION_OPTION.pageSize, } // load data dispatch({ type: this.SERVICE_NAMESPACE + "/getAll", payload: payload, }) }
JavaScript
function checkAttrs() { if (scope.$eval(attrs.ngRequired) && attrs.ngRequired || attrs.required) { modelController.$validators.isRequired = function (modelValue, viewValue) { return filters["required"].checkValidity(modelValue, viewValue); }; } if (attrs.ngPattern) { modelController.$validators.hasPattern = function (modelValue, viewValue) { return filters["hasPattern"].checkValidity(modelValue, viewValue); }; } if (attrs.minlength || attrs.ngMinLength) { modelController.$validators.minLength = function (modelValue, viewValue) { return filters["minLength"].checkValidity(modelValue, viewValue); }; } if (attrs.maxlength || attrs.ngMaxLength) { modelController.$validators.maxLength = function (modelValue, viewValue) { return filters["maxLength"].checkValidity(modelValue, viewValue); }; } //checked for type because min and max are also used for number, date input type if (attrs.type === 'number' && attrs.max) { if (attrs.max) { modelController.$validators.max = function (modelValue, viewValue) { return filters["max"].checkValidity(modelValue, viewValue); }; } if (attrs.min) { modelController.$validators.min = function (modelValue, viewValue) { return filters["min"].checkValidity(modelValue, viewValue); }; } } //checked for type because min and max are also used for number, date input type if (attrs.type === 'date') { if (attrs.max || attrs.maxDate) { modelController.$validators.maxDate = function (modelValue, viewValue) { return filters["maxDate"].checkValidity(modelValue, viewValue); }; } if (attrs.min || attrs.minDate) { modelController.$validators.minDate = function (modelValue, viewValue) { return filters["minDate"].checkValidity(modelValue, viewValue); }; } } }
function checkAttrs() { if (scope.$eval(attrs.ngRequired) && attrs.ngRequired || attrs.required) { modelController.$validators.isRequired = function (modelValue, viewValue) { return filters["required"].checkValidity(modelValue, viewValue); }; } if (attrs.ngPattern) { modelController.$validators.hasPattern = function (modelValue, viewValue) { return filters["hasPattern"].checkValidity(modelValue, viewValue); }; } if (attrs.minlength || attrs.ngMinLength) { modelController.$validators.minLength = function (modelValue, viewValue) { return filters["minLength"].checkValidity(modelValue, viewValue); }; } if (attrs.maxlength || attrs.ngMaxLength) { modelController.$validators.maxLength = function (modelValue, viewValue) { return filters["maxLength"].checkValidity(modelValue, viewValue); }; } //checked for type because min and max are also used for number, date input type if (attrs.type === 'number' && attrs.max) { if (attrs.max) { modelController.$validators.max = function (modelValue, viewValue) { return filters["max"].checkValidity(modelValue, viewValue); }; } if (attrs.min) { modelController.$validators.min = function (modelValue, viewValue) { return filters["min"].checkValidity(modelValue, viewValue); }; } } //checked for type because min and max are also used for number, date input type if (attrs.type === 'date') { if (attrs.max || attrs.maxDate) { modelController.$validators.maxDate = function (modelValue, viewValue) { return filters["maxDate"].checkValidity(modelValue, viewValue); }; } if (attrs.min || attrs.minDate) { modelController.$validators.minDate = function (modelValue, viewValue) { return filters["minDate"].checkValidity(modelValue, viewValue); }; } } }
JavaScript
function linspace(minx, maxx, npts) { var xs = []; var len = 1.0 * (maxx - minx); var dx = len / (npts-1); for (var i = 0; i < npts; i++) { xs.push(minx + i*dx); } return xs; }
function linspace(minx, maxx, npts) { var xs = []; var len = 1.0 * (maxx - minx); var dx = len / (npts-1); for (var i = 0; i < npts; i++) { xs.push(minx + i*dx); } return xs; }
JavaScript
function rank_docs(data, oldRank) { var docs = []; for (var i in data) { docs.push(data[i].data); } docs.sort(function (a, b) { return a[2] > b[2] ? -1 : a[2] < b[2] ? 1 : 0 }); var rank = {}; for (var i in docs) { rank[docs[i][0]] = parseInt(i) + 1; } for (var i in data) { var r0 = oldRank != null ? oldRank[data[i].data[0]] : ""; var r1 = rank[data[i].data[0]]; data[i].data = [data[i].data[0], data[i].data[1], r0, r1]; } return rank; }
function rank_docs(data, oldRank) { var docs = []; for (var i in data) { docs.push(data[i].data); } docs.sort(function (a, b) { return a[2] > b[2] ? -1 : a[2] < b[2] ? 1 : 0 }); var rank = {}; for (var i in docs) { rank[docs[i][0]] = parseInt(i) + 1; } for (var i in data) { var r0 = oldRank != null ? oldRank[data[i].data[0]] : ""; var r1 = rank[data[i].data[0]]; data[i].data = [data[i].data[0], data[i].data[1], r0, r1]; } return rank; }
JavaScript
_getHeaderButtons() { const buttons = super._getHeaderButtons(); const themeDarkMode = storage.getItem(sessionConstants.themeDarkMode); buttons.unshift({ class: 'theme-dark', icon: 'fas fa-moon', title: themeDarkMode ? 'Dark Mode enable' : 'Dark Node disable', styles: themeDarkMode ? { color: 'white' } : { color: 'lightblue' }, onclick: function() { const newThemeDarkMode = storage.swapItemBoolean(sessionConstants.themeDarkMode); this.title = newThemeDarkMode ? 'Dark Mode enable' : 'Dark Node disable'; this.styles = newThemeDarkMode ? { color: 'white' } : { color: 'lightblue' }; } }); buttons.unshift(TestSCComponent); buttons.unshift(ProgressBar); return buttons; }
_getHeaderButtons() { const buttons = super._getHeaderButtons(); const themeDarkMode = storage.getItem(sessionConstants.themeDarkMode); buttons.unshift({ class: 'theme-dark', icon: 'fas fa-moon', title: themeDarkMode ? 'Dark Mode enable' : 'Dark Node disable', styles: themeDarkMode ? { color: 'white' } : { color: 'lightblue' }, onclick: function() { const newThemeDarkMode = storage.swapItemBoolean(sessionConstants.themeDarkMode); this.title = newThemeDarkMode ? 'Dark Mode enable' : 'Dark Node disable'; this.styles = newThemeDarkMode ? { color: 'white' } : { color: 'lightblue' }; } }); buttons.unshift(TestSCComponent); buttons.unshift(ProgressBar); return buttons; }
JavaScript
function step(state, circle) { // Change stroke color during progress // circle.path.setAttribute('stroke', state.color); // Change stroke width during progress // circle.path.setAttribute('stroke-width', state.width); var percentage = Math.round(circle.value() * 100); circle.setText("<span class='value'>".concat(percentage, "<b>%</b></span> <span>").concat(userOptions.text || '', "</span>")); }
function step(state, circle) { // Change stroke color during progress // circle.path.setAttribute('stroke', state.color); // Change stroke width during progress // circle.path.setAttribute('stroke-width', state.width); var percentage = Math.round(circle.value() * 100); circle.setText("<span class='value'>".concat(percentage, "<b>%</b></span> <span>").concat(userOptions.text || '', "</span>")); }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject29(); if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('private')) { obj['private'] = ApiClient.convertToType(data['private'], 'Boolean'); } if (data.hasOwnProperty('title')) { obj['title'] = ApiClient.convertToType(data['title'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject29(); if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('private')) { obj['private'] = ApiClient.convertToType(data['private'], 'Boolean'); } if (data.hasOwnProperty('title')) { obj['title'] = ApiClient.convertToType(data['title'], 'String'); } } return obj; }
JavaScript
static initialize(obj, email, primary, verified, visibility) { obj['email'] = email; obj['primary'] = primary; obj['verified'] = verified; obj['visibility'] = visibility; }
static initialize(obj, email, primary, verified, visibility) { obj['email'] = email; obj['primary'] = primary; obj['verified'] = verified; obj['visibility'] = visibility; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new EmailOneOf(); if (data.hasOwnProperty('email')) { obj['email'] = ApiClient.convertToType(data['email'], 'String'); } if (data.hasOwnProperty('primary')) { obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); } if (data.hasOwnProperty('verified')) { obj['verified'] = ApiClient.convertToType(data['verified'], 'Boolean'); } if (data.hasOwnProperty('visibility')) { obj['visibility'] = ApiClient.convertToType(data['visibility'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new EmailOneOf(); if (data.hasOwnProperty('email')) { obj['email'] = ApiClient.convertToType(data['email'], 'String'); } if (data.hasOwnProperty('primary')) { obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); } if (data.hasOwnProperty('verified')) { obj['verified'] = ApiClient.convertToType(data['verified'], 'Boolean'); } if (data.hasOwnProperty('visibility')) { obj['visibility'] = ApiClient.convertToType(data['visibility'], 'String'); } } return obj; }
JavaScript
static initialize(obj, comments, commentsUrl, commitsUrl, createdAt, description, files, forksUrl, gitPullUrl, gitPushUrl, htmlUrl, id, nodeId, _public, updatedAt, url, user) { obj['comments'] = comments; obj['comments_url'] = commentsUrl; obj['commits_url'] = commitsUrl; obj['created_at'] = createdAt; obj['description'] = description; obj['files'] = files; obj['forks_url'] = forksUrl; obj['git_pull_url'] = gitPullUrl; obj['git_push_url'] = gitPushUrl; obj['html_url'] = htmlUrl; obj['id'] = id; obj['node_id'] = nodeId; obj['public'] = _public; obj['updated_at'] = updatedAt; obj['url'] = url; obj['user'] = user; }
static initialize(obj, comments, commentsUrl, commitsUrl, createdAt, description, files, forksUrl, gitPullUrl, gitPushUrl, htmlUrl, id, nodeId, _public, updatedAt, url, user) { obj['comments'] = comments; obj['comments_url'] = commentsUrl; obj['commits_url'] = commitsUrl; obj['created_at'] = createdAt; obj['description'] = description; obj['files'] = files; obj['forks_url'] = forksUrl; obj['git_pull_url'] = gitPullUrl; obj['git_push_url'] = gitPushUrl; obj['html_url'] = htmlUrl; obj['id'] = id; obj['node_id'] = nodeId; obj['public'] = _public; obj['updated_at'] = updatedAt; obj['url'] = url; obj['user'] = user; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new BaseGist(); if (data.hasOwnProperty('comments')) { obj['comments'] = ApiClient.convertToType(data['comments'], 'Number'); } if (data.hasOwnProperty('comments_url')) { obj['comments_url'] = ApiClient.convertToType(data['comments_url'], 'String'); } if (data.hasOwnProperty('commits_url')) { obj['commits_url'] = ApiClient.convertToType(data['commits_url'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('files')) { obj['files'] = ApiClient.convertToType(data['files'], {'String': BaseGistFiles}); } if (data.hasOwnProperty('forks')) { obj['forks'] = ApiClient.convertToType(data['forks'], [AnyType]); } if (data.hasOwnProperty('forks_url')) { obj['forks_url'] = ApiClient.convertToType(data['forks_url'], 'String'); } if (data.hasOwnProperty('git_pull_url')) { obj['git_pull_url'] = ApiClient.convertToType(data['git_pull_url'], 'String'); } if (data.hasOwnProperty('git_push_url')) { obj['git_push_url'] = ApiClient.convertToType(data['git_push_url'], 'String'); } if (data.hasOwnProperty('history')) { obj['history'] = ApiClient.convertToType(data['history'], [AnyType]); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('owner')) { obj['owner'] = ApiClient.convertToType(data['owner'], SimpleUser); } if (data.hasOwnProperty('public')) { obj['public'] = ApiClient.convertToType(data['public'], 'Boolean'); } if (data.hasOwnProperty('truncated')) { obj['truncated'] = ApiClient.convertToType(data['truncated'], 'Boolean'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } if (data.hasOwnProperty('user')) { obj['user'] = ApiClient.convertToType(data['user'], SimpleUser); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new BaseGist(); if (data.hasOwnProperty('comments')) { obj['comments'] = ApiClient.convertToType(data['comments'], 'Number'); } if (data.hasOwnProperty('comments_url')) { obj['comments_url'] = ApiClient.convertToType(data['comments_url'], 'String'); } if (data.hasOwnProperty('commits_url')) { obj['commits_url'] = ApiClient.convertToType(data['commits_url'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('files')) { obj['files'] = ApiClient.convertToType(data['files'], {'String': BaseGistFiles}); } if (data.hasOwnProperty('forks')) { obj['forks'] = ApiClient.convertToType(data['forks'], [AnyType]); } if (data.hasOwnProperty('forks_url')) { obj['forks_url'] = ApiClient.convertToType(data['forks_url'], 'String'); } if (data.hasOwnProperty('git_pull_url')) { obj['git_pull_url'] = ApiClient.convertToType(data['git_pull_url'], 'String'); } if (data.hasOwnProperty('git_push_url')) { obj['git_push_url'] = ApiClient.convertToType(data['git_push_url'], 'String'); } if (data.hasOwnProperty('history')) { obj['history'] = ApiClient.convertToType(data['history'], [AnyType]); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('owner')) { obj['owner'] = ApiClient.convertToType(data['owner'], SimpleUser); } if (data.hasOwnProperty('public')) { obj['public'] = ApiClient.convertToType(data['public'], 'Boolean'); } if (data.hasOwnProperty('truncated')) { obj['truncated'] = ApiClient.convertToType(data['truncated'], 'Boolean'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } if (data.hasOwnProperty('user')) { obj['user'] = ApiClient.convertToType(data['user'], SimpleUser); } } return obj; }
JavaScript
static initialize(obj, changeStatus, committedAt, url, user, version) { obj['change_status'] = changeStatus; obj['committed_at'] = committedAt; obj['url'] = url; obj['user'] = user; obj['version'] = version; }
static initialize(obj, changeStatus, committedAt, url, user, version) { obj['change_status'] = changeStatus; obj['committed_at'] = committedAt; obj['url'] = url; obj['user'] = user; obj['version'] = version; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new GistCommit(); if (data.hasOwnProperty('change_status')) { obj['change_status'] = CommitStats.constructFromObject(data['change_status']); } if (data.hasOwnProperty('committed_at')) { obj['committed_at'] = ApiClient.convertToType(data['committed_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } if (data.hasOwnProperty('user')) { obj['user'] = ApiClient.convertToType(data['user'], SimpleUser); } if (data.hasOwnProperty('version')) { obj['version'] = ApiClient.convertToType(data['version'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new GistCommit(); if (data.hasOwnProperty('change_status')) { obj['change_status'] = CommitStats.constructFromObject(data['change_status']); } if (data.hasOwnProperty('committed_at')) { obj['committed_at'] = ApiClient.convertToType(data['committed_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } if (data.hasOwnProperty('user')) { obj['user'] = ApiClient.convertToType(data['user'], SimpleUser); } if (data.hasOwnProperty('version')) { obj['version'] = ApiClient.convertToType(data['version'], 'String'); } } return obj; }
JavaScript
static initialize(obj, description, identifier, label) { obj['description'] = description; obj['identifier'] = identifier; obj['label'] = label; }
static initialize(obj, description, identifier, label) { obj['description'] = description; obj['identifier'] = identifier; obj['label'] = label; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new ReposOwnerRepoCheckRunsActions(); if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('identifier')) { obj['identifier'] = ApiClient.convertToType(data['identifier'], 'String'); } if (data.hasOwnProperty('label')) { obj['label'] = ApiClient.convertToType(data['label'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new ReposOwnerRepoCheckRunsActions(); if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('identifier')) { obj['identifier'] = ApiClient.convertToType(data['identifier'], 'String'); } if (data.hasOwnProperty('label')) { obj['label'] = ApiClient.convertToType(data['label'], 'String'); } } return obj; }
JavaScript
static initialize(obj, avatarUrl, createdAt, description, eventsUrl, followers, following, hasOrganizationProjects, hasRepositoryProjects, hooksUrl, htmlUrl, id, issuesUrl, login, membersUrl, nodeId, publicGists, publicMembersUrl, publicRepos, reposUrl, type, updatedAt, url) { obj['avatar_url'] = avatarUrl; obj['created_at'] = createdAt; obj['description'] = description; obj['events_url'] = eventsUrl; obj['followers'] = followers; obj['following'] = following; obj['has_organization_projects'] = hasOrganizationProjects; obj['has_repository_projects'] = hasRepositoryProjects; obj['hooks_url'] = hooksUrl; obj['html_url'] = htmlUrl; obj['id'] = id; obj['issues_url'] = issuesUrl; obj['login'] = login; obj['members_url'] = membersUrl; obj['node_id'] = nodeId; obj['public_gists'] = publicGists; obj['public_members_url'] = publicMembersUrl; obj['public_repos'] = publicRepos; obj['repos_url'] = reposUrl; obj['type'] = type; obj['updated_at'] = updatedAt; obj['url'] = url; }
static initialize(obj, avatarUrl, createdAt, description, eventsUrl, followers, following, hasOrganizationProjects, hasRepositoryProjects, hooksUrl, htmlUrl, id, issuesUrl, login, membersUrl, nodeId, publicGists, publicMembersUrl, publicRepos, reposUrl, type, updatedAt, url) { obj['avatar_url'] = avatarUrl; obj['created_at'] = createdAt; obj['description'] = description; obj['events_url'] = eventsUrl; obj['followers'] = followers; obj['following'] = following; obj['has_organization_projects'] = hasOrganizationProjects; obj['has_repository_projects'] = hasRepositoryProjects; obj['hooks_url'] = hooksUrl; obj['html_url'] = htmlUrl; obj['id'] = id; obj['issues_url'] = issuesUrl; obj['login'] = login; obj['members_url'] = membersUrl; obj['node_id'] = nodeId; obj['public_gists'] = publicGists; obj['public_members_url'] = publicMembersUrl; obj['public_repos'] = publicRepos; obj['repos_url'] = reposUrl; obj['type'] = type; obj['updated_at'] = updatedAt; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new Organization(); if (data.hasOwnProperty('avatar_url')) { obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String'); } if (data.hasOwnProperty('blog')) { obj['blog'] = ApiClient.convertToType(data['blog'], 'String'); } if (data.hasOwnProperty('company')) { obj['company'] = ApiClient.convertToType(data['company'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('email')) { obj['email'] = ApiClient.convertToType(data['email'], 'String'); } if (data.hasOwnProperty('events_url')) { obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String'); } if (data.hasOwnProperty('followers')) { obj['followers'] = ApiClient.convertToType(data['followers'], 'Number'); } if (data.hasOwnProperty('following')) { obj['following'] = ApiClient.convertToType(data['following'], 'Number'); } if (data.hasOwnProperty('has_organization_projects')) { obj['has_organization_projects'] = ApiClient.convertToType(data['has_organization_projects'], 'Boolean'); } if (data.hasOwnProperty('has_repository_projects')) { obj['has_repository_projects'] = ApiClient.convertToType(data['has_repository_projects'], 'Boolean'); } if (data.hasOwnProperty('hooks_url')) { obj['hooks_url'] = ApiClient.convertToType(data['hooks_url'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('is_verified')) { obj['is_verified'] = ApiClient.convertToType(data['is_verified'], 'Boolean'); } if (data.hasOwnProperty('issues_url')) { obj['issues_url'] = ApiClient.convertToType(data['issues_url'], 'String'); } if (data.hasOwnProperty('location')) { obj['location'] = ApiClient.convertToType(data['location'], 'String'); } if (data.hasOwnProperty('login')) { obj['login'] = ApiClient.convertToType(data['login'], 'String'); } if (data.hasOwnProperty('members_url')) { obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('plan')) { obj['plan'] = OrganizationPlan.constructFromObject(data['plan']); } if (data.hasOwnProperty('public_gists')) { obj['public_gists'] = ApiClient.convertToType(data['public_gists'], 'Number'); } if (data.hasOwnProperty('public_members_url')) { obj['public_members_url'] = ApiClient.convertToType(data['public_members_url'], 'String'); } if (data.hasOwnProperty('public_repos')) { obj['public_repos'] = ApiClient.convertToType(data['public_repos'], 'Number'); } if (data.hasOwnProperty('repos_url')) { obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String'); } if (data.hasOwnProperty('type')) { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new Organization(); if (data.hasOwnProperty('avatar_url')) { obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String'); } if (data.hasOwnProperty('blog')) { obj['blog'] = ApiClient.convertToType(data['blog'], 'String'); } if (data.hasOwnProperty('company')) { obj['company'] = ApiClient.convertToType(data['company'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('email')) { obj['email'] = ApiClient.convertToType(data['email'], 'String'); } if (data.hasOwnProperty('events_url')) { obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String'); } if (data.hasOwnProperty('followers')) { obj['followers'] = ApiClient.convertToType(data['followers'], 'Number'); } if (data.hasOwnProperty('following')) { obj['following'] = ApiClient.convertToType(data['following'], 'Number'); } if (data.hasOwnProperty('has_organization_projects')) { obj['has_organization_projects'] = ApiClient.convertToType(data['has_organization_projects'], 'Boolean'); } if (data.hasOwnProperty('has_repository_projects')) { obj['has_repository_projects'] = ApiClient.convertToType(data['has_repository_projects'], 'Boolean'); } if (data.hasOwnProperty('hooks_url')) { obj['hooks_url'] = ApiClient.convertToType(data['hooks_url'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('is_verified')) { obj['is_verified'] = ApiClient.convertToType(data['is_verified'], 'Boolean'); } if (data.hasOwnProperty('issues_url')) { obj['issues_url'] = ApiClient.convertToType(data['issues_url'], 'String'); } if (data.hasOwnProperty('location')) { obj['location'] = ApiClient.convertToType(data['location'], 'String'); } if (data.hasOwnProperty('login')) { obj['login'] = ApiClient.convertToType(data['login'], 'String'); } if (data.hasOwnProperty('members_url')) { obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('plan')) { obj['plan'] = OrganizationPlan.constructFromObject(data['plan']); } if (data.hasOwnProperty('public_gists')) { obj['public_gists'] = ApiClient.convertToType(data['public_gists'], 'Number'); } if (data.hasOwnProperty('public_members_url')) { obj['public_members_url'] = ApiClient.convertToType(data['public_members_url'], 'String'); } if (data.hasOwnProperty('public_repos')) { obj['public_repos'] = ApiClient.convertToType(data['public_repos'], 'Number'); } if (data.hasOwnProperty('repos_url')) { obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String'); } if (data.hasOwnProperty('type')) { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static initialize(obj, days, total, week) { obj['days'] = days; obj['total'] = total; obj['week'] = week; }
static initialize(obj, days, total, week) { obj['days'] = days; obj['total'] = total; obj['week'] = week; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new CommitActivity(); if (data.hasOwnProperty('days')) { obj['days'] = ApiClient.convertToType(data['days'], ['Number']); } if (data.hasOwnProperty('total')) { obj['total'] = ApiClient.convertToType(data['total'], 'Number'); } if (data.hasOwnProperty('week')) { obj['week'] = ApiClient.convertToType(data['week'], 'Number'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new CommitActivity(); if (data.hasOwnProperty('days')) { obj['days'] = ApiClient.convertToType(data['days'], ['Number']); } if (data.hasOwnProperty('total')) { obj['total'] = ApiClient.convertToType(data['total'], 'Number'); } if (data.hasOwnProperty('week')) { obj['week'] = ApiClient.convertToType(data['week'], 'Number'); } } return obj; }
JavaScript
function IssueEventForIssue() { _classCallCheck(this, IssueEventForIssue); IssueEventForIssue.initialize(this); }
function IssueEventForIssue() { _classCallCheck(this, IssueEventForIssue); IssueEventForIssue.initialize(this); }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new HookConfig(); if (data.hasOwnProperty('content_type')) { obj['content_type'] = ApiClient.convertToType(data['content_type'], 'String'); } if (data.hasOwnProperty('digest')) { obj['digest'] = ApiClient.convertToType(data['digest'], 'String'); } if (data.hasOwnProperty('email')) { obj['email'] = ApiClient.convertToType(data['email'], 'String'); } if (data.hasOwnProperty('insecure_ssl')) { obj['insecure_ssl'] = ApiClient.convertToType(data['insecure_ssl'], 'String'); } if (data.hasOwnProperty('password')) { obj['password'] = ApiClient.convertToType(data['password'], 'String'); } if (data.hasOwnProperty('room')) { obj['room'] = ApiClient.convertToType(data['room'], 'String'); } if (data.hasOwnProperty('secret')) { obj['secret'] = ApiClient.convertToType(data['secret'], 'String'); } if (data.hasOwnProperty('subdomain')) { obj['subdomain'] = ApiClient.convertToType(data['subdomain'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = ApiClient.convertToType(data['token'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new HookConfig(); if (data.hasOwnProperty('content_type')) { obj['content_type'] = ApiClient.convertToType(data['content_type'], 'String'); } if (data.hasOwnProperty('digest')) { obj['digest'] = ApiClient.convertToType(data['digest'], 'String'); } if (data.hasOwnProperty('email')) { obj['email'] = ApiClient.convertToType(data['email'], 'String'); } if (data.hasOwnProperty('insecure_ssl')) { obj['insecure_ssl'] = ApiClient.convertToType(data['insecure_ssl'], 'String'); } if (data.hasOwnProperty('password')) { obj['password'] = ApiClient.convertToType(data['password'], 'String'); } if (data.hasOwnProperty('room')) { obj['room'] = ApiClient.convertToType(data['room'], 'String'); } if (data.hasOwnProperty('secret')) { obj['secret'] = ApiClient.convertToType(data['secret'], 'String'); } if (data.hasOwnProperty('subdomain')) { obj['subdomain'] = ApiClient.convertToType(data['subdomain'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = ApiClient.convertToType(data['token'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static initialize(obj, createdAt, description, htmlUrl, id, membersCount, membersUrl, name, nodeId, organization, permission, reposCount, repositoriesUrl, slug, updatedAt, url) { obj['created_at'] = createdAt; obj['description'] = description; obj['html_url'] = htmlUrl; obj['id'] = id; obj['members_count'] = membersCount; obj['members_url'] = membersUrl; obj['name'] = name; obj['node_id'] = nodeId; obj['organization'] = organization; obj['permission'] = permission; obj['repos_count'] = reposCount; obj['repositories_url'] = repositoriesUrl; obj['slug'] = slug; obj['updated_at'] = updatedAt; obj['url'] = url; }
static initialize(obj, createdAt, description, htmlUrl, id, membersCount, membersUrl, name, nodeId, organization, permission, reposCount, repositoriesUrl, slug, updatedAt, url) { obj['created_at'] = createdAt; obj['description'] = description; obj['html_url'] = htmlUrl; obj['id'] = id; obj['members_count'] = membersCount; obj['members_url'] = membersUrl; obj['name'] = name; obj['node_id'] = nodeId; obj['organization'] = organization; obj['permission'] = permission; obj['repos_count'] = reposCount; obj['repositories_url'] = repositoriesUrl; obj['slug'] = slug; obj['updated_at'] = updatedAt; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamFull(); if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('ldap_dn')) { obj['ldap_dn'] = ApiClient.convertToType(data['ldap_dn'], 'String'); } if (data.hasOwnProperty('members_count')) { obj['members_count'] = ApiClient.convertToType(data['members_count'], 'Number'); } if (data.hasOwnProperty('members_url')) { obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('organization')) { obj['organization'] = Organization.constructFromObject(data['organization']); } if (data.hasOwnProperty('parent')) { obj['parent'] = ApiClient.convertToType(data['parent'], TeamSimple); } if (data.hasOwnProperty('permission')) { obj['permission'] = ApiClient.convertToType(data['permission'], 'String'); } if (data.hasOwnProperty('privacy')) { obj['privacy'] = ApiClient.convertToType(data['privacy'], 'String'); } if (data.hasOwnProperty('repos_count')) { obj['repos_count'] = ApiClient.convertToType(data['repos_count'], 'Number'); } if (data.hasOwnProperty('repositories_url')) { obj['repositories_url'] = ApiClient.convertToType(data['repositories_url'], 'String'); } if (data.hasOwnProperty('slug')) { obj['slug'] = ApiClient.convertToType(data['slug'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamFull(); if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('ldap_dn')) { obj['ldap_dn'] = ApiClient.convertToType(data['ldap_dn'], 'String'); } if (data.hasOwnProperty('members_count')) { obj['members_count'] = ApiClient.convertToType(data['members_count'], 'Number'); } if (data.hasOwnProperty('members_url')) { obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('organization')) { obj['organization'] = Organization.constructFromObject(data['organization']); } if (data.hasOwnProperty('parent')) { obj['parent'] = ApiClient.convertToType(data['parent'], TeamSimple); } if (data.hasOwnProperty('permission')) { obj['permission'] = ApiClient.convertToType(data['permission'], 'String'); } if (data.hasOwnProperty('privacy')) { obj['privacy'] = ApiClient.convertToType(data['privacy'], 'String'); } if (data.hasOwnProperty('repos_count')) { obj['repos_count'] = ApiClient.convertToType(data['repos_count'], 'Number'); } if (data.hasOwnProperty('repositories_url')) { obj['repositories_url'] = ApiClient.convertToType(data['repositories_url'], 'String'); } if (data.hasOwnProperty('slug')) { obj['slug'] = ApiClient.convertToType(data['slug'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new ReposOwnerRepoCheckRunsCheckRunIdOutput(); if (data.hasOwnProperty('annotations')) { obj['annotations'] = ApiClient.convertToType(data['annotations'], [ReposOwnerRepoCheckRunsOutputAnnotations]); } if (data.hasOwnProperty('images')) { obj['images'] = ApiClient.convertToType(data['images'], [ReposOwnerRepoCheckRunsOutputImages]); } if (data.hasOwnProperty('summary')) { obj['summary'] = ApiClient.convertToType(data['summary'], 'String'); } if (data.hasOwnProperty('text')) { obj['text'] = ApiClient.convertToType(data['text'], 'String'); } if (data.hasOwnProperty('title')) { obj['title'] = ApiClient.convertToType(data['title'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new ReposOwnerRepoCheckRunsCheckRunIdOutput(); if (data.hasOwnProperty('annotations')) { obj['annotations'] = ApiClient.convertToType(data['annotations'], [ReposOwnerRepoCheckRunsOutputAnnotations]); } if (data.hasOwnProperty('images')) { obj['images'] = ApiClient.convertToType(data['images'], [ReposOwnerRepoCheckRunsOutputImages]); } if (data.hasOwnProperty('summary')) { obj['summary'] = ApiClient.convertToType(data['summary'], 'String'); } if (data.hasOwnProperty('text')) { obj['text'] = ApiClient.convertToType(data['text'], 'String'); } if (data.hasOwnProperty('title')) { obj['title'] = ApiClient.convertToType(data['title'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject47(); if (data.hasOwnProperty('encrypted_value')) { obj['encrypted_value'] = ApiClient.convertToType(data['encrypted_value'], 'String'); } if (data.hasOwnProperty('key_id')) { obj['key_id'] = ApiClient.convertToType(data['key_id'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject47(); if (data.hasOwnProperty('encrypted_value')) { obj['encrypted_value'] = ApiClient.convertToType(data['encrypted_value'], 'String'); } if (data.hasOwnProperty('key_id')) { obj['key_id'] = ApiClient.convertToType(data['key_id'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new ApiOverview(); if (data.hasOwnProperty('api')) { obj['api'] = ApiClient.convertToType(data['api'], ['String']); } if (data.hasOwnProperty('git')) { obj['git'] = ApiClient.convertToType(data['git'], ['String']); } if (data.hasOwnProperty('github_services_sha')) { obj['github_services_sha'] = ApiClient.convertToType(data['github_services_sha'], 'String'); } if (data.hasOwnProperty('hooks')) { obj['hooks'] = ApiClient.convertToType(data['hooks'], ['String']); } if (data.hasOwnProperty('importer')) { obj['importer'] = ApiClient.convertToType(data['importer'], ['String']); } if (data.hasOwnProperty('installed_version')) { obj['installed_version'] = ApiClient.convertToType(data['installed_version'], 'String'); } if (data.hasOwnProperty('pages')) { obj['pages'] = ApiClient.convertToType(data['pages'], ['String']); } if (data.hasOwnProperty('ssh_key_fingerprints')) { obj['ssh_key_fingerprints'] = ApiOverviewSshKeyFingerprints.constructFromObject(data['ssh_key_fingerprints']); } if (data.hasOwnProperty('verifiable_password_authentication')) { obj['verifiable_password_authentication'] = ApiClient.convertToType(data['verifiable_password_authentication'], 'Boolean'); } if (data.hasOwnProperty('web')) { obj['web'] = ApiClient.convertToType(data['web'], ['String']); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new ApiOverview(); if (data.hasOwnProperty('api')) { obj['api'] = ApiClient.convertToType(data['api'], ['String']); } if (data.hasOwnProperty('git')) { obj['git'] = ApiClient.convertToType(data['git'], ['String']); } if (data.hasOwnProperty('github_services_sha')) { obj['github_services_sha'] = ApiClient.convertToType(data['github_services_sha'], 'String'); } if (data.hasOwnProperty('hooks')) { obj['hooks'] = ApiClient.convertToType(data['hooks'], ['String']); } if (data.hasOwnProperty('importer')) { obj['importer'] = ApiClient.convertToType(data['importer'], ['String']); } if (data.hasOwnProperty('installed_version')) { obj['installed_version'] = ApiClient.convertToType(data['installed_version'], 'String'); } if (data.hasOwnProperty('pages')) { obj['pages'] = ApiClient.convertToType(data['pages'], ['String']); } if (data.hasOwnProperty('ssh_key_fingerprints')) { obj['ssh_key_fingerprints'] = ApiOverviewSshKeyFingerprints.constructFromObject(data['ssh_key_fingerprints']); } if (data.hasOwnProperty('verifiable_password_authentication')) { obj['verifiable_password_authentication'] = ApiClient.convertToType(data['verifiable_password_authentication'], 'Boolean'); } if (data.hasOwnProperty('web')) { obj['web'] = ApiClient.convertToType(data['web'], ['String']); } } return obj; }
JavaScript
function Topic() { _classCallCheck(this, Topic); Topic.initialize(this); }
function Topic() { _classCallCheck(this, Topic); Topic.initialize(this); }
JavaScript
static initialize(obj, account, permissions, repositoriesUrl, repositorySelection, singleFileName) { obj['account'] = account; obj['permissions'] = permissions; obj['repositories_url'] = repositoriesUrl; obj['repository_selection'] = repositorySelection; obj['single_file_name'] = singleFileName; }
static initialize(obj, account, permissions, repositoriesUrl, repositorySelection, singleFileName) { obj['account'] = account; obj['permissions'] = permissions; obj['repositories_url'] = repositoriesUrl; obj['repository_selection'] = repositorySelection; obj['single_file_name'] = singleFileName; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new ScopedInstallation(); if (data.hasOwnProperty('account')) { obj['account'] = SimpleUser.constructFromObject(data['account']); } if (data.hasOwnProperty('permissions')) { obj['permissions'] = ApiClient.convertToType(data['permissions'], Object); } if (data.hasOwnProperty('repositories_url')) { obj['repositories_url'] = ApiClient.convertToType(data['repositories_url'], 'String'); } if (data.hasOwnProperty('repository_selection')) { obj['repository_selection'] = ApiClient.convertToType(data['repository_selection'], 'String'); } if (data.hasOwnProperty('single_file_name')) { obj['single_file_name'] = ApiClient.convertToType(data['single_file_name'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new ScopedInstallation(); if (data.hasOwnProperty('account')) { obj['account'] = SimpleUser.constructFromObject(data['account']); } if (data.hasOwnProperty('permissions')) { obj['permissions'] = ApiClient.convertToType(data['permissions'], Object); } if (data.hasOwnProperty('repositories_url')) { obj['repositories_url'] = ApiClient.convertToType(data['repositories_url'], 'String'); } if (data.hasOwnProperty('repository_selection')) { obj['repository_selection'] = ApiClient.convertToType(data['repository_selection'], 'String'); } if (data.hasOwnProperty('single_file_name')) { obj['single_file_name'] = ApiClient.convertToType(data['single_file_name'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new ReposOwnerRepoCheckRunsOutputImages(); if (data.hasOwnProperty('alt')) { obj['alt'] = ApiClient.convertToType(data['alt'], 'String'); } if (data.hasOwnProperty('caption')) { obj['caption'] = ApiClient.convertToType(data['caption'], 'String'); } if (data.hasOwnProperty('image_url')) { obj['image_url'] = ApiClient.convertToType(data['image_url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new ReposOwnerRepoCheckRunsOutputImages(); if (data.hasOwnProperty('alt')) { obj['alt'] = ApiClient.convertToType(data['alt'], 'String'); } if (data.hasOwnProperty('caption')) { obj['caption'] = ApiClient.convertToType(data['caption'], 'String'); } if (data.hasOwnProperty('image_url')) { obj['image_url'] = ApiClient.convertToType(data['image_url'], 'String'); } } return obj; }
JavaScript
static initialize(obj, aheadBy, baseCommit, behindBy, commits, diffUrl, files, htmlUrl, mergeBaseCommit, patchUrl, permalinkUrl, status, totalCommits, url) { obj['ahead_by'] = aheadBy; obj['base_commit'] = baseCommit; obj['behind_by'] = behindBy; obj['commits'] = commits; obj['diff_url'] = diffUrl; obj['files'] = files; obj['html_url'] = htmlUrl; obj['merge_base_commit'] = mergeBaseCommit; obj['patch_url'] = patchUrl; obj['permalink_url'] = permalinkUrl; obj['status'] = status; obj['total_commits'] = totalCommits; obj['url'] = url; }
static initialize(obj, aheadBy, baseCommit, behindBy, commits, diffUrl, files, htmlUrl, mergeBaseCommit, patchUrl, permalinkUrl, status, totalCommits, url) { obj['ahead_by'] = aheadBy; obj['base_commit'] = baseCommit; obj['behind_by'] = behindBy; obj['commits'] = commits; obj['diff_url'] = diffUrl; obj['files'] = files; obj['html_url'] = htmlUrl; obj['merge_base_commit'] = mergeBaseCommit; obj['patch_url'] = patchUrl; obj['permalink_url'] = permalinkUrl; obj['status'] = status; obj['total_commits'] = totalCommits; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new CommitComparison(); if (data.hasOwnProperty('ahead_by')) { obj['ahead_by'] = ApiClient.convertToType(data['ahead_by'], 'Number'); } if (data.hasOwnProperty('base_commit')) { obj['base_commit'] = Commit.constructFromObject(data['base_commit']); } if (data.hasOwnProperty('behind_by')) { obj['behind_by'] = ApiClient.convertToType(data['behind_by'], 'Number'); } if (data.hasOwnProperty('commits')) { obj['commits'] = ApiClient.convertToType(data['commits'], [Commit]); } if (data.hasOwnProperty('diff_url')) { obj['diff_url'] = ApiClient.convertToType(data['diff_url'], 'String'); } if (data.hasOwnProperty('files')) { obj['files'] = ApiClient.convertToType(data['files'], [DiffEntry]); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('merge_base_commit')) { obj['merge_base_commit'] = Commit.constructFromObject(data['merge_base_commit']); } if (data.hasOwnProperty('patch_url')) { obj['patch_url'] = ApiClient.convertToType(data['patch_url'], 'String'); } if (data.hasOwnProperty('permalink_url')) { obj['permalink_url'] = ApiClient.convertToType(data['permalink_url'], 'String'); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('total_commits')) { obj['total_commits'] = ApiClient.convertToType(data['total_commits'], 'Number'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new CommitComparison(); if (data.hasOwnProperty('ahead_by')) { obj['ahead_by'] = ApiClient.convertToType(data['ahead_by'], 'Number'); } if (data.hasOwnProperty('base_commit')) { obj['base_commit'] = Commit.constructFromObject(data['base_commit']); } if (data.hasOwnProperty('behind_by')) { obj['behind_by'] = ApiClient.convertToType(data['behind_by'], 'Number'); } if (data.hasOwnProperty('commits')) { obj['commits'] = ApiClient.convertToType(data['commits'], [Commit]); } if (data.hasOwnProperty('diff_url')) { obj['diff_url'] = ApiClient.convertToType(data['diff_url'], 'String'); } if (data.hasOwnProperty('files')) { obj['files'] = ApiClient.convertToType(data['files'], [DiffEntry]); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('merge_base_commit')) { obj['merge_base_commit'] = Commit.constructFromObject(data['merge_base_commit']); } if (data.hasOwnProperty('patch_url')) { obj['patch_url'] = ApiClient.convertToType(data['patch_url'], 'String'); } if (data.hasOwnProperty('permalink_url')) { obj['permalink_url'] = ApiClient.convertToType(data['permalink_url'], 'String'); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('total_commits')) { obj['total_commits'] = ApiClient.convertToType(data['total_commits'], 'Number'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static initialize(obj, after, app, before, checkRunsUrl, conclusion, createdAt, headBranch, headCommit, headSha, id, latestCheckRunsCount, nodeId, pullRequests, repository, status, updatedAt, url) { obj['after'] = after; obj['app'] = app; obj['before'] = before; obj['check_runs_url'] = checkRunsUrl; obj['conclusion'] = conclusion; obj['created_at'] = createdAt; obj['head_branch'] = headBranch; obj['head_commit'] = headCommit; obj['head_sha'] = headSha; obj['id'] = id; obj['latest_check_runs_count'] = latestCheckRunsCount; obj['node_id'] = nodeId; obj['pull_requests'] = pullRequests; obj['repository'] = repository; obj['status'] = status; obj['updated_at'] = updatedAt; obj['url'] = url; }
static initialize(obj, after, app, before, checkRunsUrl, conclusion, createdAt, headBranch, headCommit, headSha, id, latestCheckRunsCount, nodeId, pullRequests, repository, status, updatedAt, url) { obj['after'] = after; obj['app'] = app; obj['before'] = before; obj['check_runs_url'] = checkRunsUrl; obj['conclusion'] = conclusion; obj['created_at'] = createdAt; obj['head_branch'] = headBranch; obj['head_commit'] = headCommit; obj['head_sha'] = headSha; obj['id'] = id; obj['latest_check_runs_count'] = latestCheckRunsCount; obj['node_id'] = nodeId; obj['pull_requests'] = pullRequests; obj['repository'] = repository; obj['status'] = status; obj['updated_at'] = updatedAt; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new CheckSuite(); if (data.hasOwnProperty('after')) { obj['after'] = ApiClient.convertToType(data['after'], 'String'); } if (data.hasOwnProperty('app')) { obj['app'] = ApiClient.convertToType(data['app'], Integration); } if (data.hasOwnProperty('before')) { obj['before'] = ApiClient.convertToType(data['before'], 'String'); } if (data.hasOwnProperty('check_runs_url')) { obj['check_runs_url'] = ApiClient.convertToType(data['check_runs_url'], 'String'); } if (data.hasOwnProperty('conclusion')) { obj['conclusion'] = ApiClient.convertToType(data['conclusion'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('head_branch')) { obj['head_branch'] = ApiClient.convertToType(data['head_branch'], 'String'); } if (data.hasOwnProperty('head_commit')) { obj['head_commit'] = SimpleCommit.constructFromObject(data['head_commit']); } if (data.hasOwnProperty('head_sha')) { obj['head_sha'] = ApiClient.convertToType(data['head_sha'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('latest_check_runs_count')) { obj['latest_check_runs_count'] = ApiClient.convertToType(data['latest_check_runs_count'], 'Number'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('pull_requests')) { obj['pull_requests'] = ApiClient.convertToType(data['pull_requests'], [PullRequestMinimal]); } if (data.hasOwnProperty('repository')) { obj['repository'] = MinimalRepository.constructFromObject(data['repository']); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new CheckSuite(); if (data.hasOwnProperty('after')) { obj['after'] = ApiClient.convertToType(data['after'], 'String'); } if (data.hasOwnProperty('app')) { obj['app'] = ApiClient.convertToType(data['app'], Integration); } if (data.hasOwnProperty('before')) { obj['before'] = ApiClient.convertToType(data['before'], 'String'); } if (data.hasOwnProperty('check_runs_url')) { obj['check_runs_url'] = ApiClient.convertToType(data['check_runs_url'], 'String'); } if (data.hasOwnProperty('conclusion')) { obj['conclusion'] = ApiClient.convertToType(data['conclusion'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('head_branch')) { obj['head_branch'] = ApiClient.convertToType(data['head_branch'], 'String'); } if (data.hasOwnProperty('head_commit')) { obj['head_commit'] = SimpleCommit.constructFromObject(data['head_commit']); } if (data.hasOwnProperty('head_sha')) { obj['head_sha'] = ApiClient.convertToType(data['head_sha'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('latest_check_runs_count')) { obj['latest_check_runs_count'] = ApiClient.convertToType(data['latest_check_runs_count'], 'Number'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('pull_requests')) { obj['pull_requests'] = ApiClient.convertToType(data['pull_requests'], [PullRequestMinimal]); } if (data.hasOwnProperty('repository')) { obj['repository'] = MinimalRepository.constructFromObject(data['repository']); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new GitRef(); if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('object')) { obj['object'] = GitRefObject.constructFromObject(data['object']); } if (data.hasOwnProperty('ref')) { obj['ref'] = ApiClient.convertToType(data['ref'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new GitRef(); if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('object')) { obj['object'] = GitRefObject.constructFromObject(data['object']); } if (data.hasOwnProperty('ref')) { obj['ref'] = ApiClient.convertToType(data['ref'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static initialize(obj, html, pullRequest, self) { obj['html'] = html; obj['pull_request'] = pullRequest; obj['self'] = self; }
static initialize(obj, html, pullRequest, self) { obj['html'] = html; obj['pull_request'] = pullRequest; obj['self'] = self; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new PullRequestReviewCommentLinks(); if (data.hasOwnProperty('html')) { obj['html'] = PullRequestReviewCommentLinksHtml.constructFromObject(data['html']); } if (data.hasOwnProperty('pull_request')) { obj['pull_request'] = PullRequestReviewCommentLinksPullRequest.constructFromObject(data['pull_request']); } if (data.hasOwnProperty('self')) { obj['self'] = PullRequestReviewCommentLinksSelf.constructFromObject(data['self']); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new PullRequestReviewCommentLinks(); if (data.hasOwnProperty('html')) { obj['html'] = PullRequestReviewCommentLinksHtml.constructFromObject(data['html']); } if (data.hasOwnProperty('pull_request')) { obj['pull_request'] = PullRequestReviewCommentLinksPullRequest.constructFromObject(data['pull_request']); } if (data.hasOwnProperty('self')) { obj['self'] = PullRequestReviewCommentLinksSelf.constructFromObject(data['self']); } } return obj; }
JavaScript
static initialize(obj, author, commentCount, committer, message, tree, url) { obj['author'] = author; obj['comment_count'] = commentCount; obj['committer'] = committer; obj['message'] = message; obj['tree'] = tree; obj['url'] = url; }
static initialize(obj, author, commentCount, committer, message, tree, url) { obj['author'] = author; obj['comment_count'] = commentCount; obj['committer'] = committer; obj['message'] = message; obj['tree'] = tree; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new CommitCommit(); if (data.hasOwnProperty('author')) { obj['author'] = ApiClient.convertToType(data['author'], GitUser); } if (data.hasOwnProperty('comment_count')) { obj['comment_count'] = ApiClient.convertToType(data['comment_count'], 'Number'); } if (data.hasOwnProperty('committer')) { obj['committer'] = ApiClient.convertToType(data['committer'], GitUser); } if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } if (data.hasOwnProperty('tree')) { obj['tree'] = CommitCommitTree.constructFromObject(data['tree']); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } if (data.hasOwnProperty('verification')) { obj['verification'] = Verification.constructFromObject(data['verification']); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new CommitCommit(); if (data.hasOwnProperty('author')) { obj['author'] = ApiClient.convertToType(data['author'], GitUser); } if (data.hasOwnProperty('comment_count')) { obj['comment_count'] = ApiClient.convertToType(data['comment_count'], 'Number'); } if (data.hasOwnProperty('committer')) { obj['committer'] = ApiClient.convertToType(data['committer'], GitUser); } if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } if (data.hasOwnProperty('tree')) { obj['tree'] = CommitCommitTree.constructFromObject(data['tree']); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } if (data.hasOwnProperty('verification')) { obj['verification'] = Verification.constructFromObject(data['verification']); } } return obj; }
JavaScript
static initialize(obj, commit, createdAt, duration, error, pusher, status, updatedAt, url) { obj['commit'] = commit; obj['created_at'] = createdAt; obj['duration'] = duration; obj['error'] = error; obj['pusher'] = pusher; obj['status'] = status; obj['updated_at'] = updatedAt; obj['url'] = url; }
static initialize(obj, commit, createdAt, duration, error, pusher, status, updatedAt, url) { obj['commit'] = commit; obj['created_at'] = createdAt; obj['duration'] = duration; obj['error'] = error; obj['pusher'] = pusher; obj['status'] = status; obj['updated_at'] = updatedAt; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new PageBuild(); if (data.hasOwnProperty('commit')) { obj['commit'] = ApiClient.convertToType(data['commit'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('duration')) { obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); } if (data.hasOwnProperty('error')) { obj['error'] = PageBuildError.constructFromObject(data['error']); } if (data.hasOwnProperty('pusher')) { obj['pusher'] = ApiClient.convertToType(data['pusher'], SimpleUser); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new PageBuild(); if (data.hasOwnProperty('commit')) { obj['commit'] = ApiClient.convertToType(data['commit'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('duration')) { obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); } if (data.hasOwnProperty('error')) { obj['error'] = PageBuildError.constructFromObject(data['error']); } if (data.hasOwnProperty('pusher')) { obj['pusher'] = ApiClient.convertToType(data['pusher'], SimpleUser); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static initialize(obj, avatarUrl, eventsUrl, followersUrl, followingUrl, gistsUrl, gravatarId, htmlUrl, id, login, nodeId, organizationsUrl, receivedEventsUrl, reposUrl, siteAdmin, starredUrl, subscriptionsUrl, type, url) { obj['avatar_url'] = avatarUrl; obj['events_url'] = eventsUrl; obj['followers_url'] = followersUrl; obj['following_url'] = followingUrl; obj['gists_url'] = gistsUrl; obj['gravatar_id'] = gravatarId; obj['html_url'] = htmlUrl; obj['id'] = id; obj['login'] = login; obj['node_id'] = nodeId; obj['organizations_url'] = organizationsUrl; obj['received_events_url'] = receivedEventsUrl; obj['repos_url'] = reposUrl; obj['site_admin'] = siteAdmin; obj['starred_url'] = starredUrl; obj['subscriptions_url'] = subscriptionsUrl; obj['type'] = type; obj['url'] = url; }
static initialize(obj, avatarUrl, eventsUrl, followersUrl, followingUrl, gistsUrl, gravatarId, htmlUrl, id, login, nodeId, organizationsUrl, receivedEventsUrl, reposUrl, siteAdmin, starredUrl, subscriptionsUrl, type, url) { obj['avatar_url'] = avatarUrl; obj['events_url'] = eventsUrl; obj['followers_url'] = followersUrl; obj['following_url'] = followingUrl; obj['gists_url'] = gistsUrl; obj['gravatar_id'] = gravatarId; obj['html_url'] = htmlUrl; obj['id'] = id; obj['login'] = login; obj['node_id'] = nodeId; obj['organizations_url'] = organizationsUrl; obj['received_events_url'] = receivedEventsUrl; obj['repos_url'] = reposUrl; obj['site_admin'] = siteAdmin; obj['starred_url'] = starredUrl; obj['subscriptions_url'] = subscriptionsUrl; obj['type'] = type; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new SimpleUser(); if (data.hasOwnProperty('avatar_url')) { obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String'); } if (data.hasOwnProperty('events_url')) { obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String'); } if (data.hasOwnProperty('followers_url')) { obj['followers_url'] = ApiClient.convertToType(data['followers_url'], 'String'); } if (data.hasOwnProperty('following_url')) { obj['following_url'] = ApiClient.convertToType(data['following_url'], 'String'); } if (data.hasOwnProperty('gists_url')) { obj['gists_url'] = ApiClient.convertToType(data['gists_url'], 'String'); } if (data.hasOwnProperty('gravatar_id')) { obj['gravatar_id'] = ApiClient.convertToType(data['gravatar_id'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('login')) { obj['login'] = ApiClient.convertToType(data['login'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('organizations_url')) { obj['organizations_url'] = ApiClient.convertToType(data['organizations_url'], 'String'); } if (data.hasOwnProperty('received_events_url')) { obj['received_events_url'] = ApiClient.convertToType(data['received_events_url'], 'String'); } if (data.hasOwnProperty('repos_url')) { obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String'); } if (data.hasOwnProperty('site_admin')) { obj['site_admin'] = ApiClient.convertToType(data['site_admin'], 'Boolean'); } if (data.hasOwnProperty('starred_at')) { obj['starred_at'] = ApiClient.convertToType(data['starred_at'], 'String'); } if (data.hasOwnProperty('starred_url')) { obj['starred_url'] = ApiClient.convertToType(data['starred_url'], 'String'); } if (data.hasOwnProperty('subscriptions_url')) { obj['subscriptions_url'] = ApiClient.convertToType(data['subscriptions_url'], 'String'); } if (data.hasOwnProperty('type')) { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new SimpleUser(); if (data.hasOwnProperty('avatar_url')) { obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String'); } if (data.hasOwnProperty('events_url')) { obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String'); } if (data.hasOwnProperty('followers_url')) { obj['followers_url'] = ApiClient.convertToType(data['followers_url'], 'String'); } if (data.hasOwnProperty('following_url')) { obj['following_url'] = ApiClient.convertToType(data['following_url'], 'String'); } if (data.hasOwnProperty('gists_url')) { obj['gists_url'] = ApiClient.convertToType(data['gists_url'], 'String'); } if (data.hasOwnProperty('gravatar_id')) { obj['gravatar_id'] = ApiClient.convertToType(data['gravatar_id'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('login')) { obj['login'] = ApiClient.convertToType(data['login'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('organizations_url')) { obj['organizations_url'] = ApiClient.convertToType(data['organizations_url'], 'String'); } if (data.hasOwnProperty('received_events_url')) { obj['received_events_url'] = ApiClient.convertToType(data['received_events_url'], 'String'); } if (data.hasOwnProperty('repos_url')) { obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String'); } if (data.hasOwnProperty('site_admin')) { obj['site_admin'] = ApiClient.convertToType(data['site_admin'], 'Boolean'); } if (data.hasOwnProperty('starred_at')) { obj['starred_at'] = ApiClient.convertToType(data['starred_at'], 'String'); } if (data.hasOwnProperty('starred_url')) { obj['starred_url'] = ApiClient.convertToType(data['starred_url'], 'String'); } if (data.hasOwnProperty('subscriptions_url')) { obj['subscriptions_url'] = ApiClient.convertToType(data['subscriptions_url'], 'String'); } if (data.hasOwnProperty('type')) { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
reactionsCreateForCommitComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject58']; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsCreateForCommitComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsCreateForCommitComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsCreateForCommitComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/repos/{owner}/{repo}/comments/{comment_id}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsCreateForCommitComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject58']; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsCreateForCommitComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsCreateForCommitComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsCreateForCommitComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/repos/{owner}/{repo}/comments/{comment_id}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsCreateForIssue(owner, repo, issueNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject90']; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsCreateForIssue"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsCreateForIssue"); } // verify the required parameter 'issueNumber' is set if (issueNumber === undefined || issueNumber === null) { throw new Error("Missing the required parameter 'issueNumber' when calling reactionsCreateForIssue"); } let pathParams = { 'owner': owner, 'repo': repo, 'issue_number': issueNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/repos/{owner}/{repo}/issues/{issue_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsCreateForIssue(owner, repo, issueNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject90']; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsCreateForIssue"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsCreateForIssue"); } // verify the required parameter 'issueNumber' is set if (issueNumber === undefined || issueNumber === null) { throw new Error("Missing the required parameter 'issueNumber' when calling reactionsCreateForIssue"); } let pathParams = { 'owner': owner, 'repo': repo, 'issue_number': issueNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/repos/{owner}/{repo}/issues/{issue_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsCreateForIssueComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject82']; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsCreateForIssueComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsCreateForIssueComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsCreateForIssueComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsCreateForIssueComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject82']; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsCreateForIssueComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsCreateForIssueComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsCreateForIssueComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsCreateForPullRequestReviewComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject103']; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsCreateForPullRequestReviewComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsCreateForPullRequestReviewComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsCreateForPullRequestReviewComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsCreateForPullRequestReviewComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject103']; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsCreateForPullRequestReviewComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsCreateForPullRequestReviewComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsCreateForPullRequestReviewComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsCreateForTeamDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject33']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling reactionsCreateForTeamDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling reactionsCreateForTeamDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsCreateForTeamDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling reactionsCreateForTeamDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsCreateForTeamDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject33']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling reactionsCreateForTeamDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling reactionsCreateForTeamDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsCreateForTeamDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling reactionsCreateForTeamDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsCreateForTeamDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject131']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling reactionsCreateForTeamDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsCreateForTeamDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling reactionsCreateForTeamDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsCreateForTeamDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject131']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling reactionsCreateForTeamDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsCreateForTeamDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling reactionsCreateForTeamDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsCreateForTeamDiscussionInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject34']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling reactionsCreateForTeamDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling reactionsCreateForTeamDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsCreateForTeamDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsCreateForTeamDiscussionInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject34']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling reactionsCreateForTeamDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling reactionsCreateForTeamDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsCreateForTeamDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsCreateForTeamDiscussionLegacy(teamId, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject132']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling reactionsCreateForTeamDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsCreateForTeamDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsCreateForTeamDiscussionLegacy(teamId, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject132']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling reactionsCreateForTeamDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsCreateForTeamDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Reaction; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsDeleteLegacy(reactionId, callback) { let postBody = null; // verify the required parameter 'reactionId' is set if (reactionId === undefined || reactionId === null) { throw new Error("Missing the required parameter 'reactionId' when calling reactionsDeleteLegacy"); } let pathParams = { 'reaction_id': reactionId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/reactions/{reaction_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsDeleteLegacy(reactionId, callback) { let postBody = null; // verify the required parameter 'reactionId' is set if (reactionId === undefined || reactionId === null) { throw new Error("Missing the required parameter 'reactionId' when calling reactionsDeleteLegacy"); } let pathParams = { 'reaction_id': reactionId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/reactions/{reaction_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsListForCommitComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsListForCommitComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsListForCommitComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsListForCommitComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/repos/{owner}/{repo}/comments/{comment_id}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsListForCommitComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsListForCommitComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsListForCommitComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsListForCommitComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/repos/{owner}/{repo}/comments/{comment_id}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsListForIssue(owner, repo, issueNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsListForIssue"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsListForIssue"); } // verify the required parameter 'issueNumber' is set if (issueNumber === undefined || issueNumber === null) { throw new Error("Missing the required parameter 'issueNumber' when calling reactionsListForIssue"); } let pathParams = { 'owner': owner, 'repo': repo, 'issue_number': issueNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/repos/{owner}/{repo}/issues/{issue_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsListForIssue(owner, repo, issueNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsListForIssue"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsListForIssue"); } // verify the required parameter 'issueNumber' is set if (issueNumber === undefined || issueNumber === null) { throw new Error("Missing the required parameter 'issueNumber' when calling reactionsListForIssue"); } let pathParams = { 'owner': owner, 'repo': repo, 'issue_number': issueNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/repos/{owner}/{repo}/issues/{issue_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsListForIssueComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsListForIssueComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsListForIssueComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsListForIssueComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsListForIssueComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsListForIssueComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsListForIssueComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsListForIssueComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsListForPullRequestReviewComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsListForPullRequestReviewComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsListForPullRequestReviewComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsListForPullRequestReviewComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsListForPullRequestReviewComment(owner, repo, commentId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling reactionsListForPullRequestReviewComment"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling reactionsListForPullRequestReviewComment"); } // verify the required parameter 'commentId' is set if (commentId === undefined || commentId === null) { throw new Error("Missing the required parameter 'commentId' when calling reactionsListForPullRequestReviewComment"); } let pathParams = { 'owner': owner, 'repo': repo, 'comment_id': commentId }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsListForTeamDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling reactionsListForTeamDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling reactionsListForTeamDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsListForTeamDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling reactionsListForTeamDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsListForTeamDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling reactionsListForTeamDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling reactionsListForTeamDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsListForTeamDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling reactionsListForTeamDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsListForTeamDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling reactionsListForTeamDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsListForTeamDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling reactionsListForTeamDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsListForTeamDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling reactionsListForTeamDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsListForTeamDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling reactionsListForTeamDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsListForTeamDiscussionInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling reactionsListForTeamDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling reactionsListForTeamDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsListForTeamDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsListForTeamDiscussionInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling reactionsListForTeamDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling reactionsListForTeamDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsListForTeamDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
reactionsListForTeamDiscussionLegacy(teamId, discussionNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling reactionsListForTeamDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsListForTeamDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
reactionsListForTeamDiscussionLegacy(teamId, discussionNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling reactionsListForTeamDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling reactionsListForTeamDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { 'content': opts['content'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Reaction]; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new RateLimitOverview(); if (data.hasOwnProperty('rate')) { obj['rate'] = RateLimit.constructFromObject(data['rate']); } if (data.hasOwnProperty('resources')) { obj['resources'] = RateLimitOverviewResources.constructFromObject(data['resources']); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new RateLimitOverview(); if (data.hasOwnProperty('rate')) { obj['rate'] = RateLimit.constructFromObject(data['rate']); } if (data.hasOwnProperty('resources')) { obj['resources'] = RateLimitOverviewResources.constructFromObject(data['resources']); } } return obj; }
JavaScript
codeScanningGetAlert(owner, repo, alertId, callback) { let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling codeScanningGetAlert"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling codeScanningGetAlert"); } // verify the required parameter 'alertId' is set if (alertId === undefined || alertId === null) { throw new Error("Missing the required parameter 'alertId' when calling codeScanningGetAlert"); } let pathParams = { 'owner': owner, 'repo': repo, 'alert_id': alertId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = CodeScanningAlert; return this.apiClient.callApi( '/repos/{owner}/{repo}/code-scanning/alerts/{alert_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
codeScanningGetAlert(owner, repo, alertId, callback) { let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling codeScanningGetAlert"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling codeScanningGetAlert"); } // verify the required parameter 'alertId' is set if (alertId === undefined || alertId === null) { throw new Error("Missing the required parameter 'alertId' when calling codeScanningGetAlert"); } let pathParams = { 'owner': owner, 'repo': repo, 'alert_id': alertId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = CodeScanningAlert; return this.apiClient.callApi( '/repos/{owner}/{repo}/code-scanning/alerts/{alert_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
codeScanningListAlertsForRepo(owner, repo, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling codeScanningListAlertsForRepo"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling codeScanningListAlertsForRepo"); } let pathParams = { 'owner': owner, 'repo': repo }; let queryParams = { 'state': opts['state'], 'ref': opts['ref'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [CodeScanningAlert]; return this.apiClient.callApi( '/repos/{owner}/{repo}/code-scanning/alerts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
codeScanningListAlertsForRepo(owner, repo, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling codeScanningListAlertsForRepo"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling codeScanningListAlertsForRepo"); } let pathParams = { 'owner': owner, 'repo': repo }; let queryParams = { 'state': opts['state'], 'ref': opts['ref'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [CodeScanningAlert]; return this.apiClient.callApi( '/repos/{owner}/{repo}/code-scanning/alerts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
static initialize(obj, createdAt, creator, deploymentUrl, description, id, nodeId, repositoryUrl, state, targetUrl, updatedAt, url) { obj['created_at'] = createdAt; obj['creator'] = creator; obj['deployment_url'] = deploymentUrl; obj['description'] = description; obj['id'] = id; obj['node_id'] = nodeId; obj['repository_url'] = repositoryUrl; obj['state'] = state; obj['target_url'] = targetUrl; obj['updated_at'] = updatedAt; obj['url'] = url; }
static initialize(obj, createdAt, creator, deploymentUrl, description, id, nodeId, repositoryUrl, state, targetUrl, updatedAt, url) { obj['created_at'] = createdAt; obj['creator'] = creator; obj['deployment_url'] = deploymentUrl; obj['description'] = description; obj['id'] = id; obj['node_id'] = nodeId; obj['repository_url'] = repositoryUrl; obj['state'] = state; obj['target_url'] = targetUrl; obj['updated_at'] = updatedAt; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new DeploymentStatus(); if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('creator')) { obj['creator'] = ApiClient.convertToType(data['creator'], SimpleUser); } if (data.hasOwnProperty('deployment_url')) { obj['deployment_url'] = ApiClient.convertToType(data['deployment_url'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('environment')) { obj['environment'] = ApiClient.convertToType(data['environment'], 'String'); } if (data.hasOwnProperty('environment_url')) { obj['environment_url'] = ApiClient.convertToType(data['environment_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('log_url')) { obj['log_url'] = ApiClient.convertToType(data['log_url'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('performed_via_github_app')) { obj['performed_via_github_app'] = ApiClient.convertToType(data['performed_via_github_app'], Integration); } if (data.hasOwnProperty('repository_url')) { obj['repository_url'] = ApiClient.convertToType(data['repository_url'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('target_url')) { obj['target_url'] = ApiClient.convertToType(data['target_url'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new DeploymentStatus(); if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('creator')) { obj['creator'] = ApiClient.convertToType(data['creator'], SimpleUser); } if (data.hasOwnProperty('deployment_url')) { obj['deployment_url'] = ApiClient.convertToType(data['deployment_url'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('environment')) { obj['environment'] = ApiClient.convertToType(data['environment'], 'String'); } if (data.hasOwnProperty('environment_url')) { obj['environment_url'] = ApiClient.convertToType(data['environment_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('log_url')) { obj['log_url'] = ApiClient.convertToType(data['log_url'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('performed_via_github_app')) { obj['performed_via_github_app'] = ApiClient.convertToType(data['performed_via_github_app'], Integration); } if (data.hasOwnProperty('repository_url')) { obj['repository_url'] = ApiClient.convertToType(data['repository_url'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('target_url')) { obj['target_url'] = ApiClient.convertToType(data['target_url'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
function DeployKey() { _classCallCheck(this, DeployKey); DeployKey.initialize(this); }
function DeployKey() { _classCallCheck(this, DeployKey); DeployKey.initialize(this); }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new Status(); if (data.hasOwnProperty('avatar_url')) { obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String'); } if (data.hasOwnProperty('context')) { obj['context'] = ApiClient.convertToType(data['context'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); } if (data.hasOwnProperty('creator')) { obj['creator'] = SimpleUser.constructFromObject(data['creator']); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('target_url')) { obj['target_url'] = ApiClient.convertToType(data['target_url'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new Status(); if (data.hasOwnProperty('avatar_url')) { obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String'); } if (data.hasOwnProperty('context')) { obj['context'] = ApiClient.convertToType(data['context'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); } if (data.hasOwnProperty('creator')) { obj['creator'] = SimpleUser.constructFromObject(data['creator']); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('target_url')) { obj['target_url'] = ApiClient.convertToType(data['target_url'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new ActionsPublicKey(); if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('key')) { obj['key'] = ApiClient.convertToType(data['key'], 'String'); } if (data.hasOwnProperty('key_id')) { obj['key_id'] = ApiClient.convertToType(data['key_id'], 'String'); } if (data.hasOwnProperty('title')) { obj['title'] = ApiClient.convertToType(data['title'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new ActionsPublicKey(); if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('key')) { obj['key'] = ApiClient.convertToType(data['key'], 'String'); } if (data.hasOwnProperty('key_id')) { obj['key_id'] = ApiClient.convertToType(data['key_id'], 'String'); } if (data.hasOwnProperty('title')) { obj['title'] = ApiClient.convertToType(data['title'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject100(); if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject100(); if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject137(); if (data.hasOwnProperty('bio')) { obj['bio'] = ApiClient.convertToType(data['bio'], 'String'); } if (data.hasOwnProperty('blog')) { obj['blog'] = ApiClient.convertToType(data['blog'], 'String'); } if (data.hasOwnProperty('company')) { obj['company'] = ApiClient.convertToType(data['company'], 'String'); } if (data.hasOwnProperty('email')) { obj['email'] = ApiClient.convertToType(data['email'], 'String'); } if (data.hasOwnProperty('hireable')) { obj['hireable'] = ApiClient.convertToType(data['hireable'], 'Boolean'); } if (data.hasOwnProperty('location')) { obj['location'] = ApiClient.convertToType(data['location'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('twitter_username')) { obj['twitter_username'] = ApiClient.convertToType(data['twitter_username'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject137(); if (data.hasOwnProperty('bio')) { obj['bio'] = ApiClient.convertToType(data['bio'], 'String'); } if (data.hasOwnProperty('blog')) { obj['blog'] = ApiClient.convertToType(data['blog'], 'String'); } if (data.hasOwnProperty('company')) { obj['company'] = ApiClient.convertToType(data['company'], 'String'); } if (data.hasOwnProperty('email')) { obj['email'] = ApiClient.convertToType(data['email'], 'String'); } if (data.hasOwnProperty('hireable')) { obj['hireable'] = ApiClient.convertToType(data['hireable'], 'Boolean'); } if (data.hasOwnProperty('location')) { obj['location'] = ApiClient.convertToType(data['location'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('twitter_username')) { obj['twitter_username'] = ApiClient.convertToType(data['twitter_username'], 'String'); } } return obj; }
JavaScript
static initialize(obj, description, htmlUrl, id, membersUrl, name, nodeId, permission, repositoriesUrl, slug, url) { obj['description'] = description; obj['html_url'] = htmlUrl; obj['id'] = id; obj['members_url'] = membersUrl; obj['name'] = name; obj['node_id'] = nodeId; obj['permission'] = permission; obj['repositories_url'] = repositoriesUrl; obj['slug'] = slug; obj['url'] = url; }
static initialize(obj, description, htmlUrl, id, membersUrl, name, nodeId, permission, repositoriesUrl, slug, url) { obj['description'] = description; obj['html_url'] = htmlUrl; obj['id'] = id; obj['members_url'] = membersUrl; obj['name'] = name; obj['node_id'] = nodeId; obj['permission'] = permission; obj['repositories_url'] = repositoriesUrl; obj['slug'] = slug; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new Team(); if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('members_url')) { obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('parent')) { obj['parent'] = ApiClient.convertToType(data['parent'], TeamSimple); } if (data.hasOwnProperty('permission')) { obj['permission'] = ApiClient.convertToType(data['permission'], 'String'); } if (data.hasOwnProperty('privacy')) { obj['privacy'] = ApiClient.convertToType(data['privacy'], 'String'); } if (data.hasOwnProperty('repositories_url')) { obj['repositories_url'] = ApiClient.convertToType(data['repositories_url'], 'String'); } if (data.hasOwnProperty('slug')) { obj['slug'] = ApiClient.convertToType(data['slug'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new Team(); if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('members_url')) { obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('parent')) { obj['parent'] = ApiClient.convertToType(data['parent'], TeamSimple); } if (data.hasOwnProperty('permission')) { obj['permission'] = ApiClient.convertToType(data['permission'], 'String'); } if (data.hasOwnProperty('privacy')) { obj['privacy'] = ApiClient.convertToType(data['privacy'], 'String'); } if (data.hasOwnProperty('repositories_url')) { obj['repositories_url'] = ApiClient.convertToType(data['repositories_url'], 'String'); } if (data.hasOwnProperty('slug')) { obj['slug'] = ApiClient.convertToType(data['slug'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new IssueEventForIssue(); if (data.hasOwnProperty('actor')) { obj['actor'] = SimpleUser.constructFromObject(data['actor']); } if (data.hasOwnProperty('author_association')) { obj['author_association'] = ApiClient.convertToType(data['author_association'], 'String'); } if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('body_html')) { obj['body_html'] = ApiClient.convertToType(data['body_html'], 'String'); } if (data.hasOwnProperty('body_text')) { obj['body_text'] = ApiClient.convertToType(data['body_text'], 'String'); } if (data.hasOwnProperty('commit_id')) { obj['commit_id'] = ApiClient.convertToType(data['commit_id'], 'String'); } if (data.hasOwnProperty('commit_url')) { obj['commit_url'] = ApiClient.convertToType(data['commit_url'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); } if (data.hasOwnProperty('event')) { obj['event'] = ApiClient.convertToType(data['event'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('issue_url')) { obj['issue_url'] = ApiClient.convertToType(data['issue_url'], 'String'); } if (data.hasOwnProperty('lock_reason')) { obj['lock_reason'] = ApiClient.convertToType(data['lock_reason'], 'String'); } if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('pull_request_url')) { obj['pull_request_url'] = ApiClient.convertToType(data['pull_request_url'], 'String'); } if (data.hasOwnProperty('sha')) { obj['sha'] = ApiClient.convertToType(data['sha'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('submitted_at')) { obj['submitted_at'] = ApiClient.convertToType(data['submitted_at'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new IssueEventForIssue(); if (data.hasOwnProperty('actor')) { obj['actor'] = SimpleUser.constructFromObject(data['actor']); } if (data.hasOwnProperty('author_association')) { obj['author_association'] = ApiClient.convertToType(data['author_association'], 'String'); } if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('body_html')) { obj['body_html'] = ApiClient.convertToType(data['body_html'], 'String'); } if (data.hasOwnProperty('body_text')) { obj['body_text'] = ApiClient.convertToType(data['body_text'], 'String'); } if (data.hasOwnProperty('commit_id')) { obj['commit_id'] = ApiClient.convertToType(data['commit_id'], 'String'); } if (data.hasOwnProperty('commit_url')) { obj['commit_url'] = ApiClient.convertToType(data['commit_url'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); } if (data.hasOwnProperty('event')) { obj['event'] = ApiClient.convertToType(data['event'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('issue_url')) { obj['issue_url'] = ApiClient.convertToType(data['issue_url'], 'String'); } if (data.hasOwnProperty('lock_reason')) { obj['lock_reason'] = ApiClient.convertToType(data['lock_reason'], 'String'); } if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('pull_request_url')) { obj['pull_request_url'] = ApiClient.convertToType(data['pull_request_url'], 'String'); } if (data.hasOwnProperty('sha')) { obj['sha'] = ApiClient.convertToType(data['sha'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('submitted_at')) { obj['submitted_at'] = ApiClient.convertToType(data['submitted_at'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
billingGetGithubActionsBillingGhe(enterpriseId, callback) { let postBody = null; // verify the required parameter 'enterpriseId' is set if (enterpriseId === undefined || enterpriseId === null) { throw new Error("Missing the required parameter 'enterpriseId' when calling billingGetGithubActionsBillingGhe"); } let pathParams = { 'enterprise_id': enterpriseId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = ActionsBillingUsage; return this.apiClient.callApi( '/enterprises/{enterprise_id}/settings/billing/actions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetGithubActionsBillingGhe(enterpriseId, callback) { let postBody = null; // verify the required parameter 'enterpriseId' is set if (enterpriseId === undefined || enterpriseId === null) { throw new Error("Missing the required parameter 'enterpriseId' when calling billingGetGithubActionsBillingGhe"); } let pathParams = { 'enterprise_id': enterpriseId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = ActionsBillingUsage; return this.apiClient.callApi( '/enterprises/{enterprise_id}/settings/billing/actions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
billingGetGithubActionsBillingOrg(org, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling billingGetGithubActionsBillingOrg"); } let pathParams = { 'org': org }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = ActionsBillingUsage; return this.apiClient.callApi( '/orgs/{org}/settings/billing/actions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetGithubActionsBillingOrg(org, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling billingGetGithubActionsBillingOrg"); } let pathParams = { 'org': org }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = ActionsBillingUsage; return this.apiClient.callApi( '/orgs/{org}/settings/billing/actions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
billingGetGithubActionsBillingUser(username, callback) { let postBody = null; // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling billingGetGithubActionsBillingUser"); } let pathParams = { 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = ActionsBillingUsage; return this.apiClient.callApi( '/users/{username}/settings/billing/actions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetGithubActionsBillingUser(username, callback) { let postBody = null; // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling billingGetGithubActionsBillingUser"); } let pathParams = { 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = ActionsBillingUsage; return this.apiClient.callApi( '/users/{username}/settings/billing/actions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
billingGetGithubPackagesBillingGhe(enterpriseId, callback) { let postBody = null; // verify the required parameter 'enterpriseId' is set if (enterpriseId === undefined || enterpriseId === null) { throw new Error("Missing the required parameter 'enterpriseId' when calling billingGetGithubPackagesBillingGhe"); } let pathParams = { 'enterprise_id': enterpriseId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = PackagesBillingUsage; return this.apiClient.callApi( '/enterprises/{enterprise_id}/settings/billing/packages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetGithubPackagesBillingGhe(enterpriseId, callback) { let postBody = null; // verify the required parameter 'enterpriseId' is set if (enterpriseId === undefined || enterpriseId === null) { throw new Error("Missing the required parameter 'enterpriseId' when calling billingGetGithubPackagesBillingGhe"); } let pathParams = { 'enterprise_id': enterpriseId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = PackagesBillingUsage; return this.apiClient.callApi( '/enterprises/{enterprise_id}/settings/billing/packages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
billingGetGithubPackagesBillingOrg(org, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling billingGetGithubPackagesBillingOrg"); } let pathParams = { 'org': org }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = PackagesBillingUsage; return this.apiClient.callApi( '/orgs/{org}/settings/billing/packages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetGithubPackagesBillingOrg(org, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling billingGetGithubPackagesBillingOrg"); } let pathParams = { 'org': org }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = PackagesBillingUsage; return this.apiClient.callApi( '/orgs/{org}/settings/billing/packages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
billingGetGithubPackagesBillingUser(username, callback) { let postBody = null; // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling billingGetGithubPackagesBillingUser"); } let pathParams = { 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = PackagesBillingUsage; return this.apiClient.callApi( '/users/{username}/settings/billing/packages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetGithubPackagesBillingUser(username, callback) { let postBody = null; // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling billingGetGithubPackagesBillingUser"); } let pathParams = { 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = PackagesBillingUsage; return this.apiClient.callApi( '/users/{username}/settings/billing/packages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
billingGetSharedStorageBillingGhe(enterpriseId, callback) { let postBody = null; // verify the required parameter 'enterpriseId' is set if (enterpriseId === undefined || enterpriseId === null) { throw new Error("Missing the required parameter 'enterpriseId' when calling billingGetSharedStorageBillingGhe"); } let pathParams = { 'enterprise_id': enterpriseId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = CombinedBillingUsage; return this.apiClient.callApi( '/enterprises/{enterprise_id}/settings/billing/shared-storage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetSharedStorageBillingGhe(enterpriseId, callback) { let postBody = null; // verify the required parameter 'enterpriseId' is set if (enterpriseId === undefined || enterpriseId === null) { throw new Error("Missing the required parameter 'enterpriseId' when calling billingGetSharedStorageBillingGhe"); } let pathParams = { 'enterprise_id': enterpriseId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = CombinedBillingUsage; return this.apiClient.callApi( '/enterprises/{enterprise_id}/settings/billing/shared-storage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
billingGetSharedStorageBillingOrg(org, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling billingGetSharedStorageBillingOrg"); } let pathParams = { 'org': org }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = CombinedBillingUsage; return this.apiClient.callApi( '/orgs/{org}/settings/billing/shared-storage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetSharedStorageBillingOrg(org, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling billingGetSharedStorageBillingOrg"); } let pathParams = { 'org': org }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = CombinedBillingUsage; return this.apiClient.callApi( '/orgs/{org}/settings/billing/shared-storage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
billingGetSharedStorageBillingUser(username, callback) { let postBody = null; // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling billingGetSharedStorageBillingUser"); } let pathParams = { 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = CombinedBillingUsage; return this.apiClient.callApi( '/users/{username}/settings/billing/shared-storage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
billingGetSharedStorageBillingUser(username, callback) { let postBody = null; // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling billingGetSharedStorageBillingUser"); } let pathParams = { 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = CombinedBillingUsage; return this.apiClient.callApi( '/users/{username}/settings/billing/shared-storage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
static initialize(obj, role, state, url) { obj['role'] = role; obj['state'] = state; obj['url'] = url; }
static initialize(obj, role, state, url) { obj['role'] = role; obj['state'] = state; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamMembership(); if (data.hasOwnProperty('role')) { obj['role'] = ApiClient.convertToType(data['role'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamMembership(); if (data.hasOwnProperty('role')) { obj['role'] = ApiClient.convertToType(data['role'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
function InlineObject113(event) { _classCallCheck(this, InlineObject113); InlineObject113.initialize(this, event); }
function InlineObject113(event) { _classCallCheck(this, InlineObject113); InlineObject113.initialize(this, event); }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject135(); if (data.hasOwnProperty('permission')) { obj['permission'] = ApiClient.convertToType(data['permission'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject135(); if (data.hasOwnProperty('permission')) { obj['permission'] = ApiClient.convertToType(data['permission'], 'String'); } } return obj; }
JavaScript
function ReleaseAsset(browserDownloadUrl, contentType, createdAt, downloadCount, id, label, name, nodeId, size, state, updatedAt, uploader, url) { _classCallCheck(this, ReleaseAsset); ReleaseAsset.initialize(this, browserDownloadUrl, contentType, createdAt, downloadCount, id, label, name, nodeId, size, state, updatedAt, uploader, url); }
function ReleaseAsset(browserDownloadUrl, contentType, createdAt, downloadCount, id, label, name, nodeId, size, state, updatedAt, uploader, url) { _classCallCheck(this, ReleaseAsset); ReleaseAsset.initialize(this, browserDownloadUrl, contentType, createdAt, downloadCount, id, label, name, nodeId, size, state, updatedAt, uploader, url); }
JavaScript
function Integration(createdAt, description, events, externalUrl, htmlUrl, id, name, nodeId, owner, permissions, updatedAt) { _classCallCheck(this, Integration); Integration.initialize(this, createdAt, description, events, externalUrl, htmlUrl, id, name, nodeId, owner, permissions, updatedAt); }
function Integration(createdAt, description, events, externalUrl, htmlUrl, id, name, nodeId, owner, permissions, updatedAt) { _classCallCheck(this, Integration); Integration.initialize(this, createdAt, description, events, externalUrl, htmlUrl, id, name, nodeId, owner, permissions, updatedAt); }
JavaScript
function ReposOwnerRepoGitCommitsAuthor() { _classCallCheck(this, ReposOwnerRepoGitCommitsAuthor); ReposOwnerRepoGitCommitsAuthor.initialize(this); }
function ReposOwnerRepoGitCommitsAuthor() { _classCallCheck(this, ReposOwnerRepoGitCommitsAuthor); ReposOwnerRepoGitCommitsAuthor.initialize(this); }
JavaScript
function InlineObject6(clientSecret) { _classCallCheck(this, InlineObject6); InlineObject6.initialize(this, clientSecret); }
function InlineObject6(clientSecret) { _classCallCheck(this, InlineObject6); InlineObject6.initialize(this, clientSecret); }
JavaScript
codesOfConductGetAllCodesOfConduct(callback) { let postBody = null; let pathParams = { }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [CodeOfConduct]; return this.apiClient.callApi( '/codes_of_conduct', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
codesOfConductGetAllCodesOfConduct(callback) { let postBody = null; let pathParams = { }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [CodeOfConduct]; return this.apiClient.callApi( '/codes_of_conduct', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }